8

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 3 months ago

It makes sense if they hire middles, not seniors

[-] blazebra@programming.dev 24 points 1 year ago

Following this logic whole human life is a puzzle game.

[-] blazebra@programming.dev 12 points 1 year ago

It’s a good suggestion

[-] blazebra@programming.dev 2 points 1 year ago

I still prefer 7z for compression

[-] blazebra@programming.dev 1 points 1 year ago

7z can be at least decompressed in macOS & FreeBSD out of the box.

On windows tar.bz/gz/xz unpacks to tar and then to actual files. As tar is a separate archive format

[-] blazebra@programming.dev 3 points 1 year ago

7z has way better (ultra) compression

[-] blazebra@programming.dev 1 points 1 year ago

7z uses proprietary rar library to unpack

[-] blazebra@programming.dev 2 points 1 year ago

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

[-] blazebra@programming.dev 1 points 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.

[-] blazebra@programming.dev 1 points 1 year ago

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

[-] blazebra@programming.dev 2 points 1 year ago

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 1 year ago

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

view more: next ›

blazebra

joined 2 years ago