Bazebara@programming.devtoRust@programming.dev•I found a tool that allows compiling Rust to JVM bytecode (make JAR files from Rust, if you dare?)
1·
7 months agoDoes it still work?
Does it still work?
Integer sqrt can be used for integers with any length, not only for integers fit into f64
Integer sqrt is usually not a library function and it’s very easy to implement, just a few lines of code. Algorithm is well defined on Wikipedia you read a lot. And yes, it doesn’t use FPU at all and it’s quite fast even on i8086.
Algorithm is so plain and simple, it doesn’t require nightly or Rust specifically to implement.
Nice article, I enjoyed it. Why float sqrt has been used? Integer sqrt is way faster and easily supports integers of any lengths
Could you please explain why he should be embarrassed by such post? What would you improve?
It’s a good suggestion