Maybe not revolutionary, but I think this article about static binary translation is a great introduction to the topic: http://www.gtoal.com/sbt/ (see also the "Virtual Machines" book by Smith and Nair, ISBN-13 978-1558609105, if you are interested in this topic). I can also recommend John Lions' "Commentary on the Sixth Edition Unix Operating System" - https://warsus.github.io/lions-/ , Douglas Comer's Xinu ( https:…
Ask HN: What's the best source code you've read?
131–140 of 271 posts
Re: Ask HN: What's the best source code you've read?
#132https://github.com/microsoft/TypeScript/blob/main/src/compil...
Re: Ask HN: What's the best source code you've read?
#133Re: Ask HN: What's the best source code you've read?
#134It’s not the best, far from it, but it was fascinating to me so I will share. I used to work for a large newspaper. Engineering wasn’t the focus of the business, it was only a means to an end, it was just something they needed to have a competitive website. As a result, the churn rate was very high. But more interesting there was also a very high return rate. Engineers would come and go and return and leave again all…
Re: Ask HN: What's the best source code you've read?
#135They have done a lot of work on structure and documentation, since the docs are auto-generated.
I have taken a lot of inspiration from them.
The Adobe APIs[2] were also excellent, but I'm not sure they are open for browsing, anymore.
[0] https://github.com/apple/swift
Re: Ask HN: What's the best source code you've read?
#136Re: Ask HN: What's the best source code you've read?
#137Surpised no one has mentioned the Nethack source, small codebase going on close to 40 years. https://github.com/NetHack/NetHack/tree/NetHack-3.7/src
Re: Ask HN: What's the best source code you've read?
#138https://docs.racket-lang.org/generator/index.html
Can't find source code online. I browsed the code in emacs with racket-xp-mode go to definition after installing it via raco pkg install. Could probably use DrRacket instead of emacs/racket-xp-mode.
I had to read the source code to find out what the specific names of the proto creators, accessor, mutator functions would be.
Re: Ask HN: What's the best source code you've read?
#139Re: Ask HN: What's the best source code you've read?
#140Peter Norvig's spell checker: https://norvig.com/spell-correct.html