Toot

Written by paul on 2025-01-08 at 19:56

Got totally distracted with an idea this morning involving Scheme, S-expressions, ASTs, literate programming, and knowledge graphs.

The literate program markup looks like this:

https://github.com/PaulBatchelor/Recurse/blob/main/scratch/edexp/proto.e

This builds up a s-expressions as trees (take my word for it)

It "tangles" into scheme code that looks like this:

https://github.com/PaulBatchelor/Recurse/blob/main/scratch/edexp/output.scm

It "weaves" into knowledge graph markup (dagzet), which can then be rendered into an HTML document like this one:

https://pbat.ch/recurse/dz/edexp_test/program/

Once in the knowledge graph format, I can treat every atom in the tree like a node in a graph and connect them to any other nodes in the graph. I can also use it to create emergent structures in my knowledge graph, such as this dynamically produced comments page:

https://pbat.ch/recurse/dz/edexp_test/comments/

=> More informations about this toot | View the thread | More toots from paul@post.lurk.org

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113794494469941044
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.361383 milliseconds
Gemini-to-HTML Time
0.679729 milliseconds

This content has been proxied by September (3851b).