Integer sqrt can be used for integers with any length, not only for integers fit into f64
blazebra
joined 1 year ago
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?
Thank you for sharing the source in the first place.
I personally prefer projects/libraries with more permissive licenses than AGPL.
In terms of reinventing wheels… you precisely told why people do that: learning an engine. I’d use it to create an offline version of my favourite card games, but also, how to discover others think during game development. Latter for me is also important if I’d like to understand mindset how to create things more effectively.
About support… it’s actually hard to say what do you want to achieve. Making an app, library, a game by yourself? Sharing achieved results with community? Find others who can enjoy to create a game in a team with less requirements as there’s in companies?