Skip to content

Instantly share code, notes, and snippets.

@pmurias
pmurias / gist:7915dd6fc82e526570fbf16bd69ec110
Created July 10, 2018 21:41
native-image -cp 3rdparty/truffle/truffle-api-1.0.0-rc1.jar -jar p6vm.jar >errors 2>&
Build on Server(pid: 9430, port: 26681)
classlist: 135.07 ms
(cap): 749.79 ms
setup: 963.07 ms
analysis: 2,612.86 ms
fatal error: java.lang.NullPointerException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
sub x is export {
Str:U;
}
~
# t/moar/argument-truncation.t
plan(8);
sub pos8(int8 $i) {
ok($i==42, 'int8 pos argument works')
}
sub pos16(int16 $i) {
ok($i==42, 'int16 pos argument works')
}
@pmurias
pmurias / p6.p6
Last active August 10, 2016 15:55 — forked from zoffixznet/p6.p6
use NQPHLL;
grammar Rubyish::Grammar is HLL::Grammar {
token TOP { <statementlist> }
rule statementlist { [ <statement> \n+ ]* }
proto token statement {*}
token statement:sym<puts> {
<sym> <.ws> <?["]> <quote_EXPR: ':q'>
The transact commit/rollback thing seems like it declares a sort of mini slang.
# some things should be accesible inside the block so we use a is exposed to mark that
my $shared_by_all_transactions;
slang transact {
my $innards; # the transaction object we are building - created once per each transaction

List of stuff we want to be able to do with macros/slangs.

should behave like