Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Unlimited extent closures
I've been doing some thinking about minimal feature sets of a
programming language, and it seems to me that unlimited extent lexical
closures pretty much mandates some kind of automatic storage
management from the runtime.

Well, perhaps not if you provide a closure deletion operation. The
problem with *that*, however, is that closure deletion is not just a
simple free() of the memory; knowledge of the closed object types is
required.

Anybody have any thoughts on this?

david rush

Report this thread to moderator Post Follow-up to this message
Old Post
David Rush
10-10-04 01:56 PM


Re: Unlimited extent closures
kumoyuki@gmail.com (David Rush) writes:

> I've been doing some thinking about minimal feature sets of a
> programming language, and it seems to me that unlimited extent lexical
> closures pretty much mandates some kind of automatic storage
> management from the runtime.

You failed to describe the most important criterion: do you want
memory management to be sound (every object deleted was safe to
delete)?

Shriram

Report this thread to moderator Post Follow-up to this message
Old Post
Shriram Krishnamurthi
10-10-04 08:57 PM


Re: Unlimited extent closures
Shriram Krishnamurthi <sk@cs.brown.edu> writes:
> kumoyuki@gmail.com (David Rush) writes:
> 
>
> You failed to describe the most important criterion: do you want
> memory management to be sound (every object deleted was safe to
> delete)?

Actually, no. Heresy I know, but I'm looking at building a bastard
hybrid of Scheme and C. I'd actually like to leave automatic storage
management out - for the admittedly dodgy reason of interacting nicely
with C programmers who are used to unconstrained use of malloc().

I've been trying to decide which Scheme features I can live
without and automatic storage management is a strong candidate for
exclusion. So far this has led me to the minimal set of Schemish-ness
that I want being:

first-class anonymous closures
full TCO
s-expression syntax and macros

david rush
--
From the start...the flute has been associated with pure (some might
say impure) energy. Its sound releases something naturally untamed, as
if a squirrel were let loose in a church.       -- Seamus Heaney

Report this thread to moderator Post Follow-up to this message
Old Post
David Rush
10-11-04 01:56 PM


Re: Unlimited extent closures
In article <ckdtjo$hp2$1@pixie.nscp.aoltw.net>, David Rush wrote:
> Shriram Krishnamurthi <sk@cs.brown.edu> writes: 
>
> Actually, no. Heresy I know, but I'm looking at building a bastard
> hybrid of Scheme and C. I'd actually like to leave automatic storage
> management out - for the admittedly dodgy reason of interacting
> nicely with C programmers who are used to unconstrained use of
> malloc().

It might be worthwhile to look at using explicit regions for this.
They make it very cheap and easy to dynamically check whether a
dereference is safe, so you could retain safe, checked memory access
even though it might be unsound.

--
Neel Krishnaswami
neelk@cs.cmu.edu

Report this thread to moderator Post Follow-up to this message
Old Post
Neelakantan Krishnaswami
10-11-04 09:01 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Scheme archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:52 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.