Morpho-lang / morpho

The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
MIT License
30 stars 10 forks source link

Optimizing Compiler #181

Closed softmattertheory closed 1 year ago

softmattertheory commented 1 year ago

This PR lays the groundwork for an optimizing compiler, i.e. one that can improve the performance of the code generated by the compiler. The current implementation creates a control flow graph, performs type tracking and can perform a few basic optimizations. This doesn't yield much of a benefit yet, but the infrastructure is now in place for further optimizations.