Re:Gitlet.js – Git implemented in 1k lines of JavaScript (2015)
by chungy on Tuesday April 13, 2021 @12:51AM
(#26788234)
It's a very old idea. Donald Knuth implemented it with both Pascal and C to promote an idea of "literate programming" -- you'd literally just write prose sprinkled with little bits of programming. On compilation, you can choose to compile either the documentation or program.
[ Parent
| on HN ]
Re:Gitlet.js – Git implemented in 1k lines of JavaScript (2015)
by truthr on Tuesday April 13, 2021 @01:40AM
(#26788471)
The deep learning library fastai uses this. Their source code is also their documentation. They use something called "nbdev" to accomplish this. And I have also seen other projects both related and unrelated to deep learning adopt it. This idea stems from Knuth.
Re:Gitlet.js – Git implemented in 1k lines of JavaScript (2015)
by someoldguy on Tuesday April 13, 2021 @01:30AM
(#26788434)
For an example, the PBRT book is great.
Re:Gitlet.js – Git implemented in 1k lines of JavaScript (2015)
by WalterGR on Tuesday April 13, 2021 @02:32AM
(#26788788)
PBRT is Physically Based Rendering: From Theory To Implementation by Matt Pharr, Wenzel Jakob, Greg Humphreys.
https://www.amazon.com/Physically-Based-Rendering-Theory-Imp...