Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > Re: Region-base...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 2807 of 2841
Post > Topic >>

Re: Region-based memory management

by torbenm@[EMAIL PROTECTED] (Torben =?iso-8859-1?Q?=C6gidius?= Mogense Apr 7, 2008 at 09:36 AM

Jon Harrop <jon@[EMAIL PROTECTED]
> writes:

> As I understand it, MLKit is entirely region-based memory management and
the
> Stalin Scheme compiler uses similar techniques and this is fundamentally
> different from both reference counting and mark and sweep GC.

The ML-kit later got GC added on, but you can switch this off and use
regions exclusively.

> What are the implications of this technique and how well do the
compilers
> perform in practice? Does it suffer from stalls or keeping values alive
too
> long?

There are definitely space-leak issues with pure region-based
management.  In my experience, you need to profile your code and
insert region annotations and a few explicit deep copies to get rid of
space leaks.  This isn't as difficult as it may sound, and you
typically only have to do it in a few places, but you certainly can't
expect off-the-shelf ML programs to have good memory performance with
regions.

That said, once you get the annotations in place, ML programs with
regions usually require less memory than with GC (unless you keep the
heap so small that you trash it).

The study administration system at the IT University in Copenhagen
(which has Mads Tofte as headmaster) is implemented in ML and runs on
the ML-kit.  It did that even before GC was added, so you can
certainly write significant programs that use regions exclusively.

	Torben




 6 Posts in Topic:
Region-based memory management
Jon Harrop <jon@[EMAIL  2008-04-05 07:55:14 
Re: Region-based memory management
Paul Rubin <http://phr  2008-04-05 00:54:12 
Re: Region-based memory management
George Neuner <gneuner  2008-04-06 14:56:26 
Re: Region-based memory management
torbenm@[EMAIL PROTECTED]  2008-04-07 09:36:00 
Re: Region-based memory management
Paul Rubin <http://phr  2008-04-07 00:56:16 
Re: Region-based memory management
torbenm@[EMAIL PROTECTED]  2008-04-07 14:02:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:06:39 CDT 2008.