ks) to a case
sitting somewhere on someone else's permanent connection. Except that then I
can't use it while offline.
Nicholas Clark
s choking on removing the
intermediate (unsigned long) cast? I 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: e
a dynamic list of such objects, provided it always 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
:
$ ./parrot stringbug6.pbc
P0 is "1.3e5", N0 is 13.00
$ ./parrot -j 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
ally 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
o
that we can create shorter vtables for values, such as values in aggregates?
Or is this vtable just for variables?
Also, if vtable pieces are in constant memory, how do we efficiently create
singleton objects?
Nicholas Clark
ok. Ook. Ook.
Ook. Ook? Ook. Ook? Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook? Ook.
Ook? Ook. Ook? Ook. Ook! Ook! Ook? Ook! Ook. Ook? Ook! Ook. Ook? Ook.
Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook? Ook. Ook! Ook.
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)
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
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
what breaks". So far nothing, at
least for a test build on Debian/x86. 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 200
fit from Parrot's speed), here's a new
> language supported by Parrot: 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
eir destructor called at the
correct time, unless you've been silly enough to send them 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
ONG_LINE
> version=2.43
There's no test for sent-from-a-formmail script?
For a bug report that alone ought to sent it over the spam threshold
Nicholas Clark
there is no stackwalking?
ie user code has to have the discipline either to have things linked to the
root set by the time it makes a parrot call or explicitly disable DOD across
such a call.
(or to explode in a cloud of feathers)
Nicholas Clark
em would need to know the ABI for
each platform you wanted to do this on.
But if anyone has tuits, could we have a z-code interpreter first please?
Or better still, a unified, fast, assembler?
(with a pony?)
Nicholas Clark
On Sat, Jan 11, 2003 at 06:34:56PM +0530, Gopal V wrote:
> If memory serves me right, Nicholas Clark wrote:
> > fussy. I presume Rhys is thinking about compiling C code to parrot, and then
> > linking through to native C code (such as the native standard C library) via
> &g
luck that I (well Richard) had 2.3.1
on them.
Nicholas Clark
ag? And with the various align functions, such as
-falign-jumps ?
Nicholas Clark
'm speaking personally here - other people working on parrot
probably have much less selfish views on Win32)
Or have I misunderstood all this?
Nicholas Clark
quot; (of which I'm one)) right now to play
with benchmarking, but setting alignment to 16 bytes did seem to make perl
run the regression tests more quickly.
Nicholas Clark
they meant. The upside is that there would
be no confusion with every other language's contradictory definitions.
Nicholas Clark
okup - when you create one of these pointers it's
actually lazy, pointing to the "lookup" code, and the lookup is really only
done the first time you call it.
Am I rambling too much?
Nicholas Clark
On Mon, Jan 13, 2003 at 09:22:07AM -0800, Steve Fink wrote:
> On Jan-12, Nicholas Clark wrote:
> > IIRC Leo added an option to Configure.pl to turn on optimising.
> >
> > Prior to this, on IRC Dan said to me that we need to avoid the hack that perl5
> > found itself i
use fabs, fabsf, fabsl
(or work around absence of fabsf and fabsl), and abs, labs, llabs
(and work around the last one being missing)
We could make the call that we're not going to work around missing long
double functions - if you ain't got 'em, we refuse to Configure for that size.
Given that if you don't have fabsl, you probably don't have more tricky
functions such as sqrtl, modfl or atan2l
Nicholas Clark
treetmap.co.uk/
Which is useful, as they let you look up locations by postcode, OS grid
reference and lots of other things. I await to see how many people this
is useful for.
Nicholas Clark
rticular binary's layout?
I guess in future once the normal JIT works, and we've got the pigs flying
nicely then it would be possible to write a Not Just In Time compiler that
saves out assembly code and relocation instructions.
Bah. That's "parrot -o foo.o foo.pmc" isn't it?
Nicholas Clark
gt; code)
For an interpreter that is allowing eval (or a namespace that isn't locked
against eval) I think that you could only GC the old definition of redefined
subroutines, and any anonymous subroutines that become unreferenced.
Anything else is the potential lucky destination of a random future eval.
Nicholas Clark
On Sat, Jan 25, 2003 at 10:26:22AM +0100, Leopold Toetsch wrote:
> Nicholas Clark wrote:
> >Also some way of storing a cryptographic signature in the file, so that you
> >could compile a parrot that automatically refuses to load code that isn't
> >signed by you.
&g
ytecode segments, and then the first time someone attempts
a require POSIX; it fails because the perl6 DynaLoader can't dlopen
POSIX.so? (And by then we've done our could-have-been-plain-loaded
mmaps, so it's too late to adapt)
Nicholas Clark
oesn't mean that I have to like it.
Nicholas Clark
e.
Also I can't work out how to search the list archive at develooper.com.
Nicholas Clark
r)
I'm quite happy to search the archives with google, providing I can
work out the correct special gizmos in the search string to limit it
to URLs down the correct path on the specific host.
Nicholas Clark
can be
released together. Maybe they should even be in the same bit of allocated
memory, so that locality helps caching and VM performance.
Nicholas Clark
packfile that used to have this, so
I presume that the unimplemented wordsize transforms were implemented at
some point in the past 9 months. :-)
Thanks for the patch. Sorry we never got to use it.
Nicholas Clark
ct yourself. How can their be multimethods, if only
one method named "foo" is allowed per object? (And should I read "object"
as "[object's] class" in the general case?)
Or am I confused - are multimethods actually subroutines, and hence not part
of a class?
Nicholas Clark
The summary reminded me I had a question still
On Thu, Jan 30, 2003 at 08:42:34AM +0100, Leopold Toetsch wrote:
> Nicholas Clark wrote:
> >If I understand you correctly, every time an eval happens, more code is
> >created, and that code's associated constants are appe
/number_1.pasm
$ make pdump
$ pdump -h n.pbc
$ mv n.pbc t/native_pbc/number_$(N).pbc
# then
# - increase number of tests
# - include the pdump header info for reference
# - put the file into MANIFEST
# - add the file as binary and commit it
# thanks -leo
Nicholas Clark
e not
written JITted versions of. The sections with the loops are converted to
native code, and the rest of the ops still gets the benefit of your sterling
efforts at improving the "regular" bytecode dispatch.
Nicholas Clark
+44,7 @@
if $I0 <= 1 goto fin
dec $I0
$I1 = $I1 * $I0
- bsr fact
+ bsr _fact
fin:
save $I1
- End forwarded message -
all the "save $" are spam :-)
Nicholas Clark
On Tue, Feb 11, 2003 at 10:49:14AM +0100, Leopold Toetsch wrote:
> Leopold Toetsch wrote:
>
> >Nicholas Clark wrote:
>
> >>Inside a cgoto core have 1 extra op - enter JITted section.
>
> >Or go the other way round: Run from JIT. If there is a sequence of non
&
On Thu, Feb 13, 2003 at 04:43:37PM +0100, Leopold Toetsch wrote:
> Nicholas Clark wrote:
> > The idea actually works at all?
>
>
> I have it running now.
Can you write an opcode that solves the halting problem? :-)
> JIT/i386 uses the stackframe of CGP for its own. When t
On Thu, Feb 13, 2003 at 06:34:55PM +0100, Leopold Toetsch wrote:
> Nicholas Clark wrote:
>
> >On Thu, Feb 13, 2003 at 04:43:37PM +0100, Leopold Toetsch wrote:
> >>Should I commit it or send to the list first?
> >>
> >
> >I don't know. Are you confid
On Fri, Feb 14, 2003 at 03:45:20PM -0500, Dan Sugalski wrote:
> The challenge system is x86 Linux with GCC, FWIW. I have this nagging
> feeling we'll be able to muster something that'll run on it... :)
Are we free to use whichever runops core we feel like?
Nicholas Clark
will attempt
to run in this more if possible.
Does the -a flag on imcc mean that we can run without the macros, and hence
run faster?
Nicholas Clark
On Sun, Feb 16, 2003 at 06:54:28PM +0100, Juergen Boemmels wrote:
> Nicholas Clark <[EMAIL PROTECTED]> writes:
>
> > On Sat, Feb 15, 2003 at 12:10:11PM -0500, Dan Sugalski wrote:
> > > I'd half-wondered if this would ever come up.
> > >
> > >
from (say) loop alignment helps
measurably.
Although I suspect that anyone with time to do this would be better spending
it making better benchmarks.
Nicholas Clark
with -march=... -fomit-frame-pointer
-ffancy-math -fuse-lots-of-resources-go-very-fast -fsacrifice-more-goats
-fsummon-cthulu-if-that-helps as root at nice -20, preferably in single
user mode and jumps should be aligned on pentagrams, not 8 byte boundaries.
Definitely not use debugging :-)
Nicholas Clark
nce
include/parrot/jit_emit.h:2349: for each function it appears in.)
*** Error code 1
And if I don't disable cgoto I run out of swap. :-(
I've got 96M of swap, which happens to be enough to build world, perl and
gcc 3.2
I've not tried X yet :-)
Nicholas Clark
On Thu, Feb 20, 2003 at 09:45:49PM -0500, Simon Glover wrote:
>
> On Thu, 20 Feb 2003, Simon Glover wrote:
> >
> > On Thu, 20 Feb 2003, Nicholas Clark wrote:
> >
> > > If I
> > >
> > > perl Configure.pl --cgoto=0 && make all test
> >
On Fri, Feb 21, 2003 at 08:34:05AM +0100, Leopold Toetsch wrote:
> Nicholas Clark wrote:
>
> >If I
> >
> >perl Configure.pl --cgoto=0 && make all test
> >
> >then the build fails with:
>
> We need to sort out different cases:
> 1) $cc doesn
> guess.
I agree that the bitmasked savesome/restoresome would be less simple.
I suspect that a butmasked version would JIT very nicely.
Since when did parrot trade simplicity for speed?
Nicholas Clark
e to abort (or something more colourfully "undefined") if anything
undefined gets executed. I realise that code would run very slowly, but it
would be a very very useful debugging tool.
Nicholas Clark
On Sat, Feb 22, 2003 at 08:44:12PM -, Rafael Garcia-Suarez wrote:
> Nicholas Clark wrote in perl.perl6.internals :
> >
> >> > r->score = r->use_count + (r->lhs_use_count << 2);
> >> >
> >> >r->score += 1 << (loop_dept
t; 32)'
linux
4321
1
So there's actually no difference in the numbers. But as I'm being a pedant I
ought to get the facts right. [I guess it's my fault for drinking Australian
wine :-)]
Nicholas Clark
On Sat, Feb 22, 2003 at 12:31:09PM +0100, Leopold Toetsch wrote:
> Nicholas Clark wrote:
>
> >On Fri, Feb 21, 2003 at 08:34:05AM +0100, Leopold Toetsch wrote:
>
> >>Case 2) should disable only core_ops_cg.c but not core_ops_cgp.c
> >>
> >
> &g
ist archive) but what remains to be done before
we can use imcc rather than assemble.pl as the default assembler for the
regression tests? imcc is a lot (>20 times) faster.
Nicholas Clark
approaching native machine code
if you want speed. Or maybe if you want the latter we save "fat" bytecode
files, that contain IMC code, bytecode and JIT-food for one or more
processors.
And is this all premature optimisation, give that we haven't got objects,
exceptions, IO or a Z-code interpreter yet?
Nicholas Clark
On Tue, Feb 25, 2003 at 11:58:41PM +0100, Leopold Toetsch wrote:
> Nicholas Clark wrote:
[thanks for the explanation]
> > And is this all premature optimisation, give that we haven't got objects,
> > exceptions, IO or a Z-code interpreter yet?
> And yes: We don't hav
gt;
>
>
> The attached patch is to stop compilier warnings in jit.c. The local
> variables i and typ are declared but never used in the function
> make_sections.
It looks like you didn't attach this patch, as it's not got to the mailing
list, nor is it in RT. The patches on t
urrently implemented, the upper layer calls my flush method
(from its flush method) every time it empties its buffer. But it also might
call flush when it really wants interactive data passed on in a timely
fashion. So should I drop the compression off every time I get flushed? Or
was it crying wolf?
Oops. This turned into a ramble. "flush" ne "sync". If both are needed in
different places, provide both as distinct methods.
Nicholas Clark
t having to read tedious e-mail messages from
people about the subject)
Nicholas Clark
macros no longer needed but kept for source
compatibility cluttering up our header files.
There might be some more rules to try to stick to, but they were the 3 that
were obvious to me.
As these are code generated, are we able to conditionally write these out as
inline functions? This would make debugging easer.
Nicholas Clark
stpractical.com/rt/
which ought to be helpful if you're interested more in RT itself, rather
than the fact that it happens to be written in perl.
Nicholas Clark
he current repositories, is there?
Setting a svn:external property in the right place on both Parrot and Pugs
would mean that both could check out the same testsuite, and both could
commit back to it.
Nicholas Clark
ier to audit different committer bit policies
if the repositories were different, instead of simply one being a subtree of
another. That was all.
Nicholas Clark
legal for the endianness of the word order in memory to differ
from the endianness of the byte order within those words.
Nicholas Clark
n't
have the option to mail in plain text. See
http://nick.hates-software.com/2004/06/30/33b6b8a1.html
for a description of the problem (contains profanity, as does quite a bit of
that site). Sadly for some mailers attachments are the only way to go.
Nicholas Clark
s until
load time. Or maybe it doesn't call them "constant" as far as bytecode
interpretation goes, but any JIT or AOT can see that they are, and treat them
accordingly.
Nicholas Clark
to be capable of achieving "compile time"
class generation?
Nicholas Clark
and having an extra
> attribute specifiable on PMCs like "auto_keyed" (uh, somebody please
> think of a less naff name) that generates missing keyed methods for
> those PMCs that want them.
To me that feels like a hack. The current rather-too-static dispatch (to me)
seems to be the bug, and the thing that needs fixing.
Nicholas Clark
ft missed a trick in that their folks on the C standardisation
committee could have re-drafted the standard to allow 3 or 2 digit exponents,
instead of just 2, and made this non-buggy)
> any case, how does the Perl test suite not fail on Win32?
As to a useful answer, er, I don't know. Sorry.
Nicholas Clark
trunk/lib/Test/Builder.pm
>
> Log:
> [EMAIL PROTECTED]: cochrane | 2006-11-17 09:46:39 +0100
> [lib] Converted 2-arg form of open() to 3-arg form.
Are you sure you want to do this to bundled external files?
Nicholas Clark
tory, and ICU is C++, so using g++ as the linker means that
all the C++ runtime libraries come in correctly)
Nicholas Clark
have the same
standard. (assuming that you're meaning to set the defaults for C and Perl
formatting modes, rather than to use custom parrot-mode variants)
Nicholas Clark
On Tue, Dec 19, 2006 at 01:08:14PM -0800, Allison Randal wrote:
> Nicholas Clark wrote:
> >On Tue, Dec 19, 2006 at 10:05:46AM -0800, Allison Randal wrote:
> >
> >>to every source file, and a maintenance burden. Both vim and emacs allow
> >>top-level settings of t
On Tue, Dec 19, 2006 at 04:30:08PM -0800, Allison Randal wrote:
> Nicholas Clark wrote:
> >
> >To seek clarification - having those as global settings for cperl isn't
> >likely to be an issue? Or having them in editor blocks?
>
> I meant globally.
Ah. There ha
be fab for ensuring portability :-(
I would think that Sparc Solaris, building 64 bit, would be the best single
target to aim for to increase portability spread.
Nicholas Clark
On Wed, Jan 03, 2007 at 10:19:23PM +0100, Leopold Toetsch wrote:
> Am Mittwoch, 3. Januar 2007 16:43 schrieb Nicholas Clark:
> > I would think that Sparc Solaris, building 64 bit, would be the best single
> > target to aim for to increase portability spread.
>
> During the la
ve failed tests before it was checked in?
I'm not convinced that allowing slop in expected output is a good idea.
It introduces (more) complexity into the tests, which increases the chance
for false positives (errors in the tests reporting themselves as failures,
distracting developers) and false negatives (tests not spotting real errors)
Nicholas Clark
5 core tests are robust against SEGVing the interpreter
or hitting abort()
Nicholas Clark
tive value happens to be the
errno value. The POSIX threads API avoids conflating value returns with
error returns by specifying that the return value is
success-or-positive-errno, but again it's avoiding anything out of band,
or seemingly-out-of-band.
Nicholas Clark
t I
> may or may not be successful).
HP already provide access to many things, but not Tru64:
http://www.testdrive.hp.com/
Nicholas Clark
re in writing tests in
Perl 5.
> Is the assumption that skipping a single test with a message is more
> common than skipping a number of tests without a message?
This is my guess too. Probably need to as Schwern to find out the original
(Perl 5) reason.
Nicholas Clark
am pmc adverbs :slurpy :named
> +
> +.local string position, target
> +.local pmc stages
> +stages = getattribute self, '@stages'
> +
> +$I0 = exists adverbs['before']
> +unless $I0 goto next_test
> + position = 'before'
What happens if you add a stage with the same name as an existing stage?
Is ambiguity acceptable?
Nicholas Clark
On Fri, Feb 16, 2007 at 12:42:24AM +0200, Allison Randal wrote:
> Nicholas Clark wrote:
> >
> > What happens if you add a stage with the same name as an existing stage?
>
> It gets added twice. You might repeat a stage like "optimize_tree" or
> "displa
March,
which suggest that the timing is going to be different this year.
Nicholas Clark
- Forwarded message from LH <[EMAIL PROTECTED]> -
From: "LH" <[EMAIL PROTECTED]>
To: "Summer-Admin-Announce-2006" <[EMAIL PROTECTED]>
Subject: GSoC 2007 is ON!!!
Date:
be on Linux,
would it be viable to make the default with gcc to be "-g -O2"?
Either way could try to skew third party benchmarks (and the unpublished
private benchmarks we don't even know about) in Parrot's favour.
Nicholas Clark
#x27;s
> too complicated anyway so it may not matter. Anything for that
> hundredth of a second, right?
The counter to that is that if one can arrange for the compiler to do as
many (legitimate) yak shaving optimisations as possible, it frees the
programmer's time up to increase funct
every type ending _t, but it seems that few pay
attention to that either.
Nicholas Clark
are ordered the Perl 5 way, they flatly contradict
the guarantee of C3.
It might be that I'm confused, misremembering or undercaffeinated.
Nicholas Clark
er. (Or, immediately copied to a machine that does have
outgoing mail enabled, or won't reveal your work e-mail address, or whatever)
Nicholas Clark
he e-mail address is clearly advertised.
But this isn't my call here.
Nicholas Clark
x27;ll apply
> this tonight if no other Win32ers beat me to it. :-)
I don't disagree with that longer term plan.
On that subject, I remember 10 years ago so so, network drives on MS DOS named
ux: and uy:
Are 2 letter drive names still valid? Do they confuse most code?
Nicholas Clark
faster than the loop without strchr probably depends on whether
the compiler inlines strchr(), whether the optimised version is efficient
on non-word aligned strings, and whether the optimised version doesn't have
a higher start cost. Either is better* than the current, and I don't ha
}
being a fairly good minimal example. I think that it's legal C++ too.
IIRC
main;
was found to be the shortest portable crash. :-)
Nicholas Clark
tal error?
Nicholas Clark
es me. Solaris is usually very clean and well engineered throughout)
Can Intel or Sun's compilers be coaxed into being suitably grumpy about this?
If so, do we have a machine capable of smoking them?
And is it viable (or good) for parrot smoke failures to reach this list, much
like most people configure their Perl 5 smokers to send the black smoke to
p5p?
Nicholas Clark
ur smoke system
Most Perl 5 smoke systems report the bad tidings of black smoke to
perl5-porters. I've never noticed a failing Parrot smoke report to this list,
so I infer that they aren't set up this way. Would changing that help focus
minds?
> and i'm not inte
g long.
My hunch is that commas at the end of enumerated lists is likely to be
something that will hinder portability, whereas the world is resigned to
long long.
[I say resigned, because "long long" breaches one of the axioms of C89, that
"long" is the longest integer type]
Nicholas Clark
301 - 400 of 903 matches
Mail list logo