News for hackers. Stuff that matters.
Re:Rewrite Linux Kernel in Rust? by Koshkin on Sunday June 04, 2017 @11:04AM (#14481913)
> nice and clear

Looks absolutely horrible to me, why not simply

    eax = ebx + ecx

?
Re:Rewrite Linux Kernel in Rust? by tom_mellior on Sunday June 04, 2017 @05:21PM (#14483577)
I guess because there's no simple infix operator for every operation implemented by the machine. Also, the addition may be floating-point or 32, 16, or 8 bit, signed or unsigned, possibly vectorized. An opcode is a good place to express these things.
Re:Rewrite Linux Kernel in Rust? by throwaway-1209 on Sunday June 04, 2017 @06:46PM (#14484090)
Opcodes are fine, no one is saying everything has to be expressed as an operator. I'd like to see more of a C/C++ intrinsics syntax, but with total control over the order of instructions and register allocation. Basically same power as assembly, syntax close to intrinsics, but you tell it which registers to use, and there's one instruction per line, and they're executed exactly as you write them, with no creativity on the part of the compiler.
Re:Rewrite Linux Kernel in Rust? by throwaway-1209 on Sunday June 04, 2017 @02:42PM (#14482833)
+1. Make it look more like a severely restricted version of C.