-
24 votesanswersviews
随着Perl 6实现的成熟,我们可以期待什么性能提升?
每次我下载Rakudo Perl 6的新副本时,我都运行以下表达式,以了解其当前的性能: say [+] 1 .. 100000; 并且速度一直在增加,但每次计算都有明显的延迟(几秒) . 作为比较,Perl 5(或其他解释语言)中的类似内容几乎立即返回: use List::Util 'sum'; print sum(1 .. 100000), "\n"; 或者在Rub... -
9 votesanswersviews
如何使用perl 6创建独立的可执行文件?
老人Perl 6 faq说:"Rakudo, a Perl 6 compiler based on Parrot, allows compilation to bytecode, and a small wrapper exists that can pack up a bytecode file and parrot into a single executable." 因此... -
2 votesanswersviews
如何在IRC :: Client中使用certfp
到目前为止,我已经将IRC::Client用于了许多IRC机器人,我也想将它用于新项目 . 但是,这次我需要使用certfp进行bot身份验证 . A search for "certfp" on the module's GitHub repository没有结果 . 是否可以使用证书配置 IRC::Client ,以便我可以使用certfp对我的下一个IRC bot进行身... -
9 votesanswersviews
我可以在Perl 6中使用独立签名作为签名吗?
我正在玩一个带有几个开关的命令行程序的Perl 6实现 . MAIN 的签名非常复杂,有点混乱 . 我想知道是否有办法在其他地方定义签名并告诉子程序使用什么: # possibly big and messy signature my $sig; BEGIN { $sig = :( Int $n, Int $m ) }; multi MAIN ( $sig ) { put "...