News for hackers. Stuff that matters.
Re:Literate programming: Knuth is doing it wrong (2014) by leephillips on Monday January 13, 2025 @12:06PM (#42685715)
This is solved by the Pluto notebook, which makes presentation order independent of execution order. Only works for Julia, but shows that such a notebook is possible.

https://lwn.net/Articles/835930/

Re:Literate programming: Knuth is doing it wrong (2014) by snops on Monday January 13, 2025 @02:51PM (#42688080)
Marimo does this for python, by tracking dependencies.

https://marimo.io/

Re:Literate programming: Knuth is doing it wrong (2014) by wiz21c on Tuesday January 14, 2025 @07:01AM (#42696230)
Thanks, didn't know about that tool. Will try !
Re:Literate programming: Knuth is doing it wrong (2014) by wiz21c on Tuesday January 14, 2025 @07:01AM (#42696227)
Thx! didn't notice that pluto had this feature (I used it like a Jupyter notebook, shame on me :-) )
Re:Literate programming: Knuth is doing it wrong (2014) by zelphirkalt on Tuesday January 14, 2025 @08:15AM (#42696763)
Do you happen to have any example that shows LP in Pluto? The site you linked does not show it, at least looking at the screenshots, I don't see anything like I would have in org-mode using org-babel.
Re:Literate programming: Knuth is doing it wrong (2014) by leephillips on Tuesday January 14, 2025 @02:27PM (#42702465)
No, not specifically. But I think it’s pretty obvious how to put it to that purpose.