Re: [PATCH] changing IV to opcode_t!!

2001-09-19 Thread Dan Sugalski
At 02:51 PM 9/19/2001 -0400, Andy Dougherty wrote: >On Wed, 19 Sep 2001, Dan Sugalski wrote: > > > At 01:37 PM 9/19/2001 -0400, Andy Dougherty wrote: > > > >Of course it doesn't help that perl doesn't have a pack() flag for IV :-). > > > > Definitely a pain. :) We need to figure out the size and u

another silly question about Parrot::Opcode

2001-09-19 Thread Pat Eyler
I found one more bit that looks odd to me (again in _load), near the end of the while loop is this code: my $num_i = () = grep {/i/} @params; my $num_n = () = grep {/n/} @params; $opcode{$name}{RETURN_OFFSET} = 1 + $num_i + $num_n * 2; which could be reduced to:

Re: The core platforms list

2001-09-19 Thread Randal L. Schwartz
> "John" == John Siracusa <[EMAIL PROTECTED]> writes: John> On 9/18/01 7:26 PM, Randal L. Schwartz wrote: >> I'd suggest you "Darwin" there to be sure you're thinking about >> case-insensitive-32-char filenames John> Someone will correct me if I'm wrong, but I don't think Darwin John> even i

Re: The core platforms list

2001-09-19 Thread Jarkko Hietaniemi
> And, maybe even more important, not all the world has gcc! Hear, hear. -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'dead'. -- Jack Cohen

RE: another silly question about Parrot::Opcode

2001-09-19 Thread Gibbs Tanton - tgibbs
Nope, I think you've messed up your math there :) The current version multiplies the number of numeric types seen by two (because (unportably) most numbers are twice the size of integers). Yours does not take that into account. -Original Message- From: Pat Eyler To: [EMAIL PROTECTED] S

Re: The core platforms list

2001-09-19 Thread Dan Sugalski
At 11:15 AM 9/19/2001 +0200, H.Merijn Brand wrote: >If the nightly builds start OK, I could add a daily report for > > HP-UX 11.00 HPc/gcc 32/64 threading/non-threading > HP-UX 10.20 HPc 32threading/non-threading > AIX 4.3.3 vac/gcc 32/64 threading/non-threading >

RE: 64 bit Assembler

2001-09-19 Thread Gibbs Tanton - tgibbs
To make Parrot pass (almost) all of the tests, also change the n => 2 line in process_opfunc.pl to a 1. On my Tru64 box, it passed all tests but the overflow ones. -Original Message- From: Gibbs Tanton - tgibbs To: '[EMAIL PROTECTED]' Sent: 9/19/2001 2:05 PM Subject: 64 bit Assembler I

[PATCH] mem_allocate_aligned explanation

2001-09-19 Thread Josh Wilmes
This patch adds Dan Sugalski's explanation to the code. Index: memory.c === RCS file: /home/perlcvs/parrot/memory.c,v retrieving revision 1.9 diff -u -r1.9 memory.c --- memory.c2001/09/16 01:45:51 1.9 +++ memory.c2001/09

Re: The core platforms list

2001-09-19 Thread Dan Sugalski
At 01:10 PM 9/19/2001 +0200, H.Merijn Brand wrote: >(cast)foo = bar; syntax is *not* supported in most non-GNU C compilers: My sloppiness, I'll fix anything remaining. (It wasn't done out of any gcc-centrism--I don't even use gcc much. Just never occurred to me that it wouldn't work...)

RE: [REPATCH] changing IV to opcode_t

2001-09-19 Thread Gibbs Tanton - tgibbs
This has been applied. Please rerun Configure.pl after updating. Thanks! Tanton -Original Message- From: Gibbs Tanton - tgibbs To: '[EMAIL PROTECTED] ' Sent: 9/19/2001 1:15 PM Subject: [REPATCH] changing IV to opcode_t Ok, this patch changes from the union to a simple type. The type

RE: [PATCH] mem_allocate_aligned explanation

2001-09-19 Thread Gibbs Tanton - tgibbs
Thanks. Applied. -Original Message- From: Josh Wilmes To: [EMAIL PROTECTED] Sent: 9/19/2001 3:04 PM Subject: [PATCH] mem_allocate_aligned explanation This patch adds Dan Sugalski's explanation to the code. Index: memory.c ===

Re: The core platforms list

2001-09-19 Thread John Siracusa
On 9/19/01 10:35 AM, Randal L. Schwartz wrote: > John> Someone will correct me if I'm wrong, but I don't think Darwin > John> even installs on file systems that support anything less than > John> 255 character file names (e.g. HFS). > > My HFS+ drive held Darwin for at least a little while, and t

RE: [PATCH] changing IV to opcode_t!!

2001-09-19 Thread Andy Dougherty
On Wed, 19 Sep 2001, Brent Dax wrote: > Andy Dougherty: > ... > # +prompt("And what is sizeof(iv)?", 'ivsize'); > # prompt("And your floats?", 'nv'); > # +prompt("And what is sizeof(nv)?", 'nvsize'); > ... > > Somehow, this seems like something we ought to be able to do > programmatically. Can

Re: cvs snapshots

2001-09-19 Thread Mattia Barbon
> On Tue, 18 Sep 2001, H.Merijn Brand wrote: > > > On Mon 17 Sep 2001 23:08, Ask Bjoern Hansen <[EMAIL PROTECTED]> wrote: > > > > > > oops, I forgot to tell anyone. I made CVS export and tar up a > > > snapshot every 6 hours. It is available at > > > http://cvs.perl.org/snapshots/parrot/ > > >

RE: [PATCH] changing IV to opcode_t!!

2001-09-19 Thread Brent Dax
Andy Dougherty: # On Wed, 19 Sep 2001, Brent Dax wrote: # # > Andy Dougherty: # > ... # > # +prompt("And what is sizeof(iv)?", 'ivsize'); # > # prompt("And your floats?", 'nv'); # > # +prompt("And what is sizeof(nv)?", 'nvsize'); # > ... # > # > Somehow, this seems like something we ought to be a

Re: The core platforms list

2001-09-19 Thread Nathan Torkington
Simon Cozens writes: > On Wed, Sep 19, 2001 at 01:22:04PM +0200, H. Merijn Brand wrote: > > Can't open perl script "t/harness": No such file or directory > > MANIFEST? (using most recent parrot-nightly) > > Don't use parrot-nightly; use the snapshots from cvs.perl.org So parrot-nightly will only

RE: [PATCH] changing IV to opcode_t!!

2001-09-19 Thread Brent Dax
Andy Dougherty: ... # +prompt("And what is sizeof(iv)?", 'ivsize'); # prompt("And your floats?", 'nv'); # +prompt("And what is sizeof(nv)?", 'nvsize'); ... Somehow, this seems like something we ought to be able to do programmatically. Can't we just compile a quick little C program with somethin

Not yet automated Smoke report

2001-09-19 Thread Mattia Barbon
here it is. I'll release Parrot::Smoke 0.01 tomorrow, promise. *PLEASE* - change _read to read in test_main.c - correct integer.t, test 1 not to test 0x == -1 ( that's why we have got all F... ) Regards Mattia Automated smoke report for patch ?

Re: Example assembler code (primes.pasm)

2001-09-19 Thread Simon Cozens
On Wed, Sep 19, 2001 at 02:49:58PM +0100, Leon Brocard wrote: > How about an examples/ directory in the CVS tree? I'd rather we didn't do this; I don't want to clutter up Parrot with auxilliary stuff. > Alternatively, I > could set up a "learning parrot assembler" website of some sort, This wou

Example assembler code (primes.pasm)

2001-09-19 Thread Leon Brocard
Attached is a cute prime number printer. It strikes me that we need a central place to put these things - it'd really help people get stuck into the lowlevel stuff. How about an examples/ directory in the CVS tree? Alternatively, I could set up a "learning parrot assembler" website of some sort,

Don't forget the binmodes...

2001-09-19 Thread Dan Sugalski
The assembler's failing with 0a->0D0A conversions in spots. Could someone familiar with it go binmode all the output files that we spit bytecode to? Dan --"it's like this"--- Dan Sugalski

Re: The core platforms list

2001-09-19 Thread Simon Cozens
On Wed, Sep 19, 2001 at 08:44:34AM -0600, Nathan Torkington wrote: > > Don't use parrot-nightly; use the snapshots from cvs.perl.org > > So parrot-nightly will only be useful when we have many more features > implemented, and there's a high probability that most features in a > snapshot will actu

Re: Don't forget the binmodes...

2001-09-19 Thread Dan Sugalski
At 05:28 PM 9/19/2001 -0400, Dan Sugalski wrote: >The assembler's failing with 0a->0D0A conversions in spots. Could someone >familiar with it go binmode all the output files that we spit bytecode to? Never mind, I took care of it. Dan ---

[PATCH] Changes to interpreter op table and simplified DO_OP

2001-09-19 Thread Gregor N. Purdy
All -- I wanted to have a unified op func, name, argc and argtype[] member in the interpreter struct, and that led me to make all the changes in this patch. I don't know if I've gone too far, but DO_OP is simpler now, and things still seem to run for me. Anyone else interested in trying this ou

RE: [PATCH] changing IV to opcode_t!!

2001-09-19 Thread Dan Sugalski
At 09:41 PM 9/18/2001 -0500, Gibbs Tanton - tgibbs wrote: >Ok...let me try to get this straight and I'll repatch... > >opcode_t should be something that will represent the native opcode type. In >most cases it should just be long; however, there might be special systems >where it is somehting dif

Re: [PATCH] Changes to interpreter op table and simplified DO_OP

2001-09-19 Thread Simon Cozens
On Wed, Sep 19, 2001 at 06:23:41PM -0400, Gregor N. Purdy wrote: > -print INTERP "\tx[$opcodes{$name}{CODE}] = (void*)$name; \\\n"; > -} > -print INTERP "} while (0);\n"; > +printf INTERP "{ (void *)%-12s, %-14s, %d, { ", > + $name, "\"$name\"", $opcodes{$name}{ARGS}; This is so m

Re: [PATCH] changing IV to opcode_t!!

2001-09-19 Thread Simon Cozens
On Wed, Sep 19, 2001 at 10:59:45AM -0400, Dan Sugalski wrote: > Nope. opcode_t should be the native opcode type for the platform we're > compiling on. No need for fancy unions--configure should find out the > integer type that works out right for the platform and the bytecode and use > that. I

Re: The core platforms list

2001-09-19 Thread H . Merijn Brand
On Wed 19 Sep 2001 11:15, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote: > On Tue 18 Sep 2001 20:43, Dan Sugalski <[EMAIL PROTECTED]> wrote: > > Okay, folks, the following platforms are considered core for the parrot > > interpreter. That means we need to run on all of them for any release of > > t

Re: t/op/integer.t is IMHO wrong

2001-09-19 Thread Dan Sugalski
At 03:56 PM 9/18/2001 -0700, Damien Neil wrote: >On Wed, Sep 19, 2001 at 12:51:43AM +0200, Mattia Barbon wrote: > > I think that especting 4294967295 == -1 because they have the same > > bit pattern ( on two's complement 32 bit machines ) is wrong > >I was wondering how long it would take for some

RE: Bytecode safety

2001-09-19 Thread Dan Sugalski
At 06:44 PM 9/18/2001 -0700, Hong Zhang wrote: > > Proposed: Parrot should never crash due to malformed bytecode. When > > choosing between execution speed and bytecode safety, safety should > > always win. Careful op design and possibly a validation pass before > > execution will hopefully keep

Re: The core platforms list

2001-09-19 Thread H . Merijn Brand
On Wed 19 Sep 2001 13:10, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote: > And, maybe even more important, not all the world has gcc! and bytecode.c l1:/pro/3gl/CPAN/parrot 136 > make test_prog cc -DDEBUGGING -Ae -D_HPUX_SOURCE -I/pro/local/include -D_LARGEFILE_SOURCE -D_FI LE_OFFSET_BITS=64 -I..

Re: Check NV alignment for Solaris

2001-09-19 Thread Andy Dougherty
On Wed, 19 Sep 2001, Dan Sugalski wrote: > One of the things that might be coring solaris is the potential for > embedded floats in the bytecode stream. (The more I think about that the > more I regret it...) The ops do a quick and ugly cast to treat some of the > opcode stream as an NV which

Re: The core platforms list

2001-09-19 Thread Dan Sugalski
At 04:49 PM 9/19/2001 +0100, Robin Houston wrote: >Dan Sugalski wrote: > > I'd love to have Darwin there, [...] > > > > If someone is willing to pitch in the time and effort, I'd be thrilled > > to add it to the list. > >I'm willing. Keen. I don't suppose you can do Classic Mac too, perchance?

Re: The core platforms list

2001-09-19 Thread Dan Sugalski
At 12:08 PM 9/19/2001 -0400, John Siracusa wrote: >On 9/19/01 11:51 AM, Randal L. Schwartz wrote: > > John> (HFS and HFS+ are indeed case-insensitive though) > > > > Which they *could* have fixed from the Unix side in the same way that > > MachTen did it..., and I wish they would. In MachTen, eac

Re: The core platforms list

2001-09-19 Thread Randal L. Schwartz
> "John" == John Siracusa <[EMAIL PROTECTED]> writes: John> HFS+ supports 255 character file names. Yes, the (classic Mac OS) Finder is John> hiding something from you, as are the rest of the classic Mac OS file access John> APIs, which are limited to 32 characters and weren't updated when H

RE: [PATCH] changing IV to opcode_t!!

2001-09-19 Thread Gibbs Tanton - tgibbs
Ok, after class I will fix and repatch. Making opcode_t a simple type that is configurable. Thanks! Tanton -Original Message- From: Dan Sugalski To: Simon Cozens; ''[EMAIL PROTECTED]' ' Sent: 9/19/2001 10:14 AM Subject: Re: [PATCH] changing IV to opcode_t!! At 03:58 PM 9/19/2001 +0100,