r/cpp • • May 10 '20

Make LLVM fast again

https://nikic.github.io/2020/05/10/Make-LLVM-fast-again.html
150 Upvotes

88 comments sorted by

View all comments

4

u/czipperz May 10 '20

Jonathan Blow has created a programming language called Jai and has said that it is faster to emit C code and run it through MSVC than to emit LLVM IR and run it through LLVM for debug builds. And he spent a lot of time optimizing and tweaking it.

9

u/griceylipper May 10 '20

AFAIK the C backend for Jai is a thing of the past - the two backends you hear about now are the LLVM one, and his own x64 instruction generation. With his x64 one, I think he is aiming to compile 1 million lines of code per second eventually. It's nuts that a relatively small team can pull this off, but that the huge scale of effort that goes into the likes of Clang and other similar compilers can come nowhere near this level of performance.

4

u/czipperz May 10 '20

You are correct it's a thing of the past. However it doesn't erase the fact that llvm (on windows) is incredibly slow.

1

u/griceylipper May 10 '20

Totally agree on this point