Back to front pageView on Hacker News (opens in a new tab)Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years agoPreferably an elegant snippet rather than an entire (well engineered) codebase.Comments (380) 116 threadsEarlier comments[-]jlv27 years ago1 reply#/bin/true on a v7 UNIX system. A zero byte file with the execute bit set.jlv27 years ago#Found a copy: https://github.com/v7unix/v7unix/blob/master/v7/bin/trueDaave877 years ago#select languageId, translate(language, languageId) language from languageit was a stored procedure to populate a dropdown list of languages each translated into their own language on an old asp.net app. i always liked itrpmisms7 years ago#Doom Source. I don't do C, but this stuff just... made sense.[-]fortran777 years ago1 reply#TeX[-]cormacrelf7 years ago1 reply#FYI, there's an effort at the moment to translate XeTeX and dvipdfmx into Rust. Started with c2rust, now we have a test suite checking regressions against the entire arXiv archive. Contributors welcome. https://github.com/crlf0710/tectonicfortran777 years ago#Why? It works fine. Does _everything_ need to be in Rust, or whatever the new language-of-the-day is?Load more commentsAll comments shown.Couldn't load more comments. Check your connection and try again.
Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years ago
Daave877 years ago#select languageId, translate(language, languageId) language from languageit was a stored procedure to populate a dropdown list of languages each translated into their own language on an old asp.net app. i always liked it
cormacrelf7 years ago1 reply#FYI, there's an effort at the moment to translate XeTeX and dvipdfmx into Rust. Started with c2rust, now we have a test suite checking regressions against the entire arXiv archive. Contributors welcome. https://github.com/crlf0710/tectonic
fortran777 years ago#Why? It works fine. Does _everything_ need to be in Rust, or whatever the new language-of-the-day is?
Comments (380) 116 threads
Earlier commentsit was a stored procedure to populate a dropdown list of languages each translated into their own language on an old asp.net app. i always liked it
All comments shown.
Couldn't load more comments. Check your connection and try again.