Another sweet spot for a few applications is larger-than-word-sized fixed-width types, such as a 128 or 192 bit (u)int. This is useful for code that has to deal with values larger than 64 bits but within, say, 256 or 512 bits (above this, I think the costs of dynamic allocation and non-inlined numeric code become cheap-ish compared to the numeric computation and storage costs). I've done this with C++ templates; it works pretty okay; it sure makes GCC/LLVM's register allocator work hard!

-Isaac
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to