2 ms·
> imagine keeping code in Emacs's Org mode and being able to compile it. Something like this https://github.com/nakkaya/ferret https://github.com/nakkaya/ferr
by zokier 8y ago
> imagine keeping code in Emacs's Org mode and being able to compile it.
Something like this
https://github.com/nakkaya/ferret https://github.com/nakkaya/ferret
The whole source code is in literate form in one org file.
- keithnz 8y agowell that is very cool. Unfortunately the original HN posts title failed to mention that was meant for embedded control systems which is probablly why I missed reading it! The HN post can be found here :- https://news.ycombinator.com/item?id=14951116 https://news.ycombinator.com/item?id=14951116 and the literate source code is here ... https://github.com/nakkaya/ferret/blob/master/ferret.org https://github.com/nakkaya/ferret/blob/master/ferret.org
- grok2 8y agoNice. Someone actually used Literate programming to write something useful :-). The ferret org-mode info is very readable.
- sparkie 8y agoPerhaps the most insane example of literate programming is Axiom [https://en.wikipedia.org/wiki/Axiom_(computer_algebra_system) https://en.wikipedia.org/wiki/Axiom_(computer_algebra_system...], which is several books worth. It wasn't originally written in literate style, but it was a very large codebase which almost nobody understood. Tim Daly put an enormous amount of effort into making it literate, so that anybody can be introduced to it.