Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    107comments
  2. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    108comments
  3. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    84comments
  4. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    65comments
  5. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    435comments
  6. San Francisco Onion Futures Company(onionfutures.com ↗)
    72comments
  7. “The Secret Life of Circuits” is here(coredump.cx ↗)
    17comments
  8. Apple M6 Pro Achieves the Highest Single-Core CPU Score in Geekbench 7(geekbench.com ↗)
    50comments
  9. Cloudflare Quick Tunnels(cloudflare.com ↗)
    285comments
  10. SDCC – Small Device C Compiler(sourceforge.net ↗)
    18comments
  11. How to Write with an LLM(sockpuppet.org ↗)
    338comments
  12. Science Is Open Software(jepedersen.dk ↗)
    40comments
  13. Dear Customer, Fuck You(fuck-off.ai ↗)
    discuss
  14. Saving another 100TB of RAM(cloudflare.com ↗)
    81comments
  15. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    15comments
  16. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    32comments
  17. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    92comments
  18. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    6comments
  19. NASA-IBM Lunar Foundation open-Source Geospatial AI Model(usra.edu ↗)
    2comments
  20. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    106comments
  21. OpenJev(openjev.com ↗)
    267comments
  22. Goroutine Leak Profiles(go.dev ↗)
    4comments
  23. Communication by means of modulated Johnson noise(pnas.org ↗)
    1comments
  24. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    89comments
  25. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    73comments
  26. Typesafe-computer-use drives a Mac toward a goal for 1/50th of a cent per step(github.com/awlevin ↗)
    55comments
  27. Veronese's Dogs(publicdomainreview.org ↗)
    1comments
  28. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    13comments
  29. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    72comments
  30. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    100comments

CMU’s ‘Penrose’ Turns Complex Math Notations into Illustrative Diagrams

412 pointsby 6y agosyncedreview.com
48 comments
6y agoHN ↗

This is the video source of the gif at the top of the article [0].

I was pretty interested in Penrose when I first saw it but I still haven't seen a "cool" example of its use. Either something that's easy in Penrose but hard in every other visualization tool, or an example of a visualization in Penrose that elucidates some deeper mathematical relationship between the objects being shown.

[0] https://vimeo.com/416822487

6y agoHN ↗

Simple examples demonstrate the idea of the system, but I would be more impressed if they took some of the more complex published math papers out there and successfully rendered the notation from those with Penrose. That, to me, would better prove that it can handle the complexity that often comes with mathematical concepts.

6y agoHN ↗

All the examples are just "sets represented as circles". Quite basic.

6y agoHN ↗

Maybe the end representation is quite basic but I still think it’s a feat of programming to take a bunch of constraints and turn it into a representation that dynamically satisfies those constraints.

6y agoHN ↗

I think the criticism is more that the examples only show a very simple case. What you described is indeed very cool, if only rich examples showed it off better.

6y agoHN ↗

Figures 1, 7, 17, 18, 19, 22, 24, and 29 from the web page are not sets as circles. The paper contains additional counterexamples.

6y agoHN ↗

Already did! Those are all basic examples of those various concepts. How about something that 'mixes metaphors', so to speak? Mathematicians are a creative bunch.

E.g., fuzzy sets. [1] One of the most-cited math papers ever. How could I use Penrose to represent a continuum of grades of membership between sets?

[1] https://sci-hub.st/10.1016/S0019-9958(65)90241-X

6y agoHN ↗

I think this is a reasonable criticism, I didn't see it addressed in the paper, but one place where it complex examples wouldn't matter is when writing material for basic introductory courses. There this would be really good: it's a way of quickly and accurately producing large numbers of diagrams, automatically adjusting for changes, without drawing things by hand, and there are probably enough students that this would help if it just reduced the barrier to producing maths diagrams.

6y agoHN ↗

That is one of an amazing mobile-ready websites.

6y agoHN ↗

I assume this is a joke comment? The font is too small, huge white borders, scrolling elements with the page. I'd suggest this an average layout at best, & certainly nothing to croon over.

The content is good tho.

6y agoHN ↗

I am on iPhone 11 Max and it’s absolutely amazing. Nothing is too small or too big - just the right size.

6y agoHN ↗

I read through the Penrose presentation slides a few weeks ago and was very impressed with the perspective, idea, and implementation compared to the other dozens of tools I've looked at. I'm not particularly a math specialist, but I do think I'll use Penrose soon. However, it might not immediately fit my needs today.

The presentation made it appear that this was an initial implementation, and that more progress will be needed to fit more use-cases, which is great! Hopefully I can contribute.

6y agoHN ↗

As someone who loves math but always struggled with mathematical notation but can easily absorb code or diagrams this is intensely appealing to me.

6y agoHN ↗

I agree. I'm going to check this out.

I went back to school 10+ years ago after many years in software engineering. I naively thought it would be a good idea to keep notes in LaTeX because 1) I have a hard time reading my own handwriting. 2) Source controlled 3) Math notation!

Wow, what a special circle of Hell LateX has been.

6y agoHN ↗

Indeed, I find it more satisfying to read my own handwritten notes from years ago than a printout I spent more time typesetting than thinking about the content.

6y agoHN ↗

Highly recommend Visual Complex Analysis if you want to see the prettier side of mathematics (Notation is the easy part, your struggles makes me think you had a bad teacher or similar)

6y agoHN ↗

There could be lots of reasons. Foremost among them might be when I start looking at the mathematical notation I get turned off and go do something else.

6y agoHN ↗

You're the opposite of me then!

I glaze over within sometimes seconds of a wall of text whereas I can process a bunch of equations much faster.

I didn't use to be like that (I was in the dumb set when I was 15/16) but you need to be lucky enough to see over the hump and see the bigger picture - the higher structure is exhausting to teach so it's very difficult to learn why you're doing something in a classroom.

6y agoHN ↗

Sometimes learning happens outside a classroom.

6y agoHN ↗

Yes, I wonder if something like this could help me finally "get" maths. I've always performed poorly in most mathematics, but rapidly find myself interested in subjects that make heavy use of them.

6y agoHN ↗

I would like to see a representation of algorithms. I remember watching some videos in the late 90s by a professor who I think worked at UCLA. They involved algebra and differential equations. The terms of the equation would fly around, transform, and disappear as various operations were performed. I remember thinking that the video captured how I did algebraic manipulation, given that I am a highly spatial thinker.

6y agoHN ↗

Very cool! That is what the videos were like.

6y agoHN ↗

That's pretty neat. I'll have to try it.

The thread mentioned an alternative, https://graspablemath.com/, which looks similar (note: only judging from the video), which you can immediately try in the browser, but that felt a bit clumsy to me. YMMV.

6y agoHN ↗

I haven't tried it yet but this could be an absolute godsend for people like me - in my head I can "see" a diagram, but I can't draw anything more than a cube.

6y agoHN ↗

I'd love to use this to create some visualizations for CS Education. Data Structures and AI often uses graphs to visualize the concepts. I mostly build them using Powerpoint. Looking at the Penrose website, Fig 24 shows something I think could be tweaked to showcase a graph and something like A* search.

6y agoHN ↗

I do a lot of LaTeX. With LaTeX there is some attempt to be declarative, to separate layout from context. But I find that while 99% of the time the separation works, there just are times you need to tweak or fiddle.

I currently use a graphics-drawing system that is not very declarative at all (Asymptote). Going to more declarative approach is a very attractive idea, but I couldn't see quite how much tweakability there is in this system. I'd be surprised if you could get away with none at all.

6y agoHN ↗

Why this? How about something that turns hand drawings into properly rendered diagrams instead?

6y agoHN ↗

Seems like completely different use cases!

6y agoHN ↗

Can I use this to do some of what Graphviz does?

Because I like Graphviz but the results are never beautiful.

6y agoHN ↗

As a non mathematician, I’d like to be able to take bits of math I don’t understand and dump it into something that makes a Penrose representation, maybe helping me understand it better.

Too often even when reading relatively ‘Simple’ CS papers I hit a spot where they’re doing some math shuffling that stumps me. I can skip over and keep going but I’d prefer to know what they did.

6y agoHN ↗

There are a few things that need to come together for a complete diagram publishing system:

* Converting hand-drawn sketches to tidy diagrams [1]

* Converting tidy diagrams to look hand-drawn [2]

* A textual DSL for diagrams (e.g. Penrose)

* Support of declarative constraints for the diagram [3]

* Animation of the diagram [4][5]

[1] Paper https://www.fiftythree.com/think

[2] rough.js https://github.com/pshihn/rough

[3] Basalt https://www.anishathalye.com/2019/12/12/constraint-based-gra...

[4] Distill https://distill.pub/2017/momentum/ source https://github.com/distillpub/post--momentum

[65] g9.js https://omrelli.ug/g9/

6y agoHN ↗

I can't be the only person who thought this was about tiling!