Skip to content

Instantly share code, notes, and snippets.

== Attempt 1
sub all-possible-orderings(@a, @prefix=[]) {
return [@prefix] unless @a.elems;
return gather for @a.kv -> $k, $v {
my @others = @a[0..^$k, $k^..^*];
take all-possible-orderings(@others, [@prefix.values, $v])
}
}
$ man -Pcat netstat
NETSTAT(1) BSD General Commands Manual NETSTAT(1)
NAME
netstat -- show network status
SYNOPSIS
netstat [-AaLlnW] [-f address_family | -p protocol]
netstat [-gilns] [-f address_family]
netstat -i | -I interface [-w wait] [-abdgt]
# "please repeat these three parameters twice". neat!
sprintf '(git clone [email protected]:%s/%s.git %s ||'
~ ' git clone git://github.com/%s/%s.git %s)',
(%info<owner>, $name, $target-dir) xx 2;
$ gdb ../../parrotGNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ........ done
(gdb) r ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
Starting program: /Users/masak/work/hobbies/parrot/parrot ../../runtime/parrot/library/PGE/Perl6Grammar.pir --output=PGE/builtins_gen.pir PGE/builtins.pg
my $perl6lib = ?%*ENV<PERL6LIB>.index(%*ENV<PWD> ~ '/lib')
?? %*ENV<PERL6LIB>
!! %*ENV<PWD> ~ '/lib';
S09 is the synopsis about data structures. It covers things such as typed
arrays, multidimensional arrays, user-defined array indexing, and
autovivification.
And it has almost no spectests.
To qualify the above statement, the well-tested synopsis documents (S02-06 and
S12) each have over fifty test files and many hundreds of tests. S09 has five
test files and 141 tests. The things that are tested are the things that have
been implemented wholly or partly by Rakudo (autovivification, subscript
$ ./proto showdeps november
november:
html-template
web:
http-daemon

Project Title

Collection classes and the Buf type for Rakudo

Name:

Carl Mäsak

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 5:

=over without closing =back

Around line 9:

Non-ASCII character seen before =encoding in 'Mäsak'. Assuming UTF-8

[...]
cc -o pbc_to_exe.o -I/Users/masak/work/hobbies/parrot/include -c pbc_to_exe.c
In file included from pbc_to_exe.c:1:
/Users/masak/work/hobbies/parrot/include/parrot/parrot.h:239:23: error: libintl.h: No such file or directory
compilation failed
current instr.: 'compile_file' pc 525 (tools/dev/pbc_to_exe.pir:266)
called from Sub 'main' pc 152 (tools/dev/pbc_to_exe.pir:88)
make: *** [pbc_to_exe] Error 1
$ diff config_lib.pasm config_lib.pasm.without-r38804
86a87
> set P0["archname"], "darwin-thread-multi-2level"
104a106
> set P0["ccflags"], " -g -pipe -fno-common -no-cpp-precomp -Wdeclaration-after-statement -I/usr/local/include -pipe -fno-common -Wno-long-double -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -falign-functions=16 -fvisibility=hidden -funit-at-a-time -maccumulate-outgoing-args -W -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat -Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-braces -Wmissing-field-initializers -Wno-missing-format-attribute -Wmissing-include-dirs -Wpacked -Wparentheses -Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow -Wsign-compare -Wst