jleben / arrp

Programming language for stream processing.
https://arrp-lang.org
GNU General Public License v2.0
31 stars 3 forks source link

Fold simple named arrays #5

Open jleben opened 8 years ago

jleben commented 8 years ago

If a name refers to a simple array (e.g. one that only copies values from other arrays), replace its references with the array.

This would simplify array reduction as we wouldn't need to be careful with lamda lifting arrays - we could always lift them and this optimization would fold them back if possible.

jleben commented 5 years ago

This is now more critical: recent changes result in more arrays lambda lifted, harming the output code.