Skip to content

Instantly share code, notes, and snippets.

View donaldh's full-sized avatar
💯

Donald Hunter donaldh

💯
View GitHub Profile
@donaldh
donaldh / make-spectest-java-7.txt
Created April 22, 2014 21:53
Rakudo 0fb001e592f5e756478766790b6e979dff85695c make spectest on Java 7 vs Java 8
Test Summary Report
-------------------
t/spec/S02-names-vars/perl.rakudo.jvm (Wstat: 0 Tests: 98 Failed: 1)
Failed test: 84
t/spec/S16-filehandles/filestat.t (Wstat: 0 Tests: 12 Failed: 2)
Failed tests: 6-7
t/spec/S17-concurrency/supply.rakudo.jvm (Wstat: 0 Tests: 248 Failed: 4)
Failed tests: 107, 110, 231, 234
Files=808, Tests=31236, 1642 wallclock secs ( 5.08 usr 2.00 sys + 25.77 cusr 5.28 csys = 38.13 CPU)
Result: FAIL
@donaldh
donaldh / async.pm
Created June 3, 2014 16:15
Async IO seems to be a bit racy
my $server = IO::Socket::Async.listen('localhost', 5000).tap(-> $conn {
my $message = '';
$conn.chars_supply.tap(-> $chars {
$message ~= $chars;
if $message.index("\n") -> $end {
$conn.send($message.substr(0, $end) ~ ' back').then({ $conn.close });
}
}, quit => { say $_; });
});
@donaldh
donaldh / rakudo.jvm.txt
Created June 12, 2014 15:13
perl6-roast-data for rakudo.jvm
----------------
"Synopsis", "pass","fail","todo","skip","plan","spec"
"S01", 0, 0, 0, 20, 20, 61
"S02", 4334, 1, 148, 401, 4884, 5006
"S03", 4812, 0, 112, 133, 5057, 5080
"S04", 964, 3, 39, 48, 1054, 1118
"S05", 4905, 0, 92, 411, 5408, 5892
"S06", 1160, 0, 38, 107, 1305, 1385
"S07", 0, 0, 0, 0, 0, 0
"S09", 177, 0, 9, 14, 200, 200
@donaldh
donaldh / java.version.txt
Last active August 29, 2015 14:02
perl6-roast-data for rakudo.jvm on Ubuntu 14.04 with 3GB RAM and 3GB swap
donaldh-virtual-machine:~/perl6-roast-data$ java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
@donaldh
donaldh / core_setting_perf.txt
Last active August 29, 2015 14:05
Identifying rakudo compilation bottlenecks on jvm
Using java -Xint -Xprof to flush out performance bottlenecks
Stage start : 0.000
Stage parse : 757.440
Stage syntaxcheck: 0.001
Stage ast : 0.002
Stage optimize : 66.674
Stage jast : 4032.891
Stage classfile : 49.018
Stage jar : 0.000
@donaldh
donaldh / 1_before.txt
Created August 13, 2014 21:49
Fixing an nqp serialization bottleneck for the jvm backend
Stage start : 0.000
Stage parse : 53.636
Stage syntaxcheck: 0.000
Stage ast : 0.000
Stage optimize : 6.219
Stage jast : 56.511
Stage classfile : 4.060
Stage jar : 0.000
@donaldh
donaldh / core_setting_prof.txt
Created August 13, 2014 22:37
Compiling CORE.setting with -Xint -Xprof
java -Xint -Xprof ... perl6 --setting=NULL --ll-exception --optimize=3 --target=jar --stagestats --output=CORE.setting.jar gen/jvm/CORE.setting
Stage start : 0.001
Stage parse : 693.906
Stage syntaxcheck: 0.001
Stage ast : 0.001
Stage optimize : 45.487
Stage jast : 290.698
Stage classfile : 45.951
Stage jar : 0.000
@donaldh
donaldh / cli.txt
Created August 15, 2014 16:37
flight recorder
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,dumponexit=true,settings=profile
@donaldh
donaldh / Actions.nqp.diff
Created August 28, 2014 23:03
Inserting this into Actions.nqp stops the serialization of NQPMatch objects. For why?
diff --git a/src/Perl6/Actions.nqp b/src/Perl6/Actions.nqp
index 29a19ea..c9a1648 100644
--- a/src/Perl6/Actions.nqp
+++ b/src/Perl6/Actions.nqp
@@ -2818,6 +2818,11 @@ class Perl6::Actions is HLL::Actions does STDActions {
$replacement[$i] := node_walker($node[$i]);
$i := $i + 2;
}
+ $i := 1;
+ while $i < $n {
@donaldh
donaldh / match.p6
Last active August 29, 2015 14:13
Cause of NQPMatch serialization
# ./perl6 --target=jar -o match.jar match.p6
#
# An NQPMatch will be serialized into match.jar
sub f() {
X::NYI.new(feature => 'broken').throw;
}