Re:Let's Write an LLVM Specializer for Python (2015)
by heinrichhartman on Wednesday October 16, 2019 @09:14AM
(#21269966)
> In this talk, I live-code a simple stack machine and turn it into an interpreter capable of running Web Assembly. I then use that to play a game written in Rust.
Wow. This is mind blowing. Thanks for the pointer.
Re:Let's Write an LLVM Specializer for Python (2015)
by weberc2 on Wednesday October 16, 2019 @12:17PM
(#21272065)
Whoa, I've had this idea kicking around in my mind for a looong time (specifically something for dynamically generating Go code). Was wondering if anyone actually built this out, but could never find anything. Thanks for sharing!
Re:Let's Write an LLVM Specializer for Python (2015)
by saagarjha on Wednesday October 16, 2019 @05:58AM
(#21268699)
Cool! Aside from the Python JIT portion, this was a pretty decent dive into LLVM. One question: was this a notebook, or it it just CSS that's making the code look like that?
Mostly live coded, it really is pretty amazing but also quite insightful.
Wow. This is mind blowing. Thanks for the pointer.
[0] https://www.youtube.com/watch?v=pkCLMl0e_0k
See also http://llvmlite.pydata.org/en/latest/user-guide/index.html and in the context of the original article, in particular these two pages:
http://llvmlite.pydata.org/en/latest/user-guide/ir/examples....
http://llvmlite.pydata.org/en/latest/user-guide/binding/exam...
Hope this helps! :-)
Discussed at the time: https://news.ycombinator.com/item?id=8929040
https://github.com/numba/llvmlite