»ö« 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:00 mberends joined 00:03 Bucciarati left, Bucciarati joined, ajs left, ajs joined 00:04 larsen joined, nsh_ joined, flatwhatson left 00:05 uniejo joined 00:06 breinbaas joined, simcop2387 joined, flatwhatson joined, tewk joined 00:20 ymasory joined 00:27 justatheory joined 00:37 eternaleye_ joined, lestaway joined 00:38 stepnem_ joined, dual_ joined, dual left, s1n left, stepnem_ is now known as stepnem, lestaway is now known as lestrrat, s1n1 joined, PZt left, Util left, Util joined 00:39 eternaleye left 00:41 PZt joined 00:57 bacek left, bacek joined 00:58 orafu left, orafu joined 00:59 f00li5h left, f00li5h joined 01:00 rdesfo left 01:01 benabik left, larsen left, sivoais left 01:02 aesop left, athomason joined, ascent_ left, Solarion joined 01:03 ascent_ joined, larsen joined 01:04 sorear joined 01:05 kcwu joined, benabik joined 01:07 aesop joined 01:08 sivoais joined 01:15 wolverian joined, Limbic_Region joined, Limbic_Region left 01:28 whiteknight left 01:31 GinoMan2440 joined 01:33 GinoMan left 01:48 ymasory left 02:02 donri joined 02:03 silug joined 02:05 jql joined 02:14 icwiener left 02:23 Alias_ joined 02:24 ascent__ joined, nrr` joined 02:25 sbp- joined, wolv joined, woldrich joined 02:26 woldrich is now known as Guest75944, robins joined, mkramer1 joined 02:27 ascent_ left, sbp left, wolverian left, Guest51810 left, robinsmidsrod left 02:33 alester joined
sorear hello alester 02:34
alester howdy
02:54 edenc_ joined 02:55 rblackwe joined, donri left, Util left, s1n1 left, Kovensky left, [particle]1 left, arlinius left, zer0o left, xinming_ left, mrkodiak left, Sarten-X left, TimToady left, MindosCheng left, tty234 left, pochi left, yves left, saaki left, cxreg left, edenc left, dukeleto left, rblackwe_ left, hillu left, cotto_work left, jrockway left, pochi joined, donri joined 02:56 s1n joined, cxreg joined 02:58 Util joined 02:59 zer0o joined 03:00 yves joined, edenc_ left, benabik left, kcwu left, sorear left, larsen left, breinbaas left, Bucciarati left, apejens left, plobsing left, jevin left, tylercurtis left, jedai_ left, Exodist left, cotto left, ponbiki left 03:01 avuserow left, Juerd left 03:04 pothos left, dukeleto joined, donri left, Kovensky joined, cotto_work joined, tty234 joined, MindosCheng joined, jrockway joined, hillu joined, saaki joined, edenc_ joined, benabik joined, kcwu joined, sorear joined, larsen joined, breinbaas joined, Bucciarati joined, apejens joined, plobsing joined, jevin joined, tylercurtis joined, jedai_ joined, Exodist joined, cotto joined, ponbiki joined, HarryS joined, ingy joined, huf joined, shortcircuit joined, arnsholt joined, avuserow joined 03:05 Juerd joined, Guest75944 is now known as woldrich, woldrich left, woldrich joined, prammer joined, TimToady joined, nadim joined, [particle] joined 03:06 pothos joined 03:07 mrkodiak joined, Sarten-X joined 03:09 xinming joined 03:15 leprevost joined 03:17 woldrich left 03:21 nymacro joined 03:23 Su-Shee_ joined 03:24 Su-Shee left 03:25 sbp joined 03:26 __rnddim__ joined, d4l3k_ joined 03:27 takadonet left 03:29 simcop2387_ joined, starcoder- joined 03:31 leprevost left 03:32 [sbp] left, eternaleye_ left, chitragupt left, Juerd left, lue left, cotto_work left, simcop2387 left, bbkr_ joined, starcoder- is now known as starcoder2, simcop2387_ is now known as simcop2387, d4l3k_ is now known as dalek, ChanServ sets mode: +v dalek, cotto_work joined 03:33 chitragupt joined, eternaleye_ joined 03:36 arlinius joined 03:39 leprevost joined 03:55 wooden left 04:00 diakopter joined 04:03 Juerd joined 04:05 arnsholt_ joined, Bucciarati_ joined, ymasory joined, breinbaa1 joined, hillu_ joined, ymasory left 04:06 sorear_ joined, ymasory joined, edenc joined, plobsing_ joined, wooden joined, tylercur1is joined, shortcir1uit joined, wooden left 04:07 avuserow_ joined, kcwu_ joined 04:08 saaki_ joined, larsen_ joined, ingyfoo joined, chitragupt left, hillu left, saaki left, edenc_ left, benabik left, kcwu left, sorear left, larsen left, breinbaas left, Bucciarati left 04:09 apejens left, plobsing left, jevin left, tylercurtis left, jedai_ left, Exodist left, cotto left, ponbiki left, HarryS left, ingy left, huf left, shortcircuit left, arnsholt left, avuserow left, jedai joined, HarryS joined, chitragupt joined, huf joined 04:12 cotto joined 04:13 __rnddim__ left 04:14 apejens joined, jevin joined, Exodist joined, ponbiki joined 04:15 alester left 04:18 ajs left 04:20 anuxs joined 04:22 alester joined 04:25 tylercur1is is now known as tylercurtis 04:33 anuxs left 04:41 avuserow_ left, anuxs joined 04:48 leprevost left
anuxs whoami 04:48
quit 04:53
04:53 anuxs left 05:07 donri joined 05:11 sorear_ is now known as sorear, zer0o left 05:19 birdwindupbird joined 05:27 kaare_ joined 05:37 alester left 05:39 noganex_ joined 05:43 noganex left 05:47 ymasory left 05:59 wtw joined 06:01 justatheory left 06:09 ymasory joined 06:29 flatwhatson left 06:39 robins is now known as robinsmidsrod 06:50 Su-Shee_ is now known as Su-Shee 06:52 nrr` left 06:53 nrr joined 06:58 birdwindupbird left, birdwindupbird joined, birdwindupbird left, birdwindupbird joined 07:00 shi joined 07:11 f00li5h is now known as f001i5h 07:13 f001i5h is now known as f00li5h
tadzik felher: why not? :) 07:15
moritz 1) time 07:16
2) memory
3) sanity
07:23 domidumont joined 07:25 fhelmberger joined
tadzik shh! It will probably find some new bugs :) 07:34
07:35 ymasory left 07:46 nadim left 07:47 nadim joined 08:01 mberends left
jnthn oh hai 08:02
jnthn is back from Taiwan
clkao jnthn!!
moritz oh hai jnthn
jnthn clkao: o/ 08:03
moritz jnthn: I hope you had a lovely journey with lots of good nom :-)
jnthn There was lots of good nom. :)
And OSDC.TW was nice :) 08:04
I hope my talks made sense :)
clkao good to hear from you. jesse and i went to some offroad places in hualien. wasn't able to get in touch with you
08:04 Mowah joined
jnthn clkao: Yes, my devices and the Hualien wifi had...differences of opinion. :/ Sorry we didn't get to meet up again. 08:04
clkao oh well. at least you're back online again 08:05
jnthn Ah well, there's always next year's OSDC. ;)
I did make it to the Taroko gorge. It's *pretty*! 08:06
clkao \o/
tadzik hello jnthn 08:09
jnthn o/ tadzik
08:09 sji joined 08:11 shi left 08:13 cotto left
tadzik jnthn: what talks did you give? 08:13
jnthn The signatures one
And one on making compilers 08:14
Slides will be up later today
08:14 _jaldhar joined, [hudnix] joined 08:15 JodaZ_ joined 08:16 tylercur1is joined
moritz jnthn: have you seen my last mail to p6c, regarding GSOC and 6model? 08:16
08:16 tty234_ joined
jnthn moritz: yes, just several minutes ago :) 08:17
moritz great
08:17 plobsing joined
jnthn Will reply in a little bit - just sorting out a load of "I just got back" things :) 08:17
moritz sure, no hurry. Just wanted to ensure it's not lost, because student application is only this week iirc 08:18
08:18 s1n1 joined
tadzik yep, 8th is the deadline 08:18
moritz tadzik: so be sure to actually submit your proposal :-) 08:19
tadzik moritz: yeah, as soon as I make sure everything is tip-top :)
08:19 __sri joined 08:20 shachaf_ joined, cibs_ joined, mkramer joined, ascent_ joined 08:21 itz joined, domidumont1 joined, shachaf_ is now known as shachaf
tadzik I'm still thinking about this parser-outside-Rakudo idea 08:21
08:21 jtpalmer_ joined 08:22 domidumont left, tylercurtis left, plobsing_ left, tty234 left, s1n left, mkramer1 left, robinsmidsrod left, ascent__ left, GinoMan2440 left, tewk left, Khisanth left, Tene_ left 08:23 hudnix left, jaldhar left, _sri left, anderson left, itz_ left, starcoder left, gabiruh left, frodwith left, slavik1 left, Mowah left, fhelmberger left, donri left, ingyfoo left, breinbaa1 left, diakopter left, nymacro left, arlinius left, wolv left, jql left, stepnem left, mdxi left, shabble_ left, pjcj_ left, kolibrie_ left, jasonmay left, geekosaur left
tadzik a Role for the Grammar is not trivial, so the sanest thing will be to make it separate, and carefully integrate it (manually) into Rakudo. No magic, but it's still available for other implementations 08:23
08:23 Mowah joined, fhelmberger joined, donri joined, ingyfoo joined, breinbaa1 joined, diakopter joined, arlinius joined, nymacro joined, wolv joined, jql joined, stepnem joined, mdxi joined, shabble_ joined, pjcj_ joined, kolibrie_ joined, jasonmay joined, geekosaur joined, donri left, donri joined 08:24 p6eval joined, ChanServ sets mode: +v p6eval
tadzik at one moment it may turn out it's impossible to develop it outside, but the later the better I guess 08:24
oh, whatever, I tank too much :)
moritz tadzik: what you can do is to develop it as a separate class in the beginning (reduced compilation time)
tadzik yeah, the compilation time is what I'm mostly thinkging about for practical reasons 08:25
moritz tadzik: and mix in a role that supplies those rules that are normally available in the p6 grammar that you use (like <identifier>)
08:25 gabiruh joined
moritz tadzik: and then a small script that extracts rules and puts them into src/Perl6/Grammar.pm 08:26
and use the result as soon as you are working on the .WHY integration etc.
and $=THING variables
tadzik yeah
moritz: should I include all these thought in my proposal?
*thoughts 08:27
08:27 frodwith joined
moritz tadzik: yes. Just make sure to prioritize them 08:27
tadzik what do you mean?
moritz (ie make clear what the more important end goal is, integrated rakudo or standalone) 08:28
tadzik oh, sure
08:28 araujo left 08:29 tewk joined, Tene joined, Tene left, Tene joined
jnthn fwiw, once 6model lands, mixing into a grammar should work just fine. 08:32
(Including Perl6::Grammar)
08:32 anderson joined
jnthn Now that I'm back from vacation, thing will get moving again on all of that work. :) 08:32
08:33 jdhore joined 08:34 takesako joined, slavik joined 08:36 Khisanth joined, dakkar joined 08:56 broquaint joined
tadzik jnthn: Could you take a look at my GSoC proposal in some spare time? I'd like to know your opinion of it gist.github.com/892249 08:59
sorry guys for bothering you all with this :)
moritz speaking of bothering you all... 09:01
I've been thinking more about my exception grant
one thing that seems sensible is to separate the object that fail() returns 09:02
and the actual exception information
so fail() should return an object with a minimum of possible methods, so that accidental use as a value results in a new exception 09:03
let's call it Failure for now
jnthn $failure.exception # an accessor for the exception?
moritz yes
though I'd call it .EXCEPTION or so :-)
or .EX
bikeshedding
the important part is that I think a has-a relation is nedded
jnthn I've tended to hear Failure discussed as a role that gets mixed into things
(has-a) +1
moritz and that maybe CATCH blocks automatically unwrap those objects 09:04
wheres the real "meat" of the exception should be pleasant to work with (easy to stringify and query for properties)
jnthn CATCH blocks don't get invoked with a failure, though?
09:04 knewt2_ joined
moritz hm 09:05
jnthn Not until it's used, and then it throws its exception?
moritz right
jnthn But then it's the usage of the failure that does the "unpacking".
moritz right
jnthn One issue that is worth considering is how we report these lazy errors. (more)
moritz $! could contain the inner exception 09:06
jnthn I suspect that you want to know where the exception woulda happened as well as where you actually caused it to happen.
moritz aye
that's where the dual list/item nature of exceptions comes into play
maybe that should really be a linked list
so what the user sees is "division by zero (silent) in sub divide_all (foo.pl:12) 09:07
rethrown in sub more-processing (foo.pl:42)
maybe an indented backtrace after each such message 09:08
jnthn Something like that. 09:09
09:10 HarryS_ joined 09:12 HarryS left, Brandon_W_ATS left, knewt2 left 09:13 Brandon_W_ATS joined
moritz .u WITH SLASH 09:25
phenny U+2A0F INTEGRAL AVERAGE WITH SLASH (⨏)
moritz .u WITH STROKE 09:26
phenny U+26A6 MALE WITH STROKE SIGN (⚦)
perplexa .u SKULL 09:31
phenny U+2620 SKULL AND CROSSBONES (☠)
perplexa nice
jnthn
.oO( Please stroke this male )
09:39 HarryS_ left, HarryS joined 09:40 knewt2_ left, broquaint left, nrr left, jedai left, Kovensky left, pochi left, f00li5h left, dual_ left, lestrrat left, Trashlord left, gfldex left, pmichaud left, bleakgadfly left, charsbar_ left, awwaiid left, frettled left, ronoreck left, ncow left 09:42 cschimm1 joined 09:43 ronoreck joined, Kovensky joined, pmichaud joined 09:44 frooh joined, nrr joined, f00li5h joined, jedai joined, phenny joined, f00li5h left, f00li5h joined, charsbar_ joined, Trashlord joined, dual joined, rhr joined, LoRe joined 09:45 awwaiid joined, knewt2_ joined, broquaint joined, pochi joined, lestrrat joined, gfldex joined, bleakgadfly joined, frettled joined, snarkyboojum joined, nsh joined, jerome joined, perigrin joined, llabthgie joined, yahooooo joined 09:48 ab5tract joined 09:50 ncow joined
felher tadzik: Nice try ;) No, i have to kill it because i was running out of memory after over a hour. :) 10:14
s/have/had
10:16 tty234_ is now known as tty234, bacek left, sjohnson joined 10:18 takesako_ joined, jrockway_ joined, itz_ joined, jedai_ joined, d4l3k_ joined 10:19 LoRe_ joined 10:20 takesako left, jrockway left, jedai left, itz left, LoRe left, dalek left 10:21 d4l3k_ is now known as dalek, ChanServ sets mode: +v dalek 10:23 HarryS left 10:25 starcoder joined 10:29 HarryS joined 10:34 MindosCheng left 10:35 starcoder2 left, MindosCheng joined, birdwindupbird left 10:36 birdwindupbird joined, bacek joined 10:37 starcoder2 joined 10:42 tzhs joined 10:51 birdwindupbird left, birdwindupbird joined 10:55 shortcir1uit is now known as shortcircuit 10:56 sbp left, sbp joined, sbp left, sbp- is now known as 17SAAAAJ6, birdwindupbird left, sbp joined, birdwindupbird joined 10:58 17SAAAAJ6 is now known as sbp_ 11:00 shachaf left, MindosCheng left, shachaf joined, sbp_ left, sbp_ joined 11:01 prammer left, sbp left, sbp joined 11:02 araujo joined, araujo left, araujo joined, sbp left, sbp_ is now known as sbp, prammer joined 11:03 [sbp] joined 11:11 charsbar__ joined 11:12 pmichaud_ joined, jaldhar_ joined, eternaleye__ joined, charsbar_ left, pmichaud left, _jaldhar left, __sri left, s1n1 left, JodaZ_ left, s1n joined, JodaZ joined, _sri joined 11:13 bbkr_ left, d4l3k_ joined, dalek left, bbkr_ joined 11:14 eternaleye_ left, d4l3k_ left, birdwindupbird left 11:15 dalek joined, ChanServ sets mode: +v dalek 11:19 hanekomu joined 11:21 ab5tract left 11:22 plobsing left 11:23 robinsmidsrod joined 11:36 pnu_ left, ascent__ joined 11:37 [sbp] left, bbkr_ left, JodaZ left, ascent_ left, cotto_work left, JodaZ joined, bbkr_ joined 11:38 [sbp] joined 11:39 cotto_work joined 11:53 Patterner left, anderson left 11:54 pnu joined 11:55 Psyche^ joined, Psyche^ is now known as Patterner 12:00 mtk joined 12:05 mberends joined, takadonet joined
takadonet morning all 12:05
moritz hello takadonet 12:06
takadonet moritz: how's your girl?
moritz takadonet: a bit grumpy in the evenings, but otherwise quite lovely and healthy 12:07
takadonet good to hear
moritz and she has started to smile a lot, which is very rewarding :-) 12:08
takadonet I bet it is 12:11
12:20 MayDaniel joined 12:22 mtk left 12:23 plobsing joined 12:24 sftp joined 12:27 mtk joined 12:30 MayDaniel left 12:36 Alias joined 12:38 Alias_ left 12:39 plobsing left 12:42 plobsing joined 12:47 JimmyZ joined 12:49 mtk left 12:52 plobsing left 12:54 mtk joined, nym joined, nymacro left 13:11 __sri joined 13:12 pnu_ joined 13:13 plobsing joined 13:14 plainhao joined, bluescreen10 joined 13:16 yahooooo2 joined 13:17 takadonet left, pnu left, _sri left, bacek left, yahooooo left, mrkodiak left 13:21 mrkodiak joined 13:24 bacek joined 13:29 kaare_ left 13:30 noganex_ is now known as noganex 13:34 JimmyZ left 13:37 ribasushi_ is now known as ribasushi 13:47 pyrimidine joined 13:56 _twitch joined 13:57 PacoLinux joined 14:02 frodwith left 14:05 _twitch left 14:06 hudnix joined, domidumont1 left, sji left, apejens left, jevin left, Exodist left, ponbiki left, [hudnix] left 14:07 meraxes joined, felipe left 14:08 domidumont1 joined, sji joined, apejens joined, jevin joined, Exodist joined, ponbiki joined 14:09 kaare_ joined 14:10 TiMBuS left, TiMBuS joined, domidumont1 left 14:13 nym left 14:20 sji left, apejens left, jevin left, Exodist left, ponbiki left, sji joined, apejens joined, jevin joined, Exodist joined, ponbiki joined 14:22 plobsing left 14:28 JimmyZ joined, plobsing joined 14:29 sji left 14:30 shi joined 14:31 ab5tract joined 14:34 risou joined 14:38 ab5tract left 14:41 justatheory joined 14:42 cotto joined 14:45 domidumont joined 14:58 kanishka joined 15:00 Bucciarati_ is now known as Bucciarati 15:04 mberends left 15:17 sftp left, kst joined 15:18 takadonet joined 15:37 breinbaa1 left 15:38 breinbaas joined 15:40 plobsing left 15:49 frodwith joined 15:52 ymasory joined
colomon smiles++ 15:55
moritz indeed :-) 15:56
jnthn I did a talk at OSDC.TW that looked at building compilers with NQP and some basic 6model bits; slides: www.jnthn.net/papers/2011-osdc.tw-compiler.pdf and code: www.jnthn.net/papers/2011-osdc.tw-c...r-code.zip
It shows a much, much smaller scale compiler and how it is built up, which is probably nice for anyone wanting to dig in, but finding the size of Rakudo or NQP overwhelming :)
colomon btw, jnthn! \o/ 15:57
jnthn o/ colomon
jnthn is back from Taiwan
colomon \o/
15:57 charsbar__ left
moritz jnthn: how long was that talk? 15:59
15:59 frodwith left 16:00 MindosCheng joined
moritz ah, I see it delays adding methods to classes 16:01
jnthn moritz: An hour.
16:01 frodwith joined 16:02 zb left, shi left 16:06 frodwith left, charsbar_ joined 16:07 frodwith joined, frodwith left 16:08 frodwith joined 16:10 jaywalker joined, frodwith left
jaywalker hi 16:11
16:11 frodwith joined
moritz hi jaywalker 16:11
jaywalker i want to know about perl 6
moritz then you've found a good place to ask
16:12 jaywalker left 16:13 wtw left, frodwith left
moritz ... not very curious, it seems :-) 16:13
sjohnson haha
16:14 sftp joined
JimmyZ jnthn++, I love that pdf/zip, and I will save it to send some of my friends who are interested in it. 16:16
jnthn JimmyZ: Welcome :) 16:21
16:26 Holy_Cow joined 16:28 plobsing joined
JimmyZ some of guys wanted to write an compiler for his ideal language, jnthn, you may be interested in perlChina conference in Beijing? 16:29
jnthn JimmyZ: When is it? Got a link? 16:31
16:33 Rotwang joined
[Coke] jnthn++ #presentation 16:35
JimmyZ jnthn, I don't have a link for it. but I can contact 16:36
jnthn , you have two subject talk in Taipei? 16:37
jnthn JimmyZ: I had two talks, one on Perl 6, one on compilers. 16:38
JimmyZ: But the Perl 6 one was the signatures talk, which I've given at other conferences, so I think most people here already saw that one.
JimmyZ: OK, feel free to pass on any info.
JimmyZ jnthn, I think you can submit these two talks to perlChina in beijing too. 16:41
parts of those guys are interested in your talk in Taipei, and enjoying your video talks 16:43
16:47 hanekomu left
jdhore I hate to be "that guy", but is it just me or has Perl 6 appeared to have slowed to a crawl? 16:48
jnthn jdhore: You mean the speed it runs at, or the development? :) 16:49
jdhore the development
jnthn jdhore: Not really, but if you're watching just the Rakudo repository I can see why you'd get that impression. 16:50
jdhore: All my work at the moment (and of late) is going in at the compiler toolkit level, but it's directly applicable to Rakudo.
jdhore Well rakudo, parrot, perl6/*...all of them (parrot is fairly active, but it appears to be more minor cleanups than anything else)
JimmyZ well, I guess some guys are watching repository all the time. 16:51
jnthn perl6/nqp was being quite active...then its main committer had the audacity to take a vacation. :P
jdhore heh
17:01 cdarroch joined, cdarroch left, cdarroch joined 17:03 dakkar left 17:07 spinclad left 17:09 Vlavv left 17:11 rdesfo joined 17:12 wooden joined, JimmyZ left 17:13 masak joined
masak jnthn! \o/ 17:13
jnthn masak!! \o/
masak !!!
jnthn: welcome back!
jnthn masak: Thanks! :) 17:14
masak jnthn: I count 89 minutes between you coming back on the channel and you making a pun. :P 17:17
jnthn Taiwan was awesome, though I have to admit it's nice to be able to cross a road again without nearly getting run over by five scooters in the process. ;)
masak: Yeah, I know, I'm jetlagged...it woulda been sooner otherwise ;P
masak ah, five scooters. hate when that happens.
jnthn: in your defense, it looks like low traffic on the channel this morning. :P
ooh, the compiler talk is up! \o/ 17:18
<jaywalker> i want to know about perl 6 17:19
...and then he disappeared.
guess the cops caught him crossing the street in the wrong place or something... :)
PerlJam jnthn: Just looked at that talk. The only thing unclear from the slides alone is how EXPR knows to call my <term>
jnthn PerlJam: EXPR knows to call <term>. The only reason it calls your one is because the default only declares a proto. 17:21
17:21 Vlavv joined
jnthn PerlJam: It also knows to call infix, postfix, and prefix, which are handled the same way. 17:22
term is no more magical than those :)
17:22 mj41 joined
PerlJam jnthn: aye ... I'm just saying maybe a slide on that would be extra-nice :) 17:22
jnthn PerlJam: Aye. I think I explained it more.
PerlJam jnthn++ awesome slides
jnthn Maybe the video is clearer...
The real answer is we need good docs rather than just my talks for docs. ;) 17:23
PerlJam jnthn++ indeed!
:)
17:30 hanekomu joined
frettled jnthn: talk2tex? 17:37
17:38 ncow left 18:08 eternaleye__ is now known as eternaleye, eternaleye left, eternaleye joined 18:15 felipe joined 18:23 risou left 18:36 cognominal left 18:37 Chillance joined 18:41 mtk left 18:43 ymasory left 18:45 nadim left, cognominal joined 18:47 nadim joined 18:50 mtk joined 18:53 spq joined 19:01 fhelmberger left 19:02 MayDaniel joined 19:03 rindolf joined
rindolf Hi all. 19:03
masak hi rindolf.
19:09 hanekomu left 19:33 spinclad joined 19:35 justatheory left, justatheory joined 19:39 MayDaniel left 19:41 frodwith joined 19:49 mj41 left 19:52 rindolf left, cotto_work left
masak rakudo: my %h = (); my @p = ((1..365).roll(30)).map: { %h{$_}++ }; say %h.values.max 19:59
p6eval rakudo 4bf132: OUTPUT«2␤»
masak rakudo: my %h = (); ((1..365).roll(30)).map: { %h{$_}++ }; say %h.values.max
p6eval rakudo 4bf132: OUTPUT«-Inf␤»
masak ah! 20:00
sink context not implemented yet?
niecza: my %h = (); ((1..365).roll(30)).map: { %h{$_}++ }; say %h.values.max
p6eval niecza v4-16-gef344df: OUTPUT«Unhandled exception: Unable to resolve method roll in class Range␤ at /tmp/LfE34nR9Pj line 1 (MAIN mainline @ 4)␤ at /home/p6eval/niecza/lib/CORE.setting line 1264 (CORE C525_ANON @ 2)␤ at /home/p6eval/niecza/lib/CORE.setting line 1265 (CORE module-CORE @ 39)␤ at
../home/p6eval/n…
jnthn masak: no sink yet 20:01
masak someone should pick some LHF in niecza. *hint hint*
jnthn We discovered that in Holland :/
masak jnthn: oh, *that's* what we discovered! :)
jnthn Well, we discovered many things :P
But that was one of them. :)
masak jnthn: I thought it was that Rakudo was bleeding memory all over the place.
20:01 ab5tract joined
jnthn masak: The reason was lack of sink context though. 20:02
It didn't have the context to know it could throw away things.
So it kept them for way longer than it should.
masak aĥ.
20:02 bluescreen10 left
masak rakudo: DateTime.new 20:04
p6eval rakudo 4bf132: ( no output )
masak rakudo: DateTime.new; say "alive"
p6eval rakudo 4bf132: OUTPUT«alive␤»
20:04 cotto_work joined 20:10 saaki_ is now known as saaki 20:15 hercynium joined 20:19 bluescreen10 joined
masak if I want to convert from number base $base, but $base is not known until runtime, how do I do it in Perl 6? 20:20
moritz rakudo: my $base = 15; say :$base(12) 20:21
p6eval rakudo 4bf132: OUTPUT«invoke() not implemented in class 'Pair'␤ in main program body at line 22:/tmp/hRHu7cUgyF␤»
moritz hm
there was a way
masak rakudo: "123\n456".split("\n").map: { .comb } 20:22
p6eval rakudo 4bf132: ( no output )
masak rakudo: say ("123\n456".split("\n").map: { .comb }).perl
moritz rakudo: my $base = 15; say eval ":$base(12)"
p6eval rakudo 4bf132: OUTPUT«(("1", "2", "3"), ("4", "5", "6"))␤»
rakudo 4bf132: OUTPUT«invoke() not implemented in class 'Integer'␤ in main program body at line 22:/tmp/0_ZTA1K4Is␤»
moritz rakudo: say :16('12')
p6eval rakudo 4bf132: OUTPUT«18␤»
masak rakudo: say ("123\n456".split("\n").map: { .split }).perl
p6eval rakudo 4bf132: OUTPUT«No applicable candidates found to dispatch to for 'split'. Available candidates are:␤:(Mu : Regex $matcher, Any $limit = { ... }, Any :all($all);; *%_)␤:(Mu : Any $delimiter, Any $limit = { ... }, Any :all($all);; *%_)␤␤ in <anon> at line 22:/tmp/077qtem3hx␤ in 'Any::join'
..at lin…
masak ah. 20:23
slightly LTA error message for .split()
moritz rakudo: 'abc'.split
p6eval rakudo 4bf132: OUTPUT«No applicable candidates found to dispatch to for 'split'. Available candidates are:␤:(Mu : Regex $matcher, Any $limit = { ... }, Any :all($all);; *%_)␤:(Mu : Any $delimiter, Any $limit = { ... }, Any :all($all);; *%_)␤␤ in main program body at line 22:/tmp/4n7TZCyBfy␤»
moritz it tells you exactly what's wrong :-)
masak yeah. Rakudo's wrong. :P 20:24
masak refuses to see sense
moritz it tells you that you need a first positional argument 20:25
masak aye.
I guess my point is, what's so bad about letting .split default to splitting on every character, just like .comb does?
moritz feel free to add a () multi though, with a more awesoem error message
masak or just have it DWIM. 20:27
moritz doesn't find it intuitive that a split without arguments splits at each character boundary 20:28
masak ok.
in that case, I won't add it. and I'm not sure a better error message is needed either.
moritz it's just something you picked up somewhere, not something that makes sense by itself 20:29
20:30 plobsing left
masak moritz: actually, I'm going through a list of someone else's broken expectation. but yes, it's a fiver learning Perl 6. 20:30
PerlJam wonders what else an argumentless $str.split() would be expected to do ... 20:31
moritz the equivalent of .words maybe 20:32
masak or .lines
or it could split on nothing, giving the original string. :)
moritz right
on rx/ <!> / that is
masak *that* would be even more unhelpful than the current error.
20:33 Mowah left
PerlJam Well, the error message is LTA in any case. 20:33
Sure it says what's wrong, but in technical-ese instead of human.
:)
Eevee if there's already a .words, requiring an argument for .split seems plenty sane to me. just need less C++-y errors in general? 8)
masak PerlJam: hm, but that could be said of *any* multi misdispatch. 20:34
frettled rakudo: say 'abc'.split('')
p6eval rakudo 4bf132: OUTPUT«abc␤»
frettled rakudo: say 'abc'.split('').perl
p6eval rakudo 4bf132: OUTPUT«("a", "b", "c")␤»
masak \o/
frettled++
...and that's a good argument for making 0-arg split do the same as 0-arg .comb. I think.
20:34 dorlamm joined
PerlJam masak: indeed. You can take my opinion on this topic to mean that I think we should provide nicer errors where we can anticipate certain uses (Accidental or otherwise) 20:35
moritz note that argumentless split does something else in p5
masak: do you know where that expectation comes from?
masak moritz: no, but I know it's in the context of just trying stuff out.
moritz: the user was unable to diagnose the error himself, so he turned to me. 20:36
moritz compare
$ perl -MData::Dumper -we '$_ = "ab\nc d"; print Dumper [split]'
masak indeed. 20:37
let's not have that default behaviour :P
I can see how that makes sense for Perl 5, which was targeting an awk-y niche. 20:38
Perl 6 isn't, so it doesn't.
moritz perl 6 has .words for that 20:39
20:50 kaare_ left
masak true or false? in your Rakudo REPL, executing `DateTime.new` causes the REPL to die with "===SORRY!===\ninvoke() not implemented in class 'Any'" 20:58
20:59 Chillance left, wooden left, kanishka left, apejens left, jevin left, Exodist left, ponbiki left, hercynium left, ab5tract left, takadonet left, meraxes left, pyrimidine left, Patterner left, awwaiid left, knewt2_ left, broquaint left, pochi left, lestrrat left, gfldex left, bleakgadfly left, frettled left, nsh left, jerome left, perigrin left, snarkyboojum left, llabthgie left, Rotwang left, TiMBuS left, felipe left, Vlavv left, breinbaas left, [sbp] left, Tene left, donri left, kcwu_ left, Su-Shee left, uniejo left, baest left, flussence_ left, IRSeekBot left, hatseflats left, kfo left
masak submits rakudobug 21:01
tadzik masak: wait 21:02
21:02 hercynium joined, ab5tract joined, Chillance joined, felipe joined, Vlavv joined, wooden joined, Rotwang joined, breinbaas joined, takadonet joined, kanishka joined, ponbiki joined, Exodist joined, jevin joined, apejens joined, TiMBuS joined, meraxes joined, pyrimidine joined, Patterner joined, [sbp] joined, llabthgie joined, perigrin joined, jerome joined, nsh joined, snarkyboojum joined, frettled joined, bleakgadfly joined, gfldex joined, lestrrat joined, pochi joined, broquaint joined, knewt2_ joined, awwaiid joined, Tene joined, donri joined, kcwu_ joined, Su-Shee joined, uniejo joined, baest joined, flussence_ joined, IRSeekBot joined, hatseflats joined, kfo joined, Gothmog_ joined, literal joined, perplexa joined
masak too late... :) 21:02
tadzik nopaste.snit.ch/39462
that's a stringification issue
masak yes.
tadzik well that's a bug as well :)
masak I already realized that was the case.
it's in the RT ticket.
but tadzik++ for confirming the ticket. 21:03
21:03 donri left, donri_ joined 21:04 Holy_Cow left
masak rakudo: sub sum { [+] @_ }; say sum 1, 2, 3 21:05
21:05 donri_ left
p6eval rakudo 4bf132: OUTPUT«6␤» 21:05
masak rakudo: sub sum { [+] @_ }; say (1,2,3).&sum
p6eval rakudo 4bf132: OUTPUT«6␤»
masak \o/
21:06 MayDaniel joined
masak rakudo: sub sum { [+] @_ }; say (1..10).roll(10).&sum 21:06
p6eval rakudo 4bf132: OUTPUT«53␤»
masak good night, #perl6. 21:07
21:08 masak left 21:12 pmurias joined, spinclad left 21:14 plainhao left 21:15 rdesfo left 21:19 ymasory joined, ymasory left, ymasory joined 21:31 MayDaniel left 21:35 bluescreen10 left 21:38 ab5tract left 21:53 awwaiid left 21:55 awwaiid joined 21:56 y3llow left, pothos left 21:57 zer0o joined 21:58 y3llow joined 21:59 pothos joined 22:01 PacoLinux left, Rotwang left 22:13 Rotwang joined 22:19 bleakgadfly left 22:21 dorlamm left 22:28 whiteknight joined 22:29 pjcj_ left 22:30 wknight8111 joined
sorear good * #perl6 22:30
22:31 ymasory left 22:32 nymacro joined
sorear jnthn: Welcome back! I want to talk MMD and 6model later 22:33
jdhore: I've been fairly busy lately myself... 22:34
jasonmay sorear: you coming to yapc? 22:40
22:40 pjcj joined 22:41 wallberg joined
sorear jasonmay: no 22:42
22:44 wknight8111 left 22:53 eternaleye left 22:54 eternaleye joined, eternaleye left, eternaleye joined 23:05 hercynium left 23:07 wallberg left 23:19 Chillance left 23:35 kst left 23:39 alester joined 23:42 pmurias left 23:55 ab5tract joined 23:56 ymasory joined 23:58 Limbic_Region joined