Blue v7 Gemlog

No Ser: Build Simplifications

Over the past couple days Blue's build was greatly simplified. In short bytecode is now committed to git and no (de)serialization is needed. HTML views are also no longer generated at build time. This resulted in builds that are ~90% faster, many less files on disk and an improved dev workflow.

While awesome, the real take away from this is how individual ideas, that all seem valid and simple at the time, can compound on each other to produce complexity. The real killer is how this complexity builds over time, goes unnoticed and becomes a way of life.

When v7 first started I had this idea that I should not commit the binary bytecode files to git. Seemed reasonable, so at build time I serialized the bytecode to `xxd` files. This meant when you git pulled you had to `make de` to deserialize. Seemed ok.

Then there was this weird bootstrapping time where the interpreter may have had a bug, the editor may have had a bug, the bytecode viewer may have had a bug, etc. The `xxd` files were not human readable so I added an ascii serialization, `*.ser` that you could look at. At the time this was helpful in tracking down some bugs so it stuck. Seemed ok.

None of this was terrible at first when there were 10 bytecode files. Over time though it became a hassle. Every new bytecode file needed these (de)serialization steps added. If one was forgotten it wasn't in git and a build would break. If someone forgot to `make de` at the right time their build would break, etc. The `xxd` files were also larger than the bytecode and unreadable. To top it off it was extra work on every build.

It honestly took a while to realize that this was dead weight - complexity for no gain. Once it clicked though all this was purged. Bytecode files are now tracked in git. No `xxd` (save stage0) or `ser` files exist. On my machine a clean build takes roughly `0.03s`. The dev flow is much smoother which is probably the greatest win.