←back to thread

305 points todsacerdoti | 2 comments | | HN request time: 0.408s | source
1. adgjlsfhk1 ◴[] No.44063759[source]
transpiled code is rarely good. Rust is often better than C for SIMD code (it actually has useful SIMD instructions exposed, and aliasing guarantees make it a lot easier for the compiler to figure out obvious optimization. By transpiling, however you loose most of the structure of an idiomatic project and generally make a bit of a mess of things.
2. khuey ◴[] No.44064592[source]
The "comparing a pair of i16s" thing is clearly not just a Rust issue since the C version had the same hack.