Re: Calling parrot from C?

2003-09-01 Thread Luke Palmer
Leopold Toetsch writes: Luke Palmer [EMAIL PROTECTED] wrote: How does one call a parrot Sub from C and get the return value(s)? Is it even possible, given CPS, to do this generally? If not, how can I check when it is? Good question. Its very similar to classes/Eval.pmc:invoke(). You

Re: [CVS ci] exit opcode

2003-09-01 Thread Leopold Toetsch
Luke Palmer [EMAIL PROTECTED] wrote: Those things are interpreter exceptions -- the program did something the interpreter didn't expect. But I think the idea is to make Cexit a control exception, much like Perl 6's Cleave or Cnext. Yep yep. Cexit already is a (control) exception. Luke

Re: [PATCH] File Spec

2003-09-01 Thread Leopold Toetsch
Vladimir Lipskiy [EMAIL PROTECTED] wrote: [ my first answer seems to be missing ] From: Leopold Toetsch [EMAIL PROTECTED] Subject: TWEAKS: Takers Wanted - Effort And Knowledge Sought Platform code - We need some functions to deal with paths and files like File::Spec. For loading

Re: Calling parrot from C?

2003-09-01 Thread Leopold Toetsch
Luke Palmer [EMAIL PROTECTED] wrote: Also, I can't seem to figure out how to make a CSub which calls to a user-provided perl sub. Please use the NCI interface. You can call arbitrary C functions with it. S. classes/parrotio.pmc or Parrot_compreg() and the docs. Thanks again, Luke leo

Re: [PATCH] File Spec

2003-09-01 Thread Vladimir Lipskiy
Leo wrote: Albeit File::Spec is using catfile and catdir, I don't like the function names (cat file is on *nix what type file is on Win*). Maybe concat_pathname and concat_filename is better. Yes, indeed. I'm for having concat_pathname only since this patch or the File::Spec module makes no

Re: [PATCH] File Spec

2003-09-01 Thread Vladimir Lipskiy
Leo wrote: Albeit File::Spec is using catfile and catdir, I don't like the function names (cat file is on *nix what type file is on Win*). Maybe concat_pathname and concat_filename is better. Yes, indeed. I'm for having concat_pathname only since this patch or the File::Spec module makes no

RE: Notifications

2003-09-01 Thread Gordon Henriksen
Tim Bunce wrote: On Thu, Aug 28, 2003 at 07:26:25PM -0400, Dan Sugalski wrote: How does it work? Simple. When a watched resource does what we're watching for (it changes, an entry is deleted, an entry is added [...] Only after the action being watched is performed I presume. It's

Re: What the heck is active data?

2003-09-01 Thread Dan Sugalski
At 10:57 AM +0200 8/29/03, Leopold Toetsch wrote: Dan Sugalski [EMAIL PROTECTED] wrote: Most objects in Parrot will be dealt with by reference, Dou you have anything about references? I'm thinking about putting in a default CRef PMC class, which delegates almost all its methods to

[CVS ci] Ref class-1 (was: What the heck is active data?)

2003-09-01 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: At 10:57 AM +0200 8/29/03, Leopold Toetsch wrote: Dou you have anything about references? I'm thinking about putting in a default CRef PMC class, which delegates almost all its methods to CSELF-cache.pmc_val, autogenerated inside pmc2c.pl. Yeah, that was

Re: lvalue cast warnings

2003-09-01 Thread Andy Dougherty
On Fri, 29 Aug 2003, Nicholas Clark wrote: Andy Dougherty [EMAIL PROTECTED] wrote: closure.pmc, line 21: warning: a cast does not yield an lvalue I think that the appended patch will work around the problem, by doing the case on the pointer (which is an RVALUE) and then deferencing.

Re: [RfT] Request for Test: build system changes

2003-09-01 Thread Andy Dougherty
On Sat, 30 Aug 2003, Juergen Boemmels wrote: the make shipped with Borland C++ builder doesn't like the makefiles in the current way. I had to tweak the buildfiles a little in order to get it Configure and compile. (It still does not link but thats another story). I removed the appearences of

Re: [RfT] Request for Test: build system changes

2003-09-01 Thread Juergen Boemmels
Andy Dougherty [EMAIL PROTECTED] writes: On Sat, 30 Aug 2003, Juergen Boemmels wrote: the make shipped with Borland C++ builder doesn't like the makefiles in the current way. I had to tweak the buildfiles a little in order to get it Configure and compile. (It still does not link but

The reason for scads of keyed variants

2003-09-01 Thread Dan Sugalski
I should read the list and respond to the outstanding stuff, but I should also get this done, and since the former probably precludes the latter... Why, exactly, have I spec'd (nay, demanded!) that every darned operation in a PMC's vtable have a keyed variant? Simple. A combination of speed

Parrot - 100% Gnu.NET ?

2003-09-01 Thread Clemens Eisserer
Hi there! I´m a java programmer and I´m not really experienced with perl. But I´ve searched a long time for a system like .NET that can´t be controlled by Microsoft through Patents. Imagine 10.000 apps need the .NET api ruuning on mono, and microsoft permits cloning the .NET api. Maybe 5000

Re: serialisation (was Re: [RfC] vtable-dump)

2003-09-01 Thread Nicholas Clark
On Sat, Aug 30, 2003 at 10:13:02PM -0400, Benjamin Goldberg wrote: Nicholas Clark wrote: The attacker can craft a bogus CGITempFile object that refers to any file on the system, and when this object is destroyed it will attempt to delete that file at whatever privilege level the CGI runs

Re: Parrot - 100% Gnu.NET ?

2003-09-01 Thread Luke Palmer
Clemens Eisserer writes: (B Hi there! (B (B I$BB4(Bm a java programmer (B (BUh oh :-) (B (B and I$BB4(Bm not really experienced with perl. (B (B [...] (B (B I think that parrot could be the Gnu-version of .NET and could be a (B realy benefit for the whole opensource-world. No

Re: serialisation (was Re: [RfC] vtable-dump)

2003-09-01 Thread Benjamin Goldberg
Nicholas Clark wrote: On Sat, Aug 30, 2003 at 10:13:02PM -0400, Benjamin Goldberg wrote: Nicholas Clark wrote: The attacker can craft a bogus CGITempFile object that refers to any file on the system, and when this object is destroyed it will attempt to delete that file at

Re: Parrot Z-machine

2003-09-01 Thread Nicholas Clark
On Thu, Aug 28, 2003 at 06:17:07AM -0700, Amir Karger wrote: Hi. Hugely newbie at Parroting, but think it's the coolest. Good stuff. I hope it stays that with the inevitable setbacks and annoyances that will come while gaining experience. - Is it not being ported because of a lack of tuits, or

Re: [RfC] vtable-dump

2003-09-01 Thread Benjamin Goldberg
Leopold Toetsch wrote: Benjamin Goldberg [EMAIL PROTECTED] wrote: class freezer { class thawer { class cloner { [ big snip ] Do you expect that these are overridden by some languages using parrot? I.e. that ponie tries to implement a freezer that writes output for

Class libraries deployed with parrot.

2003-09-01 Thread Clemens Eisserer
Hi again! Wow, thanks for thinking about my ideas. I expected that you call me a troll, but it seems that there are cool people here ;-) O.K. lets simply call it class-library. It doesn't seem to be the Perl way to limit yourself to one option only (There's more than one way to do it). Of

Re: Parrot Z-machine

2003-09-01 Thread Leopold Toetsch
Nicholas Clark [EMAIL PROTECTED] wrote: 2: dynamic bytecode conversion (This is the point where someone tells me that dynamic opcode loading now works) No it doesn't. Albeit I have posted a proof of concept standalone program months ago. Nicholas Clark leo

Re: The reason for scads of keyed variants

2003-09-01 Thread Leopold Toetsch
Dan Sugalski [EMAIL PROTECTED] wrote: [ heavily snipped ] Now, for aggregates that hold PMCs ... ... and on JITted cores there's no win at all. For aggregates that *don't* hold PMCs, though, that's where the win is. If we don't have direct operations on aggregate elements but instead

This week's Perl 6 Summary

2003-09-01 Thread Piers Cawley
The Perl 6 Summary for the week ending 20030831 Welcome to this week's Perl 6 summary. This week, for one week only I'm going to break with a long established summary tradition. No, that doesn't mean I won't be mentioning Leon Brocard this week. Nope, this week we're going to start