News for hackers. Stuff that matters.
Re:Ask HN: What's the most elegant piece of code you've seen? by Dopameaner on Monday December 26, 2022 @01:38AM (#34135320)
Some of my fav. works include

Bittorrent and Bitcoin

Re:Ask HN: What's the most elegant piece of code you've seen? by bitlax on Monday December 26, 2022 @07:26AM (#34137115)
Redis source often gets mentioned in these threads.
Re:Ask HN: What's the most elegant piece of code you've seen? by betsuin on Monday December 26, 2022 @07:39AM (#34137199)
cat /var/log/apache2/access.log | awk '!a[$0]++'
Re:Ask HN: What's the most elegant piece of code you've seen? by _-----_ on Monday December 26, 2022 @08:37AM (#34137505)
Anything I have ever written, until I've re-read it.
Re:Ask HN: What's the most elegant piece of code you've seen? by jeffrallen on Monday December 26, 2022 @10:35AM (#34138388)
* * *
Re:Ask HN: What's the most elegant piece of code you've seen? by derwiki on Monday December 26, 2022 @07:22PM (#34143429)
A little dated, but tornado always impressed me:

https://github.com/tornadoweb/tornado

Also Norvig’s spell checker:

https://norvig.com/spell-correct.html

Re:Ask HN: What's the most elegant piece of code you've seen? by deterministic on Monday December 26, 2022 @07:27PM (#34143451)
The Lambda Calculus. Invented in the 1930s it is still used today as the basis for most advanced CS research and as the foundation of many programming languages.
Re:Ask HN: What's the most elegant piece of code you've seen? by Dopameaner on Tuesday December 27, 2022 @01:38AM (#34145864)
I am surprised no one mentioned chatGPT or GPT-3