HN Hall of Fame Weekly email

Let's Write an LLVM Specializer for Python

dev.stephendiehl.com Books & learning Tutorials & guides Computer science Candidate

Resurfaced independently across 3 calendar years, with breakout response in 3 of them.

submissions
3
submitters
3
observed span
2015–2019
peak thread · 43 comments
287 pts
latest 20+ return · 2019-10-16
271 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

Interesting. I currently use Python's AST to convert some nested logical query expression (in a syntax unique to my application) into bytecode executed by a specialized VM (I originally tried using V8 and LuaJit for this but performance wise that was unsuccessful; the project replaced some old Boost::Python C++ code). This article should make it easy to get started attempting an LLVM replacement.

Erwin·287-point thread·

I recommand David Beazley's talk from a recent PyCon India on a similar subject : https://youtu.be/r-A78RgMhZU Mostly live coded, it really is pretty amazing but also quite insightful.

If this is of interest for you, I can only recommend you to check out numba: http://numba.pydata.org/ "Numba works by generating optimized machine code using the LLVM compiler infrastructure at import time, runtime, or statically (using the included pycc tool). Numba supports compilation of Python to run on either CPU or GPU hardware, and is designed to integrate with the Python scientific software stack."

Loic·136-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
694

reference only — not used in Hall rules or ranking

Total comments
76

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2015-01-22Let's Write an LLVM Specializer for PythonFirst breakout · Best threadtenslisi28743
2016-07-09Let's Write an LLVM Specializer for Pythonadamnemecek13614
2019-10-16Let's Write an LLVM Specializer for Python (2015)Latest 20+ point returnCieplak27119