News for hackers. Stuff that matters.
Re:RLSL: a Rust to SPIR-V Compiler by kvark on Monday October 21, 2019 @02:19PM (#21315465)
Exciting talk! And I'm happy to know that one of the leading shader devs from Rust community has successfully "embarked" :)

Technology-wise, the compiler goes from MIR to SPIR-V. This is specific to Rust and different from the other direction Khronos has been exploring: https://github.com/KhronosGroup/LLVM-SPIRV-Backend . It's a bit sad that we can't all have nice things.

Re:RLSL: a Rust to SPIR-V Compiler by the_mitsuhiko on Monday October 21, 2019 @02:27PM (#21315543)
MIR seems the better choice in rust land in general. I wonder if cranelift could be an alternative approach here in the future.
Re:RLSL: a Rust to SPIR-V Compiler by maikklein_dev on Monday October 21, 2019 @05:14PM (#21317449)
I didn't choose cranelift because there was no real benefit for it. If the focus would have been on optimizations, I might have used it. The IR seems more friendly compared MIR, although I think there is a rewrite coming to make MIR more suitable for optimizations as well :).

And I do quite a lot of transformations at the MIR level, so I am looking forward to a more optimization friendly IR.