News for hackers. Stuff that matters.
Re:A Gentle Introduction to LLVM IR by tankfeeder on Wednesday August 02, 2023 @12:37AM (#36967009)
Picolisp is written on raw llvm-ir.

https://git.envs.net/mpech/pil21

Re:A Gentle Introduction to LLVM IR by hardware2win on Wednesday August 02, 2023 @02:35AM (#36967718)
Great article.

I'd like to see more of stuff like this

Re:A Gentle Introduction to LLVM IR by narrowbyte on Wednesday August 02, 2023 @06:45PM (#36978853)
what does this mean? "In LLVM IR, much like in Rust but unlike in C/C++, individual loads and stores are volatile (i.e., have compiler-invisible side-effects)."
Re:A Gentle Introduction to LLVM IR by steveklabnik on Wednesday August 02, 2023 @06:53PM (#36978962)
In C and C++, volatile is a qualifier for a type. You then use that type like any other.

In Rust, there is no volatile types. There are two functions, read_volatile and write_volatile, on pointers.

Rust’s API is basically identical to the intrinsics, whereas C and C++‘s are not. This plays out with stuff like the drama around volatile compound operators being deprecated.