DominikPeters

Joined 12 years ago

Karma
2,178
Submissions
266
Member since
Jul 18
CS researcher in Paris (CNRS / Paris-Dauphine)

https://dominik-peters.de/

View on Hacker News

Recent submissions

Comment · 1 month ago
Maybe you don't interact enough with Claude? "Underneath it, three slower clocks are running, and they set the terms on which we meet the next shock.", "A gauge reading is a level against a reference mark, not the depth of the river.", "Two official statements frame everything below.", "where a number rests on a vendor, an advocacy group or an industry estimate, the text says so" were not written by a human.
Comment · 1 month ago
Comment · 1 month ago
You can't, Pro is only available with monthly payment.
Comment · 1 month ago
To me it feels like an LLM would have suggested this as a safety measure. LLMs always follow official best practices, they might mistakenly believe that this is true for the wider internet as well.
Comment · 2 months ago
Comment · 3 months ago
The CLI is open but the GUI is proprietary.
Comment · 4 months ago
Hi Henri, thanks for all your work on pgf, and congrats on the recent push on CI etc. The reason I think that GPL-3 would bite is that adding support would require more or less translating the pgfplots source to javascript, so that the app can parse and then correctly render the code, and that would definitely be a derived work. But I think the add-on route should be okay.
Comment · 4 months ago
If people are curious, I've worked on this project since February 2026, relatively consistently. In that time, through Codex, I've used around 700M tokens for this project (not counting cache reads), which at API rates would have cost $15k (but I actually paid only around $500 in ChatGPT subscription fees).
Comment · 4 months ago
The first part I implemented was the basic parser -> SVG renderer (restricted to the simplest TikZ constructs) and then put in a basic drag-and-drop interface to validate whether the architecture was promising. Code structure was decided pretty much entirely by Codex -- it asks my opinion with multiple choice questions during plan mode, which I like. I tend to alternate between feature expansion and code quality passes (e.g. making sure no files are too big, folder structure makes sense, test coverage is good, etc).

Indeed I have scripts for compiling a given tikz figure using latex (in particular dvisvgm so I get an SVG instead of a PDF) as well as my js-based renderer. I apply that script to various corpuses, mostly particular pages from the tikz manual (see https://tikz.dev), but there are also a few books about TikZ that have downloadable zips of all the examples they use. I then inspect the correspondence between the two renderers by eye and give Codex a list of which figures are wrong and why, and it then goes and fixes the underlying issues.

You'd think that finding discrepancies between the renderers could be done automatically, but it hasn't worked well in my experience. The models are multimodal but still kinda blind; they think two pictures are the same even if they are very much not the same. But once you tell them whats wrong, they're then pretty good at iterating until it is fixed. (One could also try to do a pixel diff of rasterized images, but that's super noisy, and text rendering isn't going to be pixel perfect anyway.)

Comment · 4 months ago
Attachment works for (text) nodes because they have anchors - you should see green attachment dots when drawing new lines or moving existing lines.

When using draw.io I’d suggest exporting to PDF instead of PNG so you keep it as vector graphics.

Comment · 4 months ago
Comment · 4 months ago
I don't use Typst myself and am not familiar with Cetz. From the docs it looks like it's in early stages of development, so it doesn't feel like the right time to do this to me (or at least should be a separate, perhaps forked, app). But certainly it would make sense to develop bidirectional converters that could in particular be used at file open and file save in this app.
Comment · 4 months ago
Generally yes! It is permissively licensed. I originally considered writing this app as a VS Code extension (because most app ideas that include a source editor are more simply done as an extension) but then decided that I wanted to have more control over the source view.
Comment · 4 months ago
Comment · 4 months ago
An explanation for the name from the TikZ docs:

> TikZ’s name is intended to warn people that TikZ is not a program that you can use to draw graphics with your mouse or tablet. Rather, it is more like a “graphics language”.

While making the app I was worried that I was going against the TikZ philosophy. Maybe I should have named it "TikZ ist doch ein Zeichenprogramm" (TideZ)..

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton