naruto canada schrieb:
hi

How exactly does all the other languages works in parrot?
Can I "test drive" the scheme language?
I've already compiled parrot, but clueless on how to try out the other
languages, specifically, scheme.
Almost all languages support the standard 'test drive', as shown for 'scheme':

[EMAIL PROTECTED]:~$ cd devel/Parrot/parrot/trunk/languages/scheme/
[EMAIL PROTECTED]:~/devel/Parrot/parrot/trunk/languages/scheme$ make
/usr/bin/perl -c schemec
schemec syntax OK
[EMAIL PROTECTED]:~/devel/Parrot/parrot/trunk/languages/scheme$ make test
cd .. && /usr/bin/perl scheme/t/harness
scheme/t/arith/basic......ok
scheme/t/arith/logic......ok
scheme/t/arith/nested.....ok
scheme/t/io/basic.........ok
scheme/t/logic/basic......ok
scheme/t/logic/defines....ok
scheme/t/logic/lists......ok
scheme/t/syn/begin........ok
All tests successful.
Files=8, Tests=154, 15 wallclock secs (10.20 cusr +  1.77 csys = 11.97 CPU)
[EMAIL PROTECTED]:~/devel/Parrot/parrot/trunk/languages/scheme$

'languages/scheme' is implemented in Perl5 and the compiler produces PIR, so it
should be  fairly platform independent.

Of course languages implementations might have requirements and platform dependencies that breaks them on your machine. In order to get an idea you can look for 'languages' on http://smoke.parrotcode.org/smoke/.

I have some codes that I like to try it on parrot.
How exactly does parrot bridge all differences between languages, and
on what level of abstraction are they unified?
The general approach is that Parrot the virtual machine has everything that a not too
unusal language needs. The recommended compilation target for compilers is,
or will be, PAST,which is described in 'docs/pdds/draft/pdd26_ast.pod.

AFAIK the way languages can use modules written in other languages is not specied yet.

Questions can also be asked in #parrot on MagNet.

Regards,
 Bernhard
Thanks.


Reply via email to