HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Arrrlex

no profile record

comments

Arrrlex
·3 tahun yang lalu·discuss
https://simonwillison.net/
Arrrlex
·3 tahun yang lalu·discuss
I'm not an expert, but apparently transport accounts for only 11% of carbon emissions for food [1], and I suppose it's likely similar for beer. To me this suggests factors affecting production are far more important.

[1] https://news.climate.columbia.edu/2012/09/04/how-green-is-lo...
Arrrlex
·4 tahun yang lalu·discuss
I believe GP is talking about part 2 of the fast.ai course: https://course19.fast.ai/videos/?lesson=8
Arrrlex
·4 tahun yang lalu·discuss
Currying support is orthogonal to how function arguments work. Some languages (e.g. OCaml according to this question[1]) combine named parameters with currying, allowing partial application with any of the function's arguments.

[1] https://stackoverflow.com/questions/3015019/is-there-a-progr...
Arrrlex
·4 tahun yang lalu·discuss
I think this is the mistake a lot of people make: they form an intuition of monads after seeing lots of examples of them, and then they try to communicate that intuition without just saying "here are lots of examples of monads".
Arrrlex
·4 tahun yang lalu·discuss
Worth mentioning: there were three research groups trying to emulate C. elegans, and they all seem to have stalled [1].

[1]: https://www.lesswrong.com/posts/mHqQxwKuzZS69CXX5/whole-brai...
Arrrlex
·5 tahun yang lalu·discuss
I think this snippet would raise a KeyError whenever the index you're searching for is greater than 0.
Arrrlex
·5 tahun yang lalu·discuss
Just to clarify: there are lots of numbers that aren't real numbers (for example, imaginary numbers). Intuitively the real numbers are all the points along the number line, including rationals and irrationals (such as root 2, pi, or e). There are lots of other comments in this thread that give a good explanation of how that works formally.

If the students haven't yet encountered complex numbers, infinitesimals, infinities etc. then it's perfectly reasonable to say that all numbers are assumed to be real (as follows strictly from the definition in the book).