Closed siddharth-krishna closed 1 year ago
I think a solution that should work for both empty and non-empty environments is being able to pass such environment to mkInferno
, instead of being generated by it. This would make the run-with-empty-environment function redundant and all evaluations will get the optimization.
@Daniel-Diaz I split out the refactor into a separate PR #82 so now this PR is just the new primitives. Let me know if it looks good and we can merge this one in too? Thanks
This PR adds some (long awaited) primitives to Inferno. :)
~While adding these, I noticed that the Eval tests were very slow because they were re-evaluating the prelude for each test. This PR also adds a new function
evalInEmptyEnv
that shares this computation and speeds up the tests by 3x.~ These changes have been split out into a separate PR #82 that has been merged already