Lurker News
Preferably an elegant snippet rather than an entire (well engineered) codebase.

Comments (380) 116 threads

Earlier comments
social_quotient#
Kinda seems like the perfect question to be used with this show hn from a couple days ago

https://carbon.now.sh/

jtms3 replies#
Curious why the comment about STL algorithms written by Alexander Stepanov was downvoted so hard it died? I’m not a C++ dev... is he hated or is the implementation that bad?
mattnewport#
I was wondering too. His series of videos on YouTube from A9 on algorithms is excellent and has some very beautiful code but you have to work through the series to fully appreciate it.
saagarjha#
It's from a user which seems to have had their comments killed immediately. I vouched for it so it should be fine now.
ashton3141 reply#
Lazily-generated infinite list of Fibonacci numbers in Haskell:

    fibs = 0:1:zipWith (+) fibs (tail fibs)
Recursive definitions and lazy programming blew my mind.
donaldihunter#
And in Perl6 / Raku

my @fibs = 1, 1, * + * ... ∞

Load more comments