run.
(although your counter is better than the rest of the program, (for ever
and ever, world without end, Amen))
however, rambling further:
On Sun, Aug 25, 2002 at 05:27:14PM +0100, Nicholas Clark wrote:
0: Default interpreter state is that
a: there are no loose objects with deterministic
loops immediately
(the ones perl5 misses) with a DOD run, or we could still do better than
perl5 by only guaranteeing to find them at some specified time later
(at DOD runs being one time we could specify)
All ways of doing deterministic destruction seem to have considerable
overhead.
Nicholas
library direct,
rather than having to emit PASM only for it to be re-interpreted.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
there be situations where an assignment to a PMC changes
the value of the register itself?
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
of a well-known format)
3: It ought to be easier than either (full) perl5 or (not yet fully written)
perl6
However, I confess I'm not sufficiently concerned about this to actually
try it. (There are too many things I still want to do with the perl5, it
seems)
Nicholas Clark
things.
(Everything else in Dan's message, which I read quickly, I agree with, at
least in overview)
Nicholas Clark
guessing, and for JIT
purposes I think only need to know about out1.
Nicholas Clark
out_reg P1, in P2
Nicholas Clark
at home is running
Linux on x86.
Nicholas Clark
from perl5-porters:
On Sun, Sep 08, 2002 at 09:47:24PM +0200, Rafael Garcia-Suarez wrote:
Nicholas Clark wrote:
Are we going to assimilate what parrot is doing in all its C files -
/*
* Local variables:
* c-indentation-style: bsd
* c-basic-offset: 4
* indent-tabs-mode: nil
, defaulting to
everything portable.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
for parrot private functions then we should use a private
header file. If we need prototypes for other people's missing prototypes then
we should do that in some sort of common header file.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
the new pointer, return the result.
If you hit the end, flag the hash as complete, return failure.
ex::lib::zip is using this approach to scan the directory of the zip file
its stuffed in INC on perl (5.8 or later). I don't know if it's faster, but
it feels nicer :-)
Nicholas Clark
trying. Do we have any official public LARTing policy on
braindead systems that mail back to the list?
[IIRC there was an NT VirusWall that was getting upset on p5p, thinking
that several lines in perlbug's output looked like buffer overrun attempts.
It also got very irritating]
Nicholas Clark
and obfuscators. And several that I met at YAPC::EU are
excited by the golfing and obfuscating possibilities of perl6. Be afraid)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
on the 15th. Did I miss
anyone else's birthday?
Not yet - but I almost did. :-) I only remembered at the airport yesterday
that it was my 30th birthday.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
of a chunked approach for
this.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
for anyone to work out how to respond to your heresy. :-)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
.
Nicholas Clark
(--cgoto=0)
ie run Configure.pm as
./Configure.pl --cgoto=0
You don't need to build the computed goto core to have a working parrot.
There are other (slightly slower at run time) cores it also builds.
Nicholas Clark
On Wed, Oct 02, 2002 at 03:46:33PM +0200, Leopold Toetsch wrote:
Nicholas Clark wrote:
On Wed, Oct 02, 2002 at 02:01:48PM +0200, Leopold Toetsch wrote:
+if (buffer-bufstart !(buffer-flags
+(BUFFER_COW_FLAG|BUFFER_external_FLAG))) {
+free(buffer-bufstart
decisions';
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
specify an encoding on its attachments, and my
copy of mutt takes a rather conservative view about what they might be.
I presume that that should be Leopold Tötsch
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
is better because it seems clearer, probably because it flows
more smoothly and eliminates some words (without changing the meaning)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
then added.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
built in full debugging support for befunge, isn't it?
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
431 b = (Buffer *)((char *)b + object_size);
2.) does it pass all tests
Yes. (well, no change - there's one failure I really must find tuits to
investigate, which I put down either to compiler or local hardware bug,
but your patch doesn't change that)
Nicholas Clark
--
Even better
whether a
special macro needs to be used.
(and any platform that can't cope with free(NULL) deserves to crash and burn)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
if they exist.
Nicholas Clark
of 60 things. divide by 60, take remainder; divide by 59, take
remainder; etc doesn't feel efficient at all. Is the correct answer
use more 'Knuth' ?)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
On Fri, Oct 11, 2002 at 05:01:49PM -0400, Dan Sugalski wrote:
At 9:02 PM +0100 10/11/02, Nicholas Clark wrote:
I would like to kill all generated variants of all the 3 argument opcodes
where both input arguments are constants. They truly are superfluous.
Where both operands are ints
/op/interp.dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 2
Failed 1/2 tests, 50.00% okay
is this to be expected? It's now the only regression test that fails under
the JIT. Previously I think several were, but I can't remember for sure.
Nicholas Clark
/ tree that aren't in MANIFEST.
Should something be done about them?
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
mailer, RT, or some combination that is causing this. Is your mailer using
format flowed? [this seems to be becoming increasingly common due to OS X]
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
below adds tests for the eq, ne, lt, le, gt, ge neg ops for
PerlInts and PerlNums.
Thanks, applied.
-use Parrot::Test tests = 72;
+use Parrot::Test tests = 79;
with fuzz (there were 4 more tests)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
On Mon, Oct 14, 2002 at 12:09:54AM +, Simon Glover wrote:
Here's a brief test for the PMC, PMC, PMC form of the sprintf op;
as an added bonus, it also tests two of the formats not previously
tested (%b and %o).
Thanks, applied
Nicholas Clark
--
Even better than the real thing
attached patch fixes this problem.
Thanks, applied
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
of case convention we should be
following, such as upper case for registers, and lower case for anything else?
Most of the patch is just prettification, from an English-language point of
view.
Thanks, applied
Nicholas Clark
--
Even better than the real thing:http://nms
non-x86. Well, it's definitely not *that*. :-)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
extraneous whitespace, so macros in included files weren't being
recognised as such.
4) Adds two tests for .include to macro.t
Thanks, applied
NB Patches attached rather than appended, in an effort to avoid mailer
mangling
Applied cleanly.
Nicholas Clark
it on the PPC Linux (well, GNU-know-who/Linux)
machine I have access to because several tests are already failing due to
va_args. [I don't really have enough viable access to do much more than run
tests there. It would be easier if I visited it in person]
I haven't committed it.
Nicholas Clark
On Thu, Oct 17, 2002 at 12:07:57AM -0700, Steve Fink wrote:
On Wed, Oct 16, 2002 at 09:19:45PM +0100, Nicholas Clark wrote:
On Mon, Oct 14, 2002 at 12:09:54AM +, Simon Glover wrote:
Here's a brief test for the PMC, PMC, PMC form of the sprintf op;
as an added bonus, it also tests
On Sat, Sep 07, 2002 at 04:39:52PM +0100, Nicholas Clark wrote:
Here are logical shift right opcodes for the ARM jit.
(Cargo cult coding)
Thanks, applied
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org/advocacy/spoofathon/
On Mon, Oct 21, 2002 at 04:54:48PM -0400, Dan Sugalski wrote:
At 9:27 PM +0100 10/21/02, Nicholas Clark wrote:
On Mon, Oct 21, 2002 at 03:18:37PM +0200, Leopold Toetsch wrote:
I'm currently committing the new splice vtable method for array classes.
And finally, PMCs are currently only
or +1
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
how to parse regexps to get the address out,
are you going to start using pathological expressions with greedy matches
inside nested captures that will tie them up until the heat death of the
universe?
:-)
Nicholas Clark
--
Befunge better than perl? http://www.perl.org/advocacy/spoofathon/
to mmap read
only was very useful, for the reasons you describe.
I wasn't aware that the bytecode format had changed sufficiently to
preclude mapping the whole file in read only (even if the current reader
doesn't do this), but I admit that I've not been following changes closely.
Nicholas Clark
, but presumably it does matter to someone for some reason important
to them, otherwise it would never have become significant enough to need this
explicit clarification.)
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
as a string in the string constant pool?
Nicholas Clark
--
Befunge better than perl? http://www.perl.org/advocacy/spoofathon/
when necessary.
I've had 3 drafts at responding to this, and I conclude my brain hurts
I don't see an obvious clean solution to this, specifically 64 bit ops
that run correctly on 32 bit native systems, but take advantage of 64 bit
native systems.
Nicholas Clark
with this.
Nicholas Clark
I added a local to $_ in t/src/manifest.t to avoid an undef warning in
5.005_03's File::Find
Nicholas Clark
--
Befunge better than perl? http://www.perl.org/advocacy/spoofathon/
have header and trailer asm statements that are
actually just assembly language comments with marker text that gcc passes
through undigested. This would let us annotate the assembler output of gcc)
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org/advocacy/spoofathon/
.
Then we can make them all DTRT everywhere, I think... either with our
without atexit().
If this (Parrot_exit/Parrot_on_exit) is a reasonable way to do things, I
can probably come up with a patch later this week, if nobody else jumps on
it ;-)
I'm not jumping. Sorry.
Nicholas Clark
PS Yes
it) is that float 0.0 and double 0.0 are written as all bits zero in memory.
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org/advocacy/spoofathon/
On Sun, Nov 10, 2002 at 12:15:06PM +0100, Leopold Toetsch wrote:
Leopold Toetsch wrote:
Nicholas Clark wrote:
It's not likely to be a portability problem,
To NULL or not to NULL, this is the question.
I introduced a macro, depending on a symbol HAS_NON_ZERO_NULL, which
should
parser
precompiled. It also means that we must be careful to prevent the compiled
perl6 parser becoming trojaned (as cc and login reportedly were on early unix
systems). Yes, I've only thought of this because of the recent tcpdump
trojan. But I think it's something we need to bear in mind.
Nicholas
the jitted code executes as usual.
This sounds horribly like the C rule of don't rely on automatic variables
after the return from longjump.
No. I don't have an answer.
Nicholas Clark
) that the JIT exception handler uses to
restart. I'm making the assumption that exceptions can happen in many places,
but rarely do, so we can ill afford to make the direct code slower to cope
with them, and that it doesn't matter if it takes a lot of effort to handle
them when they happen.
Nicholas Clark
the least confusing way round. At worst parrot assembler and the
JIT share the same ordering, and the platform's native assembler is the other
way. At best all three are the same way round.
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org/advocacy/spoofathon/
/
...
-- c
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
I know how to do it]
Floating point fills me with fear.
Nicholas Clark
--
Befunge better than perl? http://www.perl.org/advocacy/spoofathon/
) if the perl is built
with NVs as long doubles. (ie -Duselongdouble at Configure time)
The long vaunted plan to actually make everything that outputs bytecode use
one C library (with a perl interface) might be a better way to properly
solve this.
Nicholas Clark
.
Is there any speed advantage in truncating by casting via a C type
[eg a = (int)(short) b]
rather than and on a bitmask
[eg a = b 0x]
?
We're going to have to do that latter to make it work on Crays anyway, so is
a conditional compile to chose between the two worth it?
Nicholas Clark
On Mon, Nov 25, 2002 at 11:29:01AM -0500, Dan Sugalski wrote:
At 4:04 PM + 11/25/02, Nicholas Clark wrote:
Is there any speed advantage in truncating by casting via a C type
[eg a = (int)(short) b]
rather than and on a bitmask
[eg a = b 0x]
?
We're going to have to do
On Mon, Nov 25, 2002 at 04:39:23PM +, Nicholas Clark wrote:
And we ought to make a generic safe version of the code for signed
truncation that works for platforms that are any or all of the following
holds
1: no type of that size (eg Crays)
2: signed integer truncation (UTS) [and other
On Mon, Nov 25, 2002 at 05:40:36PM +0100, Leopold Toetsch wrote:
Nicholas Clark wrote:
I'm surprised that you did your regression tests longhand, rather than having
a data table in perl of input and expected output, and auto-generating parrot
code.
Writing a few explicit tests
? Fundamental implementation constraints (using
zero to flag something else?) This will impact performance, although
whether it's not actually measurable, slight, or moderate, I don't know.
[patches welcome?]
Nicholas Clark
to be the scratch
register. The way the ABI works, with r12 trashed on function call entry,
but r0 used to return values from functions means that r12 is available
within an op, while mapping r0 to a parrot register for the first JITted
op after an external call could save 1 register move.
Nicholas Clark
this? [assuming it does want to be done?]
Nicholas Clark
On Fri, Nov 29, 2002 at 10:14:39AM -0800, Robert Spier wrote:
Nicholas Clark writes:
This seems to be a good idea. I'd commit it, except that it needs more
than commit access to move a directory with CVS. Who has enough shell
access to cvs.perl.org to do this? [assuming it does want
, dumping the playfield, status line, and
even more... How exciting!
Er, how scary.
Nicholas Clark
(in which case it can break the mapping). [With the corollary that
if the values in them are re-used, then clearly the mapping must continue]
So I think it would be sensible to defined that you can rely on this, as it
is the least surprising behaviour.
Nicholas Clark
--
Brainfuck better than perl
On Mon, Nov 25, 2002 at 05:40:36PM +0100, Leopold Toetsch wrote:
Nicholas Clark wrote:
Is there any speed advantage in truncating by casting via a C type
[eg a = (int)(short) b]
rather than and on a bitmask
[eg a = b 0x]
?
gcc uses MOVSX (movs{b,w}l), move byte/word with sign
.
Nicholas Clark
with a
configure generated Makefile (so that $(PERL) is set correctly)
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org/advocacy/spoofathon/
in the
perl foundation.
Nicholas Clark
and this isn't valid
This is more a perl6 language message, isn't it? If it can't quickly be
quashed, should it migrate there?
Nicholas Clark
--
Befunge better than perl? http://www.perl.org/advocacy/spoofathon/
opcode translation (at load time or runtime)
A z-code interpreter (based on the two previous items)
Implementation of an existing general purpose scripting language on parrot
(such as Python or Ruby)
I may have forgotten some things :-)
Nicholas Clark
--
INTERCAL better than perl? http
. Then, once
he's done the zmachine loader and got a zmachine opcode set up and
running...
and then all get digressed into playing http://astray.com/Bookshop.z5
(see
http://london.pm.org/pipermail/london.pm/Week-of-Mon-20010924/005441.html
)
Nicholas Clark
)
Nicholas Clark
--
INTERCAL better than perl? http://www.perl.org/advocacy/spoofathon/
-Firebird (Test
+Failed),
*percy* TD-Continental (Burning), TD-Ferrari (Test Failed), TD-Celica (Test
+Failed),
*percy* glastig (Test Failed), TD-Seville (Test Failed), galactic-tcc
+(Burning), frivolous (Test Failed),
*percy* galactic-lcc (Test Failed)
Nicholas Clark
libnci.so not found
# '
# expected: 'loaded
# dlfunced
# ok 1
# ok 2
# ok 3
# ok 4
# '
# Looks like you failed 2 tests of 11.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 10-11
Failed 2/11 tests, 81.82% okay (-9 skipped tests: 0 okay, 0.00%)
]
Nicholas
a
UTF8 character may occupy up to three bytes.
Should that really be the number 3? I thought that the UTF8 representation of
code points outside the base Unicode plane could get longer than that.
Nicholas Clark
language question]
Also, is the first of these a bug?
$ ./perl6 -e 'print 3/undef; print \n'
Can't call method tree on an undefined value at ./perl6 line 342.
$ ./perl6 -e 'print 3/$n; print \n'
Inf
Nicholas Clark
to.
Nicholas Clark
no qr because we want 5.004.
Nicholas Clark
can't use it while offline.
Nicholas Clark
think it's needed for the hack of
mapping a function pointer to a data pointer and back.
Is the tendra compiler free? I've tried to find it before, but couldn't
manage to get a functional download URL.
Nicholas Clark
1: except HP's FORTRAN 77 compiler sets all unitialised values to 0, which
has at least one free
slot maintained at all times. If the pinning routine finds it is about to
fill the free slot, then it pins the thing passed in, and immediately allocates
more space. This might trigger GC, but it's safe as everything is pinned :-)
Nicholas Clark
stringbug6.pbc
P0 is 1.3e5, N0 is 0.00
what would your response be? :-)
[if I remove either the set N1, or the sub N2, the answer is correct in the
JIT]
Nicholas Clark
threads book. I take it that makes me
a fully qualified l33t threads d00d who knows everything.
How much of a speed impact could it be to serialise DOD runs between threads?
Presumably 1 thread doing a DOD run could actually manage to free up enough
memory to make both happy?
Nicholas Clark
On Mon, Dec 30, 2002 at 05:24:56PM +, Jerome Quelin wrote:
Upon general (ahem) request, the befunge interpreter now supports
breakpoints inside the debugger.
Thanks, applied
Nicholas Clark
are in constant memory, how do we efficiently create
singleton objects?
Nicholas Clark
On Mon, Dec 30, 2002 at 11:45:19PM +, Nicholas Clark wrote:
Indeed. However, when I tried compiling my Ook! test program:
I got this:
Label KOO1_2 already exists at ../../assemble.pl line 557.
(admittedly from a pre-built parrot that is about 2 weeks old)
Also on a clean checkout
On Tue, Dec 31, 2002 at 06:18:36PM +0100, Jerome Quelin wrote:
Nice to see how dummy languages make the whole stuff advance... :o)
Then there's the zcode interpreter...
(dynamic opcode library loading, foreign bytecode translation)
Nicholas Clark
. And as we're now letting gcc make
aliasing based optimisations, we might see more speed. (And maybe unicorns,
flying pigs, and round tuits)
Nicholas Clark
--- config/inter/progs.pl~ Fri Oct 25 11:23:17 2002
+++ config/inter/progs.pl Tue Dec 31 21:18:24 2002
@@ -15,6 +15,7 @@ sub runstep
: the Ook! language.
On Tue, Dec 31, 2002 at 06:15:43PM +0100, Jerome Quelin wrote:
Oh, btw. This patch assumes the first Ook! patch is already commited.
Thanks, both applied
Nicholas Clark
off into a
refcount loop. In which case they will get spotted at some point probably
before program exit, compared with perl5 which only spots them if your
program exits]
Nicholas Clark
?
For a bug report that alone ought to sent it over the spam threshold
Nicholas Clark
201 - 300 of 800 matches
Mail list logo