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: MLton's GC
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 18 Topic 2756 of 2841
Post > Topic >>

Re: MLton's GC

by George Neuner <gneuner2/@[EMAIL PROTECTED] > Feb 9, 2008 at 04:13 PM

On Sat, 09 Feb 2008 04:15:51 GMT, stephen@[EMAIL PROTECTED]
 (Stephen
J. Bevan) wrote:

>George Neuner <gneuner2/@[EMAIL PROTECTED]
> writes:
>
>> However, Dylan is still a Scheme is still a Lisp.
>
>Aren't all functional languages a Lisp then?  

Not really.  Although Lisp took some ideas from lambda calculus, it
was intended from the beginning to be a practical language and being
too functional was impractical for much of Lisp's lifetime.  So Lisp
evolved as a multi-paradigm language, directly supporting both
functional and imperative programming, and supporting OO over the
functional base.  Lisp has a lot of language support for imperative
programming: mutable data, assignment, iteration, GO(to), etc.

Scheme tried much harder to go in the functional direction - it
introduced static scoping, did away with iteration in favor of
recursion and chose generalized continuations over GO(to).  It did,
however, still have mutable data and assignment.

Dylan evolved from Scheme.  Dylan made every data type a full fledged
extensible object in the OO sense and added generic functions ala
CLOS.  It also added optional static type checking and would elide
runtime type checks whenever an expression could be completely
statically typed.  Dylan started out using sexprs but later it was
changed to use a more conventional syntax.

ML started as a theorem prover and drew inspiration directly from
lambda calculus.  Although I'm sure ML designers knew about Lisp, ML
went in a different direction, eschewing imperative programming almost
completely.

I don't know the history of Haskell or Miranda or Ruby, but I doubt
Lisp had much direct influence on them.  

I would say that they are all descendants of lambda calculus, but I
would hesitate to call the functional language group descendants of
Lisp.  Maybe you could say they are descendants of McCarthy original
idea for Lisp, but not what was actually implemented.


>Or is there something
>different about some functional languages (Haskell?) which makes their
>GC requirements different?

The functional languages, as a group, average higher allocation and
infant mortality rates than is typical for Lisp - it's important to
focus effort on allocation speed and on efficiently cleaning the
nursery in an FPL (Lisp also benefits from these things, just to a
lesser degree).  

Also mutable vs immutable data makes a huge difference in the
complexity of the collector if GC is intended to be interleaved or
concurrent with the program.

I don't know specifically about Haskell, but I would imagine that it
has slightly higher rates of closure creation and disposal than the
average FPL.

George
--
for email reply remove "/" from address




 18 Posts in Topic:
MLton's GC
Jon Harrop <usenet@[EM  2008-02-04 13:36:30 
Re: MLton's GC
"David B. Benson&quo  2008-02-04 16:31:53 
Re: MLton's GC
Jon Harrop <usenet@[EM  2008-02-05 14:18:29 
Re: MLton's GC
George Neuner <gneuner  2008-02-05 14:55:11 
Re: MLton's GC
Adrian Hey <ahey@[EMAI  2008-02-06 08:05:58 
Re: MLton's GC
stephen@[EMAIL PROTECTED]  2008-02-06 03:56:19 
Re: MLton's GC
George Neuner <gneuner  2008-02-06 13:01:28 
Re: MLton's GC
stephen@[EMAIL PROTECTED]  2008-02-07 04:30:34 
Re: MLton's GC
George Neuner <gneuner  2008-02-07 16:36:01 
Re: MLton's GC
stephen@[EMAIL PROTECTED]  2008-02-08 04:42:01 
Re: MLton's GC
George Neuner <gneuner  2008-02-08 12:33:09 
Re: MLton's GC
stephen@[EMAIL PROTECTED]  2008-02-09 04:15:51 
Re: MLton's GC
George Neuner <gneuner  2008-02-09 16:13:56 
Re: MLton's GC
Jon Harrop <usenet@[EM  2008-02-10 09:59:27 
Re: MLton's GC
stephen@[EMAIL PROTECTED]  2008-02-10 00:55:54 
Re: MLton's GC
George Neuner <gneuner  2008-02-10 02:46:18 
Re: MLton's GC
stephen@[EMAIL PROTECTED]  2008-02-10 01:28:10 
Re: MLton's GC
Philippa Cowderoy <fli  2008-02-09 15:39:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri May 16 8:06:56 CDT 2008.