[perl #127813] [BUG] "Bytecode validation error at offset ..., instrucction ..., operand type 160 does not match register type 152"

2017-12-16 Thread Christian Bartolomaeus via RT
This works now as expected: m: sub Foo(uint32 :$bar) { say $bar }; Foo(:bar(4)) rakudo-moar ae6177ca2: OUTPUT: «4␤» I think, it was fixed with https://github.com/perl6/nqp/commit/fc727ea911 (bisectable pointed to the corresponding NQP bump). Since the tests in S02-types/native.t are pass

[perl #127845] [BUG] Making a parameter of a BUILD submethod a uint8 triggers a bytecode validation error in Rakudo

2017-07-21 Thread Jan-Olof Hendig via RT
UILD(uint8 :$!x) { } > }; A.new(:x(5)).perl.say > rakudo-moar c8ec5a: OUTPUT«Bytecode validation error at > offset 102 [...]» > psch: I think the problem is that argument binding is > *binding*, and you cannot bind to natively typed containers > or something along those lines > of

[perl #127845] [BUG] Making a parameter of a BULID submethod a uint8 triggers a bytecode validation error in Rakudo

2016-04-06 Thread Carl Mäsak
erl.say # but..? rakudo-moar c8ec5a: OUTPUT«Cannot modify an immutable uint8␤ in submethod BUILD [...]» m: class A { has uint8 $.x; submethod BUILD(uint8 :$!x) { } }; A.new(:x(5)).perl.say rakudo-moar c8ec5a: OUTPUT«Bytecode validation error at offset 102 [...]» psch: I think the problem is

[perl #127813] "Bytecode validation error at offset ..., instrucction ..., operand type 160 does not match register type 152"

2016-04-01 Thread via RT
# New Ticket Created by Salvador Ortiz # Please include the string: [perl #127813] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127813 > In code like: class Foo is repr('CPointer') { ... method Bar(:named, :named2, ui

[perl #75650] [PATCH] Add test for loading perl6.pbc as bytecode

2010-06-12 Thread Jonathan "Duke" Leto via RT
I've made a new patch that does not require TAP::Harness 3.x, and uses a Rakudo test with a call to run() to run the Parrot test which loads the bytecode. >From 039c18b01b2c12b95de560c5a26bdc7ac9dd7a32 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Wed, 9 Jun 2010 13:44:41 -0700 Subject

[perl #75650] [PATCH] Add test for loading perl6.pbc as bytecode

2010-06-10 Thread Jonathan Leto
2010 13:44:41 -0700 Subject: [PATCH] Add test for loading perl6.pbc bytecode --- build/Makefile.in |2 +- t/02-embed/01-load.pir | 29 + t/harness | 14 +- 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 t/02-e

Re: Compiling Perl6 code to bytecode

2010-01-30 Thread Moritz Lenz
Tadeusz Sośnierz wrote: > On 29-01-2010 14:46:40, Moritz Lenz wrote: >> Hi, > Hi, thanks for your response. > >> Tadeusz Sośnierz wrote: >> > However, compiling the code for later use makes problems: >> > >> > $ perl6 --target=pir hello.pl > hello.pir >> > $ parrot /usr/lib/parrot/2.0.0/language

Re: Compiling Perl6 code to bytecode

2010-01-29 Thread Richard Hainsworth
At present. But the development process has not reached a stage where compiling the main program produces any real benefit. By the way, if you have used 'make install', then all you need is /full/path/to/binary/perl6 scriptfile.p6 [args args args ...] rather than parrot /full/path/to/binary/pe

Re: Compiling Perl6 code to bytecode

2010-01-29 Thread Moritz Lenz
Hi, Tadeusz Sośnierz wrote: > However, compiling the code for later use makes problems: > > $ perl6 --target=pir hello.pl > hello.pir > $ parrot /usr/lib/parrot/2.0.0/languages/perl6/perl6.pbc hello.pir You should use parrot to turn the .pir file, not the Perl 6 compiler. So try parrot hello.pi

Re: Compiling Perl6 code to bytecode

2010-01-29 Thread Will Coleda
2010/1/29 Tadeusz Sośnierz : > Hello, > I recently got interested in Perl 6, installed Parrot 2.0.0 and Rakudo > 2010-01. Running the code works fine: > > $ cat hello.pl > say "Hello, world!" > $ parrot /usr/lib/parrot/2.0.0/languages/perl6/perl6.pbc hello.pl > Hello, world! > > However, compiling

Compiling Perl6 code to bytecode

2010-01-29 Thread Tadeusz Sośnierz
Hello, I recently got interested in Perl 6, installed Parrot 2.0.0 and Rakudo 2010-01. Running the code works fine: $ cat hello.pl say "Hello, world!" $ parrot /usr/lib/parrot/2.0.0/languages/perl6/perl6.pbc hello.pl Hello, world! However, compiling the code for later use makes problems: $ perl

Re: [perl #56186] [TODO] Add --target=bytecode to HLLCompiler

2009-02-05 Thread Patrick R. Michaud
On Thu, Feb 05, 2009 at 04:45:50PM -0800, James Keenan via RT wrote: > On Sat Jun 21 07:39:32 2008, pmichaud wrote: > > Jonathan says that it's possible to generate and save > > bytecode within PIR -- see languages/dotnet/src/net2pbc.pir > > as an example. > > >

[perl #60590] Bytecode packfile segment will use subit not sub name

2008-11-16 Thread via RT
# New Ticket Created by Kevin Tew # Please include the string: [perl #60590] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60590 >

[perl #53128] PDD13PBC branch work: "M2 Bytecode format" milestone

2008-09-10 Thread James Keenan via RT
On Sun Apr 20 18:38:22 2008, [EMAIL PROTECTED] wrote: > This ticket exists to track progress on the "M2 Bytecode format" > milestone. Work on this milestone is occurring in the "pdd13pmc" > branch. > > I am using RT to track progress on this milestone. I will

Re: [perl #57504] [PATCH][Lua] Fixed 64bit bug in Lua bytecode decoder/translator.

2008-08-03 Thread François Perrad
Thanks. Applied in r29937. Francois. 2008/8/1 Robert G. Jakabosky (via RT) <[EMAIL PROTECTED]>: > # New Ticket Created by Robert G. Jakabosky > # Please include the string: [perl #57504] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Disp

Re: [perl #57504] [PATCH][Lua] Fixed 64bit bug in Lua bytecode decoder/translator.

2008-08-02 Thread Peter Gibbs
- Original Message - From: "Robert G. Jakabosky (via RT)" <[EMAIL PROTECTED]> Subject: [perl #57504] [PATCH][Lua] Fixed 64bit bug in Lua bytecode decoder/translator. Changes to 'languages/lua/t/os.t': 1 test from 'os.t' fails on 64bit systems be

[perl #57504] [PATCH][Lua] Fixed 64bit bug in Lua bytecode decoder/translator.

2008-08-02 Thread Robert G. Jakabosky (via RT)
# New Ticket Created by Robert G. Jakabosky # Please include the string: [perl #57504] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57504 > Hello everyone, This is my first patch to the parrot project. This patch

[perl #56186] [TODO] Add --target=bytecode to HLLCompiler

2008-06-21 Thread Patrick R. Michaud (via RT)
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #56186] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=56186 > Jonathan says that it's possible to generate and save bytecode within PI

Re: [perl #51122] GC bug in bytecode loading (again)

2008-05-06 Thread Bob Rogers
From: "chromatic via RT" <[EMAIL PROTECTED]> Date: Tue, 06 May 2008 12:18:19 -0700 On Saturday 23 February 2008 15:48:23 Bob Rogers wrote: > Oops; I spoke too soon. It turns out that r26025 causes the #50040 test > case to break again (I checked that it still worked in r26024). S

Re: [perl #51122] GC bug in bytecode loading (again)

2008-05-06 Thread chromatic
On Saturday 23 February 2008 15:48:23 Bob Rogers wrote: > Oops; I spoke too soon. It turns out that r26025 causes the #50040 test > case to break again (I checked that it still worked in r26024). So > perhaps the change chromatic made didn't actually fix it . . . Are you still seeing breakage?

Re: M2 Bytecode format

2008-04-27 Thread Bob Rogers
From: Mark Glines <[EMAIL PROTECTED]> Date: Sun, 27 Apr 2008 09:51:43 -0700 On Thu, 17 Apr 2008 21:33:50 -0400 Bob Rogers <[EMAIL PROTECTED]> wrote: > I find pdump somewhat useful. Ok. How do you actually *build* that? There doesn't seem to be a Makefile rule for it, or ma

Re: M2 Bytecode format

2008-04-27 Thread Mark Glines
On Sun, 27 Apr 2008 09:51:43 -0700 Mark Glines <[EMAIL PROTECTED]> wrote: > > I find pdump somewhat useful. > > Ok. How do you actually *build* that? There doesn't seem to be a > Makefile rule for it, or maybe I just haven't found it yet. Oh, nevermind. It's there, I'm just braindead. Thanks!

Re: M2 Bytecode format

2008-04-27 Thread Mark Glines
On Thu, 17 Apr 2008 21:33:50 -0400 Bob Rogers <[EMAIL PROTECTED]> wrote: >From: Mark Glines <[EMAIL PROTECTED]> >Date: Thu, 17 Apr 2008 07:59:03 -0700 > >. . . > >Should this PMC implement the "pdump" functionality > (src/packdump.c) as well as packfile.c/packout.c? > > I find p

[perl #53128] PDD13PBC branch work: "M2 Bytecode format" milestone

2008-04-20 Thread Mark Glines via RT
On Sun Apr 20 18:38:22 2008, [EMAIL PROTECTED] wrote: > This ticket exists to track progress on the "M2 Bytecode format" > milestone. Work on this milestone is occurring in the "pdd13pmc" > branch. That should, of course, read "pdd13pbc". Mark

[perl #53128] PDD13PMC branch work: "M2 Bytecode format" milestone

2008-04-20 Thread via RT
# New Ticket Created by Mark Glines # Please include the string: [perl #53128] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=53128 > This ticket exists to track progress on the "M2 Bytecode format" milest

M2 Bytecode format

2008-04-17 Thread Bob Rogers
From: Mark Glines <[EMAIL PROTECTED]> Date: Thu, 17 Apr 2008 07:59:03 -0700 . . . Should this PMC implement the "pdump" functionality (src/packdump.c) as well as packfile.c/packout.c? I find pdump somewhat useful. Speaking of "pdump", it seems to be mentioned in various places

Re: M2 Bytecode format

2008-04-17 Thread Will Coleda
On Thu, Apr 17, 2008 at 10:59 AM, Mark Glines <[EMAIL PROTECTED]> wrote: > : > Mime-Version: 1.0 > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: 7bit > > Hi, Jonathan (and everyone else)! > > Wednesday on IRC, we discussed the "M

M2 Bytecode format

2008-04-17 Thread Mark Glines
: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, Jonathan (and everyone else)! Wednesday on IRC, we discussed the "M2 Bytecode format" milestone. This email is my attempt to formalize a plan for this work. I am hoping you will read

Re: [perl #31147] [TODO] metadata in bytecode

2008-03-23 Thread Jonathan Worthington
James Keenan via RT wrote: On Sat Dec 16 21:56:15 2006, allison wrote: Adequately covered by PDD 13. Leaving ticket to Jonathan to close when implemented. Your cage cleaner wants to know ... has this been implemented? No, not yet. Jonathan

[perl #31147] [TODO] metadata in bytecode

2008-03-17 Thread James Keenan via RT
On Sat Dec 16 21:56:15 2006, allison wrote: > Adequately covered by PDD 13. Leaving ticket to Jonathan to close when > implemented. Your cage cleaner wants to know ... has this been implemented? Thank you very much. kid51

Re: [perl #51122] GC bug in bytecode loading (again)

2008-02-23 Thread Bob Rogers
From: Bob Rogers <[EMAIL PROTECTED]> Date: Sat, 23 Feb 2008 12:44:02 -0500 From: "Peter Gibbs via RT" <[EMAIL PROTECTED]> Date: Sat, 23 Feb 2008 07:57:13 -0800 Hi Bob Please try revision 26025. This should be a full fix for the problem I started working on in

Re: [perl #51122] GC bug in bytecode loading (again)

2008-02-23 Thread Bob Rogers
From: "Peter Gibbs via RT" <[EMAIL PROTECTED]> Date: Sat, 23 Feb 2008 07:57:13 -0800 Hi Bob Please try revision 26025. This should be a full fix for the problem I started working on in r25990. Regards Peter Gibbs Works like a champ in r26026. Thanks heaps for the swift t

Re: [perl #51122] GC bug in bytecode loading (again)

2008-02-23 Thread Bob Rogers
From: "chromatic via RT" <[EMAIL PROTECTED]> Date: Sat, 23 Feb 2008 01:29:53 -0800 On Friday 22 February 2008 19:52:29 Bob Rogers wrote: > The "[loading list.pbc]" message shows that it is dying in the > load_bytecode op for this file. (If the bug fails to manifest, the code >

Re: [perl #51122] GC bug in bytecode loading (again)

2008-02-23 Thread Peter Gibbs
- Original Message - From: "Bob Rogers (via RT)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 23, 2008 5:52 AM Subject: [perl #51122] GC bug in bytecode loading (again) To reproduce, unpack the attached tarball as follows: copy.

Re: [perl #51122] GC bug in bytecode loading (again)

2008-02-23 Thread chromatic
On Friday 22 February 2008 19:52:29 Bob Rogers wrote: > The "[loading list.pbc]" message shows that it is dying in the > load_bytecode op for this file. (If the bug fails to manifest, the code > will fail to find a *.pbc file in fairly short order.) > >In GDB, the backtrace from the segfault

Make a compile-to-bytecode option

2007-07-25 Thread Andy Lester
Andy also needs we need a pbc disassembler where it dumps .pbc to pasm, if we don't have one. -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance

Re: [perl #42381] [TODO] search library path for parrot bytecode when loading

2007-05-07 Thread Mike Mattie
et/Display.html?id=42381 > > > > In the file src/ops/core.ops within the load_bytecode() op there is > the todo item embedded in a docstring: > > "Load Parrot bytecode from file $1, and (TODO) search the library > path, to locate the file." > > This function

[perl #42381] [TODO] search library path for parrot bytecode when loading

2007-04-09 Thread via RT
tem embedded in a docstring: "Load Parrot bytecode from file $1, and (TODO) search the library path, to locate the file." This functionality needs implementation.

[perl #41577] docs/ROADMAP.pod refers to python bytecode translator, pie-thon test suite

2007-02-27 Thread Allison Randal via RT
Fixed in r17210.

[perl #41577] docs/ROADMAP.pod refers to python bytecode translator, pie-thon test suite

2007-02-22 Thread via RT
e entries for "Get python bytecode translator done" and "Pass the pie-thon test suite". Are these still active waypoints on the roadmap, or should we remove them? Pm

Re: Bytecode PDD

2006-10-23 Thread Leopold Toetsch
Am Montag, 23. Oktober 2006 18:31 schrieb Jonathan Worthington: > >   1,5) same + range of indices > >   > > Will a dynamic character set or encoding library that we load not > possibly contain more than one character set or encoding and therefore > need a range of indices too? I have gone with thi

Re: Bytecode PDD

2006-10-23 Thread Jonathan Worthington
de librar{y,ies} loaded. In the best case, it was the same opcode library and the opcode numbers just happen to match. But that's pure luck. The same argument holds for all other above resources. I have added a dependencies segment that can be used to list all of the dynamically loaded resou

Re: Bytecode PDD

2006-10-06 Thread Jonathan Worthington
Leopold Toetsch wrote: Indeed. But we probably want to have an UUID to identify loaded .pasm/.pir/.pbc to avoid loading duplicates. The UUID as proposed was intended for that; I just hashed up the definition in the PDD. Er, no pun intended. As a side note: distinct PBC segments for checksu

Re: Bytecode PDD

2006-10-06 Thread Jonathan Worthington
Bernhard Schmalhofer wrote: One thing that I noticed is the naming of the new field UUID. ||| The UUID is | ||| computed by applying the hash function specified in| ||| the UUID type field over the entire packfile not | ||

Re: Bytecode PDD

2006-10-05 Thread Leopold Toetsch
Am Donnerstag, 5. Oktober 2006 23:04 schrieb Bernhard Schmalhofer: > Shouldn't this field be renamed to something like 'checksum' ? The term > 'UUID' already has a specific meaning, http://en.wikipedia.org/wiki/UUID. Indeed. But we probably want to have an UUID to identify loaded .pasm/.pir/.pbc

Re: Bytecode PDD

2006-10-05 Thread Bernhard Schmalhofer
Jonathan Worthington schrieb: Hi, I've checked in the proposed bytecode PDD and also most of the changes that I discussed with Allison earlier today. Feedback on it would be greatly appreciated. One thing that I noticed is the naming of the new field UUID. ||| The UU

Re: Bytecode PDD

2006-09-29 Thread Leopold Toetsch
Am Freitag, 29. September 2006 01:39 schrieb Jonathan Worthington: > Hi, > > I've checked in the proposed bytecode PDD and also most of the changes > that I discussed with Allison earlier today. Feedback on it would be > greatly appreciated. Great work, thanks. > A coup

Bytecode PDD

2006-09-28 Thread Jonathan Worthington
Hi, I've checked in the proposed bytecode PDD and also most of the changes that I discussed with Allison earlier today. Feedback on it would be greatly appreciated. One of the areas that it would good to have some input on, even if it's just a "yes, that's sane", i

Draft of Bytecode PDD

2006-09-28 Thread Allison Randal
I just got off the phone with Jonathan Worthington. At YAPC::EU he agreed to draft a PDD for Parrot's bytecode file format. He has done a fantastic job. He's checking it in now, so everyone will have a chance to comment. The PDD incorporates a handful of important changes that

Re: Bytecode

2006-04-22 Thread Jonathan Worthington
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Hey, new guy here. Welcome. :-) I'm really interested in the parrot bytecode. What are the files/dirs I should be looking at to understand everything about packfiles, including layout, api to deal with it, extracting, w

Bytecode

2006-04-22 Thread [EMAIL PROTECTED]
Hey, new guy here. I'm really interested in the parrot bytecode. What are the files/dirs I should be looking at to understand everything about packfiles, including layout, api to deal with it, extracting, writing, JIT compiling, etc. I took a look at the parrot bytecode format pag

Re: [perl #31147] [TODO] metadata in bytecode

2005-10-26 Thread Jonathan Worthington
"Will Coleda via RT" <[EMAIL PROTECTED]> wrote: This was a very old TODO from the TODO file: Is this now covered with the recent changes? [coke - Sun Aug 15 13:27:07 2004]: Bytecode Metadata (source line number info, symbol table) Hard to say; depends if it

[perl #31147] [TODO] metadata in bytecode

2005-10-26 Thread Will Coleda via RT
This was a very old TODO from the TODO file: Is this now covered with the recent changes? > [coke - Sun Aug 15 13:27:07 2004]: > > Bytecode > > Metadata (source line number info, symbol table)

Re: [perl #27003] bytecode (header?) problem in tru64/alpha

2005-10-10 Thread Jarkko Hietaniemi
Joshua Hoblitt via RT wrote: >>[doughera - Thu Oct 06 07:21:15 2005]: >> >>I think this bug can be closed. I just got those tests to pass on >>Sparc/Solaris 8 with gcc -m64 -mcpu=v9. (Mind you lots of other tests >>fail, but that's a separate problem.) >> >> >> > > > Jarrko, > > Are you OK w

Re: [perl #27003] bytecode (header?) problem in tru64/alpha

2005-10-06 Thread Andy Dougherty
On Thu, 6 Oct 2005, Joshua Hoblitt wrote: > On Thu, Oct 06, 2005 at 01:17:57AM -0700, Jarkko Hietaniemi via RT wrote: > > > Jarkko, > > > > > > I never got a response from anyone. How would you feel about closing > > > this bug? > > > > I don't think it can be closed until at least another big-

Re: [perl #27003] bytecode (header?) problem in tru64/alpha

2005-10-06 Thread Joshua Hoblitt
On Thu, Oct 06, 2005 at 01:17:57AM -0700, Jarkko Hietaniemi via RT wrote: > -J > > > > > >>> > >> > > > > Jarkko, > > > > I never got a response from anyone. How would you feel about closing > > this bug? > > I don't think it can be closed until at least another big-endi

Re: [perl #27003] bytecode (header?) problem in tru64/alpha

2005-10-06 Thread Jarkko Hietaniemi
-J >>> >> > > Jarkko, > > I never got a response from anyone. How would you feel about closing > this bug? I don't think it can be closed until at least another big-endian 64-bit platform (like IRIX 64 is/was) has been used to verify that things work. > -J > > >

Call for IRIX testers - was Re: [perl #27003] bytecode (header?) problem in tru64/alpha

2005-09-25 Thread Joshua Hoblitt
Does anyone has access to an IRIX machine? -J -- On Thu, Sep 22, 2005 at 07:37:44PM +0300, Jarkko Hietaniemi wrote: > > > > > Jarkko, > > > > Are there still outstanding issues on IRIX? AFAIK nobody else has been > > building parrot on that platform. > > Unfortunately I no more have access t

Re: [perl #27003] bytecode (header?) problem in tru64/alpha

2005-09-23 Thread Jarkko Hietaniemi
> > Jarkko, > > Are there still outstanding issues on IRIX? AFAIK nobody else has been > building parrot on that platform. Unfortunately I no more have access to that platform. > -J > > > >

Re: Parrot bytecode reentrancy

2005-04-17 Thread Martin D Kealey
On Fri, 15 Apr 2005, Nigel Sandever wrote: > I struck me a while back that there is a contradiction in idea of a shared, > 'my' variable. > > I want to say lexical, but a var declared with 'our' is in some sense lexical. Shared-between-threads and shared-between-scopes are orthogonal properties; u

Re: Parrot bytecode reentrancy

2005-04-15 Thread Nigel Sandever
} > >> is called from two threads, do the threads share a single closure or >> each get their own separate closure? > >AFAIK: the closure bytecode is shared, Great. >the Closure PMC with the lexical >pad is distinct. I think that makes perfect sense. No imp

Re: Parrot bytecode reentrancy

2005-04-15 Thread Leopold Toetsch
their own separate closure? AFAIK: the closure bytecode is shared, the Closure PMC with the lexical pad is distinct. But that all isn't implemented yet. > njs leo

Re: Parrot bytecode reentrancy

2005-04-15 Thread Nigel Sandever
On Thu, 31 Mar 2005 21:17:39 -0500, [EMAIL PROTECTED] (MrJoltCola) wrote: > At 05:57 PM 3/31/2005, Nigel Sandever wrote: > >Is Parrot bytecode reentrant? > > Yes. > > >That is, if I want to have two instances of a class in each of two > >threads, will > >t

Re: Parrot bytecode reentrancy

2005-03-31 Thread MrJoltCola
At 05:57 PM 3/31/2005, Nigel Sandever wrote: Is Parrot bytecode reentrant? Yes. That is, if I want to have two instances of a class in each of two threads, will the bytecode for the class need to be loaded twice? No, just once. Also, will it be possible to pass objects (handles/references

Parrot bytecode reentrancy

2005-03-31 Thread Nigel Sandever
Is Parrot bytecode reentrant? That is, if I want to have two instances of a class in each of two threads, will the bytecode for the class need to be loaded twice? Also, will it be possible to pass objects (handles/references) between threads? Thanks njs.

Re: [perl #33028] Parrot cores when asked to run a nonexistent bytecode file

2004-12-24 Thread Nicholas Clark
On Mon, Dec 13, 2004 at 01:46:49PM -0500, Matthew Zimmerman wrote: > I'm going to have to stop sending patches if it's going to take 5 hours > for my messages to get to the list. You guys are so damned fast, I can't > compete! :) I think that your messages hit the moderator, as your address wasn

Re: [perl #33028] Parrot cores when asked to run a nonexistent bytecode file

2004-12-13 Thread Matthew Zimmerman
Dan Sugalski (via RT) wrote: # New Ticket Created by Dan Sugalski # Please include the string: [perl #33028] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=33028 > A plain ./parrot foo.pbc when foo.pbc doesn't exist t

Re: [perl #33028] Parrot cores when asked to run a nonexistent bytecode file

2004-12-13 Thread Matthew Zimmerman
chromatic wrote: On Mon, 2004-12-13 at 07:44 -0800, Dan Sugalski wrote: A plain ./parrot foo.pbc when foo.pbc doesn't exist triggers a core dump on OS X. The problem is in embed.c not checking the results of Parrot_locate_runtime_file(). Here's a naive patch. [snip chromatic's fine patch, very

Re: [perl #33028] Parrot cores when asked to run a nonexistent bytecode file

2004-12-13 Thread Matthew Zimmerman
Dan Sugalski (via RT) wrote: # New Ticket Created by Dan Sugalski # Please include the string: [perl #33028] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=33028 > A plain ./parrot foo.pbc when foo.pbc doesn't exist t

Re: [perl #33028] Parrot cores when asked to run a nonexistent bytecode file

2004-12-13 Thread Leopold Toetsch
Matthew Zimmerman <[EMAIL PROTECTED]> wrote: > strlen() is puking on the NULL return from Parrot_locate_runtime_file() > in Parrot_readbc. Attached patch fixes this behavior. Thanks, applied. leo

Re: [perl #33028] Parrot cores when asked to run a nonexistent bytecode file

2004-12-13 Thread chromatic
On Mon, 2004-12-13 at 07:44 -0800, Dan Sugalski wrote: > A plain > > ./parrot foo.pbc > > when foo.pbc doesn't exist triggers a core dump on OS X. The problem is in embed.c not checking the results of Parrot_locate_runtime_file(). Here's a naive patch. Is there a good place to put tests f

[perl #33028] Parrot cores when asked to run a nonexistent bytecode file

2004-12-13 Thread via RT
# New Ticket Created by Dan Sugalski # Please include the string: [perl #33028] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=33028 > A plain ./parrot foo.pbc when foo.pbc doesn't exist triggers a core dump on OS

Re: Improvements to execution and loading of bytecode programs and modules

2004-11-03 Thread chromatic
On Wed, 2004-11-03 at 20:08, Milscvaer wrote: > First, Perl ought to allow bytecode, already compiled, > to be loaded via a bytecode equivelant to eval(), if > this cannot be done already. Please read through the design documents: http://dev.perl.org/perl6/ Many of these i

Improvements to execution and loading of bytecode programs and modules

2004-11-03 Thread Milscvaer
First, Perl ought to allow bytecode, already compiled, to be loaded via a bytecode equivelant to eval(), if this cannot be done already. This would work the same way as executing Perl code via eval(). For instance, perhaps through a new bceval function: bceval($bytecode);. In addition, Perl

Python bytecode volunteers...

2004-09-20 Thread Dan Sugalski
Well, we were shooting for an end-of-August release, but needless to say that's not happened. Both Leo and my translators were reasonably near completion, and need to be pushed that final bit of the way. Neither of us have the time, so... Anyone want to take a shot? Leo's builds faster code but

[perl #31147] [TODO] metadata in bytecode

2004-08-15 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #31147] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31147 > Bytecode Metadata (source line number info, symbol table) (From

Python::Bytecode 2.4. This time I mean it!

2004-07-12 Thread Dan Sugalski
Fixed a bug in the damn thing (that I'd introduced) and fixed the tests to actually test properly, including both a Python 2.2 and 2.3 format bytecode file in the archive. Rather than mail the thing to people *again* I've just stuck it up for web snagging. http://www.sidhe.org/~

Python::Bytecode 2.3

2004-07-12 Thread Dan Sugalski
The last rev of Python::Bytecode is up and available for poking at. http://www.sidhe.org/~dan/Python-Bytecode-2.3.tar.gz if you want it. Handles multiple code objects in a file now (woo!) as well as actually supporting Python 2.1 and 2.2. I think. Tests would be in order, but I haven't act

Re: Python::Bytecode

2004-07-12 Thread Dan Sugalski
On Mon, 12 Jul 2004, Gregor N. Purdy wrote: > Leo -- > > I had tinkered around with this stuff back in 2003, and ended up writing > Python::Bytecode::SAX to help me visualize bytecode. IIRC, I ran into > the same issue of only disassembling one code block. I've finished u

Re: Python::Bytecode

2004-07-12 Thread Gregor N. Purdy
Leo -- I had tinkered around with this stuff back in 2003, and ended up writing Python::Bytecode::SAX to help me visualize bytecode. IIRC, I ran into the same issue of only disassembling one code block. I'd be interested to know if P::B::S treats your example python bytecode any better than

Re: Next rev of Python::Bytecode

2004-07-12 Thread Matt Diephouse
After spending a couple of hours looking at Python::Bytecode and the Python source, I decided I didn't like the module. So I wrote my own. I decided Bytecode::Python would work nicely for the name, though it's a bit close to the namespace. I basically redesigned it, so it should be

Next rev of Python::Bytecode

2004-07-11 Thread Dan Sugalski
Still a bit lacking, 'specially in the documentation department, but I've got a version that sucks much less than it did, and is possibly even correct. (Go figure. Surprised me, too... :) Anyway, if you want to fiddle, http://www.sidhe.org/~dan/Python-Bytecode-2.2.tar.gz and have at

Re: Python::Bytecode

2004-07-10 Thread Matt Diephouse
to give this a shot. I don't know much about byetcode, but I'd love to save Dan from a pie in the face (from what I gather he's had a rough go of it lately). Maybe you could give me an example of some input and the correct output? Or some documentation? I've checked out parrot

Re: Python::Bytecode

2004-07-10 Thread Matt Diephouse
to give this a shot. I don't know much about byetcode, but I'd love to save Dan from a pie in the face (from what I gather he's had a rough go of it lately). Maybe you could give me an example of some input and the correct output? Or some documentation? I've checked out parrot

Python::Bytecode

2004-07-08 Thread Leopold Toetsch
... is on CPAN (said Dan) and is broken. I'd be glad if people could fix it and send me a running version ;) * constants are messed up * it doesn't disassemble all code objects of a .pbc - just one $ cd languages/python $ perl pie-thon.pl -dD some.py shows more (and AFAIK correct) Python disassem

Re: Python bytecode notes, part one

2004-07-06 Thread brian wheeler
On Mon, 2004-07-05 at 19:27, Dan Sugalski wrote: UNARY_NEGATIVE: restore $Px; new $Py, Undef; $Py = $Px * -1; save $Py | $Px = -1 * $Px Wouldn't something this do what is desired? I'm just guessing, though. Brian

Re: Python bytecode notes, part one

2004-07-05 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > The translation for a number of the python ops depends on whether > we're going with runtime stack action or compile-time stack->register > translations. My experiments[1] show that the latter should be doable, the more because ... > BINARY_: >restor

Python bytecode notes, part one

2004-07-05 Thread Dan Sugalski
ided by a pipe. (I probably ought to format this as a table but, well, it's ASCII) For ops that take a parameter, the parameter name is in lower case. These are part of the op stream in the python bytecode. STOP_CODE: end POP_TOP: restore $Px | noop ROT_TWO: rotate_up 1 | noop ROT_THREE: rot

Re: bytecode library

2004-05-24 Thread Dan Sugalski
of "directories" (or better Sub PMCs, as outlined by Dan). We should add a Parrot_packfile_from_buffer(Interpreter, char *buf, long len) function to the API to load in bytecode files that are already in memory, and have the base parrot library be a big string constant in a simple C

Re: bytecode library

2004-05-21 Thread Jens Rieks
Hi, the code is now in. To use it, uncomment the #define _PARROTLIB in src/dynext.c:23 (for load_bytecode) and imcc/imcc.l:815 (for .include instructions) and create the parrotlib.pbc file: ./parrot -o runtime/parrot/include/parrotlib.pbc \ runtime/parrot/library/parrotlib.imc WARNIN

bytecode library

2004-05-21 Thread Jens Rieks
t_load_lib) with bytecode versions ("parrotlib"). The problem is how to actually load (byte)code without the help of these functions. Thats why I've added Parrot_load_bytecode_direct. The "not direct" version can use parrotlib code to locate the specified file by iterating t

Re: [BUG] @LOAD sections are not executed in the main bytecode

2004-04-08 Thread Leopold Toetsch
Jens Rieks <[EMAIL PROTECTED]> wrote: > @LOAD subs are executed if loaded with load_bytecode, but not when > they are in inside the initial bytecode loaded by parrot. Yep. In the first loaded segment @MAIN or the first line is executed. I don't think that we need @LOAD here too. > jens leo

[BUG] @LOAD sections are not executed in the main bytecode

2004-04-08 Thread Jens Rieks
Hi, @LOAD subs are executed if loaded with load_bytecode, but not when they are in inside the initial bytecode loaded by parrot. Please have a look at the attached patch against t/pmc/sub.t for an example. jens Index: t/pmc/sub.t

Re: MMD vtable functions in bytecode

2004-03-29 Thread Dan Sugalski
e can register a C function (via NCI) or a PASM function too. Sure, but if you've an NCI function you might as well directly register it and skip the extra indirection. :) Anyway, it won't be too long before bytecode can register MMD functions, albeit only bytecode functions. I'll

Re: MMD vtable functions in bytecode

2004-03-29 Thread Dan Sugalski
At 10:28 PM +0200 3/29/04, Leopold Toetsch wrote: Dan Sugalski wrote: [ cvs ci library/vtable_constants.pasm ] Isn't working IMHO. C<.const int ..> is PIR syntax. *And* that file could be easily auto-created like almost all inside F Ah, damn, that's what I get for not double-checking my working

Re: MMD vtable functions in bytecode

2004-03-29 Thread Leopold Toetsch
Dan Sugalski wrote: [ cvs ci library/vtable_constants.pasm ] Isn't working IMHO. C<.const int ..> is PIR syntax. *And* that file could be easily auto-created like almost all inside F leo

Re: MMD vtable functions in bytecode

2004-03-29 Thread Leopold Toetsch
Dan Sugalski wrote: At 8:16 PM +0200 3/29/04, Leopold Toetsch wrote: Did you consider ussng PMCs as instead of plain function pointers. As outlined a NCI, C, and PASM Sub PMC would be equally just invoke()d. Yeah, I did. You end up with a twofold problem there--not only do you have extra indir

Re: MMD vtable functions in bytecode

2004-03-29 Thread Dan Sugalski
At 9:40 PM +0200 3/29/04, Leopold Toetsch wrote: Dan Sugalski wrote: You've got me confused here. Well, the question is: Is it allowed to create a continuation in one subroutine with the destination label being in a different subroutine? Oh, OK. Erm. No. Mostly. Subs must be considered self-co

Re: MMD vtable functions in bytecode

2004-03-29 Thread Leopold Toetsch
Dan Sugalski wrote: You've got me confused here. Well, the question is: Is it allowed to create a continuation in one subroutine with the destination label being in a different subroutine? .sub _f1 label = get_addr dest_label _f2(label) ... dest_label: .end .sub _f2 .param int

Re: MMD vtable functions in bytecode

2004-03-29 Thread Dan Sugalski
At 11:12 AM +0100 3/27/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: [ mmd functions ] Another question: ,--[ pdd15 ]-- |While vtable methods may take a continuation, those |continuations may not escape the

  1   2   3   4   5   >