GorgeRonde
- Java: no
- Ruby: no
- PHP: no
- C: yes and noI 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.
I do not like this attitude (then again it was just one random dude).
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
It should also be possible with Node.js I think (node_modules).
https://www.mnn.com/earth-matters/climate-weather/blogs/myst...
Amazing.
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
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 ...)
One of the most common feature across domesticated species was tighter jaws.
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...
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...
Future work:
Reduce load on Postgres by:
- Mapping events to active live queries
- Incremental computation of result set
Fake it till you make it.Sources: https://scholar.google.fr/scholar?as_ylo=2018&q=hiawatha+cra...
Also, completely off topic: why not try to make a MHD train instead of hyperloop ?
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.
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.
> Sometimes, bruxism triggered by MDMA can become chronic, Chandwani adds. He had one patient who grinded her teeth for two years after using MDMA just once.
Source: https://www.vice.com/en_us/article/d3kz9m/mdma-ecstasy-makes...
Edit: to clarify I got awake bruxism while on the influence of the substance (this is normal) and nocturnal bruxism for one year after that. I wasn't able to chew in the morning because of the toothache.
Edit2: Oh and did i mention one of the girl in the group used to be a heavy MDMA user and wear a dental guard at night ?
This would make sense along coasts though but you wouldn't be able to cross the country from sea to sea in a few hours of course.
What's good with trains is that you can hop in at the very last moment (when the bell rings, happened to me a couple times) and the train stops in the center of cities, instead of the suburbs. This is the main reason why high speed train in France can compete with airplanes when crossing the country. By plane I must first reach the airport (30 mins), have some time ahead before embarking (30 mins), the flight is 1 hour long but the time to actually take off and pick back your luggages it's almost 2 hours long, and then you have to reach the center of your destination city (30 mins). By my generous estimates, it takes 3h30 to travel by plane North/South in France vs 4 hours by train.
And because currently not every railroad segment can support high speed trains going at full velocity (but work is in progress) it could take 3 hours. 300 km/h
Also note that Amdahl's law [1] applies in this context (there are diminishing returns in optimizing the speed of only one segment of the full path) and travelling the last kilometers accounts for a significant portion of the travel time.
For instance the TGV has to slow down when entering cities (because of the noise) and at some point in the development of the high speed rail network, it might become more interesting to dig long tunnels under cities for these trains rather than increasing the train's maximum speed.