Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have tried a few blog posts with literate style code. Some in a notebook style, like https://taeric.github.io/cube-permutations-1.html. in general, that style seems easier nowadays.

There is Stanford GraphBase, and a really good MP3 book that are full programs. Not to mention TeX.



Also the PCC compiler published A Retargetable C Compiler by Fraser & Hanson, as well as the PBRT renderer as described in the Academy Award winner Physically Based Rendering[1] by Pharr, Jacob, & Humphreys. As for instances where the point is more the book than the program, there’s C Interfaces and Implementations by Hanson, and while the “literate diffs” style used by Nystrom’s Crafting Interpreters[2] comes at the idea from a somewhat different angle, I’d say the effect is largely the same. Ulix[3] is arguably an academic exercise, but at the same time a full Unix-like kernel should count for something, shouldn’t it?

The overwhelming popularity of TeX all too often makes people forget about METAFONT. The type of computer fonts advocated by the latter has unfortunately failed to gain popularity, and its descendant MetaPost has a lot of competition, but I think the language itself is much nicer (while remaining true to its macroexpander roots), and it’s another literate program of about the same size.

[1] Gratis at https://pbr-book.org/

[2] Gratis at http://craftinginterpreters.com/contents.html

[3] https://www.ulixos.org/


> the PCC compiler published A Retargetable C Compiler by Fraser & Hanson

You're thinking of LCC. PCC is AT&T's compiler and the work of Johnson who also did yacc.


Right. That’s what I get for checking the ’net instead of literally flipping back to the introduction of the book I literally already had open. :/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: