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.
Patrick [1] http://evilpie.github.io/sayrer-fatval-backup/cache.aspx.htm _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev