News for hackers. Stuff that matters.
Re:Penrose: Create diagrams by typing mathematical notation ... by c1ccccc1 on Monday May 11, 2020 @12:21AM (#23138879)
When I first saw the title, I thought it had something to do with this: https://en.wikipedia.org/wiki/Penrose_graphical_notation.

Looks cool, though.

Re:Penrose: Create diagrams by typing mathematical notation ... by alanbernstein on Sunday May 10, 2020 @08:53PM (#23137807)
Penrose is a neat name for this. At first I thought it was not a great choice because of other associated concepts. Then I noticed pen=write, rose=draw. Maybe not intentional, but cute.
Re:Penrose: Create diagrams by typing mathematical notation ... by contravariant on Monday May 11, 2020 @06:12AM (#23140545)
It's going to get very confusing for people googling 'penrose diagrams' though.
Re:Penrose: Create diagrams by typing mathematical notation ... by taliesinb on Monday May 11, 2020 @09:25AM (#23141835)
Yes indeed! Does anyone know of software for creating Penrose diagrams?
Re:Penrose: Create diagrams by typing mathematical notation ... by nikofeyn on Monday May 11, 2020 @03:57AM (#23139833)
roger penrose is a famous mathematician, who did a lot of work in mathematical physics. he is also famous for a highly visual approach, such as penrose tiles.
Re:Penrose: Create diagrams by typing mathematical notation ... by toomim on Monday May 11, 2020 @04:29AM (#23140019)
Here's an example of penrose tiles:

https://dglittle.github.io/cdn/penrose002.html

It's an infinite plane of tiles, procedurally generated, that never repeats no matter how far you go.

Re:Penrose: Create diagrams by typing mathematical notation ... by iainmerrick on Monday May 11, 2020 @04:59AM (#23140165)
Just to close the loop here, Penrose is also famous (to his readers, anyway) for his beautiful hand-drawn diagrams and illustrations. So it’s a terrific name for this project.
Re:Penrose: Create diagrams by typing mathematical notation ... by jcranmer on Monday May 11, 2020 @09:43AM (#23142022)
And has five-fold symmetry, which is impossible for wallpaper groups.

The discovery of Penrose tilings is partially tangled up with the discovery of quasicrystals, where researchers found minerals with 5-fold and 10-fold symmetry that ought to have been mathematically impossible to exist. Turns out that the Crystallographic Restriction Theorem has an important caveat that people neglected up until the 1980s: it assumes that you have to have translational symmetry, which Penrose tilings do not.

Re:Penrose: Create diagrams by typing mathematical notation ... by Buge on Sunday May 10, 2020 @11:23PM (#23138625)
How are rose and draw related? Is it that people sometimes draw pictures of roses?
Re:Penrose: Create diagrams by typing mathematical notation ... by alanbernstein on Monday May 11, 2020 @12:06AM (#23138820)
In my mind, it was obvious that I was thinking of this: https://mathworld.wolfram.com/Rose.html. Clearly I should have mentioned that. It's the type of shape drawn by a spirograph, a pen-rose.
Re:Penrose: Create diagrams by typing mathematical notation ... by chii on Monday May 11, 2020 @12:17AM (#23138859)
penrose is the name of a famous mathematician/logician, so it's a double entendre on both it being for drawing (the pen and the rose), as well as it being for maths.
Re:Penrose: Create diagrams by typing mathematical notation ... by macromagnon on Sunday May 10, 2020 @10:36PM (#23138377)
I thought it was going to be tilings in the plane but the example is some set properties which produces a venn diagram.

The notation feels c like.

Maybe it could be interesting for knots and complicated algebraic geometry?

Re:Penrose: Create diagrams by typing mathematical notation ... by mkl on Sunday May 10, 2020 @09:30PM (#23138028)
Discussion from a couple of years ago: https://news.ycombinator.com/item?id=18178230

It's not based just on text code, but on interactive manipulation as well, so it's not like e.g. TikZ which can be kept in the document source and version controlled, etc.

Re:Penrose: Create diagrams by typing mathematical notation ... by maxkrieger on Sunday May 10, 2020 @10:01PM (#23138187)
This is true but only at present.

An analogy would be the weights of pretrained machine learning models. They're still serializable, though it's true they're less semantically trackable than a well-written TikZ snippet (which, by the way, I haven't seen many of in practice!)

Re:Penrose: Create diagrams by typing mathematical notation ... by tomerv on Monday May 11, 2020 @11:33AM (#23143232)
Related: Constraint-based Graphic Design [ https://www.anishathalye.com/2019/12/12/constraint-based-gra... ]

"Designers write programs that produce figures described in terms of relationships. These relationships are compiled down to constraints, which are then solved automatically."

Discussed here: https://news.ycombinator.com/item?id=21774018

Re:Penrose: Create diagrams by typing mathematical notation ... by Koshkin on Sunday May 10, 2020 @08:29PM (#23137646)
It is an interesting approach to drawing - it’s almost like what you do is, you make the tool understand the meaning of what you want to draw, and the tool is expected to do an optimal job at getting it done.
Re:Penrose: Create diagrams by typing mathematical notation ... by _ZeD_ on Monday May 11, 2020 @12:34AM (#23138943)
Look at graphviz for the best tool you can find about
Re:Penrose: Create diagrams by typing mathematical notation ... by JadeNB on Sunday May 10, 2020 @09:27PM (#23138008)
For more on declarative drawing, you might be interested in wrapping your mind around Eukleides: https://ctan.org/tex-archive/support/eukleides .
Re:Penrose: Create diagrams by typing mathematical notation ... by nurettin on Monday May 11, 2020 @01:46AM (#23139224)
What you describe sounds very similar to the definition of a "domain specific language".
Re:Penrose: Create diagrams by typing mathematical notation ... by jojohack on Sunday May 10, 2020 @11:02PM (#23138510)
Nice job, I've been looking for a tool like this for a while.
Re:Penrose: Create diagrams by typing mathematical notation ... by philipov on Sunday May 10, 2020 @09:26PM (#23138005)
oooh, it's written is Haskell.
Re:Penrose: Create diagrams by typing mathematical notation ... by otabdeveloper4 on Monday May 11, 2020 @12:05AM (#23138814)
As always, completely lacks examples.

Will we never learn??

Re:Penrose: Create diagrams by typing mathematical notation ... by tirpen on Monday May 11, 2020 @03:40AM (#23139767)
Re:Penrose: Create diagrams by typing mathematical notation ... by crispyambulance on Monday May 11, 2020 @06:33AM (#23140657)
To be fair, a project like this should be encrusted with picture examples on its "front page"-- like D3.js.

The thing makes graphs for Christ's sake.

Your github link is just a dump of source code. One would have to go through a lot of steps to actually see what they even render.

Re:Penrose: Create diagrams by typing mathematical notation ... by craftinator on Monday May 11, 2020 @10:00AM (#23142216)
Check out the wiki: https://github.com/penrose/penrose/wiki

It has rendered examples for all types of graphs.

Re:Penrose: Create diagrams by typing mathematical notation ... by crispyambulance on Monday May 11, 2020 @01:25PM (#23144600)
That's nice.

It looks like a cool project and they say it's still in early stages. It's a pity they don't put pictures on the splash page. Pictures communicate better than anything else what the capabilities of the tool are.

Re:Penrose: Create diagrams by typing mathematical notation ... by egwor on Monday May 11, 2020 @08:40AM (#23141435)
I think a README.md with the render in each directory would be useful or maybe one README.md in the examples dir that refers to each example with a bit of context of why it might be something to do/use would suffice?
Re:Penrose: Create diagrams by typing mathematical notation ... by hasa on Monday May 11, 2020 @04:05AM (#23139891)
I can't find a hello world diagram so I'm not interested.
Re:Penrose: Create diagrams by typing mathematical notation ... by FreeFull on Monday May 11, 2020 @04:47AM (#23140108)
What's wrong with the example given in the readme? Too complicated?
Re:Penrose: Create diagrams by typing mathematical notation ... by hasa on Monday May 11, 2020 @06:18AM (#23140578)
I was too lazy to scroll down to see it. Cognitive load increased to the level of buffer overflow before seeing the example :)