Better HN
topnewbestaskshowjobs
Log inSign up

rschatz

16 karma · joined Feb 15, 2017 (9y ago) · 3 submissions

Oracle Labs, currently working on the GraalVM LLVM runtime
Submissions

comment 4y ago · link · parent

Truffle and partial evaluation also works on native-image. You could say this is a VM where there are no bytecodes anymore.

comment 4y ago · link · parent

I don't think the original TruffleC is available anymore. But TruffleC evolved into the GraalVM LLVM runtime. We're now running the C programming language on GraalVM indirectly, by compiling it to LLVM bitcode first. The core idea is still the same from back then, but it's a lot less work to implement.

The code is available at https://github.com/oracle/graal/tree/master/sulong

comment 4y ago · link · parent

You can still use pointers. It's a bit hidden, but there are things like `Unsafe.allocateMemory`, `Unsafe.getByte` and so on ;)