»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:06 erkan left 00:08 erkan joined 00:18 Circlepuller__ is now known as Circlepuller 00:32 leont left 00:38 cognominal left 01:09 thou left 01:10 jaldhar joined
colomon rn: say (*.value > 2)(1 => 4) 01:24
p6eval rakudo ebc730, niecza v22-6-g9e5350d: OUTPUT«True␤»
01:45 benabik left 01:46 benabik joined 01:53 HarryS left 01:54 HarryS joined 02:11 benabik left
colomon rn: say (1..10 Z=> 'a'..'z').classify(*.key).perl 02:19
p6eval niecza v22-6-g9e5350d: OUTPUT«("10" => [10 => "j"], "9" => [9 => "i"], "8" => [8 => "h"], "7" => [7 => "g"], "6" => [6 => "f"], "5" => [5 => "e"], "4" => [4 => "d"], "3" => [3 => "c"], "2" => [2 => "b"], "1" => [1 => "a"]).list␤»
..rakudo ebc730: OUTPUT«("1" => [1 => "a"], "2" => [2 => "b"], "3" => [3 => "c"], "4" => [4 => "d"], "5" => [5 => "e"], "6" => [6 => "f"], "7" => [7 => "g"], "8" => [8 => "h"], "9" => [9 => "i"], "10" => [10 => "j"]).hash␤»
colomon list versus hash. who'd win? 02:23
ah, supposed to be a hash 02:25
hmmm
timotimo r: say (1.10 Z=> 'a'..'z').classify(*.key % 3) 02:32
p6eval rakudo ebc730: OUTPUT«("1.1" => [11/10 => "a"]).hash␤»
timotimo r: say (1..10 Z=> 'a'..'z').classify(*.key % 3) 02:33
p6eval rakudo ebc730: OUTPUT«("1" => [1 => "a", 4 => "d", 7 => "g", 10 => "j"], "2" => [2 => "b", 5 => "e", 8 => "h"], "0" => [3 => "c", 6 => "f", 9 => "i"]).hash␤»
timotimo that's cute
colomon it's a terrific little method when you need it. :) 02:34
02:35 benabik joined
dalek ecza: 7df6137 | (Solomon Foster)++ | lib/CORE.setting:
.classify and .categorize are supposed to return hashes -- make it so.
02:39
02:39 orafu left 02:40 orafu joined
dalek ast: 316e321 | (Solomon Foster)++ | S02-names-vars/names.t:
Change fudge from todo to skip to get the test file working on Niecza again.
02:53
ast: a5194c1 | (Solomon Foster)++ | S02-names/symbolic-deref.t:
Fudge for niecza.
03:01
03:26 xinming joined 03:29 xinming_ left 03:50 kaare__ joined 03:54 thou joined 04:05 DarthGandalf left 04:07 DarthGandalf joined 04:13 rurban left 04:22 Chillance left, killbot joined 04:51 mdupont left 04:52 mdupont joined 04:57 wooden left, wooden joined 04:58 skids left 05:00 skids joined 05:02 tokuhiro_ left 05:06 jrockway left, rhr left 05:08 rhr joined 05:11 hash_table left 05:12 kaare__ left 05:16 rurban joined 05:18 jaldhar left 05:21 jrockway joined 05:32 jaldhar joined 05:58 birdwindupbird joined 06:04 erkan left 06:36 wk_ left 07:04 simcop2387 left, simcop2387 joined 07:07 thou left 07:11 SamuraiJack joined 07:14 raiph joined 07:15 drbean left 07:16 drbean joined 07:25 raiph left 07:28 wk joined 07:46 fgomez left 08:00 fgomez joined 08:05 aharoni joined 08:13 fgomez left 08:15 fgomez joined 08:16 aharoni left 08:27 birdwindupbird left 08:41 aharoni joined 09:02 SamuraiJack left
dalek kudo/nom: fa7fca7 | moritz++ | src/Perl6/Actions.pm:
:ss implies :s; allow :samespace and :ss on s///
09:23
09:31 aharoni left 09:37 spider-mario joined
tadzik hello #perl6 www.quickmeme.com/meme/3r86tr/ 09:41
09:41 MayDaniel joined 09:52 timbunce joined
timbunce I'm looking for perl6 talk slides that convey the breadth & depth of language features. Something I can condense to ~10mins. Any suggestions? 09:53
I'm skimming through jnthn's at the moment. Lots of detail but less of the Big Picture. 09:54
I'll go find pmichaud's next.
10:03 leont joined 10:18 bbkr_ left 10:31 Circlepuller left 10:34 GlitchMr joined 10:42 xinming left 10:43 xinming joined
moritz timbunce: I'd look at jnthn's "Perl 6: Quicker Hacks, More Maintainable Apps" 10:44
10:44 tokuhiro_ joined 11:05 Su-Shee_ joined 11:09 Su-Shee left 11:19 nodmonkey joined 11:27 nodmonkey left 11:33 hoelzro|away is now known as hoelzro 11:35 hoelzro is now known as hoelzro|away, crab2313 joined 11:49 rindolf joined 11:54 Playb3yond joined 12:00 edwin_ joined
edwin_ hi perl6! 12:02
I wonder if there is a natural inverse to :60[$a, $b, $c] 12:03
rindolf edwin_: hello.
edwin_: what's up?
edwin_ i.e. given $x produce the list $x % 60, ($x div 60) % 60, ...
rosettacode.org/wiki/Main_step_of_G...-89#Perl_6 12:05
timbunce moritz: yeap, got that one. thanks. And I've just found pmichaud.com/2012/pres/
moritz edwin_: I wonder if Int.base should accept a :list adverb 12:06
12:06 prammer joined
edwin_ moritz, sounds good. would that give a lazy list ending in ,0 xx * ? 12:09
or one could specify how many "digits" are wanted
12:12 wamba joined
moritz edwin_: on an integer, it's always a finiite list 12:13
12:13 nodmonkey joined 12:14 nodmonkey left
edwin_ ok, so one would have to extend with zeroes explicitly to fill a fixed size array of digits, for example 12:15
moritz yes
edwin_ it seems like an easy problem made hard by a plethora of bike sheds :) 12:16
Timbus n: \a = "wait what?"; say a;
p6eval niecza v22-7-g7df6137: OUTPUT«===SORRY!===␤␤Preceding context expects a term, but found infix = instead at /tmp/453OCVCAM6 line 1:␤------> \a ⏏= "wait what?"; say a;␤␤Parse failed␤␤»
edwin_ I know that I would like to have this functionality, but I cannot decide exactly how I'd want it
Timbus r: \a = "wait what?"; say a; 12:17
p6eval rakudo fa7fca: OUTPUT«===SORRY!===␤Preceding context expects a term, but found infix = instead␤at /tmp/rSmO9fKxOb:1␤»
Timbus que
moritz r: my \a = "lol"; say a
p6eval rakudo fa7fca: OUTPUT«lol␤»
moritz only works in declarations 12:18
Timbus what the heck aaaaa
the lack of sigil confuses and infuriates me. how long has this been a feature 12:20
12:21 birdwindupbird joined
moritz then don't use the feature 12:21
it's been specced for several month
and implemented for maybe two months
it's very useful if you don't want to impose a context 12:22
beause sigils are tied to context
Timbus oh okay its fairly newish then 12:23
edwin_ it's nice if you just want to name an expression, not put it in a container, I find 12:26
Timbus that is kinda neat, yes 12:27
edwin_ I think it will take me some time to find a balance, when to use it and when not
12:27 PacoAir joined
edwin_ but experimenting with it on RC is a lot of fun :) 12:27
12:29 edwin_ left 12:30 edwin__ joined 12:31 edwin__ is now known as _edwin
_edwin moritz, what would be a good way to contribute to doc.perl6.org (with sparse tuits)? 12:40
moritz _edwin: write more docs, review the new ones, write some CSS for it 12:46
s/new/existing/
12:53 SamuraiJack joined 12:55 mikemol left 12:56 mikemol joined 13:00 Playb3yond left
_edwin wow, htmlify.pl takes some time 13:10
moritz I know :( 13:14
13:20 rindolf left 13:21 rindolf joined, hash_table joined
timbunce When is Perl 6's official birthday? How old is it? 13:22
moritz 2000-07-18 13:26
according to strangelyconsistent.org/blog/happy-...ary-perl-6
13:27 killbot left 13:29 killbot joined 13:31 rindolf left
timbunce moritz: umm, yeah. I was there when the coffee mug hit the wall. I'd call that the Conception of Perl 6, but not the birth. Got a first release date of something we could perl perl6? 13:38
*something we could call perl6 13:39
moritz well, apart from the mug throwing, there aren't many really notable dates 13:40
maybe the first R* release
or the first pugs release
or... I don't know
it's really up to interpretation
timbunce The first pugs release seems like a clear milestone. Got a date?
though perhaps R* was more clearly 'perl6' 13:41
Was July 2010 the first R* release? github.com/rakudo/star/blob/master...ce/2010.07
13:41 skids left 13:42 M_o_C joined
moritz yes 13:42
13:42 skids joined
timbunce ok, thanks. 13:43
moritz svn.openfoundry.org/pugs/ChangeLog lists February 7, 2005 as the first pugs release to CPAN
13:45 M_o_C left
timbunce thanks. 13:47
There used to be a rakudo.org/status page that had a graph showing the growth in the number of tests (pass/fail/todo etc). Is that still available somewhere? 13:48
13:49 tokuhiro_ left, tokuhiro_ joined 13:53 tokuhiro_ left 14:02 sivoais left 14:03 sivoais joined, cognominal joined 14:04 mucker joined 14:12 SHODAN left
dalek rlito: 4f2b998 | (Flavio S. Glock)++ | / (3 files):
Perlito5 - js - remove "null"s
14:12
14:14 SHODAN joined 14:20 cognominal_ joined 14:22 cognominal left 14:46 _edwin left
moritz timbunce: no. I've stopped doing that because lots of people would draw entirely wrong concolusions from it 14:47
timbunce pity, but I understand.
14:52 Psyche^ joined 14:55 Patterner left, Psyche^ is now known as Patterner 15:05 kaare__ joined 15:07 Circlepuller joined
jnthn is home from Japan 15:14
The temperature and humidity here are sane! \o/
moritz welcome back jnthn 15:15
diakopter jnthn: hi!
15:26 cognominal_ left 15:30 am0c joined 15:32 cognominal joined 15:51 crab2313 left 15:53 spider-mario left
timbunce I'd love to see a chart showing the percentage of perl 6 written in perl 6 (or NPQ) over time. 16:10
arnsholt There's a video on pmichaud's blog which has two pie charts 16:13
Not a comprehensive overview, but a start =)
timbunce arnsholt: ah yes, pmichaud.com/2012/pres/yapcna-perfl...ide37.html thanks 16:18
16:33 cognominal left 16:39 cognominal joined 16:46 cognominal left 16:48 birdwindupbird left, spider-mario joined 16:51 raiph joined 16:55 cognominal joined 17:04 JTAAEVBB joined 17:12 sivoais left, sivoais joined 17:20 mucker left
raiph timbunce: maybe footnote sourcecode piechart -- i think a lot of PIR has been removed since that chart 17:23
17:24 tangentstorm joined
timbunce raiph: cool. I've summarized it as "Mostly implemented in Perl6 (>60% and rising)" (glossing over the perl6 vs NQP distinction) 17:24
jnthn The big thing that happened on that angle in the last couple of months is that NQP lost most of its PIR also 17:25
17:39 thou joined 17:40 aharoni joined 17:52 tangentstorm left 17:59 Pleiades` left 18:00 cognominal left, Pleiades` joined, thou left 18:06 fgomez left, fgomez joined 18:08 cognominal joined 18:10 timbunce left 18:12 cognominal left 18:17 timbunce joined 18:18 fgomez left 18:25 benabik left 18:26 benabik joined 18:27 xinming left 18:30 fgomez joined 18:31 fgomez left 18:32 fgomez joined 18:40 benabik left 18:44 fgomez left 18:45 benabik joined 18:48 cognominal joined 18:52 fgomez joined 18:53 Chillance joined 19:02 cognominal left 19:05 cognominal joined
mathw o/ 19:08
19:17 birdwindupbird joined 19:23 fgomez left 19:25 flightrecorder joined, FROGGS joined 19:27 benabik left 19:31 timbunce_ joined, fgomez joined, timbunce left, timbunce_ is now known as timbunce 19:34 benabik joined 19:38 GlitchMr left, cognominal left 19:45 cognominal joined 19:55 wtw left, PZt left, mj41 left, doy left, PerlJam left, patspam left, Bucciarati left, felipe left, zb left, timotimo left, gugod left, Guest7858 left, killbot left, Circlepuller left, orafu left, bruges left, p6eval left, mst left, TimToady left, cotto left, aharoni left, daniel-s left, sudokode left, kst left, rummik- left, phenny left, ingy left, araujo left, revdiablo left, Maddingue left, pjcj left, LoRe left, geekosaur left, diakopter left, huf left, yves__ left, takesako_ left, risou_ left, spacebat_ left, flightrecorder left, spider-mario left, am0c left, benabik left, FROGGS left, skids left, PacoAir left, MayDaniel left, jaldhar left, sevvie left, quietfanatic left, topo left, szbalint left, shachaf left, smash left, hugme left, apejens left, BooK left, rurban left, mtk left, aloha left, ChoHag left, ServerSage left, Patterner left, rhr left, colomon left, fuleo left, ggoebel left, felher left, groky left, gootle left, mikec_ left, ashleydev left, baest left, telex left, japhb left, bbkr left, gfldex left, lestrrat left, Ulti left, cibs left, wooden left, Vlavv_ left, sizz left, lorn left, jerome left, dalek left, simcop2387 left, arlinius left, frettled left, charsbar_____ left, `patch` left, raiph left, fgomez left, sivoais left, wamba left, Woodi left, c1sung left, kcwu left, larks left, timbunce left, _ilbot left, steven_ left, bonsaikitten left, pmichaud left, kenjiskywalker left, krunen left, Gothmog_ left, leont left, jrockway left, whiteknight left, broquaint left, sweet_kid left, sftp left, ivan`` left, __sri left, Grrrr left, clkao left, sorear left, Timbus left, birdwindupbird left, Pleiades` left, prammer left, preflex left, domidumont left, rking left, jnthn left, kaare__ left, SamuraiJack left, Su-Shee_ left, imarcusthis left, sjn left, aindilis left, perigrin left, Exodist left, nebuchadnezzar left, eiro left, eiro_ left, Tene left, DarthGandalf left, HarryS left, jlaire left, lumi__ left, SHODAN left, wk left, drbean left, estrai left, Khisanth left, ranguard left, tadzik left, rjbs left, literal left, jevin left, robinsmidsrod left, snarkyboojum left, yeltzooo left, cognominal left, Chillance left, mdupont left, flussence left, sunnavy_ left, nyuszika7h left, xdbr left, Celelibi left, mikemol left, dju left, betterwo1ld left, mathw left, [Coke] left, cosimo left, masak left, Juerd left, spanner left, hash_table left, sjohnson left, arnsholt left, s1n left, iemelianov left, Yappocall left, renormalist left 19:56 Bucciarati joined, infosophy joined, timotimo_ joined, mj41_ joined, PerlPilot joined, nemesys_ joined, doy_ joined, patspam_ joined, cognominal joined, benabik joined, fgomez joined, timbunce joined, FROGGS joined, flightrecorder joined, birdwindupbird joined, Chillance joined, Pleiades` joined, aharoni joined, sivoais joined, JTAAEVBB joined, raiph joined, spider-mario joined, am0c joined, Circlepuller joined, kaare__ joined, Patterner joined, SHODAN joined, skids joined, killbot joined, mikemol joined, SamuraiJack joined, PacoAir joined, wamba joined, prammer joined, Su-Shee_ joined, leont joined, MayDaniel joined, wk joined, drbean joined, simcop2387 joined, jaldhar joined, jrockway joined, rurban joined, rhr joined, wooden joined, mdupont joined, DarthGandalf joined, orafu joined, HarryS joined, whiteknight joined, preflex joined, Vlavv_ joined, flussence joined, _ilbot joined, colomon joined, gootle joined, baest joined, imarcusthis joined, telex joined, japhb joined, BooK joined, apejens joined, hugme joined, smash joined, shachaf joined, szbalint joined, topo joined, quietfanatic joined, sevvie joined, daniel-s joined, mikec_ joined, sunnavy_ joined, estrai joined, cibs joined, sizz joined, Khisanth joined, bruges joined, sudokode joined, broquaint joined, jlaire joined, sweet_kid joined, sjn joined, sftp joined, mtk joined, domidumont joined, lorn joined, kst joined, ashleydev joined, nyuszika7h joined, Exodist joined, aindilis joined, fuleo joined, perigrin joined, jerome joined, calvino.freenode.net sets mode: +v hugme, aloha joined, rummik- joined, nebuchadnezzar joined, dalek joined, dju joined, arlinius joined, xdbr joined, rjbs joined, spanner joined, bbkr joined, phenny joined, Woodi joined, ingy joined, ChoHag joined, ggoebel joined, robinsmidsrod joined, Ulti joined, gfldex joined, ServerSage joined, felher joined, araujo joined, rking joined, groky joined, revdiablo joined, c1sung joined, Maddingue joined, pjcj joined, LoRe joined, steven_ joined, Celelibi joined, bonsaikitten joined, kcwu joined, ranguard joined, lestrrat joined, larks joined, jnthn joined, au joined, p6eval joined, snarkyboojum joined, tadzik joined, geekosaur joined, diakopter joined, eiro joined, pmichaud joined, ivan`` joined, huf joined, yves__ joined, calvino.freenode.net sets mode: +vv dalek p6eval, yeltzooo joined, cotto joined, TimToady joined, mst joined, takesako_ joined, literal joined, betterwo1ld joined, mathw joined, risou_ joined, __sri joined, Grrrr joined, kenjiskywalker joined, krunen joined, clkao joined, lumi__ joined, [Coke] joined, spacebat_ joined, sorear joined, `patch` joined, charsbar_____ joined, frettled joined, Gothmog_ joined, jevin joined, Timbus joined, cosimo joined, Tene joined, masak joined, Juerd joined, eiro_ joined, moritz joined, avar joined, cxreg joined, zamolxes_ joined, pnu_ joined, BinGOs joined, obra joined, pochi joined, nuba joined, jtpalmer joined, crazedpsyc joined, flightrecorder left, z-b joined, hash_table joined, sjohnson joined, arnsholt joined, s1n joined, iemelianov joined, Yappocall joined, renormalist joined, flightrecorder joined 19:59 PZt joined 20:00 z-b left, hash_table left, sjohnson left, arnsholt left, s1n left, iemelianov left, Yappocall left, renormalist left, killbot left, Circlepuller left, orafu left, bruges left, p6eval left, mst left, TimToady left, cotto left, aharoni left, daniel-s left, sudokode left, kst left, rummik- left, phenny left, ingy left, araujo left, revdiablo left, Maddingue left, pjcj left, LoRe left, geekosaur left, diakopter left, huf left, yves__ left, takesako_ left, risou_ left, spacebat_ left, flightrecorder left, infosophy left, spider-mario left, am0c left, benabik left, FROGGS left, skids left, PacoAir left, MayDaniel left, jaldhar left, sevvie left, quietfanatic left, topo left, szbalint left, shachaf left, smash left, hugme left, apejens left, BooK left, rurban left, mtk left, aloha left, ChoHag left, ServerSage left, patspam_ left, Patterner left, rhr left, colomon left, fuleo left, ggoebel left, felher left, groky left, gootle left, mikec_ left, ashleydev left, baest left, telex left, japhb left, bbkr left, gfldex left, lestrrat left, Ulti left, cibs left, Bucciarati left, wooden left, Vlavv_ left, sizz left, lorn left, jerome left, dalek left, simcop2387 left, arlinius left, frettled left, charsbar_____ left, `patch` left, raiph left, PerlPilot left, fgomez left, sivoais left, wamba left, Woodi left, c1sung left, kcwu left, larks left, nemesys_ left, timbunce left, _ilbot left, steven_ left, bonsaikitten left, pmichaud left, kenjiskywalker left, krunen left, Gothmog_ left, mj41_ left, leont left, jrockway left, whiteknight left, broquaint left, sweet_kid left, sftp left, ivan`` left, __sri left, Grrrr left, clkao left, sorear left, Timbus left, birdwindupbird left, Pleiades` left, prammer left, preflex left, domidumont left, rking left, jnthn left, au left, doy_ left, kaare__ left, SamuraiJack left, Su-Shee_ left, imarcusthis left, sjn left, aindilis left, perigrin left, Exodist left, nebuchadnezzar left, eiro left, eiro_ left, zamolxes_ left, pnu_ left, PZt left, Tene left, cxreg left, DarthGandalf left, HarryS left, jlaire left, lumi__ left, moritz left, BinGOs left, pochi left, nuba left, SHODAN left, wk left, drbean left, estrai left, Khisanth left, ranguard left, tadzik left, rjbs left, literal left, jevin left, avar left, crazedpsyc left, robinsmidsrod left, snarkyboojum left, yeltzooo left, timotimo_ left, cognominal left, Chillance left, mdupont left, flussence left, sunnavy_ left, nyuszika7h left, xdbr left, Celelibi left, mikemol left, dju left, betterwo1ld left, mathw left, [Coke] left, cosimo left, masak left, Juerd left, spanner left, obra left, jtpalmer left 20:01 PZt joined, flightrecorder joined, renormalist joined, Yappocall joined, iemelianov joined, s1n joined, arnsholt joined, sjohnson joined, hash_table joined, z-b joined, Bucciarati joined, infosophy joined, timotimo_ joined, mj41_ joined, PerlPilot joined, nemesys_ joined, doy_ joined, patspam_ joined, cognominal joined, benabik joined, fgomez joined, timbunce joined, FROGGS joined, birdwindupbird joined, Chillance joined, Pleiades` joined, aharoni joined, sivoais joined, JTAAEVBB joined, raiph joined, spider-mario joined, am0c joined, Circlepuller joined, kaare__ joined, Patterner joined, SHODAN joined, skids joined, killbot joined, mikemol joined, SamuraiJack joined, PacoAir joined, wamba joined, prammer joined, Su-Shee_ joined, leont joined, MayDaniel joined, wk joined, drbean joined, simcop2387 joined, jaldhar joined, jrockway joined, rurban joined, rhr joined, wooden joined, mdupont joined, DarthGandalf joined, orafu joined, HarryS joined, whiteknight joined, preflex joined, Vlavv_ joined, flussence joined, _ilbot joined, colomon joined, gootle joined, baest joined, imarcusthis joined, telex joined, japhb joined, BooK joined, apejens joined, hugme joined, smash joined, shachaf joined, szbalint joined, topo joined, quietfanatic joined, sevvie joined, daniel-s joined, mikec_ joined, sunnavy_ joined, estrai joined, cibs joined, sizz joined, Khisanth joined, bruges joined, sudokode joined, broquaint joined, jlaire joined, sweet_kid joined, sjn joined, sftp joined, mtk joined, domidumont joined, calvino.freenode.net sets mode: +v hugme, lorn joined, kst joined, ashleydev joined, nyuszika7h joined, Exodist joined, aindilis joined, fuleo joined, perigrin joined, jerome joined, aloha joined, rummik- joined, nebuchadnezzar joined, dalek joined, dju joined, arlinius joined, xdbr joined, rjbs joined, spanner joined, bbkr joined, phenny joined, Woodi joined, ingy joined, ChoHag joined, ggoebel joined, robinsmidsrod joined, Ulti joined, gfldex joined, ServerSage joined, felher joined, araujo joined, rking joined, groky joined, revdiablo joined, c1sung joined, Maddingue joined, pjcj joined, LoRe joined, steven_ joined, Celelibi joined, bonsaikitten joined, kcwu joined, ranguard joined, lestrrat joined, larks joined, jnthn joined, au joined, p6eval joined, calvino.freenode.net sets mode: +vv dalek p6eval, snarkyboojum joined, tadzik joined, geekosaur joined, diakopter joined, eiro joined, pmichaud joined, ivan`` joined, huf joined, yves__ joined, yeltzooo joined, cotto joined, TimToady joined, mst joined, takesako_ joined, literal joined, betterwo1ld joined, mathw joined, risou_ joined, __sri joined, Grrrr joined, kenjiskywalker joined, krunen joined, clkao joined, lumi__ joined, [Coke] joined, spacebat_ joined, sorear joined, `patch` joined, charsbar_____ joined, frettled joined, Gothmog_ joined, jevin joined, Timbus joined, cosimo joined, Tene joined, masak joined, Juerd joined, eiro_ joined, moritz joined, avar joined, cxreg joined, zamolxes_ joined, pnu_ joined, BinGOs joined, obra joined, pochi joined, nuba joined, jtpalmer joined, crazedpsyc joined, flightrecorder left, flightrecorder joined 20:06 kaare__ left 20:28 flightrecorder left, FROGGS left 20:31 benabik left 20:36 cognominal left 20:43 aharoni left 20:52 awwaiid joined 20:56 grondilu joined
grondilu nr: sub f(\x) { x }; say f "weird signature" 20:57
p6eval rakudo fa7fca, niecza v22-7-g7df6137: OUTPUT«weird signature␤»
20:58 silug joined 20:59 Coleoid joined
diakopter nr: sub f(\x) { x x x }; say f "10" 21:01
p6eval rakudo fa7fca, niecza v22-7-g7df6137: OUTPUT«10101010101010101010␤»
Coleoid Hi, #perl6 people!
timbunce Is the perl6 code on page 71 of www.slideshare.net/Tim.Bunce/perl-myths-200909 still valid? 21:02
and page 72, while I'm asking.
diakopter type it into a gist, then give the gist url to p6eval here 21:03
timbunce oops, scratch that. page 72 isn't code in that old version
flussence I don't see anything in there that's changed significantly since 2009
timbunce p6eval: gist.github.com/e7b40eff9532273ad9be 21:04
diakopter well, with rn: or r: or n:
timbunce rn: gist.github.com/e7b40eff9532273ad9be
p6eval rakudo fa7fca: OUTPUT«===SORRY!===␤Confused␤at /tmp/1JH8ZDyok9:1␤»
..niecza v22-7-g7df6137: OUTPUT«===SORRY!===␤␤Confused at /tmp/1HEnJJiJb9 line 1:␤------> https⏏://gist.github.com/e7b40eff9532273ad9be␤␤Undeclared routine:␤ 'https' used at line 1␤␤Parse failed␤␤»
diakopter also, I think it may work only with public gists
timbunce rn: gist.github.com/3846123
p6eval niecza v22-7-g7df6137: OUTPUT«2♣ 10♡ 4♢ 10♢ 3♡␤29␤» 21:05
..rakudo fa7fca: OUTPUT«5♢ 3♡ K♠ 7♣ 2♡␤27␤»
timbunce great, thanks diakopter and flussence
any thoughts on this code gist.github.com/3846125 ? 21:06
I suspect some of that is outdated now
flussence not sure about the last 2 but the rest should work fine... 21:07
r: my @fib = 1,1 ... &[+]; say @fib[3..10]
p6eval rakudo fa7fca: OUTPUT«Any() Any() Any() Any() Any() Any() Any() Any()␤»
flussence r: my @fib := 1,1 ... &[+]; say @fib[3..10] 21:08
p6eval rakudo fa7fca: OUTPUT«␤»
flussence huh
timbunce r: @fib = 1, 1, *+* ... *; say @fib[3..10]
p6eval rakudo fa7fca: OUTPUT«===SORRY!===␤Variable @fib is not declared␤at /tmp/1SPSLx4EIi:1␤»
flussence r: my @fib := 1,1,&[+] ... *; say @fib[3..10]
p6eval rakudo fa7fca: OUTPUT«3 5 8 13 21 34 55 89␤»
timbunce r: my @fib = 1, 1, *+* ... *; say @fib[3..10]
p6eval rakudo fa7fca: OUTPUT«3 5 8 13 21 34 55 89␤»
timbunce thanks 21:09
diakopter rn: my @fib = 1,1,1,1,1,1,1 *+*+*+*+*+*+* ... *; say @fib[3..30] 21:10
grondilu will timeout
p6eval niecza v22-7-g7df6137: OUTPUT«(timeout)»
..rakudo fa7fca: OUTPUT«1 1 1 6 11 21 41 81 161 321 636 1261 2501 4961 9841 19521 38721 76806 152351 302201 599441 1189041 2358561 4678401 9279996 18407641 36513081 72426721␤»
grondilu won 21:11
diakopter I had already tried it :P
r: my @fib = 1,1,1,1,1,1,1 *+*+*+*+*+*+* ... *; say @fib[300] 21:12
grondilu is impressed that rakudo made it though
p6eval rakudo fa7fca: OUTPUT«14841968777336497314060737665068870911960995493577970820884303630027584832208307226122246␤»
flussence my brain can't parse that "1,1 *+*"
diakopter what if you want to use a prior term more than once
grondilu diakopter: you need to be more explicit in writing the closure 21:13
like { $^x + $x**2 + $^y }
imho
sorear good * #perl6 21:14
21:16 felipe joined
diakopter sorear: o/ 21:16
grondilu Does sockets work for you? 21:17
*Do
Coleoid Can I eval code in a base class method and have it alter a variable in a derived class? 21:18
diakopter what kind of variable? 21:20
Coleoid A scalar to start with, 21:21
But the reason I'm evalling and subclassing is that I want the effects to be different per class. 21:22
diakopter you can have it run a method which alters a variable
Coleoid I want the user to type Perl 6 code, and have the class check that it had the effect they wanted. 21:24
So I want them able to set a scalar, or several, or set a list, or ... 21:26
I hoped to abstract the eval & check success loop into a base class, and it _looks_ good, but it's not working.
21:29 cognominal joined 21:30 tokuhiro_ joined
Coleoid A non-OO answer would be fine with me, but my first attempt at that (passing the success check code block as an argument to the eval loop) had the same problem, and others besides. 21:32
diakopter I'm having trouble picturing the code's structure 21:33
moritz Coleoid: sounds like role composition would fit better, because it adds the method right into the derived class
Coleoid: but it would be even better if you stated your actual use case; maybe there's a neat solution for it 21:34
but I fear I have to go to sleep now; will backlog
Coleoid gist.github.com/3846209
diakopter: sorry, meant to post the gist sooner. 21:35
moritz: I'll try a role! As for the use case, 21:36
It's a kid's P6 fantasy adventure, where the spell-caster needs to do magic via Perl 6 code. 21:38
flussence I think you should do the eval in the other class. 21:40
you don't really need a class either, just a sub that takes the string to eval and returns true/false
Coleoid Which works okay for the first quest, 21:41
21:42 SamuraiJack left 21:43 kurahaupo joined
Coleoid But I don't see how I can get it to check different code for each class. I suppose I could pass in the success check to be eval'ed also? 21:44
diakopter put the different success checks in subs and pass in references to the subs 21:45
Coleoid ... 21:46
diakopter ?
flussence r: my $a := :: ; say $a.perl
diakopter "wat."? :)
Coleoid That sounds like it could work...
p6eval rakudo fa7fca: OUTPUT«(timeout)»
21:47 cognominal_ joined
flussence r: sub a(\x) { say x.perl }; a(::); 21:47
p6eval rakudo fa7fca: OUTPUT«PseudoStash.new("!UNIT_MARKER", !UNIT_MARKER, "GLOBALish", GLOBAL, "EXPORT", EXPORT, "\$?PACKAGE", GLOBAL, "::?PACKAGE", GLOBAL, "\$_", Any, "\$/", Any, "\$!", Any, "\&a", sub a(\x) { ... }, "\$=pod", Array.new(), )␤»
Coleoid So :: is a sub? 21:49
flussence r: sub a(\x) { x<foo> eq 'bar' }; sub b(\string, \code) { my $foo = ''; \code(::) }; say b("$foo = 'bar'", &a);
p6eval rakudo fa7fca: OUTPUT«===SORRY!===␤Variable $foo is not declared␤at /tmp/BdUg717KU5:1␤»
Coleoid No, I see, it's a pseudostash.
21:49 cognominal left
grondilu r: say ::.WHAT 21:50
p6eval rakudo fa7fca: OUTPUT«PseudoStash()␤»
flussence r: sub a(\x) { x<foo> eq 'bar' }; sub b(\string, &code) { my $foo = ''; eval string; &code(::) }; say b("$foo = 'bar'", &a);
p6eval rakudo fa7fca: OUTPUT«===SORRY!===␤Variable $foo is not declared␤at /tmp/n0nSfeynI9:1␤»
flussence r: sub a(\x) { x<foo> eq 'bar' }␤ sub b(\string, &code) { my $foo = ''; eval string; &code(::) }␤ say b("$foo = 'bar'", &a);
p6eval rakudo fa7fca: OUTPUT«===SORRY!===␤Variable $foo is not declared␤at /tmp/fyLLOxGGOh:3␤»
grondilu in which synopsis is :: described?
flussence oh wait.
r: sub a(\x) { x<foo> eq 'bar' }␤ sub b(\string, &code) { my $foo = ''; eval string; &code(::) }␤ say b(q{$foo = 'bar'}, &a); 21:51
p6eval rakudo fa7fca: OUTPUT«use of uninitialized value of type Any in string context in sub a at /tmp/RHe0pT3NbS:1␤␤False␤»
flussence r: sub a(\x) { x{'$foo'} eq 'bar' }␤ sub b(\string, &code) { my $foo = ''; eval string; &code(::) }␤ say b(q{$foo = 'bar'}, &a);
p6eval rakudo fa7fca: OUTPUT«True␤»
flussence there.
Coleoid Nice!
21:53 mhasch joined
flussence I don't think it's even in the spec 21:54
n: say ::
p6eval niecza v22-7-g7df6137: OUTPUT«PseudoStash.new(...)␤»
flussence it's cross-platform though.
rn: sub a($x) { $x{'$foo'} eq 'bar' }␤ sub b($string, &code) { my $foo = ''; eval $string; &code(::) }␤ say b(q{$foo = 'bar'}, &a); 21:55
p6eval niecza v22-7-g7df6137: OUTPUT«Potential difficulties:␤ $foo is declared but not used at /tmp/rXx6YEE3zG line 2:␤------> sub b($string, &code) { my ⏏$foo = ''; eval $string; &code(::) }␤␤True␤»
..rakudo fa7fca: OUTPUT«True␤»
flussence rn: sub a($x) { $x{'$foo'} eq 'bar' }␤ sub b($string, &code) { my $foo = ''; eval $string; &code(::) }␤ say b(q{$foo = 'bazzzzzzzz'}, &a);
p6eval niecza v22-7-g7df6137: OUTPUT«Potential difficulties:␤ $foo is declared but not used at /tmp/SlSscbAwrJ line 2:␤------> sub b($string, &code) { my ⏏$foo = ''; eval $string; &code(::) }␤␤False␤»
..rakudo fa7fca: OUTPUT«False␤»
21:58 cognominal_ left 22:02 lcc joined 22:04 cognominal_ joined 22:07 birdwindupbird left 22:10 leont left 22:21 MayDaniel left 22:22 timbunce left 22:25 fridim_ joined 22:27 MikeFair joined
Coleoid So :: is the namespace hash, and we pass it in to the check-match method, and the check-match fetches the values it wants from the hash, instead of straight evaluation. 22:32
22:32 wamba left 22:34 Moukeddar joined
Moukeddar \o perl6 22:36
sorear o/ 22:37
22:38 killbot left
Moukeddar how are you doing? 22:40
22:46 spider-mario left 22:53 am0c left
Moukeddar what are genetic algorithms good for ? 22:56
diakopter evolving code or a dataset that drives code based on fitness evaluation 22:58
23:00 wk_ joined
diakopter so, you need a good way to measure fitness of a generation/individual 23:00
23:04 wk left
Moukeddar alright, i've been told that's what i need to generate schedule for different groups of students, while respecting some constraints 23:05
23:06 benabik joined 23:09 fgomez left 23:14 tokuhiro_ left
Moukeddar ? 23:14
diakopter ? :) 23:27
23:30 fgomez joined 23:34 tokuhiro_ joined
Moukeddar i get the basic idea, the gene and chromosome 23:38
23:38 tokuhiro_ left 23:55 PacoAir left 23:58 Moukeddar left