News for hackers. Stuff that matters.

Show HN: Geomatic – a command-driven geometry studio enabled with autodiff

https://www.tinyvolt.com/geomatic

All commands have the format `output = \func inputs` or just `\function inputs`. Points and scalars are built on the fly. Eg `\line a b` to an empty canvas creates points `a` and `b`, and joins them with a line.

One can use broadcasting semantics similar to NumPy and PyTorch in a visual setting (imagine creating a list of circles where one dim corresponds to radius and another to the center). One can also use backpropagation, run gradient descent or visualize vector fields. Almost everything is reactive so changing a variable updates all of the downstream geometry. It also allows anyone to write and load their own visualization, which can be broadcasted and differentiated through.

( 17 comments | 29 points | on HN )
Re:Show HN: Geomatic – a command-driven geometry studio enab... by sowow on Monday May 25, 2026 @05:02AM (#48264834)
I liked this one, but it took me a while to understand, I think this page is a much better intro: https://www.tinyvolt.com/geomatic/examples/getting-started
Re:Show HN: Geomatic – a command-driven geometry studio enab... by dang on Monday May 25, 2026 @05:51PM (#48272406)
We've added that link to the toptext too. Thanks!
Re:Show HN: Geomatic – a command-driven geometry studio enab... by felooboolooomba on Monday May 25, 2026 @05:37AM (#48265027)
Bug: https://www.tinyvolt.com/geomatic/examples/broadcasting-in-g... Click "Draw a single n-star" Results in a message popping up "unknown command: n-star"
Re:Show HN: Geomatic – a command-driven geometry studio enab... by galaxy_quest on Monday May 25, 2026 @08:20AM (#48265996)
You have to load the extension, the instructions are in the text above the button.
Re:Show HN: Geomatic – a command-driven geometry studio enab... by hbwang2076 on Monday May 25, 2026 @05:56AM (#48265140)
Clean implementation. One thing I always look for: how does this degrade when things go wrong? Good error handling is what separates weekend projects from tools people actually use.
Re:Show HN: Geomatic – a command-driven geometry studio enab... by james_marks on Monday May 25, 2026 @11:57AM (#48268341)
As an adult, I now write clean error handling first thing.

The person it benefits the most is the author, when they are building it and the errors-per-use are as high as they’ll (hopefully) ever be.

Re:Show HN: Geomatic – a command-driven geometry studio enab... by dmos62 on Monday May 25, 2026 @06:25AM (#48265287)
Pretty cool. Curious, why a one time payment? Why not, say, a smaller monthly payment?
Re:Show HN: Geomatic – a command-driven geometry studio enab... by sowow on Monday May 25, 2026 @08:36AM (#48266101)
Not OP, but for me personally I’m tired of subscriptions. I’m grabbing the one time payment before OP changes his mind.
Re:Show HN: Geomatic – a command-driven geometry studio enab... by nivter on Monday May 25, 2026 @11:05AM (#48267735)
Not a fan of subscription hell myself, I plan to use one-time payment for all my products. Implementation wise one time payment is much simpler than setting up smaller payments that cap at a fixed amount.
Re:Show HN: Geomatic – a command-driven geometry studio enab... by ddxv on Monday May 25, 2026 @04:25AM (#48264640)
What is autodiff?
Re:Show HN: Geomatic – a command-driven geometry studio enab... by nivter on Monday May 25, 2026 @04:29AM (#48264659)
Automatic differentiation. For any DAG with a scalar output, it allows calculating its partial derivative wrt the input parameters.
Re:Show HN: Geomatic – a command-driven geometry studio enab... by Rexxar on Monday May 25, 2026 @11:48AM (#48268222)
I don't understand what the use automatic differentiation for in this context.
Re:Show HN: Geomatic – a command-driven geometry studio enab... by nivter on Tuesday May 26, 2026 @01:39AM (#48275437)
Some use cases and examples are provided here: https://www.tinyvolt.com/blog/bringing-autodiff-to-geometry
Re:Show HN: Geomatic – a command-driven geometry studio enab... by roger_ on Monday May 25, 2026 @08:43AM (#48266154)
Cool idea but not very mobile friendly it seems.
Re:Show HN: Geomatic – a command-driven geometry studio enab... by herpdyderp on Monday May 25, 2026 @11:54AM (#48268295)
- When I have an example open, I can't type any commands.

- When I open an example, I expected to actually... see an example. I'm not gonna read the wall of text. I don't even understand what this is yet, that's why I tried to see an example.

Re:Show HN: Geomatic – a command-driven geometry studio enab... by necovek on Tuesday May 26, 2026 @03:21AM (#48276257)
The example was great for someone like me: I'd rather read through and follow excellent instructions by clicking through commands to understand the value of this command-driven tool.

If you want to look through a video or something, then this tool is likely not for you! (nothing bad with that, that's why it's great that there are so many different tools we can choose from)

Re:Show HN: Geomatic – a command-driven geometry studio enab... by permute on Wednesday May 27, 2026 @12:51PM (#48296963)
It’s fun to play around with this! It could be helpful to add support for parentheses and chaining of commands. For example: \add (\area-circle circ0) (\area-circle circ1). Intermediate nodes could be anonymous or automatically named.