Re: [Vala] parrot in vala
- From: pancake <pancake youterm com>
- To: vala-list gnome org
- Subject: Re: [Vala] parrot in vala
- Date: Wed, 30 Jan 2008 13:16:02 +0100
Sorry if I sound rude in the previous mail...
My idea was to implement a parrot Vapi to allow to embed parrot programs
inside Vala ones.
Would be awesome to implement vala in parrot as a dynamic language, but
not now..it's not a stable language yet :) But maybe a two-side integration
would be nice, so being able to script vala language in dynamic vala.
I just wanted to comment the idea to discuss it and know your oppions,
I don't have much time these days, so I dont plan to work on it nowadays,
but I heard some people in irc talking about GC techniques and so.
IMHO parrot needs more work on the NCI side (native subroutine calls from
an embedded vm). And maybe 'we' can help on the NCI side by testing and
adding support for the things we need.
Its a benefit for both projects and this way we're not limited to a single
language binding.
A sample parrot embeded will be:
;--------------------------------------------------------
$ cat main.c
#include <parrot/parrot.h>
void func()
{
printf("Hello World!\n");
}
int main(int argc, char **argv)
{
PMC *method;
Parrot_Interp pvm = Parrot_new(NULL);
register_nci_method(pvm, enum_class_NCI, &func, "func", "v");
Parrot_PackFile pf = Parrot_readbc(pvm, "hello.pbc");
if (pf == NULL) {
fprintf(stderr, "Oops. Cannot open hello.pbc\n");
return 1;
}
Parrot_loadbc(pvm, pf);
Parrot_runcode(pvm, argc, argv);
Parrot_destroy(pvm);
}
;--------------------------------------------------------
--pancake
On Tue, Jan 29, 2008 at 06:34:31PM -0600, Michael Lawrence wrote:
Could you please clarify how you see Vala and Parrot being integrated? Do
you want to embed foreign high-level languages directly in Vala code? Or
just a binding from Vala to the Parrot engine?
Then there's the possibility of a Parrot implementation of Vala...
On Jan 29, 2008 6:39 PM, pancake <pancake youterm com> wrote:
What do you think about use Parrot for the scripting engine of Vala?
This way we will be able to embed _ANY_ scripting language with vala
without having to reimplement everything for each lang.
The garbage collection engine can interest you too
Currently is mostly usable and development is highly active.
--pancake
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]