Closed kousu closed 5 years ago
This is the edge of my ability here, but maybe someone with a better understanding of this stuff can take this and run with it.
FYI, I have both "add" and "dot" examples from http://dev.stephendiehl.com/numpile/ running with a version quick-patched for python3 and llvmlite ("dot" shows nice integer-overflow, yeah). It likely will take some time before I clean up those changes though. And actually extent of cleanup depends on whether it will be possible to summon @sdiehl from the depth of Haskell cabal and see if he's interested in maintaining this repo and how. (I for example completely disinterested in those "notebook" thingies.)
Close PR?
(looks like master is already using llvmlite)
Close PR?
Yes, @kousu (or @sdiehl), please do that.
Wow, I do not remember writing this code. I guess I did! Sorry I never addressed your feedback, sometimes I miss notifications from github while other threads get through fine. I don't know what's up with that, maybe my greylister? Maybe I've somehow disabled certain notifications.
Anyway, I guess my initial desire is solved so A+ to everyone.
I am trying to address #3 by rewriting autojit to work against llvmpy's successor, llvmlite.
For a first pass, I use their compat layer, but it's not enough. The
ee
module is missing, so it's impossible to actually run the code. I did get it to generate code, or at least generate an LLVM AST, which you can see (I think?) if you turn onDEBUG = True
:This is the edge of my ability here, but maybe someone with a better understanding of this stuff can take this and run with it.
Being able to JIT CPython would be very intriguing.