4 ms·
There are plenty of situations where the scenario goes like this: you first do symbolical calculations. then fill in some of the free variables, your resulting
by toolslive 3y ago
There are plenty of situations where the scenario goes like this: you first do symbolical calculations. then fill in some of the free variables, your resulting expression will simplify a lot. Then you compile that resulting expression to native code and evaluate the simplified specialized code for a zillion parameter vectors.
Anyway,if your day job needs something like this you're better off using a lisp than python.
- thebiss 3y agoFor those of us that have never touched lisp - can you explain why?
- toolslive 3y agoLisp has quote, unquote, and friends allowing you to turn code into data, then manipulate it and then turn it back into code. These are all the tools you need to create on-the-fly compilers. Here's an article explaining the lost art: http://gms.freeshell.org/peval.html http://gms.freeshell.org/peval.html