That is really lovely. I don’t know what criteria are used for Rosetta
Code, but the article’s implementation is the clearest “program as concrete
explication of algorithm” I’ve ever seen. It took me *years* to understand
RSA’s internals to the point that I could explain it if asked to in an
# New Ticket Created by Sam S.
# Please include the string: [perl #129801]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129801 >
I tried to time a subroutine as follows:
➜ sub a { LEAVE say now - ENTER now; sleep 1
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #129800]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129800 >
# I have the fix; filing for records
The error message displayed claims I called the
# New Ticket Created by Fernando Santagata
# Please include the string: [perl #129798]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129798 >
As requested:
-- Forwarded message --
From: Elizabeth Mattijsen
Yeah, it just got really noticeable when I had to run a relatively short script
over and over again, one that would have appeared to finish instantly on Perl
5. Startup time just stood out first since that’s about fifteen times higher on
6 vs stock 5. But I also see now that my full script has
Am 03.10.2016 um 06:34 schrieb Zoffix Znet via RT:
Seems the issue has more to do with running an empty loop, rather than
performing a real computation.
This is a run on a 4-core box. Attempting to parallelize an empty loop makes
the execution 1 second slower:
[...]
But running actual
But Crypt::Bcrypt seems to be mostly native call stuff. While it is
running, I wouldn't imagine that it has much to do with Perl 6 at all.
The original case I noticed the problem in was a recursive function; all
Perl 6, no IO. Sure, it's not real work, but I'm not at that stage yet.
Try
On Mon, Oct 03, 2016 at 04:26:10PM +0200, Elizabeth Mattijsen wrote:
> > On 02 Oct 2016, at 11:00, Thor Michael Støre wrote:
> > Is this normal startup performance?
>
> https://www.promptworks.com/blog/public-keys-in-perl-6
>
> I wonder what would be needed to run this in
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #129799]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129799 >
# I have the fix; filing for records
The Dateish role provides method IO that creates
> On 02 Oct 2016, at 11:00, Thor Michael Støre wrote:
> Is this normal startup performance?
https://www.promptworks.com/blog/public-keys-in-perl-6
I wonder what would be needed to run this in Perl 5, module wise, and CPU wise.
Liz
> On 03 Oct 2016, at 14:17, Wenzel Peppmeyer (via RT)
> wrote:
>
> # New Ticket Created by Wenzel Peppmeyer
> # Please include the string: [perl #129797]
> # in the subject line of all future correspondence about this issue.
> #
recently, jnthn fixed a bug in attribute binding of natives in signatures, so
you should now be able to say:
submethod BUILD(uint64 :$!c, test1 :$!d) { } # should work, but doesn't
which in turn begs the question why you would need the BUILD anyway. But
indeed it looks like you need to do
Looks like the solution is declaring the parameter type in the BUILD
submethod. This one works fine:
use NativeCall;
class test1 is repr('CStruct') is export {
has uint64 $.a;
has uint64 $.b;
}
class test2 is repr('CStruct') is export {
has uint64 $.c;
has test1 $.d;
submethod
# New Ticket Created by Wenzel Peppmeyer
# Please include the string: [perl #129797]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129797 >
my $c = Channel.new;
$c.send((1,2,3).Slip);
$c.close;
dd (1,$c.list,2).join(':')
#
On 2016-10-03 12:14, Elizabeth Mattijsen wrote:
Wrt to Pm’s timing of perl 5 with Moose: if you actually want to have
most of Perl 6’s capabilities in Perl 5 with Moose, you will need to
load quite a few MooseX:: classes as well. Which cannot have a
positive effect on load time.
Right. But
$ time install/bin/nqp -e ''
real0m0.025s
user0m0.017s
sys 0m0.006s
Liz
> On 03 Oct 2016, at 12:45, Brock Wilcox wrote:
>
> It seems like Moose vs built-in-oop/mop is a very indirect comparison. Now
> I'm wondering what nqp or moarvm startups are like.
It seems like Moose vs built-in-oop/mop is a very indirect comparison. Now
I'm wondering what nqp or moarvm startups are like.
On Oct 3, 2016 06:14, "Elizabeth Mattijsen" wrote:
> > On 02 Oct 2016, at 11:00, Thor Michael Støre
> wrote:
> >
> > Hey
> On 02 Oct 2016, at 11:00, Thor Michael Støre wrote:
>
> Hey everyone!
>
> Is this normal startup performance?
>
>
> Thormicks-MacBook-Pro-3:~ thormick$ time perl6 -e "say 'foo'"
> foo
>
> real 0m0.444s
> user 0m0.166s
> sys 0m0.067s
> Thormicks-MacBook-Pro-3:~
Playing around I found that the following change made your examples work as
expected:
diff --git a/src/Perl6/Optimizer.nqp b/src/Perl6/Optimizer.nqp
index 12398ba..9102b7f 100644
--- a/src/Perl6/Optimizer.nqp
+++ b/src/Perl6/Optimizer.nqp
@@ -1082,7 +1082,8 @@ class Perl6::Optimizer {
I think I found a clean way to fix the problem:
https://github.com/perl6/nqp/pull/309
20 matches
Mail list logo