Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2011-07-22

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 diakopter er
00:00 diakopter far more sites..
00:00 diakopter heh
00:00 sjohnson nice
00:02 sorear oops, completely misimplemented trades.
00:03 sjohnson uh oh
00:03 sjohnson .oO( not like i know what means ! )
00:03 thou left #perl6
00:06 donri left #perl6
00:11 Sarten-X joined #perl6
00:14 [Coke] jQuery++
00:16 Chillance left #perl6
00:27 sjohnson nice
00:27 thundergnat left #perl6
00:58 whiteknight joined #perl6
01:01 noganex_ joined #perl6
01:05 noganex left #perl6
01:11 smash left #perl6
01:12 ashleyde1 is now known as ashleydev
01:13 tokuhir__ left #perl6
01:26 whiteknight left #perl6
01:33 * sorear has an implementation of masak's game, but it's slightly too big.
01:44 woosley joined #perl6
01:53 cottoo joined #perl6
01:53 cotto left #perl6
02:03 woosley left #perl6
02:12 ZaphrodZenovka left #perl6
02:12 ZaphrodZenovka joined #perl6
02:31 lichtkind good night
02:32 lichtkind left #perl6
02:40 jaldhar joined #perl6
02:56 woosley joined #perl6
03:04 f00li5h joined #perl6
03:09 zamolxes left #perl6
03:09 zamolxes joined #perl6
03:23 Su-Shee_ joined #perl6
03:27 Su-Shee left #perl6
03:46 thou joined #perl6
03:59 jaldhar left #perl6
04:01 jaldhar joined #perl6
04:04 kaare_ joined #perl6
04:10 jaldhar left #perl6
04:14 jaldhar joined #perl6
04:35 perlhack joined #perl6
04:48 perlhack left #perl6
05:02 soh_cah_toa left #perl6
05:20 cooper left #perl6
05:34 koban joined #perl6
05:34 koban left #perl6
05:38 ruz seen masak
05:38 aloha masak was last seen in #perl6 6 hours 24 mins ago saying "'night, #perl6.".
05:52 birdwindupbird joined #perl6
06:06 Su-Shee_ is now known as Su-Shee
06:08 [particle] left #perl6
06:09 mj41_nb joined #perl6
06:15 dukeleto left #perl6
06:16 dukeleto joined #perl6
06:43 masak joined #perl6
06:45 masak diakopter: "re" comes out meaning approximately "regarding", but it's really the ablative form of the Latin word rēs, meaning "matter"/"affair"/"thing"; so "re" literally means "in the matter". the "regarding" meaning is a fortunate back-breviation. :)
06:49 sorear hehehe
06:49 sorear masak, I wrote an implementation of your game
06:49 sorear but it's 116 lines :/
06:50 moritz so what? show the code :-)
06:50 phenny moritz: 21 Jul 21:32Z <pmichaud> tell moritz see http://irclog.perlgeek.de/​perl6/2011-07-21#i_4149417
06:50 moritz good morning
06:50 tadzik g'morning
06:50 sorear hmm.  how does the pushing-to-gists thing work?
06:51 tadzik I think you need to create a gist with the website, and then clone the repo
06:51 * sorear wonders whether to leave it as a comment or what
06:51 tadzik oh, I see what you mean
06:51 sorear I have code, I'm wondering what the Best(tm) way to share it is
06:52 sorear preferably a way that semantically links it to masak's gist?
06:52 f00li5h left #perl6
06:52 tadzik maybe forking a gist and adding a file to it
06:53 sorear unrelated: /me has discovered the new open source J and is playing with it, game of life in 45 characters :>
06:57 masak (forking and adding a file)++
06:57 sorear masak: was that a "do this."?
06:57 masak aye.
06:57 masak sorear: I'm very interested in seeing your solution.
06:58 masak I might also add that we're (tadzik and I) gearing towards making it easy for people to develop (trading) strategies for the game and pitting them against each other.
06:59 masak my implementation from yesterday weighs in at 43 lines sans tests, but I haven't done the trade bit yet. after just having taken a shower though, I do not believe that bit will be extremely big.
06:59 sorear :/
06:59 sorear 116 with trading
06:59 moritz pmichaud++ # finding my bug
07:00 masak sorear: should I upload my code for you to look at?
07:01 sorear https://gist.github.com/1099007#file_sorear.pl6
07:01 sorear sure
07:02 sorear The only obvious way to significantly shrink mine is to remove all the rule-enforcing code
07:03 masak without having looked, it sounds like we have widely different approaches.
07:03 masak that said, tadzik and I tried with an OO-based solution day before yesterday, and it became quite bloated, which is why I wanted the 100-LoC restriction.
07:04 masak sorear: https://github.com/masak/farm
07:05 masak heh -- we both have a routine called 'transfer' :P
07:06 sorear I see you also found the biggest simplification in mine (treating stock as a player)
07:06 masak aye.
07:07 masak it is a player in the sense of having animals, but not in the sense of having turns.
07:09 masak here's my plan for trading: each player gets to inject a trade callback into the game. this callback takes a deep clone of %.p as a parameter, plus its name. it emits a regular animal trading hash.
07:10 masak now, if the other player is a player and not the stock, it has its accept_trade callback called, with the animal trading hash passed along. it replies booleanly.
07:10 masak and that's all the strategy there is.
07:10 sorear doesn't it also need to return who to trade with?
07:11 masak yes, but that's part of the trading hash. see the return value of .transfer
07:11 * sorear has a feeling there are strong elements of iterated prisoners' dilemma here
07:11 moritz in practice, how often is the stock depleted of one sort of animal?
07:11 masak I sure am interested in seeing what a good stable strategy will be like.
07:11 masak moritz: rabbits breed like... well... :P
07:12 moritz $ ./perl6 -e 'my $x = 1; say $::("x")'
07:12 moritz 1
07:12 masak moritz: tadzik and I were playing a two-player game. I get the feeling that the pressure on all types of animals (esp big dogs) is much heavier when more players are playing.
07:12 moritz $ >./perl6 -e 'say &::("sort").(5, 3, 4, 1)'
07:12 moritz 1 3 4 5
07:12 sorear hmm.
07:13 moritz masak: is the stock equipped with more animals in the case of multiple players?
07:13 sorear masak: got host04 access? :)
07:13 masak moritz: no.
07:13 masak sorear: no.
07:14 JimmyZ_ joined #perl6
07:15 JimmyZ_ Is there a syntax like 'use longname as name'  or 'import longname as name'?
07:15 sorear masak: I am considering to install mono on feather then let everyone with a feather acct do an online game
07:15 sorear masak: is this an awesome idea?
07:16 masak sorear: yes!
07:16 JimmyZ_ looks like I asked it before, but I forgot it.
07:16 sorear JimmyZ_: use Name:name<Long::Name>
07:16 masak JimmyZ_: there isn't out of the box, but it sounds like a good idea.
07:16 masak oh! what sorear said ;)
07:16 sorear S11:428
07:18 sorear wow, apt-get install on feather is *fast*
07:18 dalek rakudo/nom: 05500ce | moritz++ | src/ (2 files):
07:18 dalek rakudo/nom: make $::($name) style indirect lookup work
07:18 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/05500ced74
07:19 sorear um
07:19 sorear sudo apt-get update
07:19 sorear sudo apt-get install mono-complete
07:19 sorear E: Broken packages
07:19 perlhack joined #perl6
07:20 sorear who's the resident feather admin guru?
07:20 tadzik sorear: I think you allow stock to have negative amount of animals
07:20 tadzik or maybe not, my $gain = ($total div 2) min %players<stock>{$animal};
07:21 tadzik nice one
07:21 masak sorear++
07:21 JimmyZ_ thanks,  it's not friendly for non-english speaker, I can't find it in S11 easily
07:22 JimmyZ_ Pooch is longer than Dog
07:22 masak JimmyZ_: thank you for your efforts with the spec. they are valuable.
07:22 moritz sorear: nobody really administrates feather, which is part of the problem
07:22 masak JimmyZ_: people might use :name for other reasons than shortening.
07:23 JimmyZ_ masak: yes, i.e : names conflict
07:23 masak right.
07:23 * sorear upgrades feather's gcc
07:26 JimmyZ_ S11:428 is a class S11:428
07:27 sorear errr
07:28 sorear yes, line 534 is the real one
07:28 JimmyZ_ S11:535 doesn't describe what use Name:name<Long::Name> means
07:28 sorear I remember this first came up when I asked TimToady how use java.net.Socket:from<java> was supposed to parse
07:28 sorear he said "it's use Socket:from<java>:name<java.net.Socket>"
07:28 perlhack left #perl6
07:29 JimmyZ_ sorear, line 534 doesn't describe what use Name:name<Long::Name> means too
07:29 JimmyZ_ what's why I saw, but I can't find it
07:30 JimmyZ_ that's why I saw this line, but I can't find it
07:31 masak sorear: I'm playing your game. I think any comparison between our two pieces of code is a bit unfair, because you have this nice trading syntax, and I'm just focusing on the game logic.
07:31 masak for me, the interface will be a completely different part and likely not count in the 100 LoC. maybe.
07:32 JimmyZ_ does 'class Ninja is also { }'   equal 'use MONKEY_TYPING; argument class Ninja {}'
07:33 masak JimmyZ_: the former syntax is a fossil.
07:34 CBro2007 joined #perl6
07:34 JimmyZ_ masak: thanks, just saw it
07:34 JimmyZ_ I read it from http://transfixedbutnotdead.com/2010/01​/14/anyone-for-perl-6-metaprogramming/
07:35 masak sorear: after I had player 1 trade with himself, I get the trade-if-any prompt again. I cannot see why from your code, but that shouldn't happen.
07:36 masak sorear: @wdie[rand * @wdie] -- why not .roll? if it's not implemented in Niecza, is it LHF? :)
07:37 sorear LHF in that case. :)
07:37 * sorear was going to use an adaptive algorithm for .roll suggested by TimToady a while back
07:38 masak \o/
07:38 CBro2007 left #perl6
07:38 masak just don't let the perfect become the enemy of the good... :)
07:40 masak have to log off, tadzik++ is taking my keyboard ;)
07:40 masak left #perl6
07:43 JimmyZ_ left #perl6
07:44 adave joined #perl6
07:44 Mowah joined #perl6
07:45 adave left #perl6
07:45 sorear tadzik: is masak still there?
07:46 sorear tadzik: consider logging on to feather and sudo -u nobody tmux attach
07:53 Trashlord joined #perl6
07:53 am0c left #perl6
07:56 CBro2007 joined #perl6
08:01 daxim joined #perl6
08:06 am0c joined #perl6
08:06 moritz sorear: how do I get out of tmux again? :-)
08:06 sorear ^b d
08:07 moritz thanks
08:08 dalek roast: 9f5a497 | moritz++ | S (2 files):
08:08 dalek roast: fudge comb.t and symbolic-deref.t for rakudo
08:08 dalek roast: review: https://github.com/perl6/roast/commit/9f5a497226
08:17 thou left #perl6
08:19 f00li5h joined #perl6
08:19 ciphertext joined #perl6
08:22 dalek rakudo/nom: afce340 | moritz++ | t/spectest.data:
08:22 dalek rakudo/nom: enable two (heavily fudged) test files, one of which was never passing in master
08:22 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/afce3407cd
08:27 moritz tadzik: are you still there?
08:27 moritz nom: package Pod { class Block { } }; say ::('Pod::Block')
08:27 p6eval nom: OUTPUT«Block()␤»
08:28 moritz tadzik: that might make your live easier... except that it likely won't work while compiling the setting, and it needs classes to be declared in the nested way shown above, not as 'class Pod::Block {}' (class declaration bug, probably)
08:35 dalek roast: 2ead4d1 | moritz++ | S32-list/reverse.t:
08:35 dalek roast: fudge reverse.t for nom
08:35 dalek roast: review: https://github.com/perl6/roast/commit/2ead4d17ac
08:36 dakkar joined #perl6
08:38 donri joined #perl6
08:43 moritz nom: sub f(Cool $x as Int) { say $x.WHAT }; f "23"
08:43 p6eval nom: OUTPUT«Str()␤»
08:54 dalek rakudo/nom: adcf1ed | moritz++ | / (2 files):
08:54 dalek rakudo/nom: Int.base
08:54 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/adcf1edf7e
09:00 CBro2007 left #perl6
09:09 CBro2007 joined #perl6
09:19 meteorjay left #perl6
09:23 Alias joined #perl6
09:35 awoodland joined #perl6
09:39 ab5tract joined #perl6
09:42 Mowah left #perl6
09:42 am0c left #perl6
09:50 cosimo left #perl6
09:52 MayDaniel joined #perl6
09:53 moritz nom: say (42,).elems
09:53 p6eval nom: OUTPUT«Rebuild in progress␤»
09:54 am0c joined #perl6
10:01 _twitch joined #perl6
10:05 cosimo joined #perl6
10:06 woosley left #perl6
10:06 moritz nom: say &infix:<+>.arity
10:06 p6eval nom: OUTPUT«0␤»
10:06 moritz nom: say &infix:<+>.count
10:07 p6eval nom: OUTPUT«2␤»
10:07 * moritz kinda remembered it the other way round
10:11 awoodland left #perl6
10:15 * sorear out
10:18 am0c left #perl6
10:22 dalek roast: fb0ba1b | moritz++ | S32- (2 files):
10:22 dalek roast: fudge and correct reduce.t, pi.t
10:22 dalek roast: review: https://github.com/perl6/roast/commit/fb0ba1b0c4
10:23 moritz nom: srand 1
10:23 p6eval nom: OUTPUT«Could not find sub &srand␤current instr.: '_block1002' pc 75 ((file unknown):50491048) (/tmp/buD6XoDNzS:1)␤»
10:24 moritz rakudo: say rand
10:24 p6eval rakudo 922500: OUTPUT«0.203430121372552␤»
10:24 moritz rakudo: say rand 1
10:25 p6eval rakudo 922500: OUTPUT«===SORRY!===␤Unsupported use of rand(N); in Perl 6 please use N.rand or (1..N).pick at line 22, near " 1"␤»
10:25 moritz std: say rand 1, 2
10:25 p6eval std 516268a: OUTPUT«[31m===[0mSORRY![31m===[0m␤Unsupported use of rand(N); in Perl 6 please use N.rand or (1..N).pick at /tmp/OEILu6NOjK line 1:␤------> [32msay rand[33m⏏[31m 1, 2[0m␤Parse failed␤FAILED 00:01 118m␤»
10:26 moritz nqp: pir::srand__vN(1.0); say('alive')
10:26 p6eval nqp: OUTPUT«error:imcc:syntax error, unexpected NREG, expecting '(' ('$N100')␤  in file '(file unknown)' line 36␤error:imcc:syntax error ... somewhere␤ in file '(file unknown)' line 106␤syntax error ... somewhere␤»
10:29 shachaf left #perl6
10:30 moritz nqp: pir::srand__0I(1); say('alive')
10:30 p6eval nqp: OUTPUT«error:imcc:syntax error, unexpected IREG, expecting '(' ('$I100')␤  in file '(file unknown)' line 36␤error:imcc:syntax error ... somewhere␤ in file '(file unknown)' line 106␤syntax error ... somewhere␤»
10:34 moritz nom: pir::srand__0I(1); say('alive')
10:34 p6eval nom: OUTPUT«alive␤»
10:39 MayDaniel left #perl6
10:49 itz left #perl6
10:51 stm` joined #perl6
10:54 Mowah joined #perl6
11:07 satyavvd joined #perl6
11:34 dalek rakudo/nom: cdbbd7f | moritz++ | / (3 files):
11:34 dalek rakudo/nom: implement &reduce
11:34 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/cdbbd7f474
11:34 dalek rakudo/nom: 1b55dd4 | moritz++ | / (2 files):
11:34 dalek rakudo/nom: implement &rand and &srand, run tests
11:34 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/1b55dd4d02
11:35 satyavvd left #perl6
11:47 shachaf joined #perl6
11:50 moritz nom: say (1, 2, 3, 4).hash.kv.perl
11:50 p6eval nom: OUTPUT«Rebuild in progress␤»
11:57 takadonet morning
11:57 Ambriely joined #perl6
11:57 Ambriely left #perl6
12:11 Jackneill joined #perl6
12:17 dalek roast: 73fa45b | moritz++ | S32- (2 files):
12:17 dalek roast: fudge tests, and make others more robust
12:17 dalek roast: review: https://github.com/perl6/roast/commit/73fa45b5f3
12:21 MayDaniel joined #perl6
12:21 MayDaniel left #perl6
12:23 Gothmog_ left #perl6
12:24 bluescreen10 joined #perl6
12:28 dalek rakudo/nom: 6970e7e | moritz++ | / (4 files):
12:28 dalek rakudo/nom: values, pairs, kv
12:28 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/6970e7e59b
12:43 molaf joined #perl6
12:45 CBro2007 left #perl6
12:47 Trashlord left #perl6
12:48 Trashlord joined #perl6
12:49 ciphertext left #perl6
12:53 kjeldahlw left #perl6
12:57 smash joined #perl6
12:58 dalek roast: ac98bef | moritz++ | S32-hash/pairs.t:
12:58 dalek roast: refudge pairs.t for nom
12:58 dalek roast: review: https://github.com/perl6/roast/commit/ac98bef0eb
12:58 smash hello everyone
12:58 pernatiy joined #perl6
12:58 moritz \o
13:00 PerlJam good morning
13:00 dalek roast: 91cff9d | moritz++ | S02-literals/listquote-whitespace.t:
13:00 dalek roast: remove debug output from test file
13:00 dalek roast: review: https://github.com/perl6/roast/commit/91cff9d829
13:13 dakkar left #perl6
13:14 quiccker left #perl6
13:16 kytibe joined #perl6
13:20 [particle] joined #perl6
13:21 dalek rakudo/nom: ca7b148 | moritz++ | / (3 files):
13:21 dalek rakudo/nom: &sprintf, Enum.pairs, tests
13:21 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/ca7b148b47
13:28 Limbic_Region left #perl6
13:45 leprevost joined #perl6
13:52 drbean left #perl6
13:55 CBro2007 joined #perl6
13:58 mj41_nb left #perl6
14:12 * [Coke] thought mberends was doign the rlese?
14:12 [Coke] moritz++, though!
14:13 * moritz was faster :-)
14:14 daxim left #perl6
14:22 * mberends was bemused :-)
14:24 * moritz tries to port Instant to nom
14:26 moritz and during compilation, I get
14:26 moritz Method 'specialize' not found for invocant of class 'Perl6::Metamodel::ClassHOW'
14:31 * moritz gives up for now
14:35 SHODAN joined #perl6
14:42 * mathw has been offered an awesome new job!!!!
14:43 * mathw regrets that it isn't some crazy company deciding to hire somebody to help with Perl 6. It is a crazy company, but they're not interested in that kind of thing :(
15:10 * mux started coding in python for his new job, and it's utterly unfun
15:11 mux way too easy
15:11 mux where's the excitement?
15:14 * flussence finally convinced $dayjob to give me a dev workstation that isn't pure hell
15:15 meraxes joined #perl6
15:25 jaldhar left #perl6
15:33 JimmyZ joined #perl6
15:33 cooper joined #perl6
15:35 tokuhirom joined #perl6
15:37 Gothmog_ joined #perl6
15:45 pmichaud moritz: I think Enum.keys / Enum.values should probably return a list-y thing, not an item-y thing.
15:51 moritz pmichaud: we push the item-behaves-like-single-item-list so far that I don't feel it really matters
15:51 moritz pmichaud: but if you feel strongly about it, I can do something about it
15:51 pmichaud it matters if the enum value is itself a list, I suspect.
15:52 pmichaud nom:  my $pair = a => [1,2,3];   say $pair.values.elems;
15:52 p6eval nom: OUTPUT«3␤»
15:52 pmichaud that should be 1.
15:52 moritz hm, ok
15:53 pmichaud nom:  my $pair = a => [1,2,3];   say $pair.value.elems;
15:53 p6eval nom: OUTPUT«3␤»
15:53 pmichaud that one is correct.  :-)
15:53 moritz so how do I best construct a single-item list?
15:53 pmichaud ($!value,).list  works
15:54 moritz rakudo: say ([1, 2, 3],).list.perl
15:54 p6eval rakudo 922500: OUTPUT«([1, 2, 3])␤»
15:54 moritz rakudo: say ([1, 2, 3]).list.perl
15:54 p6eval rakudo 922500: OUTPUT«[1, 2, 3]␤»
15:54 moritz rakudo: say ([1, 2, 3],).perl
15:54 p6eval rakudo 922500: OUTPUT«([1, 2, 3], )␤»
15:54 pmichaud rakudo:  say ([1,2,3],).list.elems
15:54 p6eval rakudo 922500: OUTPUT«1␤»
15:55 pmichaud rakudo:  say ([1,2,3]).list.elems
15:55 p6eval rakudo 922500: OUTPUT«3␤»
15:55 moritz rakudo: say ([1, 2, 3],).elems
15:55 p6eval rakudo 922500: OUTPUT«1␤»
15:55 moritz why the .list?
15:55 moritz rakudo: say ([1, 2, 3],).WHAT
15:55 p6eval rakudo 922500: OUTPUT«Parcel()␤»
15:55 pmichaud just being explicit.
15:55 moritz ah, List vs. Parcel
15:55 pmichaud yes, that also.  :)
15:56 * pmichaud likes hacking from 33,000 feet :)
15:56 Alias left #perl6
15:57 * JimmyZ doesn't exactly know what's the difference between package and module
15:57 moritz btw pmichaud++, that forgotten invocant had really confused me
15:58 moritz nom: my $x = 3; say $::('x')
15:58 p6eval nom: OUTPUT«3␤»
15:58 moritz nom: my $x = 3; say $::('x') = 5
15:58 p6eval nom: OUTPUT«Cannot assign to a readonly variable or a value␤current instr.: '_block1002' pc 92 ((file unknown):43174575) (/tmp/ZNq5OZ3wBh:1)␤»
15:58 moritz should that work?
15:58 moritz I could probably just mark the lookup routine as 'is rw' and make it work
16:00 am0c joined #perl6
16:03 pmichaud yes, mark the lookup as 'is rw'.  Or use return-rw, if you're using return.
16:13 JimmyZ_ joined #perl6
16:16 JimmyZ left #perl6
16:16 JimmyZ_ is now known as JimmyZ
16:23 [Coke] mathw++ # yay new job.
16:23 [Coke] pmichaud++ # where are you?
16:25 pmichaud [Coke]: on my way to PHL
16:25 pmichaud plane has wifi :)
16:25 * [Coke] supposes he should have planned to go to the con.
16:27 [Coke] is it just tomorrow?
16:27 pmichaud just tomorrow, afaik.
16:27 pmichaud some of us may be getting together on Sunday for discussions, though
16:28 * [Coke] will rest in the AC instead. ;)
16:32 kcwu left #perl6
16:42 kcwu joined #perl6
16:45 REPLeffect left #perl6
16:46 pernatiy left #perl6
16:48 pmichaud afk for a while
16:49 thou joined #perl6
16:52 birdwindupbird left #perl6
16:58 REPLeffect joined #perl6
17:02 moritz pmichaud: for when you get back... do you expect the next (nom-based) release to target parrot 3.6.0
17:02 moritz s/$/?/
17:12 mj41_nb joined #perl6
17:15 impious joined #perl6
17:15 moritz $ ./perl6 -e 'my $x = 5; $::("x") = 8; say $x'
17:16 moritz 8
17:16 moritz \o/
17:18 [Coke] ist that on nom?
17:18 moritz yes (locally)
17:19 [Coke] moritz++
17:21 mj41_nb left #perl6
17:24 dalek rakudo/nom: 8c0ca27 | moritz++ | src/core/Enum.pm:
17:24 dalek rakudo/nom: return a List from Enum.{keyes,values,pairs}
17:24 dalek rakudo/nom:
17:24 dalek rakudo/nom: Based on feedback by pmichaud++
17:24 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/8c0ca2715d
17:26 cosimo left #perl6
17:29 dalek roast: 709ae03 | moritz++ | S02-names/symbolic-deref.t:
17:29 dalek roast: expand tests for indirect name lookups, include sigilless form ::() and lvalueness
17:29 dalek roast: review: https://github.com/perl6/roast/commit/709ae037fb
17:29 molaf left #perl6
17:30 dalek rakudo/nom: a29189c | moritz++ | src/core/operators.pm:
17:30 dalek rakudo/nom: allow assignment to indirectly looked up variables
17:30 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/a29189c72a
17:31 cosimo joined #perl6
17:33 pmichaud 17:02 <moritz> pmichaud: for when you get back... do you expect the next (nom-based) release to target parrot 3.6.0
17:33 pmichaud yes.
17:33 pmichaud (unless there's a reason it shouldn't)
17:34 pmichaud I'm fine with bumping nqp's PARROT_REVISION to 3.6.0
17:34 moritz that was the background of my question :-)
17:35 pmichaud I also suspect we'll remain pegged at 3.6.0 throughout most of August, esp. since Parrot may have some major branch merges soon (that could be disruptive)
17:35 [Coke] There's a few in the pipeline, Aye.
17:36 pmichaud have to rush off again.. plane is landing.  bbl
17:37 wolfman2_ joined #perl6
17:41 wolfman2000 left #perl6
17:42 bluescreen10 left #perl6
17:45 dalek nqp: 5134a59 | moritz++ | tools/build/PARROT_REVISION:
17:45 dalek nqp: bump PARROT_REVISION to 3.6.0
17:45 dalek nqp: review: https://github.com/perl6/nqp/commit/5134a598c2
17:46 [Coke] ugh. Working on ColdFusion 9 - have what is basically a 100 line hash declaration... there's a syntax error somewhere in that thing, and it tells me the first character of the structure. perl6++ for not being that guy.
17:47 dalek rakudo/nom: 21756e5 | moritz++ | tools/build/NQP_REVISION:
17:47 dalek rakudo/nom: bump nqp revision to one that brings us parrot 3.6.0
17:47 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/21756e5971
17:49 cognominal_ joined #perl6
17:49 cognominal left #perl6
17:56 bluescreen10 joined #perl6
18:02 mj41 joined #perl6
18:02 Jackneill left #perl6
18:03 sivoais left #perl6
18:05 mkramer joined #perl6
18:06 mkramer left #perl6
18:14 mkramer1 joined #perl6
18:18 ab5tract left #perl6
18:19 ab5tract joined #perl6
18:24 jevin left #perl6
18:27 Chillance joined #perl6
18:27 jevin joined #perl6
18:27 JimmyZ left #perl6
18:28 mkramer1 left #perl6
18:28 envi left #perl6
18:41 Jackneill joined #perl6
18:46 mj41 left #perl6
18:53 am0c left #perl6
18:55 am0c joined #perl6
18:59 _twitch left #perl6
19:04 sorear good * #perl6
19:05 Vlavv_ left #perl6
19:07 moritz \o sorear
19:08 moritz nom: my $x = 3; $::('x') = 42; say $x
19:08 p6eval nom: OUTPUT«42␤»
19:09 pmichaud moritz++
19:10 Mowah left #perl6
19:17 Vlavv_ joined #perl6
19:22 [Coke] nom: my $x = 3; $::<x> = 42; say $x; # ?
19:22 p6eval nom: OUTPUT«Symbol '$' not predeclared in <anonymous> (/tmp/sfutYRSV7v:1)␤current instr.: 'parrot;PCT;HLLCompiler;panic' pc 154 (compilers/pct/src/PCT/HLLCompiler.pir:111)␤»
19:22 [Coke] just wondering. ;)
19:23 tadzik sorear: why would I want tmux?
19:23 tadzik moritz: I'll look into that, thanks
19:25 masak joined #perl6
19:25 masak oh HAI, #perl6! \o/
19:25 TimToady [Coke]: I would not expect that to work, since <> is direct hash lookup, and the key is $x
19:25 TimToady nom: my $x = 3; MY::<$x> = 42; say $x
19:25 p6eval nom: OUTPUT«Could not find sub &MY␤current instr.: '_block1002' pc 80 ((file unknown):12578452) (/tmp/079Yco6u3x:1)␤»
19:25 TimToady that I would expect to work
19:26 TimToady niecza: my $x = 3; MY::<$x> = 42; say $x
19:26 p6eval niecza v7-44-g54b5188: OUTPUT«Unhandled exception: Unable to resolve method ast in class Any␤  at /home/p6eval/niecza/src/NieczaActions.pm6 line 161 (NieczaActions NieczaActions.morename @ 3) ␤  at /home/p6eval/niecza/src/STD.pm6 line 342 (STD STD.morename @ 24) ␤  at /home/p6eval/niecz…
19:26 TimToady pugs: my $x = 3; MY::<$x> = 42; say $x
19:26 p6eval pugs: OUTPUT«*** ␤    Unexpected "MY"␤    expecting ";", Doc block, block declaration, declaration, construct or expression␤    at /tmp/0CXSdNyOoK line 1, column 12␤»
19:26 [Coke] TimToady: makes sense.
19:27 masak mathw: congrats on the awesome new job!!!
19:30 Jackneill left #perl6
19:32 masak sorear: my farm implementation is now 80 LoC, and almost complete. I think I can fit a CLI in the last 20 lines. :)
19:38 thou left #perl6
19:40 sorear masak, tadzik: you don't need to install tmux, I was just suggesting that to connect to a game on feather
19:40 sorear (sudo -u nobody tmux attach)
19:41 sorear masak: re. 'is this an awesome idea?' 'yes!'
19:41 PerlJam tmux++
19:41 tadzik oh!
19:41 jevin left #perl6
19:41 masak oh!
19:41 * masak tries
19:41 masak sorear: I thought you meant in general :P
19:42 jevin joined #perl6
19:43 masak sorear: we've discovered a new restriction in trading that we weren't aware of yesterday.
19:43 sorear ?
19:43 tomaw left #perl6
19:44 masak sorear: all trades must be 1-1, 1-many, or many-1. many-many isn't allowed, apparently.
19:44 masak it's a small thing, but now that we're aware of it, the rule booklet is quite clear.
19:44 sorear ah.
19:45 [Coke] masak: what are you talking about?
19:46 masak [Coke]: hah, you've missed the latest craze and need to backlog a day or so :P
19:46 masak "Little Animal Farm". a Polish family game from the 1940s.
19:47 masak in the span of about 24 hours, it now has three partial implementations (by tadzik, me, and sorear)
19:48 sorear added the many-many restriction
19:49 sorear so who's in on the ssh gaming craze?
19:49 [Coke] masak: nifty. (first google hit is you). Will consider making a hard copy out of my copious counters to try with the kids.
19:49 masak sorear: tadzik and I are here, but kinda making nom a bit too :)
19:49 sorear I love how that sentence is ambiguous.
19:49 masak first Google hit is me? wow, that was fast.
19:50 masak sorear: the kind you eat :)
19:50 masak sorear: the git pull on feather seems to have fail'd.
19:50 [Coke] .google "little animal farm" polish family game
19:50 tomaw joined #perl6
19:50 tadzik [Coke]: it doesn't really have an english title
19:51 tadzik it's just masak's translation
19:51 masak phenny: google "little animal farm" polish family game
19:51 tadzik try "Hodowla zwierzątek"
19:51 sorear masak: yeah, because I was running it as nobody, which doesn't have write permission to ~sorear
19:51 sorear masak: I did it as myself in a secret window
19:51 masak ah, ok :)
19:51 masak moritz: are you in?
19:52 moritz masak: yes-ish
19:53 masak sounds like us over here :)
19:54 masak ok, so we're potentially 4 players.
19:55 PerlJam If a roll turns up a fox and the player has a big dog does that have the same effect as the player having a small dog?
19:55 * moritz currently chats with stevan about MOPs, so can't muster the concentration for playing a game
19:55 masak oh btw, we're planning to bring a few sets of this game to YAPC::EU :)
19:55 masak PerlJam: no.
19:55 sorear mmm MOPs
19:56 masak moritz: understandable :)
19:56 sorear masak: you have official sets?
19:56 masak sorear: yes, I bought one from the Warsaw Uprising Museum.
19:57 masak sorear: the original sets were all destroyed in the big firebombing, save for one that had been transported out of town.
19:57 masak sorear: the current sets are based on it.
19:57 fhelmberger left #perl6
19:57 masak they're gorgeous, and have this fake 1940s feel to them.
19:58 masak sorear: we'll just finish making the pasta over here; then we can play. :)
19:58 PerlJam seems like it would behoove you to trade for a small dog and a big dog as soon as possible.
19:59 pmichaud dogs have paws, not hooves.  :-)
19:59 sorear I have some theories about strategy, but I'm going to test them before sharing :D
20:00 sorear I suppose masak&tadzik are already experts
20:00 PerlJam so ... now that there's a game engine, the next logical thing to do is create a program that plays the game  :)
20:02 masak PerlJam: already on it :P
20:03 masak waaay ahead of you... :)
20:03 masak sorear: no, we're not experts, at least not me.
20:03 PerlJam Of course.  I figured as much
20:03 masak sorear: we've only actually played it once, and tadzik had a bit of bad luck with foxes.
20:04 PerlJam pmichaud: you missed some good BBQ today.  We're doing another on Aug 26 for John's retirement if you want to make a trip down here :)
20:05 PerlJam masak: See?  he should have traded for a small dog often  :)
20:05 tadzik hmm, actually I know this game for like 10 years already :)
20:05 pmichaud PerlJam: It's on my calendar... but given that's the first week of school in Plano I doubt I'll be able to make it.  :)
20:05 masak tadzik: really? it was hard to tell :P
20:06 * masak is too cocky because he won by luck
20:06 sorear For as much as Perl 6 claims to be "The operator-oriented language", J pretty clearly surpasses us on that design axis
20:06 masak sorear: without a doubt.
20:07 tadzik oh, not entirely by luck :)
20:07 * sorear is playing with J while waiting
20:07 masak but Perl 6 slides better along the operator-enterprisey spectrum.
20:07 masak sorear: any minute now.
20:11 TimToady .oO(if all you've got is an operator, everything starts to look like an operand)
20:12 masak and if all you have is Java, everything starts to look like a bean? :)
20:12 tadzik I read that as a beer
20:12 [Coke] mmm, beer.
20:12 diakopter mmm, beans
20:13 masak eastern Poland is wonderful. not only do they have very nice beer, they also have kwass! \o/
20:14 tadzik and those funny kids on their bicycles swearing at you in random permutation of languages
20:14 * TimToady wonders whether we'll ever see the end of June from masak++
20:14 tadzik maybe they're paid clowns
20:15 masak TimToady: :)
20:15 masak TimToady: I'll probably have enough time and battery tomorrow on the way home to put together that post.
20:15 masak tadzik: "fuck you wam kurva!", was it? fascinating.
20:19 thou joined #perl6
20:19 masak sorear: we now have food. let's play.
20:20 tadzik masak: something of this sort :)
20:20 masak suggest player 1: sorear, player 2: tadzik, player 3: masak.
20:20 sorear +1
20:20 masak shoot.
20:21 masak yay :)
20:21 sorear is it correct that it takes a couple turns to get off the ground?
20:21 masak oh, sure.
20:21 masak it's .25 chance to get your first rabbit.
20:21 tadzik sorear: it is also possible for everything to get back to zero
20:21 sorear do wolves attack everyone?  I just have them attacking the player who rolled them
20:22 masak sorear: no, just the player.
20:24 sorear ooh, masak gets the first move
20:24 sorear was that correct?
20:24 masak think so.
20:24 sorear first trade, then spawn
20:24 tadzik yes
20:24 masak aye.
20:32 masak sorear: found a bug.
20:32 sorear ?
20:32 masak I got
20:32 masak 3 rabbits 1 sheep 2 pigs
20:32 masak that's not possible.
20:33 masak you only get what the dice show.
20:33 sorear what lines?
20:33 tadzik [3] Adds 1 sheep(s)
20:33 tadzik from the trade maybe?
20:33 masak oh! or is that 'add' part of the trade?
20:34 sorear no, you got 1 sheep from the trade (you now have a sheep) then you have a pair with the dice
20:34 tadzik so where did masak get 3 rabbits?
20:34 masak sorear: right, but where do the rabbits come from?
20:34 sorear you had 12, you traded 6 away, you still had 6
20:35 tadzik but now he has 9
20:35 tadzik and dices were pig and sheep
20:35 masak <masak> you only get what the dice show.
20:35 sorear 6 + 6/3 = 9
20:35 masak sorear: non-die animals don't breed.
20:35 sorear oh!
20:35 masak :)
20:35 [Coke] masak: that's not clear from your readme.
20:35 masak if so, sorry 'bout that. :/
20:36 [Coke] "player already has 3 rabbits, rolls at least one rabbit => 2 pairs. that gives the player 2 rabbits"
20:36 [Coke] that sounds like the non-rolled rabbits count as pairs.
20:36 masak keep playing? I vote yes.
20:36 masak [Coke]: they do, but only when the die shows the animal.
20:38 moritz do all animals breed like that?
20:39 tadzik yes
20:39 masak except dogs :)
20:39 masak (because they're not on the dice)
20:40 moritz so they can only be acquired by trading
20:40 masak aye.
20:40 tadzik like cows and horses
20:40 tadzik 'cos both are only on one of the dices
20:42 sorear note, the current process has a bug where all animals breed
20:42 tadzik cowstorm!
20:42 sorear I have however fixed it
20:42 * masak guessed that :)
20:42 masak sorear++
20:42 masak nice round.
20:42 tadzik aye
20:43 masak I'll update the README.md
20:45 masak pushed.
20:45 sorear cmatrix?
20:45 moritz what's the gist URL?
20:45 tadzik that does the matrix-like animation
20:45 tadzik the falling letters
20:46 masak moritz: https://gist.github.com/1098446
20:46 masak moritz: but I really updated the README.md in the repo. I should obsolete the gist.
20:47 masak done.
20:49 M_o_C joined #perl6
20:54 kaare_ left #perl6
20:55 moritz masak: glancing over your code, I don't see where the trading "currency" is checked... is that NYI?
20:55 masak moritz: yes. implementing it as we speak.
20:55 masak its absence corresponds to one failing test at the end :)
20:55 moritz :-)
20:56 moritz so, you can just map the value of any animal to number of rabbits?
20:56 tadzik yes
20:56 masak rabbits, the universal currency.
20:57 moritz so what's the total worth of all animals in the game, calculated in rabbit units? :-)
20:58 M_o_C left #perl6
20:58 masak moritz: sounds like a job for multiplication and addition. if you find out, let us know :P
20:59 sorear moritz: 1404
20:59 masak sorear++
20:59 sorear cows and horses are the largest store of value in the stock
20:59 sorear 432 ea
21:01 moritz if I didn't have nom to hack on, I'd now be doing some modelling about when one typically reaches his first big dog
21:01 masak :)
21:03 moritz purely from looking at the rules, it seems that one should store one assets mostly in cows (and a big dog for protection)
21:04 tadzik if you have positive number of cows you don't really need to store them :)
21:04 tadzik well, 2 and more
21:04 tadzik 4 cows win the game
21:05 tadzik and experience shows that you want to invest in rabbits, they breed Fast
21:06 masak indeed.
21:06 TimToady .oO("You enter a barnyard.  You see two rabbits...no, make that four...wait...")
21:06 masak the small dog is good for securing your rabbit supply.
21:06 TimToady but the dog might be in the crypt
21:06 masak surely not :)
21:07 masak so after this last game I consider it more vital than a sheep.
21:07 TimToady I figure the next step is to attach this came to the last one
21:07 TimToady *game
21:07 masak :P
21:07 mkramer joined #perl6
21:07 masak "Oh great. Now your car is full of sheep."
21:08 TimToady "If you proceed, your horse is likely to be eaten by a glue factory."
21:10 masak moritz: implemented fair trade. 87 lines.
21:10 masak I can think of no more rules to implement in the game.
21:10 masak time to make a CLI, I think.
21:11 TimToady 'course there's also the capitalist version, with spots on the board like Pork Place and Bleat Walk
21:15 TimToady I guess that'd be Breedwalk if you're a rabbit
21:18 * moritz -> sleep
21:18 mkramer left #perl6
21:18 TimToady o/
21:18 dalek rakudo/nom: a52ea8f | moritz++ | src/Perl6/Metamodel/MROBased (2 files):
21:18 dalek rakudo/nom: fix newlines in two MOP files; no functional changes
21:18 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/a52ea8fcb6
21:18 masak 'night, moritz++
21:29 masak oh! I forgot to implement accepting/declining a trade :)
21:29 masak oh well. something for tomorrow.
21:30 masak oh! and the winning condition. oh, man. :/
21:32 * masak is teetering around 100 LoC now
21:33 TimToady you should be able to get it all on one line
21:36 masak I guess I forgot to mention my column restriction...
21:36 tadzik you should be able to get it in one column :)
21:38 masak ok, you guys aren't allowed to touch my code. :P
21:40 sorear i'd be interested in seeing one column version
21:40 ab5tract left #perl6
21:41 tadzik it depends on how wide is that column
21:42 masak not even wide Asian characters will save you, methinks.
21:42 sorear for bonus points, make it an ASCII densitygram of a proper Ionic column
21:42 tadzik if we encode that in utf-32 we may be able to put 4 characters in a column
21:43 tadzik or something like this :)
21:43 SHODAN left #perl6
21:43 tadzik don't mind me, I'm a bit sleepy
21:43 Psyche^ joined #perl6
21:43 masak s/Psyche^/Patterner/
21:43 sorear nobody wants another round with sorear.pl6?
21:44 sorear meh, Psyche is a great name for a p6er
21:44 masak sorear: not today; maybe after I land tomorrow :)
21:44 Patterner left #perl6
21:44 Psyche^ is now known as Patterner
21:44 sorear .oO( masak must be falling from a truly great height)
21:44 masak in a manner of speaking, yes.
21:45 masak Warsaw truly is great.
21:45 tadzik don't worry, it's only the 3rd floor
21:45 masak tadzik tries pushing me out on the balcony as a joke. wait, this chair has wheels...? :)
21:46 masak hold on, tadzik! let's talk about this!
21:46 tadzik heh, masak already knows the Mars Mission story/legend
21:46 tadzik so a couple of students get so drunk that they put a guy in a box labeled "Mars Mission" and drop him out of the window
21:47 tadzik when the police breaks into the flat, they see the second guy in a box labeled "Rescue Mission"
21:47 masak I still haven't decided if that story is funny or sad, or a little bit of both.
21:47 tadzik I hope it's fake
21:48 masak you never know with students.
21:48 sorear well I don't get the humor
21:48 tadzik yeah, thanks :)
21:48 tadzik sorear: the humour (or not), is that this is supposed to be a true story from the Warsaw student's house Alcatraz
21:50 bluescreen10 left #perl6
21:50 impious left #perl6
21:51 masak googling for "warsaw alcatraz mars mission" turns up nothing in particular. so it's probably just a story.
21:51 flussence .oO( Warsaw apparently has very unpredictable gravity... )
21:52 sorear tadzik: I still don't understand the joke
21:52 tadzik http://atrapa.net/legendy/misjanamarsa.htm -- first hit on google with polish keywords
21:52 sorear unless it's a reference to the prison in my backyard
21:53 masak sorear: I'll give it a go. throwing someone out a window while drunk isn't that funny. being about to throw a second person out the window after the first one is... kinda funny. :)
21:53 tadzik to rescue the first one
21:54 donri left #perl6
21:55 tadzik google results show that they actually did that last year again, with a fridge
21:58 whiteknight joined #perl6
21:59 pyrimidine left #perl6
22:01 cooper left #perl6
22:03 thou left #perl6
22:08 masak got halfway through the CLI before sleep hit.
22:08 masak 'night, #perl6.
22:08 masak left #perl6
22:08 yahooooo left #perl6
22:12 yahooooo joined #perl6
22:12 drbean joined #perl6
22:15 leprevost left #perl6
22:24 buubot_backup left #perl6
22:26 ciphertext joined #perl6
22:38 kfo_ joined #perl6
22:42 kfo left #perl6
22:46 CBro2007 left #perl6
23:31 jevin left #perl6
23:33 orafu left #perl6
23:34 jevin joined #perl6
23:35 orafu joined #perl6
23:40 Moukeddar joined #perl6
23:40 Moukeddar left #perl6
23:44 Transformer joined #perl6
23:45 Transformer left #perl6
23:46 bluescreen10 joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo