Home > Archive > Scheme > November 2007 > CL and Parrot (was Re: one laptop per child)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CL and Parrot (was Re: one laptop per child)
|
|
| Richard Szopa 2007-11-16, 7:16 pm |
| On Nov 16, 9:12 pm, nalle...@gmail.com wrote:
> which brings me to another question: why is there no scheme to python
> bytecode interpreter/compiler already? is there something about python
> bytecode that makes it unsuitable for this purpose?
I don't think compiling Scheme to Python would make much sense. Python
by now only an interpreter, which makes Python code run a lot slower
than any decent (by which I mean compiled) CL or Scheme. Of course,
most of Python's great standard library is written as C modules, which
gives them reasonable speed (some people think of Python as not much
more than a and easy to use glue between native code libraries).
However, there's something you may want to take a look at, nom. Parrot
[1]. Parrot is a virtual machine for dynamic languages (its name comes
from an April Fool's joke of Larry Wall and Guido van Rossum merging
Perl and Python). As I have read, there's support for some kind of
schemish language Pheme and for normal Scheme. The compiler for the
latter is written in Perl, so I have the intuition there's plenty of
room for improvement ;-)
I think it would be really if there were decent Common Lisp tools
for Parrot, written in Common Lisp, of course. One possible
application of a CL->Parrot compiler would be writing libraries you
could easily use with Python/Perl/PHP/Ruby/Your-favorite-mainstream-
dynamic-language.
If you didn't have any idea on how to spend the long, boring winter
evenings then hey, now you one: CL-PARROT :-).
Bests,
-- Richard
[1] http://www.parrotcode.org/
| |
| nallen05@gmail.com 2007-11-17, 7:13 pm |
|
> I don't think compiling Scheme to Python would make much sense. Python
> by now only an interpreter, which makes Python code run a lot slower
> than any decent (by which I mean compiled) CL or Scheme. Of course,
> most of Python's great standard library is written as C modules, which
> gives them reasonable speed (some people think of Python as not much
> more than a and easy to use glue between native code libraries).
>
the benefit of a python-interoperable Scheme, I think, would be the
ability to involve Scheme in Python environments (such as the olpc xo)
and to have access to its standard library written in c
> for Parrot, written in Common Lisp, of course. One possible
> application of a CL->Parrot compiler would be writing libraries you
> could easily use with Python/Perl/PHP/Ruby/Your-favorite-mainstream-
> dynamic-language.
however not with their main platforms
take care
Nick
| |
| Rainer Joswig 2007-11-17, 7:13 pm |
| In article
<2460cec3-a444-4640-ac76-a925926280d9@o6g2000hsd.googlegroups.com>,
Richard Szopa <ryszard.szopa@gmail.com> wrote:
> On Nov 16, 9:12 pm, nalle...@gmail.com wrote:
>
>
> I don't think compiling Scheme to Python would make much sense. Python
> by now only an interpreter, which makes Python code run a lot slower
> than any decent (by which I mean compiled) CL or Scheme. Of course,
> most of Python's great standard library is written as C modules, which
> gives them reasonable speed (some people think of Python as not much
> more than a and easy to use glue between native code libraries).
>
> However, there's something you may want to take a look at, nom. Parrot
> [1]. Parrot is a virtual machine for dynamic languages (its name comes
> from an April Fool's joke of Larry Wall and Guido van Rossum merging
> Perl and Python). As I have read, there's support for some kind of
> schemish language Pheme and for normal Scheme. The compiler for the
> latter is written in Perl, so I have the intuition there's plenty of
> room for improvement ;-)
>
> I think it would be really if there were decent Common Lisp tools
> for Parrot, written in Common Lisp, of course. One possible
> application of a CL->Parrot compiler would be writing libraries you
> could easily use with Python/Perl/PHP/Ruby/Your-favorite-mainstream-
> dynamic-language.
>
> If you didn't have any idea on how to spend the long, boring winter
> evenings then hey, now you one: CL-PARROT :-).
There is some work on a Common Lisp for Parrot: Kea Common Lisp.
http://rgrjr.dyndns.org/lisp/kea-cl/
Btw. Keas are extremely intelligent parrots.
They are the mechanics among the birds.
Also worth to mention that there is a Perl 6 compiler
written in a subset of Perl 6. The compiler can
generate Lisp code(!).
http://www.pugscode.org/kp6.html
>
> Bests,
>
> -- Richard
>
> [1] http://www.parrotcode.org/
--
http://lispm.dyndns.org/
| |
| Richard Szopa 2007-11-18, 7:16 pm |
| On Nov 17, 7:12 pm, Rainer Joswig <jos...@lisp.de> wrote:
> There is some work on a Common Lisp for Parrot: Kea Common Lisp.
>
> http://rgrjr.dyndns.org/lisp/kea-cl/
>
> Btw. Keas are extremely intelligent parrots.
> They are the mechanics among the birds.
>
> Also worth to mention that there is a Perl 6 compiler
> written in a subset of Perl 6. The compiler can
> generate Lisp code(!).
>
> http://www.pugscode.org/kp6.html
Wow, this looks interesting. I'll definitely take a look at Kea.
Thanks!
Bests,
-- Richard
|
|
|
|
|