mentat-collective / emmy

The Emmy Computer Algebra System.
https://emmy.mentat.org
GNU General Public License v3.0
405 stars 24 forks source link

Make sicmutils.expression.compile backend pluggable #75

Open sritchie opened 3 years ago

sritchie commented 3 years ago

Right now the compile functions use a dictionary called compiled-fn-whitelist to associate symbols with functions. After simplification and common subexpression elimination, the compiler swaps these functions back in for their associated symbols and calls eval on the result.

There are a few alternatives a user might want to the current compiled-fn-whitelist:

Geex looks like it might be the easiest to integrate.

sritchie commented 1 year ago

@littleredcomputer this is another upgrade we'll want to try eventually, I think...