3 ms·
Obviously there are all kind of cute games that can be played with pointers if you know arch-specific details (IIRC v8 was using alignment guarantees to steal l
by benreesman 7y ago
Obviously there are all kind of cute games that can be played with pointers if you know arch-specific details (IIRC v8 was using alignment guarantees to steal low bits at one point, might still be). And tagged pointers of various kinds go at least back to Symbolics if not further.
One that I thought was especially nifty was [0].
[0] https://github.com/facebook/folly/blob/master/folly/PackedSyncPtr.h https://github.com/facebook/folly/blob/master/folly/PackedSy...
- drfuchs 7y agoLisp 1.5 was using tagged pointers by 1962, and I don’t think it was innovative in this regard at the time.
- db48x 7y agoOnly because the computer it was on already had a tag field in every word. Other implementations of Lisp did similar things though: https://www.snellman.net/blog/archive/2017-09-04-lisp-numbers/ https://www.snellman.net/blog/archive/2017-09-04-lisp-number...
- deleted 7y ago[deleted]