4 ms·
To be honest I think even the most sophisticated use of super-compilation - the partial evaluation described above - is really just a fancy way of saying inlini
by chrisseaton 9y ago
To be honest I think even the most sophisticated use of super-compilation - the partial evaluation described above - is really just a fancy way of saying inlining, constant folding and expression simplification.
- chriswarbo 9y agoNote that "inlining, constant folding and expression simplification" covers everything in functional programming :) Erlang isn't purely functional, since it has things like message sends. This project doesn't seem to handle such things properly :( > Something will happen if the supercompiled module contains side-effects such as message passing, and it will probably not be something good.
- OoooooooO 9y agoIsn't the point of Erlang to use it's message system in most cases? If the supercompiler can't handle message passing then it can't handle ~98% of all Erlang code.
- chrisseaton 9y agoLots of optimisations don't apply in the presence of side-effects but are still useful.