News for hackers. Stuff that matters.
Re:Immediate Mode GUI Programming by moron4hire on Monday January 15, 2024 @06:53PM (#39007659)
>> The editor UI is in the neighborhood of 10k lines, most of which is generated.

I mean, this sounds like you've created a retained mode DSL that gets compiled into immediate mode.

And yes, 10 KLoC is definitely a small project, especially when "most of which is generated".

Re:Immediate Mode GUI Programming by jesse__ on Monday January 15, 2024 @07:03PM (#39007732)
> this sounds like you've created a retained mode DSL that gets compiled into immediate mode

Nope, I wrote a template-metaprogramming language, which generates the UI. There's nothing retained-mode about it.

The source code:

https://github.com/scallyw4g/bonsai/blob/672a3520d7537ef4e75...

The result: https://github.com/scallyw4g/bonsai/blob/master/generated/do...

> And yes, 10 KLoC is definitely a small project

I said it cleared the bar for quick-n-dirty. I agree it's not a large amount of code.