That is how one ends up with shader minification.
And this is still quite actual as pain point, given how shaders work in 3D Web APIs.
If anyone wants to try it, I've made a web build: https://ctrl-alt-test.fr/minifier/
I might write a more general article later on writing code minifiers, e.g. how it compares to writing a code formatter, how to implement the transformations, etc.
On the tech side, the code is written in F#. The web build uses Bolero (Blazor for F#). So maybe I'll write later about my experience writing an open source project with F# and evolving it.
zombot•2h ago
pests•1h ago
keyle•24m ago