blazebra

joined 2 years ago
 

I just released helper library for deku to decode and encode strings in popular binary layouts (fixed length, pascal-like and c-like)

https://crates.io/crates/deku_string

[–] blazebra@programming.dev 3 points 2 weeks ago

It makes sense if they hire middles, not seniors

[–] blazebra@programming.dev 12 points 10 months ago

It’s a good suggestion

[–] blazebra@programming.dev 1 points 11 months ago (1 children)

Does it still work?

[–] blazebra@programming.dev 2 points 11 months ago

Integer sqrt can be used for integers with any length, not only for integers fit into f64

[–] blazebra@programming.dev 1 points 11 months ago (2 children)

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.

[–] blazebra@programming.dev 1 points 11 months ago (4 children)

Algorithm is so plain and simple, it doesn’t require nightly or Rust specifically to implement.

[–] blazebra@programming.dev 2 points 11 months ago (6 children)

Nice article, I enjoyed it. Why float sqrt has been used? Integer sqrt is way faster and easily supports integers of any lengths

[–] blazebra@programming.dev 5 points 11 months ago

Could you please explain why he should be embarrassed by such post? What would you improve?