Re: Fat references

Jon Harrop <jon@ffconsultancy.com>
Wed, 30 Dec 2009 21:05:37 +0000

          From comp.compilers

Related articles
Fat references jon@ffconsultancy.com (Jon Harrop) (2009-12-29)
Re: Fat references paul.biggar@gmail.com (Paul Biggar) (2009-12-30)
Re: Fat references bobduff@shell01.TheWorld.com (Robert A Duff) (2009-12-30)
Re: Fat references cr88192@hotmail.com (BGB / cr88192) (2009-12-30)
Re: Fat references gah@ugcs.caltech.edu (glen herrmannsfeldt) (2009-12-30)
Re: Fat references jon@ffconsultancy.com (Jon Harrop) (2009-12-30)
Re: Fat references kkylheku@gmail.com (Kaz Kylheku) (2009-12-30)
Re: Fat references jon@ffconsultancy.com (Jon Harrop) (2009-12-30)
Re: Fat references gah@ugcs.caltech.edu (glen herrmannsfeldt) (2009-12-31)
Re: Fat references jon@ffconsultancy.com (Jon Harrop) (2010-01-01)
Re: Fat references cr88192@hotmail.com (BGB / cr88192) (2010-01-01)
Re: Fat references cr88192@hotmail.com (BGB / cr88192) (2010-01-01)
[23 later articles]
| List of all articles for this month |

From: Jon Harrop <jon@ffconsultancy.com>
Newsgroups: comp.compilers
Date: Wed, 30 Dec 2009 21:05:37 +0000
Organization: Flying Frog Consultancy Ltd.
References: 09-12-045 09-12-048
Keywords: storage, GC
Posted-Date: 30 Dec 2009 23:32:04 EST

Paul Biggar wrote:
> One difference might be that in the PHP implementation, a pointer to
> the struct is passed around. I get the impression your "fat
> references" are passed by copy instead, but I'm not sure?


That is correct, yes.


> If you did, and found that was faster due to less indirection, that would
> be interesting.


From the benchmarks I have done, it seems to have had little adverse effect
on performance. The main effect has been to slow down stack operations but
that is largely because I'm using a naive shadow stack.


Memory consumption must be higher because pointers are all 4x larger. Some
operations should be faster, like computing the sum of the lengths of the
subarrays in an array of arrays because the locality of those lengths is
better.


I also have an unusual GC design that works well in concert with these fat
pointers.


--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?u



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.