News for hackers. Stuff that matters.
Re:No Compiler – On LLVM, and writing software without a com... by smaddox on Thursday March 03, 2016 @10:12PM (#11221837)
Interesting article. Looking at the code, it's pretty clear that this is not a particularly practical approach, but I think it points in the direction of where language design should head. Abstractions shouldn't be forced, unless absolutely necessary; forced abstractions lead to inefficiency.

I've been working on a related concept, but more along the lines of developing a low-level IR (LLIR) and corresponding syntax that allows direct coding in the LLIR. It would essentially be a portable assembly language. The LLIR could be then be compiled down to machine code for different architectures, or even run directly in a VM.

This isn't too different from the LLVM concept, except the IR would be a practical programming language, much like assembly. Furthermore, the IR would provide access control primitives (reference capabilities) that most languages do not support, but that are extremely useful for low-overhead secure computing and concurrent computing. These primitives could be especially useful in the design of exokernel OS's, and related applications.

Re:No Compiler – On LLVM, and writing software without a com... by moonchrome on Thursday March 03, 2016 @11:51PM (#11222105)
>I've been working on a related concept, but more along the lines of developing a low-level IR (LLIR) and corresponding syntax that allows direct coding in the LLIR. It would essentially be a portable assembly language. The LLIR could be then be compiled down to machine code for different architectures, or even run directly in a VM.

Isn't this WebAssembly ? Bonus points they have sexpression based format and a binary format and are working on a LLVM backend for it + a bunch of JIT integrations, making sure it's portable and have a lot of people working on it from multiple companies.

Re:No Compiler – On LLVM, and writing software without a com... by fritzo on Thursday March 03, 2016 @11:45PM (#11222083)
Gosh, I thought C was "portable assembly". How would your LLIR differ from C?
Re:No Compiler – On LLVM, and writing software without a com... by eru on Friday March 04, 2016 @12:00AM (#11222120)
C is not really portable assembly. It's full of undefined behaviour, for one.