Kurt StephensNerd Up! | ||
Some tradeoffs involvedSubmitted by Beoran (not verified) on Fri, 2009-11-20 08:24.
OCaml uses a similar type tagging system as Ruby, in that it also sets the lower bit to 1 on Fixnum-like values. http://rwmj.wordpress.com/2009/08/04/ocaml-internals/ Your approach does speed up integer caluclations a bit, but is also slows down pointer access, because now pointers cannot be used “as is” anymore. For an OOP language that usually uses heaps of references between objects, I think that may be a more serious problem. Also, how would you go at encoding Symbols? »
Reply |
||
Recent comments
9 weeks 6 days ago
20 weeks 10 hours ago
38 weeks 5 days ago
1 year 2 weeks ago
1 year 36 weeks ago
1 year 48 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago
1 year 51 weeks ago