Better HN
topnewbestaskshowjobs
Log inSign up

GorgeRonde

279 karma · joined Nov 4, 2013 (13y ago) · 133 submissions

Submissions

comment 7y ago · link · parent

    - Java: no
    - Ruby: no
    - PHP:  no
    - C:    yes and no

comment 7y ago · link · parent

Listening to what ? To the dude that tells me that's not possible and proceeds to dump a big pile of authority on top of my head or to my own experiment that tells me another story ?

I would have preferred to be told:

- yes and no. You'll get warnings if you try to return a pointer to a local, however, doing this and that, you can manage to do it.

- but once you have achieved that, the result will be dependent on the way the stack is handled (not really in your control). You'll feel some comfort doing this in recursive calls, however beware of signal.h.

But this isn't the answer I received. I guess C programmers do not know the difference between what you can do (however risky) and what you shouldn't do. Also when someone asks such "weird" questions, do not assume he's a beginner with no notion of what constructs he can handle safely, maybe he's someone trying to find the limits of C – and once these limits are identified it can be a good conversation starter about C's internal and the way various compilers differ.

Edit: also downvotes on HN are not like downvotes on Reddit: there's actually a limit (-2 ?). Below this the comment disappears. Conclusion: only downvote when the comment engages in antisocial behavior (not respecting the rules or common human decency, etc ...), not when you disagree with it. I always upvote an unfairly downvoted comment for these reasons.

comment 7y ago · link · parent

Thanks, that was interesting.

comment 7y ago · link · parent

Went to an IRC chat room when I was learning C in school. Asked if you could return a pointer to something that lives on the stack. Was talked down by an all-knowing dude telling me to go read K&R again. Proceeded to write a code sample [1] that showed it is possible (it's not really stable but works reliably in recursive calls IIRC).

I do not like this attitude (then again it was just one random dude).

[1] https://www.onlinegdb.com/HyO5VXRxS

comment 7y ago · link · parent

Fighting stupidity, laziness and a misplaced love for typography in software developers

comment 7y ago · link · parent

So are you fine with the idea that I get twice as much money and decision power than you, all things beyond worked hours being equal ?

comment 7y ago · link · parent

Officially I work 35h/w. A little less than 40k€. Senior level. Very efficient. I think my actual hourly pay is under the minimum wage. No overtime pay of course.

comment 7y ago · link · parent

I have no problem working twice as much as normal. What I want is to be paid twice as much (at least).

comment 7y ago · link · parent

In Romance languages the at-sign is called an arobase/arroba.

comment 7y ago · link · parent

We have macros and LISP is a building material, not a language.

One line of code is just enough to get something that works (defmacro infix [a op b] `(~op ~a ~b))

There are libraries for that too. Clojure: https://github.com/rm-hull/infix

comment 7y ago · link · parent

Although I have never used Julia, this is something that is possible in Ruby, and I think this feature is seriously underrated – i.e. to be able to jump quickly to the definition of external code, modify it and run it. When you work with multiple libraries/repo this is very valuable when debugging, saves a lot of time.

It should also be possible with Node.js I think (node_modules).

comment 7y ago · link · parent

And he abandoned his schizophrenic son.

comment 7y ago · link · parent

People from Nasca also built a wind-powered aqueduct system.

https://www.mnn.com/earth-matters/climate-weather/blogs/myst...

comment 7y ago · link · parent

Some people get high on big frogs in Arizona. Or so said the urban legend. And then a few weeks ago Youtube suggested me a video (Joe Rogan maybe ?) where the differences between ayahuasca DMT and frog DMT were discussed. In the comments someone said. "It happened to my chihuhua ! I was walking my dog (I'm from Arizona) when that huge frog squirted his venom at her. The poor animal convulsed for 30 minutes."

Amazing.

comment 7y ago · link · parent

The absence of abstraction being what exactly ?

Also beware of that kind of pseudo-wise thinking. Is there a point in climbing up a learning curve anymore ? Maybe you have a constant and massive stream of fresh bodies to throw at your "simple" solutions before laying them aside once those abstractions have clogged up their heads ... And maybe if you can unskilled workers at such a scale, it's because you have massive fundings as well...

More a question of financial optimization than software engineering I think

comment 7y ago · link · parent

A few remarks on methodology in linguistics (the science).

A phone is a class of sounds (as opposed to their instances which are all unique) that can be reliably described by articulatory or acoustic features (phonetics) or by patterns found in EEG (I'm thinking of MIT's voiceless mic).

A phoneme is another type of "sound" class used in linguistics and it is arguably the more important: phonemes, as studied in the context of a particular language, is the finite set of sounds (a few dozens at most) from which you build different words in that language. Phonemes always come in pairs, since they are defined as the minimal distinctive linguistic unit that can yield a difference in meaning.

Substitute /p/ with /f/ in/fear/ and you get /pear/, i.e. another word, a difference in meaning --> thus /p/ and /f/ are phonemes.

But substitute /r/ with /rrrrr/ in /Braveheart/ and you get the same word but with a scottish accent. These do not form a phonemic pair but allophonic variations of the same phoneme (here according to different geographic areas but they can also vary according to age, social status, gender, etc ...)

comment 7y ago · link · parent

I watched a documentary about domestication a while back. Turns out there are many "corollary features" to being domesticated: for instance, ears falling down are also to be found in domesticated fox.

One of the most common feature across domesticated species was tighter jaws.

Source: https://www.youtube.com/watch?v=_6Zep-GhQYU

comment 7y ago · link · parent

It is not that simple

comment 7y ago · link · parent

The more I read about quantum mechanics the less i understand, and I'm absolutely unable to get into a proper learning path because it requires mathematics beyond my level and for which I'm not able to develop a taste on my own.

Of course I'm not interested in doing calculations but to appreciate quantum physics you have to know what the formalism behind are about and physicists are unable to explain it in simple terms for reasons I think I make out but can't properly formulate.

As an alternative path, Quantum Models of Cognition and Decision [1], may offer a less steep learning curve for the fact "you are the quantum system" and as such get to have actual experience with phenomena discussed in this book. To clear up the new-age vibe introduced in the last sentence, I think studying the maths through a phenomenon whose ambiguity is not questioned as a metaphysical abyss but is accepted as just being here in its mundane simplicity (semantic ambiguity in daily language use, that kind of thing) alleviates a lot of trouble in grasping what the maths mean in a physics course. Also the book is written for people coming from the fields related to psychology so it's a lot more approachable.

[1] http://bacon.umcs.lublin.pl/~lukasik/wp-content/uploads/2010...

comment 7y ago · link · parent

I don't get the reference, would you mind explaining? On a related note, I've always been baffled by Coursera founder & ML fame Andrew Ng's name. How am I supposed to pronounced it?

comment 7y ago · link · parent

They built other libraries on top of this [1] [2], and when compared to mobx [3] it indeed looks very similar, however I think the target ideal of having a small core on top of which one would build more complex computation is essential.

Since Clojure is pervasively built on laziness, there has been some discussions in the community about doing the same but for incremental computation. And doing it pervasively most importantly guarantees it will work at any granularity without any manual fiddling with observables and reactions.

A recent contribution to the solution field in Clojure is micro_adapton [4][5] which looks like it is to incremental computing what miniKanren is to logic programming, i.e. a tiny core for a a challenging problem.

Also, considering the literature around it it seems to be pretty tricky to do properly, especially when it comes to databases [6].

[1] https://github.com/janestreet/incr_map [2] https://github.com/janestreet/incr_select [3] https://github.com/mobxjs/mobx [4] https://github.com/aibrahim/micro_adapton [5] https://arxiv.org/abs/1609.05337 [6] https://scholar.google.fr/scholar?hl=fr&as_sdt=0%2C5&q=incre...

22.

Competing Approaches to Functional Reactive Programming(blog.janestreet.com ↗)

1 points · by GorgeRonde · 7y ago · discuss

comment 7y ago · link · parent

    Future work:
    Reduce load on Postgres by:
    - Mapping events to active live queries
    - Incremental computation of result set
Fake it till you make it.

Meanwhile: https://opensource.janestreet.com/incremental/

comment 7y ago · link · parent

It was almost certainly caused by one or multiple comet fragment impacts.

Sources: https://scholar.google.fr/scholar?as_ylo=2018&q=hiawatha+cra...

comment 7y ago · link · parent

MHD.

Also, completely off topic: why not try to make a MHD train instead of hyperloop ?

comment 7y ago · link · parent

You may be interested in reading this piece by astrophysicist/MHD-ist Jean-Pierre Petit.

https://www.jp-petit.org/science/gal_port/Von_Ludwiger.htm

He proceeds to bash Vallée, Hynek, and some other lesser known ufologists. It's in French but Google Translate is very good nowadays.

comment 7y ago · link · parent

https://www.youtube.com/watch?v=72n34fRkA3I

comment 7y ago · link · parent

There is a whole field dedicated to this kind of study, namely sociolinguistics (see [1] for a short summary of the seminal experiment). Sociolinguistics study surface variations in language use that cannot be accounted by dialectology only (i.e. geographical factors) among speakers of the same language. There are clusters among linguistics uses, and it turns out they map to clusters in the space of social practices. For what I have studied of the field (not that much), it seems most of the time the variation is driven by the desire to belong or show you belong to the community of the users of the trait you adopt. It's said to be "inconscious" (pretty much like my masterful ability a handling language), but at the same time the subjects at hand can arrive at the same conclusions with the help of some introspection.

What's uncanny here is that having a goatee doesn't make you belong to any social group you could think of explicitly and enjoy belonging to. I guess the relationship is mostly driven by a mix of physionomical traits (gender + age) and the fact they correlate well to having a goatee (which isn't a tiny class anyway). Or there are indeed "deep" social structures to which we belong and are yet unable to identify.

[1] http://all-about-linguistics.group.shef.ac.uk/branches-of-li...

Edit: there may well be an immense data trove hidden in people's voice. That could be a very useful way to enrich datasets internally a bit like recommendation engines work: if my neighbour speaks like I do, then he must enjoy the same things as I.

12345