logoalt Hacker News

jeffbee • yesterday at 10:36 PM • 3 replies • view on HN

If I owned an entire language platform with a JIT, it would not contain assembly in its standard library, it would simply be improved until it generated something at least that fast from high-level source code on that target CPU.

This is something I really like about LLVM. Their libc isn't spilling over with hand-written assembly. It's written in straightforward C++ under the belief that the compiler does, or will do, a good job.


Replies

saagarjha • today at 12:13 PM

I don’t think you’ve looked at LLVM libc’s string routines if you think it’s “written in straightforward C++ under the belief that the compiler does…a good job”. It’s basically an assembly DSL

➕ show 1 reply
jamesfinlayson • today at 6:27 AM

> If I owned an entire language platform with a JIT, it would not contain assembly in its standard library, it would simply be improved until it generated something at least that fast from high-level source code on that target CPU.

Interestingly I remember a guy who worked on the JVM giving a talk and saying (back then at least) that they were working to move as much of the JVM to plain Java as they could.

nly • today at 9:35 AM

LLVM is an AOT compiler. The JVM has a runtime budget

➕ show 1 reply