Git and jujutsu: in miniature
Related
More from lottia notes
Here’s a video of the TextMode Designer in use, fixing the control order of a dialog used in the ADC.
Busy working on the ADC lately, but I just happened upon this kind-of-follow-up to the non-intrusive vtable. I have methods implemented by only some “subtypes”, and usually “do nothing” is the correct default, or perhaps “return null”. They end up looking like this: pub fn handleMouseDown( self: Control, b: SDL.MouseButton, clicks:...
This was written up while working on Ava BASIC’s IDE, the Amateur Development Client (ADC). macOS 🔗 ↩ We set .allow_high_dpi = true when creating the window with SDL, which does the right thing on macOS. We classify this situation as “native hidpi”; we recognise it by noting the created renderer has an output size 2x that of the window in both...
I finally got bothered to try jujutsu. It’s often hard to convey just how fast I’m accustomed to moving with git, and so while there are many valid complaints about its interface, object model design, etc., I’m really super fluent with it! So for a long time I was happy to let jujutsu just be a thing people were talking about; simpler or better...
const Control = union(enum) { button: *Controls.Button, menubar: *Controls.Menubar, menu: *Controls.Menu, menu_item: *Controls.MenuItem, editor: *Controls.Editor, fn generation(self: Control) usize { return switch (self) { inline else => |c| c.generation, }; } fn setGeneration(self:...