agraef / pure-lang

Pure programming language
https://agraef.github.io/pure-lang/
315 stars 20 forks source link

Can turn off JIT? #33

Closed uncttao closed 2 years ago

uncttao commented 3 years ago

Is there any way to completely prevent JIT compilation and only run Pure programs in interpreter/virtual machine mode?

agraef commented 2 years ago

There's no interpreter in Pure, so it's not possible. One might write one, but that won't be easy. I actually did that, a long while ago. But interpreted term rewriting is rather slow, compared to JIT-compiled code. Which is the reason why I used a JIT backend for Pure in the first place.