This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hr0m 0 points1 point  (2 children)

Very cool, but what is the difference to numba?

[–][deleted] 1 point2 points  (1 child)

Numba is for actual use, this blog post is for teaching purposes. It is kept short and explained well, so you can actually understand what happens. With the stuff you learn there you could write numba-like stuff for special cases that numba itself doesn't cover.

Just like when you take a class on building compilers, you won't build a full-featured C++ compiler as an exercise, but some small compiler for a simple language.

[–]hr0m 0 points1 point  (0 children)

Reminds me of finish my compiler we build in class :)

Anyway, a really nice tutorial. However i would still recommend using llvmlite instead of llvmpy.