r/LitProg • • Jun 03 '25

Organic Markdown -- Literate Programming Tool

4 Upvotes

I've been working on my own version of a literate programming system (https://github.com/adam-ard/organic-markdown)  that's inspired by emacs org-mode. But, because it's based on standard pandoc-style markdown, you can use it with a much wider range of tools. Any markdown editor will do.

Even though I made it as a toy/proof of concept, it's turned out to be pretty useful for small to medium size projects. As I've used it, I've found all kinds of interesting benefits and helpful usage patterns. I've tried to document some; I hope to do more soon. 

--https://rethinkingsoftware.substack.com/p/the-joy-of-literate-programming

--https://rethinkingsoftware.substack.com/p/organic-markdown-intro

--https://rethinkingsoftware.substack.com/p/dry-on-steroids-with-literate-programming

--https://www.youtube.com/@adam-ard/videos

The project is at a very early stage, but is finally stable enough that I thought it'd be fun to throw out here and see what people think. It's definitely my own unique spin on literate programming and it's been a lot of fun. See what you think!


r/LitProg • • Nov 29 '23

Literate Interactive TypeScript - LiTScript Version 2 Released

4 Upvotes

LiTScript, the literate programming tool for TypeScript just got its first major update. LiTScript can be used to document variety of web file formats: TS, CSS, JSON, etc. It's also a web toolkit/static site generator that can be used to develop and build TypeScript projects.

More info at: https://johtela.github.io/litscript


r/LitProg • • Jun 19 '23

Inform 7 - a programming language for creating interactive fiction

4 Upvotes

"Inform is a programming language for creating interactive fiction, using natural language syntax. Using natural language and drawing on ideas from linguistics and from literate programming, Inform is widely used as a medium for literary writing, as a prototyping tool in the games industry, and in education, both at school and university level (where Inform is often assigned material for courses on digital narrative). It has several times ranked in the top 100 most influential programming languages according to the TIOBE index. Created in April 2006, it was open-sourced in April 2022."

https://ganelson.github.io/inform-website/


r/LitProg • • May 18 '23

InWeb, an advanced literate programming system made for the Inform interactive fiction language. Includes export to HTML.

Thumbnail
github.com
4 Upvotes

r/LitProg • • Nov 15 '25

Mechdown - A New Literate Programming Tool

3 Upvotes

Hi all,

I'm the author of a programming language called Mech, which treats literate programming as a first-class citizen through a markup language called Mechdown.

I've written a blog post demonstrating Mechdown's capabilities, with an extended literature review on contemporary and historical literate programming tools. You can read it here: https://mech-lang.org/post/2025-11-12-mechdown

I'm looking for feedback from people who are into literate programming and have some ideas about new features and directions for literate programing tools; I'm trying to push literate programming to be more than just notebooks with executing cells. If you'd like to discuss more feel free to message me or join the discord!

https://github.com/mech-lang/mech


r/LitProg • • Aug 25 '25

Narrative Programming - an evolution

3 Upvotes

I've developing my own thoughts on how to co-join the art of storytelling with the craft of programming; it hinges on adding exposition using a narrative grammar to source code so that an orthogonally structured narrative arc can be extracted from a code base that has been written in metaphor-rich story-parts... I have 3 articles that develop the ideas and one exemplar GitHub repository:

First article, introduces fundamental concepts but just looks at charting

Theoretical first development of a grammar

Experience of writing code like this

A code base writtten as story

I guess that's a lot of info so REALLY happy to enter direct discussion if anyone prefers...

CHEERS


r/LitProg • • May 20 '24

teemi: An open-source literate programming approach for iterative design-build-test-learn cycles in bioengineering

3 Upvotes

From the abstract: "To enable user-friendly simulation, organization, and guidance for the engineering of biosystems, we have developed an open-source python-based computer-aided design and analysis platform operating under a literate programming user-interface hosted on Github. The platform is called teemi and is fully compliant with FAIR principles. In this study we apply teemi for i) designing and simulating bioengineering, ii) integrating and analyzing multivariate datasets, and iii) machine-learning for predictive engineering of metabolic pathway designs for production of a key precursor to medicinal alkaloids in yeast. The teemi platform is publicly available at PyPi and GitHub."

Link to paper at plos.org


r/LitProg • • Apr 28 '24

Literate Programming using docmfp for Python and OpenSCAD

3 Upvotes

I am currently working on a project which uses Peter Wilson's docmfp package so as to be able to generate code for: https://pythonscad.org/ (a Python-enabled version of OpenSCAD), which has me working with a Python core wrapped up in two layers of OpenSCAD with additional OpenSCAD files beyond that:

https://github.com/WillAdams/gcodepreview/blob/main/gcodepreview.dtx

Switching back-and-forth between TeXshop and TeXworks.

It's been working well, but I was curious about some aspects, see below for questions.


r/LitProg • • Mar 18 '24

Explain What a Literate Programming Language Is More

3 Upvotes

Please explain what a literate programming language is more. I came here from LQ, and would like to learn more what it is. I didn't realize your post, was related to "Literate" programming languages. I thought it was more generic. Wanting to start a programming group. Still, I'm intrigiued and interested. Perhaps, dear I say it, I will want to create some of those languages, or at least make some languages have some of those features, while still being a good programming language.


r/LitProg • • May 31 '23

GitHub - JunoLab/Weave.jl: Scientific reports/literate programming for Julia

Thumbnail
github.com
3 Upvotes

r/LitProg • • May 31 '23

Recent discussion of Literate Programming at Hacker News

3 Upvotes

Recent discussion of Literate Programming at Hacker News, riffing on the list of articles at LiterateProgramming.com. A couple of highlights:

  • "In Racket, the included literate programming (Scribble/LP2) is itself a language implemented in Racket. Racket’s IDE and tools for exposing and inspecting syntax work just as well in that environment as in any other Racket-implemented language."

  • "It might be nice if modern languages defined an official way to 'flip' the interpretation of a source file, so that by default the content is treated as markdown and the code goes in fenced blocks (rather than defaulting to code and providing a way to mark comment blocks)." This is a great idea. I'm putting it on the roadmap for vim-noweb.


r/LitProg • • May 19 '23

Tangle-Up versus Tangle-Down

3 Upvotes

I almost succeeded in getting a friend to adopt Literate Programming, but he stopped me with one question: "If I change the source files on disk, say with a debugger or IDE, can you read them back up into tangle blocks of the source document?" Well, I couldn't. I thought about it and attempted a solution, but the general case of maintaining consistency of (say) an org-babel doc and (say) a PyCharm project directory was too hard and I gave up.

The tangle-down direction is easy: strip code blocks from the doc and lay them out on disk for the build system.

The tangle-up direction is hard: create / update / delete noweb blocks in the doc in some kind of repairable order given (say) a git status or git diff output.

It sounds do-able, but a lot of work.

Anyone else attempting or succeeded? My friend asserted that "no one who uses IDEs, and that's everyone except a few crazies like you who don't mind working too hard, will ever adopt LP until this problem is completely solved and integrated with (say) VSCode or (say) PyCharm." :)


r/LitProg • • Oct 29 '24

"hello, world" Literate Programming example in Noweb

2 Upvotes

Happy birthday to me. To celebrate, I'm releasing a simple Literate Programming tutorial based on the classic C "hello, world" program. https://metaed.com/papers/hello/ This is in the nature of a draft. Suggestions are welcome.


r/LitProg • • Oct 21 '24

Literal programming with org-mode

Thumbnail reddit.com
2 Upvotes

r/LitProg • • Jul 14 '24

Different approach to literate programming for LaTeX

Thumbnail
tex.stackexchange.com
2 Upvotes

r/LitProg • • Apr 17 '24

literate-calc-mode.el: 🧮 Literate programming for M-x calc

Thumbnail
github.com
2 Upvotes

r/LitProg • • Feb 12 '24

papyrus: A Literate Programming Tool for Common Lisp · papyrus makes your markdown executable

Thumbnail
github.com
2 Upvotes

r/LitProg • • Jan 04 '24

lilac: A Literate Programming tool for Orgmode targeting HTML output

Thumbnail
github.com
2 Upvotes

r/LitProg • • Nov 28 '23

Nuweb, Noweb, and code formatting/syntax highlighting

Thumbnail news.ycombinator.com
2 Upvotes

r/LitProg • • May 28 '23

Syntaxes for literate programming

Thumbnail self.programminglanguages
2 Upvotes

r/LitProg • • May 25 '23

announcing: a new Vim syntax highlighting plugin for Noweb source files

2 Upvotes

I am releasing a Vim syntax highlighting plugin for Noweb source files at https://metaed.com/papers/vim-noweb/.

This plugin highlights Noweb syntax, but it also highlights the syntaxes of the embedded code blocks, when it knows them.

The files available are: the complete source (in Noweb format, naturally), the technical manual in Portable Document Format (PDF), and a specimen showing the syntax highlighting.

This has not been released before. It works for me. I would be glad for feedback on how it works for you.

In particular, I can easily add support for more language-specific syntax highlighting within embedded code blocks. Which languages would be useful?


r/LitProg • • May 19 '23

Integration tests that write your docs

2 Upvotes

r/LitProg • • Dec 19 '24

EmacsConf 2024: Literate programming for the 21st Century - Howard Abrams - toobnix

Thumbnail
toobnix.org
1 Upvotes

r/LitProg • • May 26 '24

List of books on/source code of Literate Programs --- any missing?

Thumbnail
goodreads.com
1 Upvotes