[rust-dev] Implementation of traits in Rust: could it be dynamic?

Patrick Walton pcwalton at mozilla.com
Fri Jul 25 20:31:11 PDT 2014

On 7/25/14 8:26 PM, Patrick Walton wrote:
> Uniform value representations work well too (as
> OCaml shows), but of course you'll pay a performance cost for that.

Oh, note that Greg's notes are a little bit out of date when discussing 
the performance tradeoffs of uniform value representation. On 64 bit 
(and even on 32 bit) you can do NaN-boxed "fatvals" [1] (scroll down to 
"Mozilla's New JavaScript Value Representation") which avoid having to 
box every floating point value.


[1] http://evilpie.github.io/sayrer-fatval-backup/cache.aspx.htm

More information about the Rust-dev mailing list