You are viewing archived messages.
Go here to search the history.

Roma Komarov 2025-01-27 10:51:34

Finally, finished my most recent article (and published a package): kizu.dev/preview-mixin — a lot of overcomplicated CSS, but one that makes it much easier to debug various dynamic values. For now, it is mostly for displaying them as text when possible, but I have a few ideas about some other visualizations. I already used it for a few experiments — and seeing the values of what you're working on in real time really helps.

P1270001(1).jpg

Jarno Montonen 2025-01-31 07:49:48

My natural language programming technology, Levlo, is now a "LLM Integration Platform". Updated the site: levlo.com. The Document Agents stuff is something I have not shared here before: levlo.com/document-agents. Any feedback appreciated!

Paul Tarvydas 2025-01-31 13:58:37

FWIW: this is a reply I made elsewhere. Hoping it might be of interest here.

📝 Of Interest

2025-01-30

Kartik Agaram 2025-01-31 17:37:45
Tom Larkworthy 2025-01-31 20:10:31

Its just the path around a quadrant! I just got it.

Robin Allison 2025-02-02 07:55:05

Here is something I've been working on for a while that I've finally figured out how to do. You draw rectangles in the plane and 'transclusions' between them. Transclusions produce copies which display only in the target. Transclusions copy rectangles to produce new (cropped) rectangles. Transclusions also copy copied rectangles. Additionally, transclusions copy transclusions, which in turn copies transclusions and rectangles as well. Because rectangles can be moved around and resized every transclusion copies every rectangle and every transclusion ad infinitum at all times (though currently we stop after four steps). You can think of this structure as something like a syntax tree whose pieces can be moved in and out continuously at will, and two way transclusions as a kind of symbolic variable with the symbol missing. The math behind all this is really interesting too, but I probably don't want to go on about that here.

(cc @Elliot and Lu Wilson, thanks for inspiring me to think about rectangles and affine transformations! Also cc Jonathan Edwards since transclusions are very similar to inclusions from First Class Copy and Paste.)

youtu.be/iGHphz-NbBI

Lu Wilson 2025-02-02 09:02:36

cool!

Lu Wilson 2025-02-02 09:03:02

what did you learn while making this?

Robin Allison 2025-02-02 19:10:14

One neat thing you can do is define a group structure (multiplication, identity, inversion) on rectangles. The geometric results of these operations depend on how you set up your coordinate systems, but when you use them to describe affine transformations, e.g. the affine transform taking one rectangle to another, the coordinate system doesn't matter anymore.

We can model a rectangle as a 4-tuple (x,y,w,h) comprised by the coordinates of (the upper left) corner and a width and height. Then the identity element is (0,0,1,1), multiplication is (x1,y1,w1,h1)(x2,y2,w2,h2) = (x1+w1x2, y1+h1y2, w1w2, h1h2), and inversion is (x,y,w,h)^{-1} = (-x/w, -y/h, 1/w, 1/h). Given two rectangles a and b there is a unique affine transform of the plane taking a to b,. If we apply that affine transform takes a third rectangle c, then the result can also be given by the formula ba^{-1}c.

The other neat thing about this is we don't have to implement rectangles and affine transformations as separate entities because rectangles also act as affine transformations. I think this is reminiscent of some ideas from geometric algebra, although that wasn't intentional at all.

Elliot 2025-02-02 22:50:43

Wonderful!

Elliot 2025-02-02 22:59:42

Maybe I missed it, but I don't think you showed two-way transclusion? I.e. where putting a box inside either one of two other boxes also shows it in the other. Can you do that?

Robin Allison 2025-02-03 06:18:32

oh, my bad, here is a video showing a bidirectional transclusion. Its just a matter of "drawing" one transclusion in each direction. It is admittedly a little hard to see the process of drawing because there is no visual indication anything is happening beyond the mouse being down. It would be better if there were an arrow or some kind of highlighting the source and target of a transclusion as its being drawn, but I haven't done that yet.