Luke Palmer <[EMAIL PROTECTED]> wrote:
> In the spirit of getting real continuations working Just Right, this
> modifies IMCC's PCC implementation to emit the updatecc *after* the
> pushtop, so that the redundant pushtop isn't necessary when returning
> with a real continuation.
The PCC shortcuts
$Config{archname} wasn't getting parsed quite right on OS X and so JIT
wasn't getting detected in some cases. I checked in a fix for that.
It's certainly nice to see the tests run faster.
make test
All tests successful, 49 subtests skipped.
Files=90, Tests=1289, 138 wallclock secs (47.38 cusr +
Michael Scott <[EMAIL PROTECTED]> wrote:
> But, on looking closer at that, could someone demuddle my ignorance and
> tell me why the t/src tests are not run under testj?
These don't have a run-loop, so you can't run these with any run-core.
A plain "make test" covers src tests, running src tests
David Storrs wrote:
Given this code:
if ( some_expensive_lookup_function() >= $MAX_RECORDS ) {
mark_that_we_have_reached_max_records();
return;
}
After I enter that block once, I never want to evaluate the condition
again--I want the code to completely disappear fro
On Tue, 13 Jan 2004 20:37:21 -0800
David Storrs <[EMAIL PROTECTED]> wrote:
> Given this code:
>
> if ( some_expensive_lookup_function() >= $MAX_RECORDS ) {
>mark_that_we_have_reached_max_records();
>return;
> }
>
> After I enter that block once, I never want
Jonathan Scott Duff writes:
> On Tue, Jan 13, 2004 at 10:16:48PM -0700, Luke Palmer wrote:
> > So, let's say you have something like:
> >
> > $x = 100_000;
> > my $seen;
> > while $x --> 0 {
>
> Don't do that! I had to look at this twice before I decided that
> perl6 didn't get a new
Leopold Toetsch writes:
> Luke Palmer <[EMAIL PROTECTED]> wrote:
> > In the spirit of getting real continuations working Just Right, this
> > modifies IMCC's PCC implementation to emit the updatecc *after* the
> > pushtop, so that the redundant pushtop isn't necessary when returning
> > with a real
Luke Palmer <[EMAIL PROTECTED]> wrote:
> Leopold Toetsch writes:
>>
>> The PCC shortcuts in imcc only deal with normal Sub calls (Sub and
>> Closure, Coroutines should be ok too). Full Continuations currenty need
>> some hints by the programmer.
>>
>> Do you have an example what do you want to achi
On Mon, Jan 12, 2004 at 05:01:41PM +, Harry Jackson wrote:
>
> If there are any shy lurkers out there please speak now or forever hold
> your peace.
>
Well, here i speak ;-)
I have some (minor) skills in C, Perl, Networking, compiling, and other
stuff. I also downloaded Parrot some months a
At 10:16 PM 1/13/2004 -0700, Luke Palmer wrote:
David Storrs writes:
> Given this code:
>
> if ( some_expensive_lookup_function() >= $MAX_RECORDS ) {
>mark_that_we_have_reached_max_records();
>return;
> }
>
> After I enter that block once, I never want to evaluate the condit
On Tue, Jan 13, 2004 at 10:16:48PM -0700, Luke Palmer wrote:
> sub mark_that_we_have_reached_max_records() {
> $max_reached = 1;
> }
>
> if !$max_reached && some_expensive_lookup_function() > $MAX_RECORDS {
> mark_that_we_have_reached_max_records();
> return;
>
On Wed, Jan 14, 2004 at 10:59:52AM -0500, Melvin Smith wrote:
> I think Perl6 will allow a hint like so:
>
> my int $max_reached;
>
> The important thing is that $max_reached is used simply as a conditional,
> and you don't pass it to a routine or otherwise use it in a way to cause it
> to be p
On Wed, Jan 14, 2004 at 11:57:05AM +, Richard Nuttall wrote:
> How about
>
> $test = sub
> {
> if ( some_expensive_lookup_function() >= $MAX_RECORDS )
>
> mark_that_we_have_reached_max_records();
>
>$test = sub{};
> };
>
> Then call &$test() as needed;
Neat.
At 09:31 AM 1/14/2004 -0800, David Storrs wrote:
On Wed, Jan 14, 2004 at 10:59:52AM -0500, Melvin Smith wrote:
> I think Perl6 will allow a hint like so:
>
> my int $max_reached;
>
> The important thing is that $max_reached is used simply as a conditional,
> and you don't pass it to a routine or o
David Storrs writes:
> On Wed, Jan 14, 2004 at 11:57:05AM +, Richard Nuttall wrote:
>
> > How about
> >
> > $test = sub
> > {
> > if ( some_expensive_lookup_function() >= $MAX_RECORDS )
> >
> >mark_that_we_have_reached_max_records();
> >
> >$test = sub{};
> > };
>
At 12:36 PM -0500 1/13/04, Uri Guttman wrote:
> "TP6S" == The Perl 6 Summarizer <[EMAIL PROTECTED]> writes:
TP6S> Congratulations Dan
TP6S> Melvin Smith offered his congratulations to Dan for the
TP6S> first commercial use of Parrot. I think I can safely say we
TP6S> al
* Luke Palmer <[EMAIL PROTECTED]> [2004-01-14 19:03]:
> Let's not mention that that has way more overhead than a
> short-circuiting test, but I guess "the idea's the important
> thing".
How about a calculated goto? *grin*
--
Regards,
Aristotle
"If you can't laugh at yourself, you don't take li
On Jan 12, 2004, at 10:03 AM, Gordon Henriksen wrote:
On Monday, January 12, 2004, at 04:29 , Jeff Clites wrote:
5) Java seems to use a check-in/check-out model for access to global
data, in which global data "lives" in a central store, but is copied
back-and-forth to thread-local storage for
18 matches
Mail list logo