This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub try_nqp_transform($code, $transform) { | |
pir::load_language__0s('NQP'); | |
my $nqp := pir::compreg__Ps('nqp'); | |
my $p6 := pir::compreg__Ps('perl6'); | |
my $qast := $p6.compile($code, :target('past')); | |
my $comp := $nqp.compile($transform); | |
my $res := nqp::atpos($comp, 1)($qast); | |
my $pbc := $p6.evalpmc($p6.pir($p6.post($res))); | |
$pbc(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains some work-in-progress bottom-up design work for the GLR. | |
# All types and operators introduced are prefixed with GLR, so there are no | |
# conflicts with those in core (the GLR prefix has even been used where there | |
# isn't anything in core to conflict with, to make clear what's being added). | |
# There's no syntax sugar, but rather explanations of what some syntax will | |
# desugar to are included. The various MAIN subs do tests to check correctness | |
# and various benchmarks to compare with what we have in Rakudo today. | |
# Up-front summary: | |
# * (1, 2, 3) makes a List; there is no Parcel. List supports laziness and |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cjfields@Chriss-MacBook-Air bioperl6]$ time perl fasta.pl sequence.fasta | |
Count: 12097 | |
real 0m0.434s | |
user 0m0.416s | |
sys 0m0.014s | |
[cjfields@Chriss-MacBook-Air bioperl6]$ time perl6 fasta.pl6 sequence.fasta | |
Count: 12097 | |
real 0m4.406s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Raku-Github-Linkify | |
// @namespace https://github.com/timo/ | |
// @version 0.3.5.3 | |
// @description Turns paths to raku source (core setting, grammar, actions) and moarvm code to clickable links on github issue/PR pages as well as gists | |
// @downloadUrl https://gist.githubusercontent.com/timo/7cfe71a667bbdfa0dbd1510431da45a4/raw/Raku-Github-Linkify.js | |
// @homepageURL https://gist.github.com/timo/7cfe71a667bbdfa0dbd1510431da45a4 | |
// @author Timo 'timotimo' Paulssen | |
// @match https://github.com/*/*/issues/* | |
// @match https://github.com/*/*/pull/* |