LLVM, the open source compiler framework that’s used as part of the toolchain for languages like Rust and Swift, was bumped up to version 4.0 this week.
The most eye-catching addition is support for coroutines, a construction found in many modern programming languages that can be used as a less cumbersome (albeit slightly less powerful) alternative to threading.[ Get started with functional programming, including examples in F#. | Keep up with hot topics in programming with InfoWorld’s App Dev Report newsletter. ]
Previously, a language with coroutines that compiled in LLVM would have had to implement coroutines by hand. LLVM 4.0 adds support for representing coroutines directly in the compiler via new instructions in its intermediate representation (IR).To read this article in full or to leave a comment, please click here