Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Alternative Bytecodes for OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Alternative Bytecodes for OCaml
On Fri, Aug 27, 2004 at 12:49:45PM -0700, Blair Zajac wrote:
> I haven't looked at Parrot too closely, but where does that fit into 
> this?  Would that not be considered a VM here?  Wouldn't Parrot be 
> pretty good because it supports Python and Perl which have more 
> functional aspects in them than C, C++ and Java?

I'm rather looking forward to Perl6 and Parrot.  In fact, I'm looking
forward even more to Perl5 and Parrot (some discussion here:
http://wiki.cocan.org/ocaml_and_lamp), because Perl5 is what I know,
and Perl6 looks like a radical new language to me and isn't
necessarily a sure thing.

The reason is that interfacing to Perl5 currently is a mess of macros,
sparsely documented reference counting, "magic" references and on and
on (see the source to perl4caml for the gory details).  Being able to
invoke a Parrot interpreter instead and making controlled calls into
the Perl is a much better solution.

In answer to the OP, since Perl tends to do lots of small allocations
and is somewhat functional, it seems like Parrot may be better suited
to functional languages.  More about Parrot & garbage collection,
although I'm still not sure if Parrot will do "proper" GC, or use
reference counting:

http://www.sidhe.org/~dan/blog/archives/000200.html

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
MONOLITH is an advanced framework for writing web applications in C, easier
than using Perl & Java, much faster and smaller, reusable widget-based arch,
database-backed, discussion, chat, calendaring:
http://www.annexia.org/freeware/monolith/