| ▲ | jiehong 13 hours ago | ||||||||||||||||
C# is blessed on that front. Java’s SIMD state is still sad, and golang is not as great either. | |||||||||||||||||
| ▲ | ashf023 13 hours ago | parent | next [-] | ||||||||||||||||
Yeah, golang is a particular nightmare for SIMD. You have to write plan 9 assembly, look up what they renamed every instruction to, and then sometimes find that the compiler doesn't actually support that instruction, even though it's part of an ISA they broadly support. Go assembly functions are also not allowed to use the register-based calling convention, so all arguments are passed on the stack, and the compiler will never inline it. So without compiler support I don't believe there's any way to do something like intrinsics even. Fortunately compiler support for intrinsics seems to be on its way! https://github.com/golang/go/issues/73787 | |||||||||||||||||
| |||||||||||||||||
| ▲ | pjmlp 25 minutes ago | parent | prev | next [-] | ||||||||||||||||
While it is blocked on Valhala, it is quite usable, if folks use nightly all the the time with Rust, what is the problem with --preview? | |||||||||||||||||
| ▲ | soupy-soup 8 hours ago | parent | prev [-] | ||||||||||||||||
To be fair, Java's lack of support seems to have more to do with them needing to fix the whole primitive vs object mess rather than a lack of effort. It sounds like the Vector API will be stabilized shortly after they figure that out, but who knows how long it will take. | |||||||||||||||||