[Tue, Aug 03, 2004 at 07:45:57PM +0100: Nicholas Clark]
On Tue, Aug 03, 2004 at 03:09:02PM +0100, Leon Brocard wrote:
Dan Sugalski sent the following bits through the ether:
If someone's tempted to do 3) Write our own Unicode system, I'm OK
with that too. The string internals doc
[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 +
.
Are we allowing bytecode compiled under an earlier version to continue
working on a later version of the interpreter, as the answer to that
question pretty much limits where the line has to be drawn.
Alex Gough
was more
useful for the big number library than any other form.
Alex Gough
--
Dear Mary,
I yearn for you tragically.
R. O. Shipman, Chaplain, U.S. Army
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
, remember?
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.
???? ??
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 Tue, Feb 26, 2002 at 10:57:45AM +, David Chan was heard to mutter:
On Fri, Feb 22, 2002 at 03:08:58AM +, Alex Gough wrote:
=item Division
Under integer conditions, division is halted once the first fractional
digit is calculated, with the result then being rounded
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
16M ram and by default 37M swap. But I don't think
On a slightly more beefy FreeBSD 4.5 box I'm seeing cc1 grow to a little
more than 50M (with -Os), which is indeed a walk on the wide side.
Alex Gough
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
This is a slightly confused first attempt at a pdd. I'll start to add
extra details over the next couple of days.
Is 8 the right number? And can someone who knows how fix the ones in
the repository to have more meaningful file names?
Alex Gough
On Mon, 18 Feb 2002, Buggs wrote:
Index: docs/pdds/pdd6.pod
Yuck! Can we not have 01_parrot.pod or something we can spot from
a distance?
I'll fix up bignum pdd-ness once I'm a bit less busy, which may not be
for a week or so.
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
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
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
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
) {
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
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
--
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
or the tinderbox.
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
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
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'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
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
doubles.
and if labs() isn't C89 we can't even safely do IV is long]
I think it makes sense to do what simon says, as this way the size of
FLOATVAL and INTVAL can be bigger than double/long and everything will still
work without any changes.
Patch the second attached.
Alex Gough
--
All progress
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
of expected output.
[0] Someone mentioned something about this confusing the line endings
in win32, which will cause erroneous test failures, I might look at this
as well.
Alex Gough
on Tru64/Irix/HP-UX/AIX check this out and give it a whirl?
Irix happy. (w/ MIPSPro and gcc).
Alex Gough
the evil modem monster.
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
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
70 matches
Mail list logo