3 ms·
>> 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 compile
by moron4hire 3y ago
>> 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".
- jesse__ 3y ago> 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/672a3520d7537ef4e754e0dc2535f2df5817c99a/src/engine/editor.h#L81 https://github.com/scallyw4g/bonsai/blob/672a3520d7537ef4e75... The result: https://github.com/scallyw4g/bonsai/blob/master/generated/do_editor_ui_for_compound_type_world_chunk.h 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.