Skip to content

Instantly share code, notes, and snippets.

Mono log profiler data
Profiler version: 0.4
Data version: 4
Mean timer overhead: 1098 nanoseconds
Program startup: Wed Nov 2 14:12:58 2011
Program ID: 8255
Server listening on: 54955
JIT summary
@sorear
sorear / rules.md
Created July 22, 2011 06:59 — forked from masak/rules.md
Little Animal Farm (Hodowla zwierzątek)

Players take turns. A turn consists of an optional exchange, followed by rolling dice. The first player to get (at least) a rabbit, a sheep, a pig, a cow, and a horse, wins.

The player rolls the two (dodecahedral) dice, which look like this:

Fox die: 6 rabbits, 2 sheep, 2 pigs, 1 horse, 1 fox
Wolf die: 6 rabbits, 3 sheep, 1 pig, 1 cow, 1 wolf

Depending on the outcome of the roll, the animals may "breed" and the player may end up with more animals as a result. The process behind this is best explained

make all-recursive
make[1]: Entering directory `/usr/local/src/monogit/mono'
Making all in po
make[2]: Entering directory `/usr/local/src/monogit/mono/po'
Making all in mcs
make[3]: Entering directory `/usr/local/src/monogit/mono/po/mcs'
make[3]: Leaving directory `/usr/local/src/monogit/mono/po/mcs'
make[3]: Entering directory `/usr/local/src/monogit/mono/po'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/src/monogit/mono/po'
9406 saiph-Val-Hum-Fem-Law died in The Dungeons of Doom on level 1 [max 4]. Killed by a water demon. - [56]
2687 saiph-Val-Hum-Fem-Law died in The Gnomish Mines on level 4. Killed by a rabid rat, while helpless. - [63]
98622 saiph-Val-Hum-Fem-Law quit in The Dungeons of Doom on level 11 [max 14]. 102 [102]
8907 saiph-Val-Hum-Fem-Law died in The Gnomish Mines on level 5 [max 6]. Killed by a soldier ant. - [77]
49920 saiph-Val-Hum-Fem-Law died in The Gnomish Mines on level 8. Killed by a mumak, while helpless. - [97]
21107 saiph-Val-Hum-Fem-Law died in The Dungeons of Doom on level 8 [max 9]. Killed by a bolt of lightning. - [69]
39370 saiph-Val-Hum-Fem-Law died in The Gnomish Mines on level 6. Killed by a quasit, while helpless. - [73]
6378 saiph-Val-Hum-Fem-Law died in The Dungeons of Doom on level 5. Killed by a killer bee. - [66]
52756 saiph-Val-Hum-Fem-Law died in The Gnomish Mines on level 12. Killed by a troll. - [105]
49802 saiph-Val-Hum-Fem-Law died in The Gnomish Mines on level 11. Killed by
# TODO: Z~, List.pick, fix xx
my %commands;
my %rooms;
my $room = [0,0,0];
my $stuff = [];
my $equipped = '';
sub zip($fun, \$l1, \$l2) {
my @cl2 = $l2;
#!./perl6
# this is close to the Dynamic programming solution from Wikipedia,
my class knapsackItem{has $.name; has $.weight;has $.unit;}
my $MAX_WEIGHT = 400;
my @table;
push @table, knapsackItem.new: name => 'map' , weight => 9 , unit => 150;
push @table, knapsackItem.new: name => 'compass' , weight => 13 , unit => 35;
#!./perl6
# this is close to the Dynamic programming solution from Wikipedia,
my class knapsackItem{has $.name; has $.weight;has $.unit;}
sub func (@a, $w, $v = 0){
return $v if $w == 0 || !@a;
my @rest = @a;
my $i = shift @rest;
my @skip = func(@rest,$w,$v);
diff --git a/lib/CLRBackend.cs b/lib/CLRBackend.cs
index e3f0f36..80ff2a5 100644
--- a/lib/CLRBackend.cs
+++ b/lib/CLRBackend.cs
@@ -386,7 +386,7 @@ namespace Niecza.CLRBackend {
}
public static Method[] fromArray(object x) {
- return JScalar.A(0, x, delegate (object o) {
+ return JScalar.A<Method>(0, x, delegate (object o) {
Announce: Niecza Perl 6
I am happy to make the first general announcement of Niecza Perl 6[1], a Perl 6
compiler project focusing on optimization research.
I have been tinkering with this for about 6 months now and I feel I finally
have something worth sharing.
While other Perl 6 compilers have focused on exploration of semantic issues,
Niecza is exploring implementation efficiency issues. The goal of this project
Announce: Niecza Perl 6
I am happy to make the first general announcement of Niecza Perl 6[1], a Perl 6
compiler project focusing on optimization research.
I have been tinkering with this for about 6 months now and I feel I finally
have something worth sharing.
While other Perl 6 compilers have focused on exploration of semantic issues,
Niecza is exploring implementation efficiency issues. The goal of this project