HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Arrrlex

no profile record

comments

Arrrlex
·3 года назад·discuss
https://simonwillison.net/
Arrrlex
·3 года назад·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 года назад·discuss
I believe GP is talking about part 2 of the fast.ai course: https://course19.fast.ai/videos/?lesson=8
Arrrlex
·4 года назад·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 года назад·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 года назад·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 лет назад·discuss
I think this snippet would raise a KeyError whenever the index you're searching for is greater than 0.