3 ms·
I think instead of line count, either final binary size or source code size in bytes should be more common in claims of minimalism; the demoscene, for example,
by userbinator 5y ago
I think instead of line count, either final binary size or source code size in bytes should be more common in claims of minimalism; the demoscene, for example, always uses binary size.
- Blikkentrekker 5y agosource code size can still be manipulated by using very small identifiers or reusing them. There should rather be a normalization metric where all identifiers are treated as eight characters long Resulting binary will be different depending on the compiler and type of optimization and would simply be manipulated by optimizing heavily for size.
- binji 5y agoI got kinda dragged about this on reddit/twitter. Afterwards I posted on r/tinycode with the size in bytes: https://www.reddit.com/r/tinycode/comments/nn5djb/pokegb_a_gameboy_emulator_that_only_plays_pokemon/ https://www.reddit.com/r/tinycode/comments/nn5djb/pokegb_a_g...
- kzrdude 5y agowould it be possible to push it down to IOCCC size? Would be fun to see it there, of course.
- binji 5y agoI think so, when I was doing the write-up I noticed a few things I could have improved (and a few bugs!)
- iampims 5y agoDon’t let any of these comments take away from how great this is, _especially_ with the in-depth blog post.
- IgorPartola 5y agoNumber of nodes in the AST or number of machine instructions might be more meaningful.
- deathanatos 5y agoThat metric is game-able, too: you just implement a VM, and only count the instructions to to VM. The rest is one big binary blob of "data", occupying a single node in the AST of the host language. Now, of course, that's basically cooking the books, but there's a wide gulf between a full VM & smaller, domain specific ones that might not look like VMs. (All or most of data-driven programming, really.)
- Ekaros 5y agoFinal binary size including all external dependencies is probably fairest metric. With heavy use of libraries things get messy.
- account42 5y ago> including all external dependencies The OS too?