Title
#devlog-together
Kartik Agaram

Kartik Agaram

11/05/2022, 9:32 PM
I woke up this morning and started implementing Potluck for myself. I want this in my toolbox, but a browser is just not convivial enough.
9:37 PM
Stack: • Lua (12kLoC of C) • LÖVE (5MB download; depends on a minimal graphics stack) • LoveFrames (25kLoC of Lua for a GUI toolkit) • a text editor (5kLoC of Lua) • 500 LoC of live programming infrastructure Properties of this stack: • minimal dependencies • cross-platform; runs on Windows • easy for anyone to modify

live; modify without restarting

Konrad Hinsen

Konrad Hinsen

11/06/2022, 10:12 AM
I really like how you are exploring the space of minimal dependencies while remaining practically usable in today's computing environment.
Kartik Agaram

Kartik Agaram

11/19/2022, 11:59 PM
Ok, I may have under-estimated how much work Potluck will be. To build Potluck I need the ability to render tables, and to render tables that I can type into I really need a DOM. Prev-gen GUI toolkits like LoveFrames won't cut it; I need the ability to dynamically adjust dimensions as contents change. Hence this detour. The good news: I don't need much. The format is just literal Lua table syntax. Each node (div) contains either text, a row of nodes, or a column of nodes. Other supported attributes:
fg
,
bg
colors and
margin
that acts like
margin-top
or
margin-left
depending on whether the parent has rows or columns.
j

Jack Rusher

11/20/2022, 9:48 AM
One very nice trick from the scheme community is the "tag is really just the name of a function" approach taken by Scribble, Pollen, et al.