2 ms·
A Baseline Scrapscript Compiler
- tekknolagi 2y agoIf you have suggestions for compiler optimizations, I'm all ears! Currently thinking SSA but I maybe could be convinced to try CPS. Wondering if either inherently limits different classes of optimizations
- JonChesterfield 2y agoThey're pretty close to the same thing. A good read on this is https://wingolog.org/archives/2015/07/27/cps-soup https://wingolog.org/archives/2015/07/27/cps-soup. Consider block arguments instead of phi nodes. That makes the correspondence between a function and a basic block especially clear.
- mncharity 2y agoPerhaps also last week's https://wingolog.org/archives/2024/05/27/cps-in-hoot https://wingolog.org/archives/2024/05/27/cps-in-hoot .
- TOGoS 2y agoAh, yet another competitor to the idea[1] I've had in my head for 15 years but never getting around to build into a general-purpose language worthy of showing off to HN (mine is "every expression is described in RDF, just like everything else". It's been used for some 'rule engine' stuff and compiled to SQL for some work projects, and a relative[3] was put to use for terrain-generation purposes in Factorio, but that's as far as it's gotten). Any thoughts on how this compares to Unison?[2] [1] https://github.com/TOGoS/TOGVM-Spec https://github.com/TOGoS/TOGVM-Spec [2] https://unison-lang.org https://unison-lang.org [3] https://lua-api.factorio.com/latest/types/NoiseExpression.html https://lua-api.factorio.com/latest/types/NoiseExpression.ht...