HackerTrans
TopNewTrendsCommentsPastAskShowJobs

orksliver

no profile record

Submissions

Show HN: A browser music sequencer: every note is a Petri-net transition firing

blog.stackdump.com
3 points·by orksliver·2 個月前·0 comments

Petri Nets as a Universal Abstraction

book.pflow.xyz
3 points·by orksliver·5 個月前·1 comments

Using Petri nets as a formal language for LLM-assisted development

github.com
3 points·by orksliver·7 個月前·2 comments

comments

orksliver
·2 個月前·discuss
[dead]
orksliver
·5 個月前·discuss
agreed https://book.pflow.xyz/
orksliver
·5 個月前·discuss
Petri nets were invented in 1962. They predate Unix, the internet, and object-oriented programming. For most of their history, they lived in academic papers — a formalism known to theorists but invisible to working programmers.

This book argues they deserve wider use. Not because they're elegant (they are) but because they solve practical problems. A Petri net is a state machine that handles concurrency. It's a workflow engine with formal guarantees. It's a simulation model that converts to differential equations. It's a specification that can be verified, compiled to code, and proven in zero knowledge.
orksliver
·7 個月前·discuss
What this actually do?:

You define a Petri net, simulate it with ODEs, and the structure becomes a scaffold for LLM-generated code. The net is the spec that both humans and LLMs can reason about.

I use Claude Code with a skill file that enforces: sketch topology → validate with simulation → extend monotonically → never delete, only grow. The discipline works with how LLMs operate.
orksliver
·7 個月前·discuss
I've been experimenting with Petri nets as a shared representation between humans and LLMs. The model becomes the artifact—you sketch topology, validate with simulation, extend monotonically. Code is derived.

Why Petri nets? Visual (humans can reason about them), mathematical (ODEs, invariants), executable, and compositional. LLMs can manipulate the structure without losing semantic meaning.