[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
, 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
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 +
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
. 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.
???? ??
This might be bignums, which I've been a bit too busy to finish and
commit
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
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
data structure.
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
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
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';
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.
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
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
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
careful about testing PerlUndef once we've added warnings in.
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
] or TODO_NOW or TO_REALLY_DO or JFDI or something.
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
) 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
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
On Mon, 21 Jan 2002, Nicholas Clark wrote:
Before:
lots.
After:
less.
Applied, thanks.
Alex Gough
On Mon, 21 Jan 2002, Nicholas Clark wrote:
This eliminates many gcc warnings from pmc code by
Applied, thanks.
Alex Gough
strings.
KR says that this is an OK thing to do.
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
being a bit obscuring at present.
Alex Gough
the needed changes.
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
in
strings, failing tests now applied.
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
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
) {
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
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
thousands of code points act as
a minus sign.
Alex Gough
? (And can they be renamed: set_eh - set_ehoh ?)
Alex Gough
pointer copy version. It fits nicely
with the way perl passes parameters into subs (by reference).
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
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
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
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
, 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
[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
--
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
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
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
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
as an exercise for the
interested reader.
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
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
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
. More on that later though.
--
Alex Gough
--
http://users.ox.ac.uk/~shug0957/
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
.
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
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
the plan = is updated and all the new
tests have names.
Alex Gough
).
Alex Gough
--
The grand old Duke of York,
He had ten thousand men.
But then again, you know how people talk.
]],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
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.
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
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
) 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
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
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
.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
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
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
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
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
) 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
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
71 matches
Mail list logo