Live data from Hacker News

Penrose – Create diagrams by typing notation in plain text

penrose.cs.cmu.edu

11–20 of 124 posts

Re: Penrose – Create diagrams by typing notation in plain text

#11
post #5

Penrose looks great. Beautiful diagrams and readable code. What are some other text-driven diagramming languages / tools? I know of: https://mermaid.js.org/ https://graphviz.org/ https://flowchart.fun/

D2 Lang is a nice one:

https://d2lang.com/

Re: Penrose – Create diagrams by typing notation in plain text

#13
post #5

Penrose looks great. Beautiful diagrams and readable code. What are some other text-driven diagramming languages / tools? I know of: https://mermaid.js.org/ https://graphviz.org/ https://flowchart.fun/

I assume the future is an LLM where you specify everything in plain english...

Re: Penrose – Create diagrams by typing notation in plain text

#15

Does this require a browser (or browser engine) for rendering (like Mermaid.js)? Or can it render (esp. to SVG) without a browser (like Graphviz)? Penrose appears to be written in TypeScript, so my assumption is that it needs a browser.

It looks like the CLI tool (@penrose/roger) just depends on a few npm packages with no browser engine and supports SVG export.

Re: Penrose – Create diagrams by typing notation in plain text

#16

Does this require a browser (or browser engine) for rendering (like Mermaid.js)? Or can it render (esp. to SVG) without a browser (like Graphviz)? Penrose appears to be written in TypeScript, so my assumption is that it needs a browser.

> roger is a command-line tool for generating diagrams from Penrose trios and serving local files to a local editor.

https://penrose.cs.cmu.edu/docs/ref/using

Re: Penrose – Create diagrams by typing notation in plain text

#17
post #9

Oh, I thought these would be to create spacetime diagrams. As in Penrose Diagrams: https://en.wikipedia.org/wiki/Penrose_diagram

For Penrose spacetime diagrams I found xhorizon [1] and einsteinpy [2]

1: https://github.com/xh-diagrams/xhorizon

2: https://github.com/einsteinpy/einsteinpy/issues/480

There's a 'spacetime' GH topic: https://github.com/topics/spacetime

/? spacetime diagrams site:github.com : https://www.google.com/search?q=spacetime+diagrams+site%3Agi...

Re: Penrose – Create diagrams by typing notation in plain text

#19
post #13
post #5

Penrose looks great. Beautiful diagrams and readable code. What are some other text-driven diagramming languages / tools? I know of: https://mermaid.js.org/ https://graphviz.org/ https://flowchart.fun/

I assume the future is an LLM where you specify everything in plain english...

yup but ... right now things are in a bit of a primitive state.

i have tried a lot of stuff with the ChatGPT Wolfram integration and it just fails all kinds of ways. its really cool when it works, but a lot of time it just gets really confused and cannot do basic things like "make that line black instead of red"

Post reply on HN