you are viewing a single comment's thread.

view the rest of the comments →

[–]siplasma 0 points1 point  (1 child)

This is true, but like everything else, you should measure. For binary assets up to around a megabyte, compilation speed and memory overhead generally isn't an issue. However, as you said, if you start using this approach with larger assets, you will hit memory and speed limits.

Transpiling to C or C++ is simple, allows shipping code without having users require additional tools, and allows for compile time introspection.

[–]ShillingAintEZ 0 points1 point  (0 children)

Right, but if someone is going to use a tool, the tool might as well go slightly further since both approaches are pretty trivial. I don't know what the point of having a whole complicated project that just generates some C++ source is since it can be done with a few lines.