A possible new back end for Rust
jason-williams.co.uk
A possible new back end for Rust
1–10 of 224 posts
Re: A possible new back end for Rust
#2I particularly suspect that if something like Cranelift gets evolved more then it will eventually reach throughput parity with llvm, likely without actually implementing all of the optimizations that llvm has. It shouldn’t be assumed that just because llvm has an optimization that this optimization is profitable anywhere but llvm or at all.
Final thought, someone should try this with B3. https://webkit.org/docs/b3/
Re: A possible new back end for Rust
#3Re: A possible new back end for Rust
#4Does it support JIT compilation, i.e. specialization at runtime?
Re: A possible new back end for Rust
#5Re: A possible new back end for Rust
#6This is really great. The world needs more diverse compiler tech. The llvm monoculture is constraining what kind of compiler research folks do to just the things that are practical to do in llvm. I particularly suspect that if something like Cranelift gets evolved more then it will eventually reach throughput parity with llvm, likely without actually implementing all of the optimizations that llvm has. It shouldn’t b…
Another tool for compiler research using modern approaches with type safe languages.
Re: A possible new back end for Rust
#7Re: A possible new back end for Rust
#8I've been wondering lately if the modern compilers should all be using C as the intermediate language (or some language-specific code optimization opportunities could be lost if they do that).
When you have a higher level language with more accurately defined semantics, running it all through C would risk introducing undefined behaviour.
With an IR you can control and define the semantics more closely to what your language needs.
Re: A possible new back end for Rust
#9Is this guy human? This is amazing, and this guy should be given an award.
Re: A possible new back end for Rust
#10While it appears that cg_clif is faster to compile, does it provide any performance benefit compared to cg_llvm? Are the compiled binaries as fast as llvm compiled binaries? If not is the use-case for development purposes only?
https://github.com/bytecodealliance/wasmtime/blob/da02c913cc...