Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
Hello, I am writing an XSLT 2.0 processor, and I want to give users the option to write their own message and error handling routines and the like in their favourite scripting language. So I thought of using parrot. But when I look at http://www.parrotcode.org/docs/embed.html, I can see no way of

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
you'll probably want to use the Parrot_call_sub_* API to call individual subroutines and get return values. "perldoc extend.c" in the parrot source for more info. you might also have a look at the mod_parrot source (http://www.smashing.org/mod_parrot), which is one of the few apps embedding parro

Re: Parrot as an extension language

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 03:00:14PM +0100, Colin Paul Adams wrote: > But when I look at http://www.parrotcode.org/docs/embed.html, I can > see no way of getting information back from the script - not even an > exit code. Is there anyway of doing this that I have missed? You may wish to use Parrot_c

Re: [perl #35450] Null pointer dereference in classes/sub.pmc

2005-05-17 Thread Leopold Toetsch
Adrian Taylor <[EMAIL PROTECTED]> wrote: > Hi Leo, > OK, you've confused me now :-) You're getting the same results as me > (which I also get with the latest parrot, shown below). I had missed that Parrot is run anyway. Should be fixed now as of Parrot rev 8110. leo

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: Jeff> you'll probably want to use the Parrot_call_sub_* API to Jeff> call individual subroutines and get return values. "perldoc Jeff> extend.c" in the parrot source for more info. you might Thanks - I'll take a look at that.

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
On 17 May 2005, Colin Paul Adams wrote: > Jeff> also have a look at the mod_parrot source > Jeff> (http://www.smashing.org/mod_parrot), which is one of the > Jeff> few apps embedding parrot at the moment. the other is pugs > Jeff> (http://www.pugscode.org), but it's written in has

Re: Remove .cvsignore?

2005-05-17 Thread Juergen Boemmels
On Friday 13 May 2005 18:55, Bernhard Schmalhofer wrote: > Juergen Boemmels schrieb: > >Hello, > > > >In the current SVN repository are 76 .cvsignore files. In SVN they aren't > > used any more. SVN uses the property 'svn:ignore' on a directory instead. > > > >During the cvs => svn transition the s

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Autrijus" == Autrijus Tang <[EMAIL PROTECTED]> writes: Autrijus> You may wish to use Parrot_call_sub's "SS" form, where Autrijus> you pass in a string and get back a string. I take it SS stands for String-to-String? Which section within http://www.parrotcode.org/docs/ covers this

Re: Parrot as an extension language

2005-05-17 Thread Colin Paul Adams
> "Jeff" == Jeff Horwitz <[EMAIL PROTECTED]> writes: >> Why's that a but? Haskell's a good language. Jeff> no argument there -- just assumed you were looking for Jeff> examples in C! :) Actually, examples in any language are fine. I'm actually writing in Eiffel, but I shall use

Re: Parrot as an extension language

2005-05-17 Thread Jeff Horwitz
On 17 May 2005, Colin Paul Adams wrote: > Actually, examples in any language are fine. > I'm actually writing in Eiffel, but I shall use an interface generator > to automatically build low-level bridging classes from the C header > files. > I intend to make it available as a general extension mech

[perl #35824] [TODO] Remove .cvsignore files

2005-05-17 Thread Bernhard Schmalhofer via RT
> [bernhard - Mo 16. Mai. 2005, 02:42:49]: > > > i. Migrate the changes in .cvsignore file into the svn:ignore property > Done. > > ii. Tell manicheck.pl to query the SVN properties t/src/manifest.t verifies that MANIFEST.SKIP is consistent with the svn:ignore properties. This make manicheck.pl

Re: Parrot as an extension language

2005-05-17 Thread Autrijus Tang
On Tue, May 17, 2005 at 05:31:32PM +0100, Colin Paul Adams wrote: > I take it SS stands for String-to-String? Yes. "PPC" would stand for PMC -> PMC -> String, i.e. take two PMCs and returns a String. > Which section within http://www.parrotcode.org/docs/ covers this sort > of thing? `perldoc ex

Re: Parrot as an extension language

2005-05-17 Thread jerry gay
On 5/17/05, Autrijus Tang <[EMAIL PROTECTED]> wrote: > On Tue, May 17, 2005 at 05:31:32PM +0100, Colin Paul Adams wrote: > > I take it SS stands for String-to-String? > > Yes. "PPC" would stand for PMC -> PMC -> String, i.e. take two PMCs > and returns a String. > of course, you meant PPS here,

Re: [perl #35305] [PATCH] skip threads 'detatch' test on win32

2005-05-17 Thread Vladimir Lipsky
parrot (r8016): no change. hangs w/98% cpu. here's the -t output: parrot -t test_b.pasm 0 find_global P5, "_foo" - P5=SArray=PMC(0x7d5a50), 3 new P2, 18 - P2=PMCNULL, 6 find_method P0, P2, "thread3"- P0=PMCNULL, P2=ParrotThread=PMC(0x7d5a08), 10 new P6, 54 - P6=PMCN

t/src/manifest.t failed

2005-05-17 Thread Dino Morelli
I'm seeing the following test failure at r8113 t/src/manifestNOK 6# Failed test (t/src/manifest.t at line 79) # Extra files: # dynclasses/build.pl # editor/imc.vim # install_config.fpmc # t/src/.manifest.t.swp # test.imc # test.pbc # Looks like you faile

Re: t/src/manifest.t failed

2005-05-17 Thread Leopold Toetsch
Dino Morelli wrote: I'm seeing the following test failure at r8113 t/src/manifestNOK 6# Failed test (t/src/manifest.t at line 79) I'd say we just drop this test. Whenever you do reasoanble work in the working tree, you got test files, editor swap file and whatnot. leo

Re: [perl #35305] [PATCH] skip threads 'detatch' test on win32

2005-05-17 Thread Leopold Toetsch
Vladimir Lipsky wrote: parrot (r8016): no change. hangs w/98% cpu. here's the -t output: As stated already, this (and possibly other thread) test(s) can't succeed as long as Win32 has no event loop that passes the terminate event on to the running interpreter. The last two pmc's are allocated fr