Re: Big nums

2004-06-14 Thread Alex Gough
[Sat, Jun 12, 2004 at 11:39:27AM +0200: [EMAIL PROTECTED] | Time for these as well. There's a partial implementation of them in | types/bignum.c. I think it's time to move that to src/ (and the | header file to .h) and get it integrated into parrot. I'm not really sure if

Re: logical_not issue

2002-12-06 Thread Alex Gough
, in if ( !exp1 ) { ... }, !exp1 merely has to be true or false, while $foo = !exp1 leaves !exp1 needing to be all manner of things. Alex Gough -- It was at this time that some very pious Englishmen, known as the Early Fathers, sailed away to America in a ship called the Mayfly; this is generally referred

[pass] FreeBSD 4.5, Irix 6.5

2002-03-16 Thread Alex Gough
FreeBSD 4.5 / gcc: All tests successful, 20 subtests skipped. Files=19, Tests=313, 343 wallclock secs (230.79 cusr + 21.33 csys = 252.12 CPU) Irix 6.5 / MIPSPro: (After a little Makefile.in fix) All tests successful, 20 subtests skipped. Files=19, Tests=313, 345 wallclock secs (292.12 cusr +

pdd14 -- bignums

2002-03-12 Thread Alex Gough
I've pretty much finished this off, although I need to edit it to make complete sense, but am busy so this might not happen right this minute now. Oh, and I've stolen number 14, so as what I can put it into cvs. Enjoy... Alex Gough -- Once people ceased to understand how the machines around

RE: Parrot runtime footprint -- looking kind of big for embeddeduse...

2002-03-09 Thread Alex Gough
. This means that a mini-parrot program must have identical behaviour on both the cut-down and complete versions of the run time. Alex Gough -- It is easier -- even quicker, once you have the habit -- to say In my opinion it is not an unjustifiable assumption that than to say I think.

Re: 0.0.4 imminent

2002-03-05 Thread Alex Gough
???? ?? This might be bignums, which I've been a bit too busy to finish and commit Alex Gough

Re: Extensions

2002-03-04 Thread Alex Gough
need to write parrot = perl5 glue (essentially pmc-sv mappings) and many things might be able to fly with a minimum of problems That said, a) there must a better solution and b) I'm undoubtedly on crack with this one Nevertheless, it appeals to me although I'm slighty worried by this Alex Gough

Re: Initial bignum pdd

2002-02-22 Thread Alex Gough
On Fri, 22 Feb 2002, Nicholas Clark wrote: On Fri, Feb 22, 2002 at 03:08:58AM +, Alex Gough wrote: =head2 Rounding The rounding part of the context defines the rounding algoritm to be used, the following are provided (examples assume a precision of 5): =over 4 =item Round

Re: Possible new PMC

2002-02-22 Thread Alex Gough
data structure. Alex Gough

Re: Initial bignum pdd

2002-02-22 Thread Alex Gough
tests Ran 546 tests (546,0) = 100% Which, while not extremely right, is certainly far from extremely wrong. Alex Gough -- I keep thinking that people talk about the economy now just like they'd have talked about appeasing gods, centuries ago. Pontifex Greenspan lowered interest rates again today

Re: Interpreter memory allocation

2002-02-15 Thread Alex Gough
chunks appropriately)? If your buffer header can't be reached from the root set, you'll end up having it reclaimed when a sweep is made. Which bits of a PMC count as being reachable from the root set? Alex Gough

Re: PMCs, setting, and suchlike things

2002-02-14 Thread Alex Gough
not let us, in general a PMC will be happy to lose its identity. Alex Gough -- #!/usr/bin/perl use Quantum::Entanglement qw(:DEFAULT :complex); $language = entangle(1,'python',1/i,'C',i*i,'Perl',1/i**2,'Java',i**5,'C#'); print Just another $language hacker,\n if $language eq 'Perl';

Re: PMCs, setting, and suchlike things

2002-02-14 Thread Alex Gough
or that Cat::new won't, that's just not Perl. If we're to check the type of the value being stored in $spot, we pretty much have to do it at run time. Alex Gough -- He may look like an idiot, and talk like an idiot...but don't let that fool you. He really is an idiot.

[COMMIT] Numbers, as BIG as your HEAD

2002-02-12 Thread Alex Gough
want to work out how right now. But that's ok, because there are tests, so we can easily tell if a better set of guts is still correct. Anyhow, that's quite enough for now, Alex Gough -- Every reader should ask himself periodically Toward what end, toward what end? -- but do not ask it too often

[APPLIED] [Revised PATCH] PMC - string

2002-02-04 Thread Alex Gough
context, I think this should stringify the array, so that @foo = qw(elephants hide in custard) becomes @foo - elephantshideincustard. --- core.ops.old Fri Feb 1 15:57:44 2002 +++ core.ops Fri Feb 1 15:59:10 2002 Applied, thanks. Alex Gough -- #!/usr/bin/perl use Quantum::Entanglement qw

Re: [pythonesque] vtable ideas

2002-02-02 Thread Alex Gough
need to do something simillar when passing SVs into C code at the moment, and I'm sure Inline::* will provide not only endless amusement but also some useful advice on this. Alex Gough -- It is easier -- even quicker, once you have the habit -- to say In my opinion it is not an unjustifiable

Re: [PATCH] PMC - string

2002-02-01 Thread Alex Gough
careful about testing PerlUndef once we've added warnings in. Alex Gough

Re: strings: sequence-of-integer ... list of chunks

2002-01-31 Thread Alex Gough
::Generate returns a generator object that will calculate pi for you to however far you want, that regex will run forever or until it runs out of memory, whichever comes first. We simply guarantee that Perl will always give you enough rope to hang yourself, you just need to ask nicely. Alex Gough

Re: New Todo

2002-01-30 Thread Alex Gough
] or TODO_NOW or TO_REALLY_DO or JFDI or something. Alex Gough

Re: Parrot strings: are strings like \x{FF10} false?

2002-01-26 Thread Alex Gough
which does turn \x{FF10} into a numeric zero. It's just that our unicode support is lagging behind ascii, with most (all?) of the methods being nothing more than placeholders. Alex Gough

Re: Parrot test harness and stdout/stderr

2002-01-26 Thread Alex Gough
) fatal errors and will want to continue to do so. These should also not be easily triggered from the language level, so must be exercised by throwing appropriate bytecode at the interpreter. Alex Gough -- I keep thinking that people talk about the economy now just like they'd have talked about

[APPLIED] Re: [PATCH] are characters unsigned?

2002-01-21 Thread Alex Gough
On Mon, 21 Jan 2002, Nicholas Clark wrote: I thought that it should be this INTVAL (*get_digit)(UINTVAL c); not this UINTVAL (*get_digit)(UINTVAL c); It seems you thought both, I've made a small modification and applied the patch, thanks. Alex Gough

Re: [PATCH] warnings in test_main.c

2002-01-21 Thread Alex Gough
On Mon, 21 Jan 2002, Nicholas Clark wrote: Before: lots. After: less. Applied, thanks. Alex Gough

Re: [PATCH] quieten many pmc warnings

2002-01-21 Thread Alex Gough
On Mon, 21 Jan 2002, Nicholas Clark wrote: This eliminates many gcc warnings from pmc code by Applied, thanks. Alex Gough

Re: [PATCH] (Easy) cleanup of obvious warnings

2002-01-16 Thread Alex Gough
strings. KR says that this is an OK thing to do. Alex Gough

Re: [PATCH] class/*.c weren't being compiled with warnings turnedon.

2002-01-15 Thread Alex Gough
in terms of the other behaviours of the pmc. Adding not implemented code to every pmc type is pointless duplication and certainly not the right way to halt compiler warnings. Alex Gough

Re: [PATCH] Minor fixes to rx.c

2002-01-10 Thread Alex Gough
being a bit obscuring at present. Alex Gough

[APPLIED] (sort of) string_destroy in string.c

2002-01-10 Thread Alex Gough
the needed changes. Alex Gough

Re: [PATCH] Minor fixes to rx.c

2002-01-10 Thread Alex Gough
On Thu, 10 Jan 2002, Nicholas Clark wrote: On Thu, Jan 10, 2002 at 03:06:38PM +, Alex Gough wrote: Also, I'm a bit concerned that our null termination games: I would strongly recommend that perl6 mandates that buffers are not nul terminated. Anything that needs a nul should arrange

Re: Hash memory allocation bug.

2002-01-07 Thread Alex Gough
in strings, failing tests now applied. Alex Gough

[patch] Reading bytecode stream from stdin

2002-01-07 Thread Alex Gough
somewhere else, could someone with a windows box give it a whirl or anyone with any flame produce it now... Alex Gough # Index: test_main.c === RCS file: /home/perlcvs/parrot/test_main.c,v retrieving revision 1.29

Re: [PATCH pmc2c.pl] Tracking line numbers

2002-01-02 Thread Alex Gough
that one day (my son...) we'll need to parse and generate the .c code without the helping hand of perl, so don't get carried away with making a little language we don't really need. Alex Gough

Re: We're all just Parrot Troopers

2001-12-30 Thread Alex Gough
) { if value cares more than me, then... despatch to value, reverse order } if (reversed) { dest-vtable-set_number( etc... ) } else { you get the idea } } Hopefully that made sense... Alex Gough

[commit] String brokenness fixed, repeat

2001-12-28 Thread Alex Gough
I've added a whole lot of string stuff, so that a repeat op can work. When writing tests (*cough*) for your pmc stuff, if they're specific to a given class, use or create a pmc_[classl].t file, so that the tests you're running to check your shiny new features run through fairly quickly. Alex

[commit] string boolean

2001-12-27 Thread Alex Gough
thousands of code points act as a minus sign. Alex Gough

parrot_assembly.pod

2001-12-19 Thread Alex Gough
? (And can they be renamed: set_eh - set_ehoh ?) Alex Gough

RE: [COMMIT] miniperl has been somewhat busy...

2001-12-18 Thread Alex Gough
pointer copy version. It fits nicely with the way perl passes parameters into subs (by reference). Alex Gough

untested ops

2001-12-11 Thread Alex Gough
ke_set_value_s_s_p ke_set_value_s_sc_p chop_key_s inc_key_s_i and_p_p_p or_p_p_p not_p_p Alex Gough

Re: parrot on VMS

2001-12-06 Thread Alex Gough
save and restore tests, as I used these in the macro which does fp equality. There are no tests yet for rotate and clone though. Alex Gough

Re: Various pre-0.0.3 updates.

2001-12-05 Thread Alex Gough
On Wed, 5 Dec 2001, Simon Cozens wrote: Since 0.0.3 is exceptionally imminent, can I have a roll-call of systems which are working and not working? FreeBSD 4.4 / gcc Irix6.5 / MIPSPro Alex

Re: Moving string - number conversions to string libs

2001-12-05 Thread Alex Gough
think we ought to be scanning for a float then turning the result into an integer (as 1234.56e2 is one). We'll also eventually need a string-BigNum and string-BigInt conversion, and if things are to upgrade gracefully and silently this might need to happen as the string is scanned. Alex Gough

Re: cvs commit: parrot/include/parrot encoding.h

2001-12-04 Thread Alex Gough
, nothing to see here, move along now. FLOATVAL string_to_num (struct Parrot_Interp *interpreter, STRING *s) { if (s == NULL) { return 0.0; } else { return s-encoding-extract_num(s-bufstart, s-bufused); } } Alex Gough -- I can't understand why people are frightened

Re: All aflame, but not a fire.

2001-12-04 Thread Alex Gough
[Tue, Dec 04, 2001 at 08:37:36AM -0500: Andy Dougherty] My cvs repository contained a file t/op/pmc.t. However, that files isn't included in MANIFEST. Is it supposed to be there? It should be in MANIFEST, and now is. I don't know if that will quiet the tinderclients though. Alex --

Moving string - number conversions to string libs

2001-12-03 Thread Alex Gough
The string to number conversion stuff should really be done by the string encodings... I think this is the right way to get this happening, comments? Alex Gough Index: string.c === RCS file: /home/perlcvs/parrot/string.c,v

Re: Moving string - number conversions to string libs

2001-12-03 Thread Alex Gough
On Mon, 3 Dec 2001, Simon Cozens wrote: On Mon, Dec 03, 2001 at 05:42:15PM +, Alex Gough wrote: The string to number conversion stuff should really be done by the string encodings... I think this is the right way to get this happening, comments? Looks like the right way to me. Could

Re: Alt. means of communication

2001-12-03 Thread Alex Gough
At 21:44 on 12/03/2001 EST, Bryan C. Warnock [EMAIL PROTECTED] wrote: Not to bypass the archival of email, but do we have an IRC channel for real-time discussions? Also: irc.rhizomatic.net (or one of their myriad other servers) #parrot Alex Gough

Ask not what tests can do for you...

2001-12-02 Thread Alex Gough
of these tests as it will be much easier to unperl them in the future. Also in aid of reducing future work could all tests be written with CODE and OUTPUT sections. Alex Gough

perlnum brokenness

2001-12-01 Thread Alex Gough
as an exercise for the interested reader. Alex Gough --

os2 hints

2001-11-29 Thread Alex Gough
I've managed to get parrot building and testing nicely on an os/2 box (thanks to Nick Burch). At the moment it needs gcc, make, bash and dynaloading libraries installed on the system. Alex Gough -- And if we tamper with our inheritance, so what? What is more ours to tamper with? What makes

abs ops

2001-11-29 Thread Alex Gough
I'd like some abs ops so I can make the fp tests better, does the attached patch do the right thing? I'll commit tomorrow if no one complains. Alex Gough -- http://users.ox.ac.uk/~shug0957/ Index: core.ops === RCS file: /home

RE: os2 hints

2001-11-29 Thread Alex Gough
On Thu, 29 Nov 2001, Brent Dax wrote: Alex Gough: # I've managed to get parrot building and testing nicely on an os/2 box # (thanks to Nick Burch). At the moment it needs gcc, make, bash and # dynaloading libraries installed on the system. # $c{iv} = long; # $c{nv} = double; # $c

String tests broken

2001-11-28 Thread Alex Gough
. More on that later though. -- Alex Gough -- http://users.ox.ac.uk/~shug0957/

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-21 Thread Alex Gough
register instead. Now all I need to do is figure out something to make S stand for that encompasses both uses. (Buffer pointer and generic pointer) The She went that way register? Sorry, Alex Gough

Re: [PATCHES] concat, read, substr, added 'ord' operator, and aSURPRISE

2001-11-10 Thread Alex Gough
. Alex Gough diff -ru parrot_orig/string.c parrot/string.c --- parrot_orig/string.cWed Oct 31 17:51:31 2001 +++ parrot/string.c Sat Nov 10 18:16:27 2001 @@ -83,6 +83,33 @@ return s-strlen; } +/*=for api string string_ord + * return the length of the string + */ +INTVAL +string_ord

Re: [PATCHES] concat, read, substr, added 'ord' operator, and aSURPRISE

2001-11-10 Thread Alex Gough
On Sun, 11 Nov 2001, Alex Gough wrote: (but not quite enough...) On Sat, 10 Nov 2001, Jeff wrote: string.pasm patches the operators mentioned The other file, 'parrot.pasm', is a miniature Parrot compiler, written in Parrot. The patches in the string.diff file are required to make

Re: Could someone write a test primer

2001-10-30 Thread Alex Gough
the plan = is updated and all the new tests have names. Alex Gough

Re: [PATCH] Making Win32 work

2001-10-26 Thread Alex Gough
). Alex Gough -- The grand old Duke of York, He had ten thousand men. But then again, you know how people talk.

Re: Windows compile problems

2001-10-24 Thread Alex Gough
]],interpreter-pmc_reg-registers[cur_opcode[3]],interpreter-pmc_reg-registers[cur_opcode[1]]); ^ Okay, can someone stop with the gcc-isms? Guilty again. But Alex Gough had a patch which fixed this, and I thought he committed it. I didn't. I'm avoiding things not in t/, although I

MIPSPro once more not happy

2001-10-23 Thread Alex Gough
errors detected in the compilation of classes/intclass.c. *** Error code 2 (bu21) Alex Gough -- The only man I know who behaves sensibly is my tailor; he takes my measurements anew each time he sees me. The rest go on with their old measurements and expect me to fit them.

Re: MIPSPro once more not happy

2001-10-23 Thread Alex Gough
On Tue, 23 Oct 2001, Simon Cozens wrote: On Tue, Oct 23, 2001 at 02:39:37PM +0100, Alex Gough wrote: Parrot_base_vtables[enum_class_int] = (struct _vtable) { This construct is a little dodgy, but I couldn't think of a better way to do it. Alex, could you try manually hacking it to use

Re: MIPSPro non happy bunny (IRIX64, IP30)

2001-10-19 Thread Alex Gough
On Thu, 18 Oct 2001, Gregor N. Purdy wrote: I believe this will resolve the problem. Too bad the GNU tools didn't complain at me here when I missed the 'extern'. Oh, well. This is healthy again. Alex Gough -- That one never has to vary G or introduce any fudge factors in order to fit

MIPSPro non happy bunny (IRIX64, IP30)

2001-10-18 Thread Alex Gough
) n 111 runops_generic(core, interpreter, pc); (gdb) n Program received signal SIGSEGV, Segmentation fault. 0x0 in ?? () I'm getting tired now, so someone else can inherit this headache. Alex Gough -- Tomatoes make you happy. Have you ever met a miserable Italian

Re: substr broken?

2001-10-16 Thread Alex Gough
On 16 Oct 2001, Brian Wheeler wrote: I'm getting some weird results when using substr. Here's my test program: It's probably something wrong with the constant table or the assembly phase, if the script is changed so that S1 is set to -, say, it does more what I expect. set

Re: substr broken?

2001-10-16 Thread Alex Gough
On Tue, 16 Oct 2001, Alex Gough wrote: On 16 Oct 2001, Brian Wheeler wrote: I'm getting some weird results when using substr. Here's my test program: It's probably something wrong with the constant table or the assembly phase, if the script is changed so that S1 is set to -, say

Re: [PATCH] content preserving register pushes

2001-10-08 Thread Alex Gough
.sig. The following have skipped tests in stacks.t: push_n_c push_i_c push_s_c as they were documented in doc/parrot_assembly.pod but the functionality wasn't written when I wrote the tests so you may want to call them after these. Then there's no tests to skip. yay. Alex Gough -- #!/usr/bin

Re: [patch] give Configure a policy

2001-10-07 Thread Alex Gough
On Sun, 7 Oct 2001, Andy Dougherty wrote: On Sat, 6 Oct 2001, Alex Gough wrote: I've modified Configure.pl to take defaults from a previous build (if there was one). This should play nicely with hints, and '--defaults' by doing the Right Thing. I've added a '--nopolicy' option to disable

[patch] give Configure a policy

2001-10-06 Thread Alex Gough
I've modified Configure.pl to take defaults from a previous build (if there was one). This should play nicely with hints, and '--defaults' by doing the Right Thing. I've added a '--nopolicy' option to disable this. Patch below sig. Alex Gough -- W.W- A little nonsense now

resend: [PATCH] chopn broken

2001-10-03 Thread Alex Gough
Chopn is broken for n 0, here a fix and tests. Alex Gough -- To have the reputation of possessing the most perfect social tact, talk to every woman as if you loved her, and to every man as if he bored you. ## Index: string.c

[patch] chopn Sx Ix et. al.

2001-09-29 Thread Alex Gough
in basic.t expected the wrong output. Alex Gough -- History teaches us that men and nations behave wisely once they have exhausted all other alternatives. ## diff -urN clean/parrot/basic_opcodes.ops parrot/basic_opcodes.ops --- clean/parrot/basic_opcodes.ops Wed Sep 26 20:00:00 2001

[patch] time.t, bitwise.t, noop tests

2001-09-24 Thread Alex Gough
) only following ops remain without tests: print_nc push_p pop_p clear_p These ops have tests, but are skipped due to problems or being broken: clear_s jump_i Alex Gough -- If you are not too long, I will wait here for you all my life. ### against a snapshot from a few hours ago (ish

Stack tests

2001-09-22 Thread Alex Gough
Some tests for stack operations, pushing and popping, except for pmcs. Suggest: t/op/stacks.t Alex Gough -- Hatred is the coward's revenge for being intimidated. # #! perl -w # Tests for stack operations, currently push_*, push_*_c and pop_* # where * != p. # Assembler code