Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2015-12-02

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 hankache good night masak
00:00 n0tjack joined #perl6
00:00 hankache hi RabidGravy
00:01 RabidGravy erp
00:08 telex joined #perl6
00:17 ShimmerFairy joined #perl6
00:19 stmuk_ joined #perl6
00:25 csd_ joined #perl6
00:30 Psyche^_ joined #perl6
00:48 geraud joined #perl6
00:49 Su-Shee joined #perl6
00:55 dalek rakudo-star-daily: aab2a3d | coke++ | log/ (2 files):
00:55 dalek rakudo-star-daily: today (automated commit)
00:55 dalek rakudo-star-daily: review: https://github.com/coke/rakudo-star-daily/commit/aab2a3d8c6
01:02 n0tjack joined #perl6
01:09 BenGoldberg joined #perl6
01:10 gtodd hmm is #RT114946  closeable "with discussoin" or does it need a lot of code changes ?
01:10 gtodd https://rt.perl.org/Public/Bug/Display.html?id=114946  function parameters aren't readonly *aliases*
01:12 skids joined #perl6
01:12 gtodd it seems like something that needs to be made consistent rather than a deep diving code fix but ... :-\
01:17 yeahnoob joined #perl6
01:21 lustlife joined #perl6
01:27 zengargoyle joined #perl6
01:40 Khisanth joined #perl6
01:42 herby_ joined #perl6
01:42 herby_ good evening, everyone!
01:42 herby_ for hobby purposes, does it matter what extension I use for my perl6 files?
01:42 diakopter howdy
01:43 herby_ the perl6intro site says I should use pl6, but i've also seen to use p6 and pm6
01:43 herby_ and for whatever reason, my vim setup doesn't syntax highlight pl6
01:43 diakopter doesn't matter much, but the module loaders will look for .pm if you have dependencies
01:44 herby_ ok, thanks!
01:45 ShimmerFairy Yeah, putting a 6 in there is just nice, and depends on your preference, like the difference between .h or .hpp or .h++ or ... :)
01:45 yoleaux 1 Dec 2015 14:58Z <[Coke]> ShimmerFairy: yes, some dupes are not collapsing yet; the Lue's will be combined at some point. the aliases are from the logs. they won't be in the final result, only the "preferred" name (the one listed first).
01:47 herby_ wow, ok. to test, i renamed my perl 6 script to .pm and it worked just fine
01:47 herby_ learn something new every day :)
01:50 Averna joined #perl6
01:53 herby_ looking at rosettacode for parsing xml: http://rosettacode.org/wiki/XML/Input#Perl_6
01:54 geraud hum... p6doc is behaving strangely this morning
01:54 herby_ does the perl6 example give anyone else an error? i copied it exactly, after installing xml, and getting an error
01:54 herby_ Method 'name' not found for invocant of class 'XML::Text'
01:54 herby_ not sure if its a bug in the code or a bug in my setup
01:55 diakopter how exactly did you install 'xml'
01:55 herby_ panda install XML
01:55 herby_ terminal stated it installed successfully
01:56 diakopter sounds like the example is out of date
01:58 herby_ hmmmm
02:03 n0tjack joined #perl6
02:05 dalek mu: e512afe | ShimmerFairy++ | misc/perl6advent-2015/schedule:
02:05 dalek mu: Oh hey, I'm on the schedule!
02:05 dalek mu:
02:05 dalek mu: Talking about Unicode seems like it'd be worthwhile, no? :)
02:05 dalek mu: review: https://github.com/perl6/mu/commit/e512afe326
02:08 dalek mu: 95132a3 | ShimmerFairy++ | docs/feather/syn_index.html:
02:08 dalek mu: Update search on design documents to current domain
02:08 dalek mu:
02:08 dalek mu: Funny enough, I've had this edit resting in mu for a long while now, it
02:08 dalek mu: just was forgotten. Whoops.
02:08 dalek mu: review: https://github.com/perl6/mu/commit/95132a3646
02:09 Axord joined #perl6
02:12 gtodd http://doc.perl6.org/type/Parameter isn't the .params example at the beginning inccorrect/typo'ed ?
02:13 gtodd it should be:  say $param.type;     and not:    say $sig.type;
02:14 kaare_ joined #perl6
02:15 [Coke] added all the maintainers of the original RFCs to the listing of users.
02:16 Ben_Goldberg joined #perl6
02:16 [Coke] up to 840 entries.
02:17 gtodd should people be trolling through the docs looks for little typos one at a time  or trying to find lots at once ...
02:19 [Coke] get a commit bit and then you can fix them as you find them?
02:19 dalek doc: 127f4e3 | raiph++ | doc/Type/Parameter.pod:
02:19 dalek doc: Typo'd code
02:19 dalek doc: review: https://github.com/perl6/doc/commit/127f4e3845
02:21 raiph gtodd++ # 127f4e3
02:21 gtodd raiph: I was assuming the above was a typo :-D
02:22 dayangkun joined #perl6
02:22 gtodd [Coke]: oops I think I have one for docs ... I was just worried I'd create needless churn or silly pull request queue
02:22 gtodd or introduce new erroros :-D
02:23 gtodd like that ---^
02:24 FROGGS_ joined #perl6
02:26 jojotus joined #perl6
02:26 raiph gtodd: a series of tiny commits will spontaneously generate a new operating system that produces sexy error messages?
02:27 Zoffix joined #perl6
02:27 gtodd cool
02:28 [Coke] ... crap. Just found mu's AUTHORS file.
02:30 Zoffix :)
02:31 Actualeyes joined #perl6
02:38 Su-Shee_ joined #perl6
02:38 [Coke] on the plus side, it covers most of the nick-only people left.
02:39 * ShimmerFairy finds it funny that mu has a misc directory :P
02:45 Zoffix Yo dawg
02:45 [Coke] If someone wants to help out on the name manging, converting mu's AUTHORS file to a CREDITS file would be a great help.
02:45 [Coke] *name mangling
02:47 ShimmerFairy .oO( g++-names AUTHORS -o CREDITS )
02:48 diakopter lol
02:49 geekosaur grammar Names { ... }
02:49 dfcarpenterak joined #perl6
02:50 TimToady I'm sitting here trying to figure out why the samemark tests are failing, and discover it's using say "Ɨ" as its mark carrier
02:50 TimToady m: say "Ɨ".ords
02:50 camelia rakudo-moar a4ca12: OUTPUT«(407)␤»
02:50 TimToady which doesn't decompose, duh
02:51 dalek mu: a622557 | ShimmerFairy++ | AUTHORS:
02:51 dalek mu: Just Say No to BOMs in UTF-8
02:51 dalek mu:
02:51 dalek mu: Also fixed my entry since I noticed it.
02:51 dalek mu: review: https://github.com/perl6/mu/commit/a6225573bb
02:51 ShimmerFairy m: say "Ɨ".NFC
02:51 camelia rakudo-moar a4ca12: OUTPUT«NFC:0x<0197>␤»
02:51 ShimmerFairy m: say "Ɨ".NFD
02:51 camelia rakudo-moar a4ca12: OUTPUT«NFD:0x<0197>␤»
02:51 ShimmerFairy m: say "Ɨ".NFKD
02:51 camelia rakudo-moar a4ca12: OUTPUT«NFKD:0x<0197>␤»
02:52 BenGoldberg_ joined #perl6
02:52 ShimmerFairy well then :)
02:52 TimToady ShimmerFairy: I also notice a rnddim entry in there somewhere
02:53 ShimmerFairy Ah, yeah, on line 451 of the gist.
02:53 ShimmerFairy I think it's also present in my ShimmerFairy line, it just also appears there.
02:53 ShimmerFairy btw, [Coke]++ for gathering up all the contributors :)
02:54 ShimmerFairy [Coke]: I could maybe take a quick attempt at AUTHORS->CREDITS for mu, is the CREDITS in rakudo the format you want?
03:00 * ShimmerFairy afk tho
03:02 lucs Can I today "use" Perl5 modules in my Perl6 code?
03:03 konobi https://blog.8thlight.com/colin-jones/2015/12/01/ask-dtrace-why-are-my-tests-so-slow.html
03:03 lucs ("use", or whatever it takes)
03:03 [Coke] ShimmerFairy: yes, same as rakudo or parrot's.
03:03 [Coke] lucs: see Inline::Perl5
03:03 lucs [Coke]: Thanks.
03:03 konobi "Ask DTrace: Why are my tests so slow?"
03:04 cognominal m: grammar G { token TOP { a }}; say G.parse('ba', :top(1))
03:04 camelia rakudo-moar a4ca12: OUTPUT«Unexpected named parameter 'top' passed␤  in block <unit> at /tmp/vetv4qt0Mb:1␤␤»
03:04 n0tjack joined #perl6
03:04 cognominal not sure what I am doing wrong here. Will sleep on it.
03:05 Juerd Did something change to Str.encode? Apparently it no longer matches a signature of Buf
03:05 lucs (Whoops, Inline::Perl5 still uses @*INC)
03:06 cognominal method parse($target, :$rule = 'TOP',  Capture() :$args = \(), Mu :$actions = Mu, *%opt) { # it should slurp extra-parameters ?
03:06 konobi am hoping that blog entry might help out with some questions about performance, etc.
03:06 lucs (or maybe not -- I'm going to bed, I'll figure it out tomorrow)
03:09 konobi (especially good for ruling out odd things from the OS, or bad behaviour from libraries)
03:10 noganex joined #perl6
03:11 raiph m: grammar G { token TOP { a }}; say G.parse('ba', :rule(1)) # cognominal
03:11 camelia rakudo-moar a4ca12: OUTPUT«Method '1' not found for invocant of class 'G'␤  in block <unit> at /tmp/u5qMdI7TuS:1␤␤»
03:11 raiph m: grammar G { token TOP { a }}; say G.parse('ba', :rule(TOP)) # cognominal
03:11 camelia rakudo-moar a4ca12: OUTPUT«5===SORRY!5=== Error while compiling /tmp/VEqVE_ay82␤Undeclared name:␤    TOP used at line 1␤␤»
03:18 cognominal m: grammar G { token TOP { a }}; say G.parse('ba', :pos(1))
03:18 camelia rakudo-moar a4ca12: OUTPUT«Unexpected named parameter 'pos' passed␤  in block <unit> at /tmp/2NX6ZJbAut:1␤␤»
03:19 raiph m: grammar G { token TOP { b }}; say G.subparse('ba', :rule('TOP')) # cognominal ( .parse has implicit ^ and $ anchors, .subparse just ^ )
03:19 camelia rakudo-moar a4ca12: OUTPUT«「b」␤»
03:19 cognominal I want to match at pos 1
03:19 cognominal sorry for the first post
03:20 Juerd I have a multi method whcih is basically "multi method foo { .bar }", and it works. But say($_) results in a mere "(Any)"
03:20 Juerd I don't understand why the .bar call works like self.bar here. Can't reproduce it in oneliners either.
03:21 diakopter Juerd: did your rakudobrew/panda heal?
03:21 Juerd What does that mean?
03:22 diakopter could you update them and try again
03:23 Juerd Oh, I did already update
03:23 raiph m: grammar G { token TOP { a }}; say G.subparse('ba', :1c) # cognominal
03:23 camelia rakudo-moar a4ca12: OUTPUT«「a」␤»
03:23 Juerd https://github.com/Juerd/p6-mqtt/blob/master/lib/Net/MQTT.pm#L125-L131
03:24 Juerd At the Amsterdam.PM meeting, lizmat pointed out that this shouldn't work
03:24 cognominal I thought the :pos(0) as slurped named parameter would have been passed to .!cursor_init # really need to sleep on it.
03:24 Juerd I think I agree that it shouldn't work. I had assumed that methods would set $_ to self, but they don't. But... then why the .publish still work?!
03:24 Juerd s/why/why does/
03:25 lustlife` joined #perl6
03:28 b2gills It could be set in the function that calls the method
03:29 Juerd But then it wouldn't print as "(Any)" when I do say $_
03:30 [Coke] Juerd: do you wish to appear as "juerd" in the release announcement?
03:30 [Sno] joined #perl6
03:30 [Coke] I'm happy to change it to your full name.
03:30 Juerd And S06 says that keyword declared code blocks are born with undefined $_; only non-routine blocks get $_ aliased to the outer lexical scope.
03:31 Juerd [Coke]: Juerd Waalboer is okay. I wonder why my name would be in there.
03:32 [Coke] You've committed something or were mentioned somewhere in the last 15 years. If you really want I can try to find out where :)
03:33 Juerd Oh, haha. I forgot that this month was special :)
03:34 Juerd Oohhhh. Found out something curious about the laggy data in the IO::Socket::Async thing, that may lead to a better insight
03:34 [Coke] updated. thanks.
03:34 Juerd This may eventually make my Net::MQTT usable
03:35 Juerd And it may have been my own mistake too
03:35 Juerd Even though several people looked at the code and found nothing wrong.
03:35 Juerd Let's see if I can figure this out :)
03:37 Juerd Yep, Fixed it.
03:37 vendethiel joined #perl6
03:37 * Juerd feels ashamed for a newbie mistake
03:37 Juerd Buffered data, but only took one thing from the buffer, each time the buffer was appended to. But it could get multiple things appended at once. So it started lagging behind.
03:40 Juerd timotimo: https://github.com/Juerd/p6-mqtt/commit/e82ff87af34965083fca5b79c48f6e95a856abe1  # Fixed it. Silly mistake... :(
03:55 MadcapJake Just had a curious thought, not sure if anyone is in here right now, but where did the `++` thing come from? Like when you are praising someone's work or whatnot.  I've only ever seen that in this irc channel.
03:55 MadcapJake actually all over Perl 6 communications, I've seen it
03:55 skids There used to be a karma bot that kept score when it saw username++
03:56 diakopter now your karma is only virtually counted
03:56 Juerd MadcapJake: A long, long time ago, in a ga... There used to be karma bots that actually kept score when you did word++ or word--.
03:56 Juerd Everything was karma'ed. People, channels, things.
03:56 Juerd And C had enormous karma in every channel that had a karma bot :)
03:57 MadcapJake haha wow, that's actually really cool, did it go the way of the jedi--er, dinosaurs?
03:57 Juerd There may still be channels that have karmabots. And who knows, maybe someone's silently still tracking karma right here, today :D
03:57 MadcapJake lol
03:57 flussence the bot disappeared and yoleaux replaced it iirc
03:58 diakopter karma jnthn
03:58 diakopter .karma jnthn
03:58 MadcapJake .help
03:58 yoleaux MadcapJake: I'm yoleaux. Type .commands to see what I can do, or see http://dpk.io/yoleaux for a quick guide.
03:58 Juerd Most karma bots have a syntax where parens can be used to delimit the topic if it contains whitespace or other non-word-characters: (foo bar)++
03:58 diakopter ?karma jnthn
03:59 MadcapJake .moon
03:59 yoleaux Last Quarter (0.697)
03:59 Juerd MadcapJake: It was completely normal++ to just have karma in regular sentences.
03:59 MadcapJake that's really fascinating
03:59 * Juerd loved karma bots, but not the karma wars that happened.
04:00 * Juerd loved (karma bots)++, but not the (karma wars)-- that happened.
04:05 n0tjack joined #perl6
04:05 BenGoldberg joined #perl6
04:10 MadcapJake .rfc 10
04:10 yoleaux RFC 10 - Documentation conventions: http://tools.ietf.org/html/rfc10
04:11 MadcapJake there should be a `.syn` command for Perl6 synopses
04:11 MadcapJake .ety synopsis
04:11 yoleaux synopsis (n.): "1610s, "a general view, an outline," from Late Latin synopsis "a synopsis," from Greek synopsis "a general view," literally "a seeing altogether, a seeing all at once," from syn- "together" (see syn-) + opsis "sight, appearance," from PIE * …" — http://etymonline.com/index.php?term=synopsis
04:12 MadcapJake .mangle optimized for fun
04:12 yoleaux Funny Optimization
04:12 Juerd MadcapJake: http://p3rl.org/S01 etc
04:14 MadcapJake "Larry's First Law of Language Redesign: Everyone wants the colon." lol
04:14 MadcapJake .mangle Everyone wants the colon
04:14 yoleaux Everyone wants to Colon
04:14 MadcapJake what a weird command lol
04:16 konobi Juerd: howdy
04:16 Juerd Hello
04:16 konobi long times
04:16 MadcapJake .botsnack
04:16 yoleaux :D
04:16 synbot6 om nom nom
04:17 Juerd konobi: Apparently, 'cause I don't remember you. Sorry! :(
04:18 konobi Juerd: catalyst/moose
04:19 Juerd I hate to admit it, but I don't think I've ever used those.
04:19 konobi and a yapc or so
04:19 Juerd YAPCs I've been to though :)
04:20 konobi and ye olde perl irc
04:21 Juerd Anyhow, hi there! :)
04:22 konobi was many many moons ago
04:23 Juerd How do you stop a Supply.interval?
04:33 MadcapJake don't you have to use Supplier to do that now
04:37 skids No just to create a raw Supply IRRC.
04:37 MadcapJake m: say Supply.^methods
04:37 camelia rakudo-moar a4ca12: OUTPUT«(new BUILD live serial tap act on-demand from-list interval serialize sanitize on-close map grep schedule-on start stable delayed do flat merge reduce produce migrate classify categorize Supply Channel list Promise wait unique squish rotor batch lines word…»
04:38 MadcapJake m: say Supplier.^methods
04:38 camelia rakudo-moar a4ca12: OUTPUT«(new BUILD emit done quit Supply unsanitized-supply)␤»
04:42 dj_goku .tell timotimo I see you made some recent commits here: https://github.com/tadzik/panda/tree/master/ext/JSON__Fast is there a reason this is in panda, but you have a separate repo? they are out of sync btw.
04:42 yoleaux dj_goku: I'll pass your message to timotimo.
04:43 Juerd Hmmm, huge memory leaks :(
04:45 * MadcapJake hopes there is an advent article on how to use the new Supplier/Supply
04:45 skids Juerd: if S17 is up to date on Supply.interval, since it is an "on-demand" supply it stops when you .close the .tap that started it (the instance is really the Tap and the Supply is serving as a factory of sorts)
04:45 skids (Which is different from live supplies.)
04:46 Juerd Ah, I didn't know that the tap itself was a thing
04:47 Juerd MadcapJake: Basically, you use Supplier like you used Supply before, except for tapping, which now requires an intermediate call to the supplier's Supply method: $supplier = Supplier.new; $supplier.Supply.tap: { ... }; $supplier.emit: ...;
04:48 Juerd Think of the supplier as 'write' and the supply as 'read'. I don't know if this is accurate but it works for me :)
04:48 Juerd skids: I don't really understand the difference between ondemand and live. Do you know where I can read about that?
04:49 gfldex Juerd: https://github.com/rakudo/rakudo/blob/nom/src/core/Supply.pm
04:49 skids Well, there is somewhat out-of-date S17 stuff and jnthn's S17 gist https://gist.github.com/jnthn/a56fd4a22e7c43080078
04:51 skids Live supplies (virtually) start generating events when they are created, whether or not anything is listening, and things can start or stop listening by tapping them.
04:51 Juerd skids: That assumes the reader already knows the difference :)
04:51 Juerd Oh, an on-demand supply is gone if there is no tap left?
04:51 Juerd And is it a no-op until it has a tap?
04:52 skids on-demand supplies create a new thing for every .tap, so you can produce the same sequence for different taps at different times.
04:53 Juerd I think I get it
04:56 skids m: my $fl = Supply.from-list(^3); my $t1 = $fl.tap({ "T1 $_".say }); my $t2 = $fl.tap({ "T2 $_".say }); sleep 1;
04:56 camelia rakudo-moar a4ca12: OUTPUT«T1 0␤T1 1␤T1 2␤T2 0␤T2 1␤T2 2␤»
04:57 skids The mind-bender is .tap versus .do versus .act
04:57 Juerd 6am here, I'm off to bed. Maybe I'll understand things better after some sleep :)
04:57 Juerd Thanks though :)
05:03 uruwi_ Hello
05:03 uruwi_ Quick question.
05:03 uruwi_ Equivalent of cmd %~dpf0 in bash?
05:06 n0tjack joined #perl6
05:08 dj_goku uruwi_: is that current working dir of script on windows?
05:10 dj_goku uruwi_: or is it the complete path of the script?
05:11 dj_goku uruwi_: my guess is which so: `which which`
05:12 uruwi_ According to a reference:
05:14 uruwi_ It removes any quotes and gives the full path to the running program.
05:17 uruwi_ (actually I tried it myself)
05:17 dj_goku uruwi_: is there a reason you need bash? :D
05:17 dj_goku http://stackoverflow.com/questions/4774054/reliable-way-for-a-bash-script-to-get-the-full-path-to-itself
05:40 MadcapJake Juerd++ # thanks for the explanation on Supply/Supplier :)
05:43 skids m: say $*PROGRAM-NAME; say  $*SPEC.catdir($*PROGRAM-NAME.IO.dirname, "other_file_in_same_dir"); say $*EXECUTABLE;
05:43 camelia rakudo-moar a4ca12: OUTPUT«/tmp/f22rbdSXFJ␤/tmp/other_file_in_same_dir␤"./rakudo-m-inst/bin/perl6-m".IO␤»
05:44 uruwi_ Hmm, I'm trying to get Perl6 to return an IO::Spec::Cygwin for $*SPEC, if that even ever happens.
05:47 dj_goku joined #perl6
06:07 n0tjack joined #perl6
06:07 csd_ joined #perl6
06:38 hahainternet gfldex: a hell of an opening post for this year, jesus i need to re-read a few times i think
06:38 gfldex is the need to re-read a good thing? :->
06:40 hahainternet i think so, it's complicated but succinct and well explained
06:40 hahainternet i'll let you know when i'm sure i know what's going on :D
06:40 gfldex well, it took me a while to write it. so it's just fair :)
06:41 hahainternet i suppose the only criticism i have is that it's a few paragraphs down where you really explain what you're demonstrating
06:41 hahainternet also 'buildin' vs 'built-in' may be a minor error
06:41 uruwi_ Any reason why Find::Bundled isn't installable from panda?
06:41 hahainternet i'll let you know if i spot any others
06:43 hahainternet "The type of the returned value if the type of $c-value" s/if/is probably
06:43 hahainternet "force binding on it’s returned value" possessive its has no apostrophe
06:44 hahainternet "does what is sayed on the tin" said rather than sayed
06:46 hahainternet those are the only obvious ones i saw with a quick glance through
06:46 timotimo Juerd: i'm very happy it was such a silly mistake and not our async sockets being super wrong
06:46 yoleaux 04:42Z <dj_goku> timotimo: I see you made some recent commits here: https://github.com/tadzik/panda/tree/master/ext/JSON__Fast is there a reason this is in panda, but you have a separate repo? they are out of sync btw.
06:47 gfldex hahainternet: thanks, i fix it
06:48 hahainternet gfldex: no problem, if i can't help with code at least i can spot these :p
06:48 gfldex binding is one of those perl6 topics where you need to know what's going on under the hood to understand it
06:58 quester joined #perl6
06:59 Akagi201 joined #perl6
07:08 n0tjack joined #perl6
07:13 sno joined #perl6
07:13 kjs_ joined #perl6
07:34 domidumont joined #perl6
07:37 timotimo whew, caught up with backlog just in time to go AFK again
07:39 timotimo .tell dj_goku panda ships with JSON::Fast so that it can use it before it is able to install stuff from the ecosystem by itself; i asked tadzik to wait with updating pandas copy because SEQ was just about to get deprecated and that would have broken panda
07:39 yoleaux timotimo: I'll pass your message to dj_goku.
07:39 timotimo .tell dj_goku when all people can be assumed to have a new-enough rakudo, i'll tell tadzik to update JSON::Fast again so that the speed increase can be felt far and wide
07:39 yoleaux timotimo: I'll pass your message to dj_goku.
07:40 domidumont joined #perl6
07:42 molaf joined #perl6
07:47 CIAvash joined #perl6
07:47 dalek DBIish: df1ce31 | hiroraba++ | lib/DBDish/TestMock/Connection.pm6:
07:47 dalek DBIish: Fixed failed test 05-mock.t
07:47 dalek DBIish: review: https://github.com/perl6/DBIish/commit/df1ce31bf9
07:47 dalek DBIish: 5d5d012 | moritz++ | lib/DBDish/TestMock/Connection.pm6:
07:47 dalek DBIish: Merge pull request #36 from hiroraba/master
07:47 dalek DBIish:
07:47 dalek DBIish: Fixed failed test 05-mock.t
07:47 dalek DBIish: review: https://github.com/perl6/DBIish/commit/5d5d01226d
07:48 moritz \o
07:48 moritz https://travis-ci.org/perl6/DBIish/builds/94321391 "Cannot find method 'find_symbol'"
07:48 moritz any idea what's going on here?
07:57 FROGGS joined #perl6
07:57 kjs_ joined #perl6
07:58 mr-foobar joined #perl6
08:02 _mg_ joined #perl6
08:06 nine .tell Zoffix regarding https://gist.github.com/zoffixznet/7cd03ed84dbbb4db8fa3 you just mistyped MIME::Types. The MIME is all capitals!
08:06 yoleaux nine: I'll pass your message to Zoffix.
08:08 n0tjack joined #perl6
08:09 darutoko joined #perl6
08:11 guest______ joined #perl6
08:11 guest______ p6: say 3;
08:11 camelia rakudo-moar a4ca12: OUTPUT«3␤»
08:12 guest______ my @a = [0], -> @p { 0,@p Z+ @p,0;} .. * ; say @a[1];
08:13 guest______ p6: my @a = [0], -> @p { 0,@p Z+ @p,0;} .. * ; say @a[1];
08:13 camelia rakudo-moar a4ca12: OUTPUT«-> @p { #`(Block|76810808) ... }..Inf␤»
08:13 guest______ p6: my @a = [1], -> @p { 0,@p Z+ @p,0;} .. * ; say @a[1];
08:13 camelia rakudo-moar a4ca12: OUTPUT«-> @p { #`(Block|79460920) ... }..Inf␤»
08:14 guest______ p6: my @a = [1], -> @p { 0,@p Z+ @p,0;} ... * ; say @a[1];
08:14 camelia rakudo-moar a4ca12: OUTPUT«(1 1)␤»
08:14 guest______ p6: my @a = [1], -> @p { 0,@p Z+ @p,0;} ... * ; say @a[2];
08:14 camelia rakudo-moar a4ca12: OUTPUT«===SORRY!===␤This Seq has already been iterated, and its values consumed␤(you might solve this by addding .cache on usages of the Seq, or␤by assigning the Seq into an array)␤»
08:14 jdv79 "The default for sub and method parameters is copy" - is that correct?
08:14 sno joined #perl6
08:15 bjz joined #perl6
08:15 guest______ p6: my @a = [1], -> @p { [0,@p Z+ @p,0] } ... * ; say @a[2];
08:15 camelia rakudo-moar a4ca12: OUTPUT«[2 2]␤»
08:16 guest______ p6: my @a = [1], -> @p { [0,@p Z+ @p,0] } ... * ; say @a[1]
08:16 camelia rakudo-moar a4ca12: OUTPUT«[1 1]␤»
08:16 guest______ p6: my @a = [1], -> @p { [0,@p Z+ @p,0] } ... * ; say @a[2]
08:16 camelia rakudo-moar a4ca12: OUTPUT«[2 2]␤»
08:16 guest______ p6: my @a = [1], -> @p { [0,@p Z+ @p,0] } ... * ; say @a[2]
08:16 camelia rakudo-moar a4ca12: OUTPUT«[2 2]␤»
08:17 guest______ p6: my @a = [1], -> @p { [0,@p Z+ @p,0] } ... * ;
08:17 camelia rakudo-moar a4ca12: ( no output )
08:17 guest______ @a[0]
08:17 guest______ p6: say @a[0]
08:17 camelia rakudo-moar a4ca12: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tmpfile␤Variable '@a' is not declared␤at /tmp/tmpfile:1␤------> 3say 7⏏5@a[0]␤»
08:17 guest______ p6: my @a = [1], -> @p { [0,@p Z+ @p,0] } ... * ;  say @[3]
08:17 camelia rakudo-moar a4ca12: OUTPUT«[3]␤»
08:17 guest______ p6: my @a = [1], -> @p { [0,@p Z+ @p,0] } ... * ;  say @a[3]
08:17 camelia rakudo-moar a4ca12: OUTPUT«[2 2]␤»
08:18 guest______ p6: my @a; @a = [1]; say 0,@a Z+ @a,0
08:18 camelia rakudo-moar a4ca12: OUTPUT«(1 1)␤»
08:18 guest______ p6: my @a; @a = (1); say 0,@a Z+ @a,0
08:18 camelia rakudo-moar a4ca12: OUTPUT«(1 1)␤»
08:18 guest______ p6: my @a; @a = (1,1); say 0,@a Z+ @a,0
08:18 camelia rakudo-moar a4ca12: OUTPUT«(2 2)␤»
08:18 molaf joined #perl6
08:19 bjz_ joined #perl6
08:19 guest______ p6: my @a; @a = (1,1); say 0,@a
08:19 camelia rakudo-moar a4ca12: OUTPUT«0[1 1]␤»
08:19 guest______ p6: my @a; @a = [1,1]; say 0,@a
08:19 camelia rakudo-moar a4ca12: OUTPUT«0[1 1]␤»
08:19 guest______ p6: my @a; @a = [1,1]; say 0,!@a
08:19 camelia rakudo-moar a4ca12: OUTPUT«0False␤»
08:19 guest______ p6: my @a; @a = [1,1]; say 0,|@a
08:19 camelia rakudo-moar a4ca12: OUTPUT«011␤»
08:19 TimToady m: my @a; @a = (1,1); say 0,|@a Z+ |@a,0
08:19 camelia rakudo-moar a4ca12: OUTPUT«(1 2 1)␤»
08:19 guest______ p6: my @a; @a = [1,1]; say 0,|@a Z+ |@a,0
08:19 camelia rakudo-moar a4ca12: OUTPUT«(1 2 1)␤»
08:20 guest______ p6: my @a; @a = [1,2,1]; say 0,|@a Z+ |@a,0
08:20 camelia rakudo-moar a4ca12: OUTPUT«(1 3 3 1)␤»
08:20 guest______ p6: my @a = [1], -> @p { [0,|@p Z+ |@p,0] } ... * ;  say @a[3]
08:20 camelia rakudo-moar a4ca12: OUTPUT«[1 3 3 1]␤»
08:20 guest______ p6: my @a = [1], -> @p { [0,|@p Z+ |@p,0] } ... * ;  say @a[3]
08:20 camelia rakudo-moar a4ca12: OUTPUT«[1 3 3 1]␤»
08:20 guest______ p6: my @a = [1], -> @p { [0,|@p Z+ |@p,0] } ... * ;  say @a[4]
08:20 camelia rakudo-moar a4ca12: OUTPUT«[1 4 6 4 1]␤»
08:20 nine guest______: please /msg camelia for just playing around
08:21 TimToady also see http://rosettacode.org/wiki/Pascal's_triangle#Perl_6
08:21 FROGGS jdv79: no
08:21 FROGGS jdv79: at least dont dont get what 'is copy' does, you dont get a writeable container
08:22 RabidGravy joined #perl6
08:22 ely-se joined #perl6
08:23 RabidGravy marning
08:25 guest______ thanks nine, @TimToady
08:28 * TimToady has samemark and :mm working, but is too tired to finish the samespace/samecase/samemark refactor tonight (the current code doesn't do word-by-word correctly), will look at it again tomorrow
08:29 TimToady ????
08:29 stmuk_ .tell Zoffix Recent Blog Posts on perl6.org is blank
08:29 yoleaux stmuk_: I'll pass your message to Zoffix.
08:29 jdv79 FROGGS: its in today's advent...
08:35 dalek roast: 8895d82 | LLFourn++ | S12-meta/exporthow.t:
08:35 dalek roast: add fudged EXPORTHOW EVAL tests
08:35 dalek roast:
08:35 dalek roast: replace bogus test that should have failed with two fudged tests that
08:35 dalek roast: actually do.
08:35 dalek roast: review: https://github.com/perl6/roast/commit/8895d82bf0
08:35 zakharyas joined #perl6
08:36 FROGGS gnight TimToady
08:36 FROGGS jdv79: well, it is correct in a sense that you get a copy, though just not a writeable one :o)
08:37 abraxxa joined #perl6
08:39 [Tux] test             50000    23.650    23.537
08:39 [Tux] test-t           50000    17.340    17.228
08:39 [Tux] csv-parser       50000    26.643    26.531
08:40 pdcawley_ joined #perl6
08:40 FROGGS [Tux]: do you know that probably nobody knows what that means?
08:41 FROGGS at least *I* dont know if it faster or slower now
08:41 [Tux] many have asked, so the people that care by now do :)
08:41 [Tux] http://tux.nl/Talks/CSV6/speed4.html
08:42 [Tux] 17.34 is considered good
08:42 dalek roast: b7b486b | LLFourn++ | S12-meta/exporthow.t:
08:42 dalek roast: import the EXPORTHOW declarators for EVAL tests
08:42 dalek roast: review: https://github.com/perl6/roast/commit/b7b486beec
08:42 [Tux] (for the time being)
08:43 ely-se adventure calendar
08:43 [Tux] better even: 17.34 is the fastest *registered* timing ever
08:44 [Tux] I have seen a high 16 once, but that has not been carved in the logs
08:45 [Tux] at least it is a speedup factor of 14.7 since october 2014 :)
08:45 stmuk_ if anyone is desperate for a Advent calendar spot then they can have one of mine!
08:47 RabidGravy yeah, I gave one to autarch :)
08:47 FROGGS [Tux]: :o)
08:47 FROGGS [Tux]: that's the information that ppl on this channel help to understand these timings
08:50 jdv79 gfldex: the "is copy" part of your advent post is wrong.  default is ro.
08:52 gfldex jdv79: thanks, i fixed it
08:53 llfourn [Tux]: what is test and test-t?
08:54 csd_ joined #perl6
08:54 cognominal thx raiph++, did not notice that !cursor_init did not support :$pos and :$continue, probably a bug.
08:54 [Tux] test is a reference for test-t: that is a CSV parser with no options. It was the starting point for test-t.
08:55 [Tux] test-t is Text::CSV parsing 10000 lines of CSV with 5 fields each
08:56 llfourn [Tux]: thanks. Can I see the source for these tests or any more metrics?
08:56 llfourn I'm doing a talk on p6 for local sydney.pm so looking for some content reletated to speed improvement :)
08:56 [Tux] yes: https://github.com/Tux/CSV
08:57 [Tux] http://tux.nl/Talks/CSV6/speed{,1,2,3,4}.html
08:57 timotimo llfourn, how much time left until that talk?
08:57 llfourn timotimo: it's on 16th
08:58 llfourn so plenty :D
08:58 llfourn [Tux]: thanks!
08:58 timotimo i could run some benchmarks for you from japhb/perl6-bench
08:58 timotimo left my desktop at home free for stuff like that
08:58 llfourn timotimo: that would be sweet!
08:59 timotimo ask me again in 4 hours?
08:59 llfourn timotimo: will do :)
08:59 timotimo actually i have a calendar that can do such a thing
09:00 timotimo k
09:00 timotimo appointment time!
09:02 llfourn thanks. I will remind you anyway :D
09:09 n0tjack joined #perl6
09:09 csd_ joined #perl6
09:13 RabidGravy ooh I just provoked 2015.11-163-g2897239 into a coredunp
09:13 Deepak joined #perl6
09:15 snarkyboojum joined #perl6
09:17 mdaq joined #perl6
09:18 rindolf joined #perl6
09:20 quester left #perl6
09:22 grondilu panda still broken?
09:23 lizmat joined #perl6
09:23 lizmat .botsnack
09:23 yoleaux :D
09:23 synbot6 om nom nom
09:23 Su-Shee_ joined #perl6
09:25 kjs_ joined #perl6
09:29 Su-Shee joined #perl6
09:29 DrForr Morning. All the hype finally getting to you? :)
09:29 _mg_ joined #perl6
09:30 * DrForr looks sideways at snarkyboojum and wonders if it could be...
09:31 moritz the advent calendar had 980 visitors yesterday
09:31 nine grondilu: panda should be doing just fine
09:31 DrForr Niiice.
09:32 Skarsnik joined #perl6
09:33 snarkyboojum_ joined #perl6
09:34 snarkyboojum_ Web IRC weirdness
09:35 snarkyboojum_ "If it could be", DrForr? :)
09:38 telex joined #perl6
09:40 RabidGravy Hmm it doesn't segfault if all the (several thousand) tests pass
09:41 espadrine joined #perl6
09:42 RabidGravy maybe, testing *every possible value* isn't necessary now I know it works
09:44 bakedb joined #perl6
09:44 rurban joined #perl6
09:46 * RabidGravy adds a "last if Bool.pick" in an inner loop
09:47 DrForr Just wondering if I knew you from somewhere else :)
09:48 snarkyboojum_ Where DrForr?
09:49 DrForr MAGnet for starters...
09:49 snarkyboojum_ probably not me...
09:50 Su-Shee joined #perl6
09:50 snarkyboojum_ I used to hang out here a bit a while ago though
09:50 RabidGravy is MAGnet still going?
09:50 DrForr Cool. Not stalking, just curious.
09:51 snarkyboojum_ :)
09:58 Su-Shee_ joined #perl6
10:01 matt_ joined #perl6
10:07 domidumont joined #perl6
10:09 dakkar joined #perl6
10:10 n0tjack joined #perl6
10:12 * lizmat wlll be mostly offline until Saturday
10:17 mrf_ gfldex: you able to remove some of the confusion in https://www.reddit.com/r/perl/comments/3v0tp5/perl_6_advent_calendar/
10:19 grondilu failed install panda.  What am I doing wrong?  https://gist.github.com/grondilu/cab11f6a3d00b6e654ba
10:25 gfldex mrf_: do i get free hugs when i sign up on reddit? :->
10:25 DrForr Careful what you ask for :)
10:25 mrf_ DrForr: :p
10:25 mrf_ gfldex: Is that worth the lose of your immortal soul
10:26 gfldex i will do that later today
10:26 mrf_ gfldex: no worries.
10:28 nine grondilu: how up to date is your panda?
10:32 mrf_ is t/04-nativecall/11-cpp.t in rakudo a know failing test?
10:32 grondilu nine: I4ve just pulled it
10:32 grondilu las commit on Tue Dec 1 22:24:23 2015 +0100
10:33 grondilu oh I see on the previous commit:  "Support --force flag to get around "is already installed" check"
10:33 * grondilu tries that
10:34 [TuxCM] joined #perl6
10:34 mrf_ kebab-case seems to be becoming fairly normal in p6 afaict
10:34 mrf_ unless I have only seen a specific subset of code. Does anyone have a preference
10:35 pdcawley joined #perl6
10:35 * grondilu failed.  bootsrap.pl did not accept --force
10:35 nine grondilu: bootstrap.pl should already use --force to install panda
10:37 grondilu well, as you can see in my gist I still get the "already install" death
10:37 grondilu *ed
10:38 kjs_ joined #perl6
10:39 weihan joined #perl6
10:41 zakharyas joined #perl6
10:46 Ulti "Testing Pod::Coverage" hangs forever in the panda build latest Rakudo from 5 mins ago
10:46 Ulti though CPU is 100% so might just be mega slow
10:47 nine Ulti: there's an open github issue on that in Pod::Coverage
10:47 Ulti okedoke
10:47 nine Looks like some endless recursion
10:47 Ulti I'll stop melting my macbook then :)
10:48 mrf_ grondilu: I was able to to a reinstall of panda on latest pull of rakudo. Realise thats not overly helpful buts its a data point
10:49 mrf_ I am however getting "Could not find Shell::Command' errors when I try and use it.
10:50 moises joined #perl6
10:53 Perl6christmas joined #perl6
10:56 RabidGravy flatmap, I wanted flatmap
10:58 Ulti so turns out Pod::Coverage is now so core to most of the ecosystem its become impossible to install anything without it, is that in Star as a module identified as needing to work?
10:58 Ulti I +1 for it being included if it isn't alreadya
10:59 * Ulti goes to see if he can fix this open issue
10:59 nine grondilu: I now know what's wrong!
11:00 nine grondilu: panda is loading outdated precompiled versions of Panda's own modules and those do not yet contain the --force support.
11:00 Skarsnik curli the breaker of installation
11:01 Skarsnik and Hello :)
11:01 nine I guess it's the bug I want to fix this evening.
11:02 RabidGravy It didn't work for me when I tried it, so that's at least 5% of the ecosystem that doesn't use it ;-)
11:02 Zoffix .botsnack
11:02 yoleaux 08:06Z <nine> Zoffix: regarding https://gist.github.com/zoffixznet/7cd03ed84dbbb4db8fa3 you just mistyped MIME::Types. The MIME is all capitals!
11:02 synbot6 om nom nom
11:02 yoleaux :D
11:02 yoleaux 08:29Z <stmuk_> Zoffix: Recent Blog Posts on perl6.org is blank
11:02 Zoffix stmuk_, You gotta be kidding me. This is what I get from Google now: "/* "responseDetails": "This API is no longer available."
11:02 Su-Shee_ joined #perl6
11:04 RabidGravy bad Google
11:05 Zoffix I'm kinda thinking it's some sort of a glitch. Other sites show the same error. I see an article posted on May 15 talking about the API and I don't see any posts saying Google is discontinuing the service
11:07 Zoffix "This API is officially deprecated".. k, I'll try another one later today
11:10 TEttinger what API is this?
11:11 Ulti no obvious recurse bugs I can see in Pod::Coverage::Full.parse looks like something scary in the meta model methods has changed that introduced an infinite recursive case, which is beyond me to debug by eye :'(
11:11 TEttinger (when google deprecates stuff they mean it)
11:11 Zoffix RSS Feed https://developers.google.com/feed/
11:11 n0tjack joined #perl6
11:11 TEttinger google just nuked google translate API
11:11 TEttinger well, like a year ago
11:12 Su-Shee joined #perl6
11:13 Ulti before that they made it not free
11:13 Ulti unless thats what you mean
11:13 Zoffix We'll make our own API! With blackjack and hookers!
11:13 mrf_ Is anyone else getting t/04-nativecall/11-cpp.t failing on latest pull of rakudo when running make test.
11:14 Perl6christmas why YAPC are not as popular as PyCon and RubyCon? May be we need to change the name to PerlCon !!
11:14 lucasb joined #perl6
11:14 Perl6christmas PerlCon sounds great!!
11:14 Zoffix :/
11:15 lucs How much should I worry, after just having cloned and rebuilt rakudo from scratch, about this test error?: "t/04-nativecall/11-cpp.t ............. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 5/21 subtests"
11:15 mrf_ lucs: I am getting the same error
11:15 TEttinger http://blog.superfeedr.com/google-feed-api-alternative/
11:16 Skarsnik hm
11:16 mrf_ https://gist.github.com/ungrim97/ce323d11137f7beb7636 <-- t/04-nativecall/11-cpp.t failure
11:16 Skarsnik do you have a c++ compiler? (I don't remember if it's skipped or not
11:17 lucs Pretty sure I do.
11:17 mrf_ Skarsnik: that gist shows teh error
11:17 Su-Shee_ joined #perl6
11:17 mrf_ its that last test (line 8 of the gist) that fails
11:21 lucasb It seems there was some changes to NativeCall::Types yesterday, but I don't know if that's related
11:25 ilmari r: say 42 >> 64
11:25 camelia rakudo-moar a4ca12, rakudo-jvm e3c591: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tmpfile␤Unsupported use of >> to do right shift; in Perl 6 please use +> or ~>␤at /tmp/tmpfile:1␤------> 3say 42 >>7⏏5 64␤»
11:25 ilmari r: say 42 +> 64
11:25 camelia rakudo-moar a4ca12, rakudo-jvm e3c591: OUTPUT«0␤»
11:25 Skarsnik it's maybe this change the culprit
11:25 Skarsnik -    my role TypedPointer[::TValue = void] is Pointer is repr('CPointer') {
11:25 Skarsnik +    my role TypedPointer[::TValue] {
11:26 mrf_ Skarsnik: that looks likely
11:27 kaare_ joined #perl6
11:28 rurban joined #perl6
11:28 ilmari r: my int $x = 64; say $x +> $x
11:28 camelia rakudo-moar a4ca12, rakudo-jvm e3c591: OUTPUT«64␤»
11:32 hankache joined #perl6
11:33 hankache Hello #perl6
11:35 mrf_ .tell arnsholt test t/04-nativecall/11-cpp.t and it is possibly related to your commit 518b46feb9. Can you elaborate on whether the test needs to be altered?
11:35 yoleaux mrf_: I'll pass your message to arnsholt.
11:37 kid51 joined #perl6
11:38 hankache Quick question related to file extensions:
11:38 hankache Is it .p6 or .pl6?
11:39 lucasb since new people are expect for the end of the year, I would suggest to include some advice in the channel's topic like "Do not use the evalbot as your personal REPL, only use it to show something to the rest of the channel", or something like that
11:39 lucs hankache: After minutes of deliberation with myself, I concluded: .pm -> .pm6, so .pl -> .pl6
11:40 Zoffix It's the 4th time I see a question about file extensions in the last 3 days here and on Hackernews
11:40 hankache lucs: this is what I thought.
11:40 lucs But both seem to be used, so, eh.
11:40 mrf_ now to get prove to understand .t6 :D
11:40 Zoffix :P
11:40 mrf_ yeah both seem used equally. I prefer pl6 for ^ reasons
11:42 hankache Zoffix: I saw a comment on HN. In the tutorial I said .pl6 but someone commented that vim only recognize p6
11:42 nine grondilu: oh, the bug is more devious than I thought! panda's bootstrap uses the installed Panda instead of the one you're trying to install because it puts %*CUSTOM_LIB<site> to the front of $PERL6LIB to force installation and precompilation there. Of course that also means that installed modules will be loaded.
11:42 mrf_ hankache: taht is true
11:42 Ulti in theory .pl and .pm should be fine since both perls know about use v6;
11:42 mrf_ of my vim anyway
11:42 Ulti but then you must put use v6; at the top of everything which is gross
11:43 hankache Should I keep it or change it to p6. I do not want to mislead people
11:43 lucs hankache: Um, my Vim recognizes .pl6, and if it didn't, I would make it.
11:43 ely-se joined #perl6
11:43 lucs (maybe I did make it)
11:44 Ulti I've been using pl6 and pm6
11:45 hankache lucs good point. I like .pl6
11:45 _mg_ joined #perl6
11:45 mrf_ lucs: I think you made it. Would be nice if we can get that added as a default to vim
11:45 hankache Just making sure if there's some kind of consensus over extensions
11:45 FROGGS Skarsnik: which commit changed this line?
11:46 hankache Ok so pm6 pl6
11:46 Zoffix FROGGS, 518b46feb9 ?
11:46 hankache Pod6?
11:46 lucs FROGGS: 518b46feb9ae179cf7a73220673da5b9fbb01016
11:46 FROGGS uhh, I see
11:46 Ulti hankache might be worth seeing what the consensus in the ecosystem is
11:46 Zoffix And then add it to the FAQ
11:47 Ulti I suspect people with a lot of p5 experience tend to pm6 and pl6 just because their eyes are used to .pl
11:47 Zoffix TBH, I'm not even sure what extensions I've used for scripts.
11:48 Zoffix And the answer is... No extensions! :) https://github.com/zoffixznet/perl6-App-Nopaste/tree/master/bin
11:48 * mrf_ will submit a vim patch to add pl6 as perl6 format
11:50 hankache mrf_ ++
11:50 lucs mrf_: Suggest .p6 too? (if it isn't already)
11:51 mrf_ lucs: p6 is there as the default as is pm6.
11:51 mrf_ Any other whilst I am at it
11:51 mrf_ t6?
11:52 mrf_ lol .pl is for both perl and prolog in vim :D
11:53 _mg_ joined #perl6
11:53 lucs mrf_: Right, thanks.
11:54 Woodi is .v6 taken ? :)
11:54 hankache mrf_ pod6
11:55 kid51 joined #perl6
11:55 mrf_ .pod maps to pod. Can add .pod6 as an ft of pod6 if thats sane
11:55 RabidGravy for reference I tend not to use a suffix at all for programs
11:56 mrf_ RabidGravy: I think thats normal for installed scripts/apps but not for other scripts.
11:56 ShimmerFairy mrf_: if .pod maps to a special Pod mode, then mapping .pod6 to that wouldn't be helpful :)
11:56 lucs Reminds me of Molson breweries who used to sell the exact same beer under the name "Canadian" outside Québec, and some other name in Québec, sure of the fact that drinkers of one would never touch the other, so no one would notice (and they didn't).
11:56 mrf_ Woodi: nop
11:57 ShimmerFairy (it'd be like trying to highlight Perl 6 with a P5 highlighter)
11:57 lucs (re. the .pl extension)
11:57 mrf_ ShimmerFairy: It maps to a filetype of pod (for syntax etc) so maping pod6 to pod6 filetype would owrk
11:57 hankache Specially if you want syntax highlighting to work out of the box
11:57 ShimmerFairy ah, ok :)
11:58 dalek mu: 9b06c81 | (Steve Mynott)++ | misc/perl6advent-2015/schedule:
11:58 dalek mu: free up one of my slots
11:58 dalek mu: review: https://github.com/perl6/mu/commit/9b06c81d91
11:58 lucs Woodi: What's .v6 for?
11:58 DrForr I highlight mine with marker pens. Makes a mess out of the screen, but that's why I have the plastic taped up.
11:58 RabidGravy :)
11:59 mrf_ right I have added pod6 and pl6 should do for now. May add .t => perl and .t6 => perl6 as a seperate commit
12:01 lucs FROGGS: Is it the code or the test that needs repair?
12:02 lucs (if the latter, I'll go ahead and install)
12:02 ab6tract joined #perl6
12:04 Woodi lucs: in case no one likes .pm6...
12:04 FROGGS lucs: the code
12:04 Woodi ..or .pl6
12:04 lucs FROGGS: Woopsie, okay, thanks.
12:04 lucs Woodi: Oh :)
12:05 mrf_ https://github.com/vim/vim/pull/511
12:05 lucs Oh, Vim is git-based now? Cool.
12:05 ab6tract o/ #perl6 !
12:06 stmuk_ yeah they moved from hg a few months back
12:06 mrf_ lucs: yeah. Was surpised
12:06 ab6tract deepak++ raised an interesting point about potential filesystem encodings
12:08 ab6tract i'm a bit surprised that it would not just get handled transparently at the OS layer
12:09 ab6tract but it does point to a small issue with NFG.. i though NFG was a in internal representation that would then decompose out to the "right" thing
12:10 Skarsnik There is lot of usecase not directly on IO. Like running an executable
12:10 ab6tract if it's lossy, then it feels like we've broken
12:10 ab6tract Skarsnik: but running an executable is done through io ...
12:10 ab6tract anyway, i think it's an important wart to remove
12:11 ab6tract if jnthn++ has any ideas i wouldn't mind trying to hack a branch
12:11 Skarsnik I mean outside the obvious open $filename;
12:11 ab6tract Skarsnik: gotcha
12:11 timotimo um
12:12 timotimo why do people think we have a problem with filenames and such?
12:12 n0tjack joined #perl6
12:12 Skarsnik I had issue with a qt progam when passing filepath as argument to another executable (using gtk) when I encounter stuff like é on Windows
12:13 ab6tract timotimo: http://www.deepakg.com/prog/2010/09/unicode-characters-on-macos-linux-filesystem/
12:13 timotimo gfldex: if you put a $ into a signature, it doesn't make it a state variable
12:13 gfldex timotimo: what does it make it then?
12:14 timotimo gfldex: just an anonymous variable
12:14 ab6tract timotimo: also http://irclog.perlgeek.de/perl6/2015-12-01#i_11637359
12:14 gfldex i shall correct
12:14 timotimo we have the utf8-c8 encoding that round-trips invalid utf8 that you may find in filenames while still allowing us to have files that are utf8 be cleanly readable
12:14 Skarsnik timotimo, someone posted un example where a ls showed 2 file named 'filé' because there was a diff in the utf8 encoding, and loosing some codebyte could make you open the wrong file
12:16 timotimo m: "hellö".NFD.perl.say; "hellö".NFC.perl.say
12:16 camelia rakudo-moar a4ca12: OUTPUT«Uni.new(0x0068, 0x0065, 0x006c, 0x006c, 0x006f, 0x0308).NFD␤Uni.new(0x0068, 0x0065, 0x006c, 0x006c, 0x00f6).NFC␤»
12:16 * timotimo tries to create those two files locally
12:19 timotimo hm. right.
12:19 timotimo dir()>>.basename>>.codes.say will actually give 5 for both
12:19 nadim hi, given that  @a = [1 .. 3] is the same as @q = [[[ 1.. 3 ]]], ow do I greate an array in an array in an array?
12:20 timotimo m: my @a = [1..3,]; say @a.perl
12:20 camelia rakudo-moar a4ca12: OUTPUT«[1..3,]␤»
12:20 timotimo m: my @a = [$[1..3]]; say @a.perl
12:20 camelia rakudo-moar a4ca12: OUTPUT«[[1, 2, 3],]␤»
12:20 timotimo m: my @a = [1..3.list,]; say @a.perl
12:20 camelia rakudo-moar a4ca12: OUTPUT«[1..1,]␤»
12:20 ab6tract m: say [[[ 1.. 3 ],],]
12:20 camelia rakudo-moar a4ca12: OUTPUT«[[[1 2 3]]]␤»
12:20 gfldex m: my @a = [[[1,2,3],],]; dd @a;
12:20 camelia rakudo-moar a4ca12: OUTPUT«Array $var = $[[[1, 2, 3],],]␤»
12:20 timotimo m: my @a = [(1..3).list,]; say @a.perl
12:20 camelia rakudo-moar a4ca12: OUTPUT«[(1, 2, 3),]␤»
12:20 ab6tract oh, trailing comma no longer significant?
12:21 timotimo ab6tract: say uses .gist, so it doesn't give you something that necessarily round-trips
12:22 nadim timotimo: thanks, I tried a bunch of glyph combinations without success :)
12:22 timotimo :)
12:23 rindolf joined #perl6
12:23 nadim is there a reason why [[[ ... ]]] is not supported? apart making it easier to parse.
12:24 vytas getting following error when installing Grammar::Debugger http://pastebin.com/bjZJuwTE
12:25 timotimo nadim: it's the general "single argument rule". if there's a single thing inside [ ] (and other constructs) it will be iterated over to give the results
12:26 timotimo both the trailing comma and the initial $ will prevent that
12:26 arnsholt No, trailing comma is no longer significant, I think
12:26 yoleaux 11:35Z <mrf_> arnsholt: test t/04-nativecall/11-cpp.t and it is possibly related to your commit 518b46feb9. Can you elaborate on whether the test needs to be altered?
12:26 timotimo m: my @a = [1..3,]; say @a.perl; my @b = [1..3]; say @b.perl
12:26 camelia rakudo-moar a4ca12: OUTPUT«[1..3,]␤[1, 2, 3]␤»
12:26 timotimo arnsholt: is that so?
12:27 arnsholt Huh, apparently I'm wrong.
12:27 timotimo but you're still awesome :3
12:28 arnsholt Looking at S07 it looks like circumfix constructors and argument lists are different
12:28 timotimo could very well be
12:28 arnsholt I remembered a snippet from a discussion regarding argument lists
12:28 timotimo m: sub testit(+@test) { say @test.perl }; testit(1..2); testit(1..2,)
12:28 camelia rakudo-moar a4ca12: OUTPUT«[1, 2]␤[1, 2]␤»
12:28 timotimo and indeed it is so
12:29 timotimo m: sub testit(+@test) { say @test.perl }; testit([1..2]); testit([1..2,])
12:29 camelia rakudo-moar a4ca12: OUTPUT«[1, 2]␤[1..2,]␤»
12:29 timotimo if you add the [ ] back, you'll get the "trailing comma" semantic agai
12:29 arnsholt Which makes sense, I think. Even if I can't quite articulate why =)
12:30 timotimo well, in that case the array that you create is "the single argument"
12:32 nadim IMHO, a blog entry, another one, about complex data structures, flattening and the magic of some operations returning Seq and so would be welcome for the P5 community. It's been a headache to wrap ones mind around it so far.
12:32 rurban joined #perl6
12:34 arnsholt mrf_: Ooops, looks like I didn't run all the test. Sorry!
12:37 arnsholt mrf_: And the fix is moving sub nativecast to the top of Types.pm. Running the tests (all of them, this time =) now
12:39 vytas did @*INC go away?
12:39 Skarsnik wait? why moving the position of the sub change something? x)
12:39 Skarsnik vytas, yes
12:39 Skarsnik there is a @*REPO now I think
12:39 vytas what is its replacement?
12:39 timotimo $*REPO i believe
12:39 moritz vytas: what do you want to do?
12:40 nadim $*REPO it is
12:40 timotimo but if you just want to add something to the beginning of @*INC, you should use "use lib 'folder'" instead
12:40 vytas moritz,  installing PSGI fails because of https://github.com/supernovus/perl6-psgi/blob/master/t/populate-psgi-env.t
12:41 vytas but i just found that there is pull request by stmuk_ that fixes it... but it's not yet merged
12:41 dalek rakudo/nom: 9511ff2 | arnsholt++ | lib/NativeCall/Types.pm:
12:41 dalek rakudo/nom: Move sub nativecast to the top of Types.pm.
12:41 dalek rakudo/nom:
12:41 dalek rakudo/nom: This unbusts 11-cpp.t. mrf_++ for spotting the error.
12:41 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/9511ff21cf
12:42 lucs arnsholt: Thanks for fixing.
12:51 AlexDaniel joined #perl6
12:53 Skarsnik does DBIish still work? travis build still fail
12:54 Skarsnik and I don't have the last rakudo to test x)
12:55 AlexDaniel https://travis-ci.org/perl6/DBIish
12:55 AlexDaniel same error
12:56 moises joined #perl6
12:57 _mg_ joined #perl6
13:00 Skarsnik I will blame https://github.com/perl6/DBIish/blob/master/t/10-mysql.t#L64
13:02 Skarsnik I feel like curli does not like how DBIis is splitted
13:03 stmuk_ wasn't there a PR for DBIish?
13:03 Skarsnik it fix and earlier fail
13:03 Skarsnik *an
13:04 stmuk_ ah
13:05 kjs_ joined #perl6
13:06 ely-se joined #perl6
13:07 lucs Um, t/04-nativecall/16-rt125408.t fails, fixed by adding a  use lib 'lib';  line to it.
13:07 Skarsnik err
13:07 Skarsnik that should not be needed?
13:07 kjs_ joined #perl6
13:07 lucs Am I the first to experience this?
13:07 lucs I'm building from scratch, so it hasn't been "install"ed yet.
13:08 vytas could someone help author here - https://github.com/teodozjan/pod6-coverage/issues/20
13:08 lucs Could that explain it?
13:08 Skarsnik lucs, I think make test is to blame, by not putting the -I lib to perl6 call
13:09 lucs Skarsnik: http://fpaste.scsys.co.uk/502283
13:09 lucs Ah.
13:10 Skarsnik You should fill an issue for it x)
13:10 lucs Ok.
13:10 [Coke] m: say "the jvm build is days out of date?"
13:10 camelia rakudo-moar 9511ff: OUTPUT«the jvm build is days out of date?␤»
13:11 lucs Skarsnik: Um, push me in the right direction to open an issue please?
13:12 [Coke] r: say "the jvm build is days out of date?"
13:12 camelia rakudo-moar 9511ff, rakudo-jvm e3c591: OUTPUT«the jvm build is days out of date?␤»
13:12 n0tjack joined #perl6
13:13 [Coke] so, moar is at Wed Dec 2 07:40:50 2015; jvm is at Sat Nov 28 23:10:43 2015
13:13 Skarsnik lucs, https://github.com/rakudo/rakudo reporting bugs, there is no issue stuff on rakudo apparently
13:14 moritz [Coke]: http://perlpunks.de/paste/show/565eee8f.a31.1ea
13:14 moritz [Coke]: that's how the JVM build fails
13:14 stmuk_ panda seems to work on travis now!
13:15 lucs Skarsnik: It mentions <mailto: rakudobog@perl.org>, I guess I'll try that.
13:15 lucs u
13:15 [Coke] ah, related to precomp work. I haven't tried to run r-j locally in a few days.
13:19 El_Che I looked yesterday at Azure to see if I could sping a windows VM to smoke rakudo. OMG. Azure is concentrated pain with a tablet interface.
13:19 ely-se joined #perl6
13:21 llfourn .tell timotimo you are probably asleep by now. Just poking you for benchmarks :D. No rush.
13:21 yoleaux llfourn: I'll pass your message to timotimo.
13:22 lucs Skarsnik: (Okay, bug report sent, thanks)
13:23 llfourn timotimo: err nvm I just confused myself about times. urgh you are probably awake :P
13:23 mrf_ arnsholt: thanks :D
13:23 mrf_ arnsholt++
13:30 arnsholt Least I could do when I broke it =)
13:30 mrf_ lucs: whats that ticket number. Seems easy enough to fix Configure.pl to pass -Ilib to HARNESS
13:31 edehont joined #perl6
13:31 mrf_ arnsholt: You probably won't be surprised how many people wouldn't say that
13:32 lucs mrf_: 126785
13:33 domidumont1 joined #perl6
13:33 arnsholt mrf_: To be fair, it was pretty simple to fix too =)
13:35 mrf_ arnsholt: all the better. It was beyond my ken
13:35 mrf_ lucs: link?
13:35 * mrf_ has no idea where the rakudo issue tracker is
13:36 mrf_ lucs: is the issue that it doesn't use its own libs when installing so only works after its already installed?
13:37 lucs mrf_: Here you go: https://rt.perl.org/Public/Bug/Display.html?id=126785
13:37 mrf_ lucs: thanks.
13:37 [Coke] RT #126785
13:37 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=126785
13:37 [Coke] ^^ bot magic.
13:37 lucs Aha, cool.
13:40 arnsholt mrf_: The magic trick was running the test with perl6 --ll-exception
13:41 mrf_ arnsholt: what does that do?
13:41 arnsholt If you set --ll-exception exception backtraces will include compiler-internal stuff, which is generally what you want when debugging the compiler, but not in normal user code
13:41 mrf_ arnsholt++ # useful info
13:42 colomon Dynamic variable @*INC not found ?
13:42 mrf_ colomon: in what?
13:42 Skarsnik colomon, it had been removed
13:42 mrf_ ^
13:42 colomon :(
13:43 moritz colomon: use lib if you just want to extend INC
13:43 arnsholt Went away in the library/precompilation refactor
13:43 colomon moritz: is that lexical?
13:43 moritz colomon: I think so
13:43 colomon … actually, maybe the code wasn’t relying on that anyway.  hmmm.
13:44 mrf_ does use lib work at runtime or compile time (use lib $my_lib)
13:44 moritz mrf_: compile time
13:44 mrf_ moritz: how do you dynamically load libs then?
13:45 ZoffixW joined #perl6
13:45 moritz mrf_: through $*REPO somehow, though I don't know the details
13:45 Skarsnik use lib 'path to lib'; ?
13:46 mrf_ moritz: ok. Its not overly common in modules but application often add weird libs at runtime based on config
13:47 colomon hmmm, use lib seems to work nicely
13:48 colomon but then in a later script
13:48 colomon ===SORRY!===
13:48 colomon Could not find File::Temp:ver<True>:auth<True>:api<True> in:
13:48 colomon /home/colomon/.perl6/2015.11-317-g9511ff2
13:48 colomon /home/colomon/.rakudobrew/moar-nom/install/share/perl6/site
13:48 colomon /home/colomon/.rakudobrew/moar-nom/install/share/perl6/vendor
13:48 colomon /home/colomon/.rakudobrew/moar-nom/install/share/perl6
13:48 colomon oh, wait, maybe that’s real!
13:48 lucs mrf_: Gah! I said t/04-nativecall/11-cpp.t in my bug report, but it's t/16-rt125408.t
13:49 colomon yeah, okay, that one was real.  :)
13:49 ZoffixW Man, getting the feed back up is tricky :)
13:49 lucs copypastypo
13:49 ZoffixW Unless I'm willing to use Mojolicious version 5.54
13:49 colomon though huh, when I try to install again
13:49 colomon ==> Installing File::Temp
13:49 colomon File::Temp:ver<0.0.2>:auth<Jonathan Scott Duff>:api<> already installed
13:49 mrf_ lucs: that ok. The issue is that it installs using the installed libs not the source libs
13:49 colomon I don’t like that in the least
13:49 mrf_ lucs: I am about to make a PR that fixes it
13:50 lucs mrf_: Yeah, that part remains true, still...
13:50 lucs mrf_: Thanks.
13:50 arnsholt mrf_: I think the most detailed doc of how to do runtime library path modifications is jnthn++'s gist: https://gist.github.com/jnthn/47a42b2e86e7e552b2e2
13:50 mrf_ arnsholt: cool. Will take a look. Our old p5 application has an entire module designed to figure out dynamic libs. Its aweful
13:51 arnsholt There's also the code handling use lib, which is src/Perl6/World.nqp:783-802
13:52 colomon ah, no, use lib is not at all an adequate substitute for @*INC.push, becaue it’s happening at compile-time
13:52 colomon :\
13:53 arnsholt From the looks of World.nqp it shouldn't be too complicated
13:54 moritz $*REPO = CompUnitRepo.new($path, :next-repo($*REPO))
13:54 arnsholt Yeah, what moritz++ said
13:56 Akagi201 joined #perl6
13:57 mrf_ Can anyone add me to the RT list so I can take ownership of a ticket?
13:58 moritz mrf_: I think [Coke] can, and he needs to know your RT login
14:01 mrf_ [Coke]: can you add me (ungrim97@hotmail.com) to RT please so I can grab RT# 126785
14:03 stmuk_ mrf_++
14:03 Akagi201 joined #perl6
14:03 * mrf_ has already fixed the issue but...
14:04 mrf_ hmm testing this will be hard. Whats the easiest way to blow away a rakudo install.
14:04 moritz mrf_: git clean -xdf # attention, deletes *all* untracked files
14:04 dalek perl6.org: 182400e | (Zoffix Znet)++ | / (3 files):
14:04 dalek perl6.org: Generate Recent Blog Posts JSON file on site build
14:04 dalek perl6.org: review: https://github.com/perl6/perl6.org/commit/182400ee29
14:05 moritz mrf_: and if you're really thorough, do the same in the nqp/ and nqp/MoarVM/ repos too
14:05 mrf_ moritz: Ahhh that install is in the rakudo dir of course
14:05 mrf_ moritz++
14:05 * mrf_ will git stash first
14:06 ZoffixW moritz, ^ that commit is kinda hackish (using perl of a different user), but I figure this way we don't need to mess with (and maintain) newer perl/perlbrew and all for a small thing
14:06 ZoffixW It'll make a json file that I'll use to display recent blog posts on the home page, now that Google disabled their Feed API
14:08 moritz ZoffixW: a slightly less hacky way would to be to source the perlbrewrw in a bash script and use that as a wrapper around the perl script
14:09 ZoffixW That would affect mowyw too and on perl 5.22 it spits a galore of warnings due to unescaped {} in regexes
14:09 cdg joined #perl6
14:11 moritz I guess I should fix mowyw then
14:12 ZoffixW :D
14:12 colomon moritz: you’re suggesting I need to create a new CompUnitRepo?  That does seem kind of reasonable, I guess...
14:13 moritz colomon: I actually just forward-engineered what I think the Perl6::World could would be in ordinary Perl 6
14:14 n0tjack joined #perl6
14:15 ely-se joined #perl6
14:19 JimmyZ we need @*REPO.push ?
14:22 krakan joined #perl6
14:23 [Coke] mrf_: added.
14:24 jdv79 afternoon
14:24 mrf_ [Coke]: Thanks
14:25 krakan joined #perl6
14:26 zengargoylew joined #perl6
14:29 mrf_ Should all spec tests pass under "make spectest" for a fresh rakudo checkout
14:31 colomon moritz: Cannot modify an immutable CompUnit::Repository::Installation
14:32 moritz colomon: what exactly did you do?
14:33 colomon moritz:     $*REPO = CompUnitRepo.new("$dir/lib", :next-repo($*REPO));
14:34 dalek perl6.org: c88ad4e | (Zoffix Znet)++ | source/js.js:
14:34 dalek perl6.org: Fix Recent Blog Posts not displaying due to Google Feed API deprecation (stmuk++)
14:34 dalek perl6.org: review: https://github.com/perl6/perl6.org/commit/c88ad4e6ca
14:34 colomon instead of @*INC.push: “$dir/lib”
14:34 ZoffixW colomon, why not just:   juse lib "$dir/lib"; ?
14:35 ZoffixW s/juse/use/;
14:35 moritz m: $*REPO = CompUnitRepo.new("bla/foo", :next-repo($*REPO));
14:35 camelia rakudo-moar 9511ff: OUTPUT«Cannot modify an immutable CompUnit::Repository::Installation␤  in block <unit> at /tmp/HjYxXHL8YZ:1␤␤»
14:35 moritz m: my $*REPO = CompUnitRepo.new("bla/foo", :next-repo($*REPO));
14:35 camelia rakudo-moar 9511ff: OUTPUT«Type check failed in binding $next-repo; expected CompUnit::Repository but got Any␤  in block <unit> at /tmp/tiUW5tNEbE:1␤␤»
14:36 moritz m: my $*REPO = CompUnitRepo.new(".", :next-repo($*REPO));
14:36 camelia rakudo-moar 9511ff: OUTPUT«Type check failed in binding $next-repo; expected CompUnit::Repository but got Any␤  in block <unit> at /tmp/WPHJQ5YSxf:1␤␤»
14:36 moritz :(
14:36 [Coke] mrf: yes, they *should*.
14:37 mrf_ [Coke]: Damn
14:37 lucs [Coke]: "Shall" they too?
14:37 mrf_ though its worth pointing out that make spec test won't use the right libs I don't think
14:38 colomon ZoffixW: because use lib does it at compile time, when $dir is Nil
14:38 colomon ZoffixW: or at least that’s what it looks like
14:38 ZoffixW Ah
14:39 * lucs had a handful of failing spec tests a couple of days ago, but ignored them.
14:39 * JimmyZ wonders what about EVAL "use lib '...'";
14:40 JimmyZ m: EVAL "use lib '.'";
14:40 camelia rakudo-moar 9511ff: ( no output )
14:40 moritz m: say $*REPO.repo-chain
14:40 camelia rakudo-moar 9511ff: OUTPUT«(inst#/home/camelia/.perl6/2015.11-317-g9511ff2 inst#/home/camelia/rakudo-m-inst-2/share/perl6/site inst#/home/camelia/rakudo-m-inst-2/share/perl6/vendor inst#/home/camelia/rakudo-m-inst-2/share/perl6)␤»
14:40 moritz m: EVAL 'use lib "."'; say $*REPO.repo-chain
14:40 camelia rakudo-moar 9511ff: OUTPUT«(file#/home/camelia inst#/home/camelia/.perl6/2015.11-317-g9511ff2 inst#/home/camelia/rakudo-m-inst-2/share/perl6/site inst#/home/camelia/rakudo-m-inst-2/share/perl6/vendor inst#/home/camelia/rakudo-m-inst-2/share/perl6)␤»
14:40 zengargoylew hrm.  sorta hoped rakudobrew would go smoothly by now. :/
14:40 moritz seems 'use lib' isn't lexically scoped, and so the EVAL trick works. JimmyZ++
14:42 JimmyZ EVAL++ # powerful tool :)
14:42 zengargoylew maybe should've git pull'd rakudobrew first...
14:42 ab6tract timotimo: is say doesn't round trip, than neither does spurt, right? deepak has another test case that he will join the channel and share later tonight
14:43 ab6tract *if
14:45 sufrostico joined #perl6
14:46 ZoffixW Yey \o/ recent blog posts back on http://perl6.org/
14:46 ZoffixW Google Feed API? We don't need no API :P
14:46 MadcapJake ZoffixW++
14:46 MadcapJake The <read more> link opens an atom.xml file
14:47 ZoffixW Yeah, I know. Should it be opening something else? :)
14:47 ZoffixW (that file displays fine in my browser and I'm offered to subscribe)
14:47 MadcapJake maybe just pl6anet.org front page
14:48 MadcapJake oh, what browser are you using?
14:48 cygx joined #perl6
14:48 cygx m: say $*REPO.VAR.^name
14:48 camelia rakudo-moar 9511ff: OUTPUT«CompUnit::Repository::Installation␤»
14:48 cygx ^ no scalar container, thus no assignment
14:48 MadcapJake chromium-based browsers don't do that (maybe extensions add this but it's not default behavior)
14:48 cygx m: $*REPO := CompUnitRepo.new(".", :next-repo($*REPO));
14:48 camelia rakudo-moar 9511ff: OUTPUT«No contextual found with name '$*REPO'␤  in block <unit> at /tmp/HXxwifIRxR:1␤␤»
14:48 cygx not quite sure what's up with that one
14:49 ZoffixW MadcapJake, Palemoon: http://i.imgur.com/uGFYUYz.png
14:49 JimmyZ m: my $*REPO := CompUnitRepo.new(".", :next-repo($*REPO));
14:49 camelia rakudo-moar 9511ff: OUTPUT«Type check failed in binding $next-repo; expected CompUnit::Repository but got Any␤  in block <unit> at /tmp/bnuCAk40_7:1␤␤»
14:49 MadcapJake yeah, i love that feature of firefox-based browsers
14:50 [Coke] mrf_: Failures I know about: https://github.com/coke/perl6-roast-data/blob/master/log/rakudo.moar-jit_summary.out#L4785
14:50 [Coke] Note that I have one more failure on moar-jit than on moar-nojit
14:50 MadcapJake chromium browsers just show a big wall of text (used to show all the xml but now they at least show just the text)
14:51 colomon JimmyZ++
14:52 ilmari ls
14:52 ilmari EWIN
14:52 [Coke] JimmyZ: I incorporated the list of authors you gave me into the list, and also pulled in the RFC uthors.
14:52 mrf_ [Coke]: I am just running against moar at the moment. (from --gen-moar). Got quite a few failures when using -Ilib
14:53 skids joined #perl6
14:53 mrf_ am checking without the change and will check the delta
14:53 JimmyZ [Coke]: noticed, Thanks ;)
14:55 csd_ joined #perl6
14:55 jdv79 so, what if i want to have a "use v6" line for lang detection but want to use the current version
14:55 ilmari what are the semantics supposed to be for shifting native ints by more than the word size?
14:55 ilmari $ ./nqp -e 'nqp::say(nqp::bitshiftl_i(1, 64))'
14:55 ilmari src/core/interp.c:748:65: runtime error: shift exponent 64 is too large for 64-bit type 'long int'
14:55 jdv79 from jnthn's post seems that's impossible
14:56 ilmari 1
14:56 ilmari (built with ubsan)
14:58 ilmari $ ./nqp -e 'nqp::say(nqp::bitshiftl_i(1, -1))'
14:58 ilmari src/core/interp.c:748:65: runtime error: shift exponent -1 is negative
14:58 ilmari -9223372036854775808
14:59 ilmari it's basically whatever the underlying CPU instruction does
14:59 nine Please don't use CompUnitRepo.new in user code. We _will_ remove it as soon as someone has a good idea where to move the code to.
14:59 * colomon has smoke test running again...
14:59 ilmari on javascript the shift amount is interpreted modulo 32, on java they're modulo 64
14:59 dalek perl6.org: cbc82a9 | (Zoffix Znet)++ | source/ (4 files):
14:59 dalek perl6.org: Link to non-RSS Recent Blog Posts as well (MadcapJake++)
14:59 dalek perl6.org: review: https://github.com/perl6/perl6.org/commit/cbc82a9387
14:59 JimmyZ nine: we changed to use EVAL :P
15:00 nine Best course of action would of course be to implement $?REPO as suggested by jnthn++'s gist
15:00 moritz nine: what's the recommended way to add an include path or so at run time?
15:01 nine PROCESS::<$REPO> := CompUnit::Repository::FileSystem.new(:prefix</path/to/lib>, :next-repo($*REPO));
15:01 ilmari also, the js backend only seems to implement left shift, not right shift, for native ints
15:01 ZoffixW ouch that's ugly
15:02 nine ZoffixW: then help design a better solution :)
15:02 nine ZoffixW: or implement support for $?REPO
15:02 dakkar or @*REPO?
15:03 ZoffixW nine, that's way over my head :)
15:03 ZoffixW So all I can do is unconstructively complain :)
15:03 nine I guess $?REPO is just about 15 lines of code of which most can be copy and pasted from elsewhere. It's just not on top of my TODO list
15:03 timotimo llfourn: i'm awake, yeah :)
15:03 yoleaux 13:21Z <llfourn> timotimo: you are probably asleep by now. Just poking you for benchmarks :D. No rush.
15:04 llfourn timotimo: me too :)
15:04 JimmyZ oh, about CompUnitRepo, I wanted to suggest to rename it. but I didn't
15:04 havenwood joined #perl6
15:04 havenwood joined #perl6
15:04 nine ZoffixW: I started work on curli by pasting code from jnthn's gist to actual files and trying to hook the stuff up in baby steps. There is no "over my head", there's just a "haven't tried to figure it out yet".
15:05 nine JimmyZ: my first instinct is to just move the code to CompUnit::Repository. But that class represents a single repository. Somehow the code dealing with repositories in general feels out of place there.
15:05 nine JimmyZ: Maybe a CompUnit::RepositoryManager
15:05 nine CompUnit::RepositoryManager.repo-for('file#/foo/bar')?
15:06 nine Or...since the remaining code is about repo specifications: CompUnit::RepositorySpecification.new('file#/foo/bar').repository
15:07 Woodi nine: is CompUnit::* a bit like java class loader ?
15:07 JimmyZ @*REPO.push ?
15:07 nine Woodi: yes
15:07 nine Woodi: really performs the same job AFAIK
15:07 nine JimmyZ: there is now @*REPO. Repositories form a linked list
15:08 arnsholt s/now/no/ ?
15:08 nine arnsholt: correct
15:08 Woodi just WOW then :) so probably security stuff can be plugged too
15:09 domidumont joined #perl6
15:10 timotimo hmm
15:10 timotimo but i'm quite distracted right now
15:10 [Coke] nine++ again.
15:10 [Coke] ShimmerFairy: You still thinking of tackling AUTHORS -> CREDITS ?
15:10 [Coke] (btw, probably want to leave AUTHORS there for historical reasons)
15:10 Woodi as we just learned jnthn++ too :)
15:11 ShimmerFairy [Coke]: oh, sorry, forgot about it.
15:11 timotimo .tell japhb how about we let perl6-bench have a list or hash of test code (exitcode tells if usable) to actual code (or filename) so we can be compatible with different rakudo versions for all stuff
15:11 yoleaux timotimo: I'll pass your message to japhb.
15:13 ilmari .ask TimToady what should the semantics for shifting native ints by negative or greater than width amounts be? it's undefined in C, and thus in the current moar
15:13 yoleaux ilmari: I'll pass your message to TimToady.
15:14 [Coke] also, if someone is bored, I could use a sort function that 1) is mark insensitive, 2) prefers non latin, 3) prefers spaces, 4) prefers longer things, roughly in that order.
15:14 mrf_ [Coke]: t/spec/S17-scheduler/at.rakudo.moar not ok 13 - can we cancel (3)# TODO huh?
15:14 JimmyZ ilmari: https://github.com/MoarVM/MoarVM/issues/41
15:14 [Coke] I have most of this, but want something that would sort 唐鳳
15:14 n0tjack joined #perl6
15:14 [Coke] before Audrey Tang, e.g.
15:15 [Coke] (whereas right now I'm only preferring Ingy Döt Net over Ingy Dot net)
15:15 [Coke] https://gist.github.com/coke/63c7bbb82f075c7bb1f5#file-contributors-historic-pl6-L6-L67
15:15 timotimo ab6tract: spurt also won't round-trip; but you can slurp and spurt :bin so that you don't get surprised by things
15:16 [Coke] mrf_: if it's TODO'd, and "not ok", that's not an error. It's an expected failure.
15:16 arnsholt [Coke]: Where "prefer $a over $b" means "$a < $b"?
15:16 mrf_ [Coke]: Should that not skip under test harness...
15:16 [Coke] arnsholt: yup.
15:16 [Coke] mrf_: no. todo tests are run.
15:17 [Coke] otherwise how will you know when they are passing?
15:17 YP-QMUL-W joined #perl6
15:17 [Coke] -skip- tests aren't run, typically because they fail too horribly.
15:17 arnsholt "döt" sorting before "dot" is really weird. How are you sorting currently?
15:17 mrf_ [Coke]: ok. Thats fine. Just hard to tell in the make spectest run which are failing as todo and which are failing due to my stuff
15:17 [Coke] but todo's are just "wrong value", not "ZOMG ERROR"
15:17 raydiak_ joined #perl6
15:17 MadcapJake ZoffixW++ # Always love seeing the RSS icon! Looks really good!
15:17 [Coke] mrf_: todo tests -aren't failures-
15:18 ZoffixW \o/
15:18 [Coke] how are you seeing them as failures?
15:18 mrf_ t/spec/S17-scheduler/at.rakudo.moar                         (Wstat: 256 Tests: 15 Failed: 0) Non-zero exit status: 1
15:18 [Coke] let me back up.
15:18 [Coke] How are you running the tests?
15:18 mrf_ make spectest
15:18 Upasaka joined #perl6
15:19 mrf_ I then ran ./perl6 -Ilib t/spec/S17-scheduler/at.rakudo.moar to get a more details explaination as to why.
15:19 [Coke] if that's the only line, there were no explicitly failed tests, but the test file exited with a failing value.
15:19 [Coke] that's not because you have a todo test that doesn't pass.
15:20 [Coke] mrf_: are you running with a pristine rakudo or with local changes?
15:20 khw joined #perl6
15:20 [Coke] arnsholt: it's not the sort for showing all the names. it's the sort for picking the best name of a list of aliases for a person.
15:20 mrf_ [Coke]: pristine currently
15:21 mrf_ [Coke]: https://gist.github.com/ungrim97/89e44d0bfc63f5448a25
15:21 [Coke] so Ingy has two names. I want the latin-ified one, not the ascii one.
15:21 [Coke] mrf_: right, so all the tests passed individually, but the script didn't exit with a clean value.
15:22 [Coke] as opposed to your copy of S17-supply/unique.t
15:22 JimmyZ [Coke]: so will you remove the emails and only keep one?
15:22 [Coke] which apparently aborted after running 5 tests, 2 of which failed, leaving 12 that weren't even run because it aborted.
15:22 mrf_ ahh ok
15:22 [Coke] JimmyZ: for example: Nat Tuck 「Chandon」 <nat@ferrus.net>
15:23 [Coke] will only have "Nat Tuck" in the announcement.
15:23 rurban joined #perl6
15:23 JimmyZ ok :)
15:25 [Coke] arnsholt: if you look in that gist, you can see lots of people with multiple names under the 「」; I'd like to do a better job picking. I did it with a sort, but it could be something that just checks each name. (oh, you ahve a codepoint > 1000 ? keep that)
15:29 cpage joined #perl6
15:33 n0tjack joined #perl6
15:39 stux|RC-only joined #perl6
15:40 jdv79 .tell masask what when and default changes?
15:41 jdv79 gah
15:42 jme` joined #perl6
15:43 ribasushi joined #perl6
15:44 zengargoylew i thought modules were to install under .../install/share/perl6/site if writeable, and only under ~/.perl6 otherwise.
15:44 nine zengargoylew: should be that way, why?
15:45 zengargoylew all of mine ended up under ~/.perl6 anyway...
15:45 nine zengargoylew: rakudo and panda up to date?
15:45 zengargoylew even though I own the whole of .../rakudobrew/install/*
15:45 zengargoylew built just this AM.  within the last hour or so.
15:45 nine ok
15:46 nine Are you actually sure that the modules are under ~/.perl6?
15:46 zengargoylew 6.1M of files under ~/.perl6 created today....
15:47 zengargoylew something got put there...
15:47 nine yes, precompilation files
15:49 nine That's as expected. We always store precompilation files into the precompilation store of the head of the repository chain. That's to ensure that we don't load a precomp file that was compiled against an outdated version of a dependency.
15:50 retupmoca nine: do you know if this is expected PERL6LIB behaviour? https://gist.github.com/retupmoca/01d09301ac7fc3fd2013
15:50 retupmoca (I think this is what's breaking panda bootstrap for me)
15:50 zengargoylew isn't that going to make sharing amongst multiple users problematic?  or how do i manage to share perl6 install for multiple users if important stuff is in one user's ~/.perl6?
15:51 nine m: say $*REPO.repo-chain
15:51 nine retupmoca: ^^^ easier debugging
15:51 retupmoca ooh, nine++
15:53 nine retupmoca: that looks an awful lot like a bug I already fixed
15:54 retupmoca nine: lemme make sure everything's up to date on my end then
15:54 nine retupmoca: that's the reason for the .unique in src/core/Process.pm line 130
15:55 nine zengargoylew: those precompilation files are generated at runtime anyway
15:56 zengargoylew nine: ok, nm.  guess it'll take me another week to figure things out again. :)
16:00 zengargoylew hope there's eventually some way to 'browse' installed things.  miss being able to `ls` paths and look at modules/source.
16:06 retupmoca nine: "This is rakudo version 2015.11-317-g9511ff2" -> same behaviour on my side
16:11 retupmoca nine: Possibly a windows / vs \ problem? I can try to chase the bug farther if it's non-obvious
16:12 zakharyas joined #perl6
16:12 pmurias joined #perl6
16:12 telex joined #perl6
16:12 robinsmidsrod joined #perl6
16:12 lsm-desktop joined #perl6
16:12 simcop2387 joined #perl6
16:12 xnrand joined #perl6
16:12 JimmyZ joined #perl6
16:12 samb1 joined #perl6
16:12 integral joined #perl6
16:12 flussence joined #perl6
16:12 [Tux] joined #perl6
16:12 geekosaur joined #perl6
16:12 Humbedooh joined #perl6
16:12 hacst joined #perl6
16:12 BinGOs joined #perl6
16:12 mrsolo joined #perl6
16:12 kipd joined #perl6
16:12 dalek joined #perl6
16:12 Juerd joined #perl6
16:12 Spot__ joined #perl6
16:12 PotatoGim joined #perl6
16:12 mephinet joined #perl6
16:12 avalenn joined #perl6
16:12 MilkmanDan joined #perl6
16:12 dylanwh joined #perl6
16:12 timotimo joined #perl6
16:12 chansen_ joined #perl6
16:12 zemmihates joined #perl6
16:12 jsimonet joined #perl6
16:12 ugexe joined #perl6
16:12 yoleaux joined #perl6
16:12 {dpk} joined #perl6
16:12 SmokeMachine__ joined #perl6
16:12 wtw joined #perl6
16:12 avar joined #perl6
16:12 literal joined #perl6
16:12 confuseAcat joined #perl6
16:12 crux joined #perl6
16:12 doublec joined #perl6
16:12 bbarker`` joined #perl6
16:12 bowtie joined #perl6
16:12 awwaiid joined #perl6
16:12 pRiVi joined #perl6
16:12 zhmylove joined #perl6
16:12 mattp__ joined #perl6
16:12 sjohnson joined #perl6
16:12 baest joined #perl6
16:12 mdaq joined #perl6
16:12 solarbunny joined #perl6
16:12 pnu joined #perl6
16:12 hobbs joined #perl6
16:12 cibs joined #perl6
16:12 sammers joined #perl6
16:12 erdic joined #perl6
16:12 gfldex joined #perl6
16:12 ab5tract joined #perl6
16:12 gypsydave5 joined #perl6
16:12 autarch joined #perl6
16:12 leedo joined #perl6
16:12 Gothmog_ joined #perl6
16:12 Grrrr joined #perl6
16:12 novapatch joined #perl6
16:12 daxim joined #perl6
16:12 tadzik joined #perl6
16:12 f3ew joined #perl6
16:12 breinbaas joined #perl6
16:12 Sgeo joined #perl6
16:12 DrForr joined #perl6
16:12 huf joined #perl6
16:12 yakudza joined #perl6
16:12 profan joined #perl6
16:12 diego_k joined #perl6
16:12 hahainternet joined #perl6
16:12 dg joined #perl6
16:12 boegel joined #perl6
16:12 gugod joined #perl6
16:12 dustinm` joined #perl6
16:12 cpage joined #perl6
16:12 khw joined #perl6
16:12 raydiak_ joined #perl6
16:12 YP-QMUL-W joined #perl6
16:12 havenwood joined #perl6
16:12 csd_ joined #perl6
16:12 skids joined #perl6
16:12 cdg joined #perl6
16:12 dakkar joined #perl6
16:12 espadrine joined #perl6
16:12 Skarsnik joined #perl6
16:12 RabidGravy joined #perl6
16:12 dj_goku joined #perl6
16:12 noganex joined #perl6
16:12 Zoffix joined #perl6
16:12 jojotus joined #perl6
16:12 zengargoyle joined #perl6
16:12 ShimmerFairy joined #perl6
16:12 jevin_ joined #perl6
16:12 colomon joined #perl6
16:12 sQuEE joined #perl6
16:12 abaugher_ joined #perl6
16:12 cpage_ joined #perl6
16:12 xinming_ joined #perl6
16:12 keix joined #perl6
16:12 llfourn joined #perl6
16:12 Praise joined #perl6
16:12 Timbus joined #perl6
16:12 rvchangue joined #perl6
16:12 roguelazer joined #perl6
16:12 skarn joined #perl6
16:12 mspo joined #perl6
16:12 Hotkeys joined #perl6
16:12 moznion joined #perl6
16:12 skaji joined #perl6
16:12 oka^ joined #perl6
16:12 hanekomu joined #perl6
16:12 flaviusb joined #perl6
16:12 clkao joined #perl6
16:12 Gardner joined #perl6
16:12 bitmap joined #perl6
16:12 kaare_ joined #perl6
16:12 bakedb joined #perl6
16:12 sno joined #perl6
16:12 darutoko joined #perl6
16:12 mr-foobar joined #perl6
16:12 Khisanth joined #perl6
16:12 pierrot joined #perl6
16:12 kst joined #perl6
16:12 Fleurety joined #perl6
16:12 uruwi_ joined #perl6
16:12 ggoebel7 joined #perl6
16:12 MadcapJake joined #perl6
16:12 emdashcomma joined #perl6
16:12 g4 joined #perl6
16:12 vytas joined #perl6
16:12 Guest51288 joined #perl6
16:12 synbot6 joined #perl6
16:12 diakopter joined #perl6
16:12 Exodist joined #perl6
16:12 pyrimidine joined #perl6
16:12 n0xff joined #perl6
16:12 nebuchadnezzar joined #perl6
16:12 Util_ joined #perl6
16:12 dbohdan joined #perl6
16:12 _sri_ joined #perl6
16:12 tony-o_ joined #perl6
16:12 ashleyde1 joined #perl6
16:12 mrf_ joined #perl6
16:12 moritz joined #perl6
16:12 arnsholt joined #perl6
16:12 xdbr joined #perl6
16:12 [ptc] joined #perl6
16:12 parisba joined #perl6
16:12 eternaleye joined #perl6
16:12 M-Illandan joined #perl6
16:12 jantore joined #perl6
16:12 chewie_1982 joined #perl6
16:12 sjn joined #perl6
16:12 luis joined #perl6
16:12 advwp_ joined #perl6
16:12 obra joined #perl6
16:12 orevdiabl joined #perl6
16:12 b2gills joined #perl6
16:12 gtodd joined #perl6
16:12 go|dfish joined #perl6
16:12 DrPete_ joined #perl6
16:12 ilmari joined #perl6
16:12 isacloud joined #perl6
16:12 sftp joined #perl6
16:12 olinkl joined #perl6
16:12 corbyhaas joined #perl6
16:12 domidumont joined #perl6
16:12 matt_ joined #perl6
16:12 DarthGandalf joined #perl6
16:12 burnersk joined #perl6
16:12 eiro joined #perl6
16:12 Psyche^ joined #perl6
16:12 ggherdov joined #perl6
16:12 cgfbee joined #perl6
16:13 nine retupmoca: that's so very odd. I get:
16:13 nine nine@sphinx:~> PERL6LIB=inst#/data/home/nine/install/rakudo/install/share/perl6/vendor,file#a,file#b perl6 -e 'say $*REPO.repo-chain'
16:13 nine (inst#/data/home/nine/install/rakudo/install/share/perl6/vendor file#/home/nine/a file#/home/nine/b inst#/home/nine/.perl6/2015.11-307-g5a9e0b1 inst#/data/home/nine/install/rakudo/install/share/perl6/site inst#/data/home/nine/install/rakudo/install/share/perl6)
16:15 ggherdov joined #perl6
16:15 retupmoca probably a windows thing then
16:15 retupmoca I'll see if I can find it on my machine
16:16 nine retupmoca: what's the output of perl6 -e 'say $*REPO.WHICH'
16:18 retupmoca CompUnit::Repository::Installation|C:\users\andrew\development\p6bin\share\perl6\vendor
16:18 retupmoca (with PERL6LIB set to the bug-inducing string)
16:19 nine That's what .unique uses for equality checking. Looks quite ok
16:23 retupmoca nine: even at src/core/Process.pm:120 ? That looks like it's just setting it to a string
16:26 nine retupmoca: until line 124 I'm just collecting the list of repo specs (file#/foo/bar strings) into @INC. In line 130 I build the $*REPO chain from this list but try to make sure I create each repo only once, even if it occurs multiple times in @INC. Line 132 replaces the strings in %*REPO by those Repository objects
16:26 nine m: <1 2 3 3 4 4 4 5 2>.unique.say
16:27 nine How can camelia still be missing when it's running on the same box as my IRC client??
16:27 n0tjack what's the perl6 equivalent of tr/[^AB]// ?
16:27 n0tjack p6's tr seems focused on replacing named items, not "anything which is not".
16:29 lichtkind joined #perl6
16:29 nadim joined #perl6
16:29 cbk joined #perl6
16:29 rurban joined #perl6
16:29 Upasaka joined #perl6
16:29 sufrostico joined #perl6
16:29 krakan joined #perl6
16:29 Su-Shee joined #perl6
16:29 abraxxa joined #perl6
16:29 stmuk_ joined #perl6
16:29 rudi_s_ joined #perl6
16:29 adhoc joined #perl6
16:29 shmibs joined #perl6
16:29 Woodi joined #perl6
16:29 hoelzro joined #perl6
16:29 zostay joined #perl6
16:29 japhb joined #perl6
16:29 [Coke] joined #perl6
16:29 zoosha joined #perl6
16:29 grondilu joined #perl6
16:29 mtj_ joined #perl6
16:29 frew joined #perl6
16:29 masak joined #perl6
16:29 bonsaikitten joined #perl6
16:29 mathw_ joined #perl6
16:29 ir2ivps4__ joined #perl6
16:29 TimToady joined #perl6
16:29 sunnavy joined #perl6
16:29 ssflying joined #perl6
16:29 rjbs joined #perl6
16:29 camelia joined #perl6
16:29 btyler joined #perl6
16:29 broquaint joined #perl6
16:29 jordman_ joined #perl6
16:29 cxreg joined #perl6
16:29 krunen_ joined #perl6
16:29 charsbar__ joined #perl6
16:29 PerlJam joined #perl6
16:29 Possum joined #perl6
16:29 |Tux| joined #perl6
16:29 mst joined #perl6
16:29 BooK joined #perl6
16:29 psch joined #perl6
16:29 petercommand joined #perl6
16:29 ilogger2_ joined #perl6
16:29 Mouq joined #perl6
16:29 bartolin_ joined #perl6
16:29 bbkr_ joined #perl6
16:29 eyck joined #perl6
16:29 cosimo joined #perl6
16:29 bapa joined #perl6
16:29 d^_^b joined #perl6
16:29 ambs joined #perl6
16:29 konobi joined #perl6
16:29 felher joined #perl6
16:30 n0tjack joined #perl6
16:31 lucasb joined #perl6
16:32 n0tjack ah, nm, tr/// still works; I was getting confused with the Pair-style tr from the advent calendar.
16:35 nadim Given a variable, is it possible to introspect where it was declared? I asked for the $a variable in the example above and it says it coes from Nil :)
16:36 n0tjack say $a.WHENCE;
16:36 n0tjack (kidding)
16:42 Fleurety_ joined #perl6
16:48 uruwi joined #perl6
16:48 zakharyas joined #perl6
16:48 pmurias joined #perl6
16:48 telex joined #perl6
16:48 robinsmidsrod joined #perl6
16:48 lsm-desktop joined #perl6
16:48 simcop2387 joined #perl6
16:48 xnrand joined #perl6
16:48 JimmyZ joined #perl6
16:48 samb1 joined #perl6
16:48 integral joined #perl6
16:48 flussence joined #perl6
16:48 [Tux] joined #perl6
16:48 geekosaur joined #perl6
16:48 Humbedooh joined #perl6
16:48 hacst joined #perl6
16:48 BinGOs joined #perl6
16:48 mrsolo joined #perl6
16:48 kipd joined #perl6
16:48 dalek joined #perl6
16:48 Juerd joined #perl6
16:48 Spot__ joined #perl6
16:48 PotatoGim joined #perl6
16:48 mephinet joined #perl6
16:48 avalenn joined #perl6
16:48 MilkmanDan joined #perl6
16:48 dylanwh joined #perl6
16:48 timotimo joined #perl6
16:48 chansen_ joined #perl6
16:48 zemmihates joined #perl6
16:48 jsimonet joined #perl6
16:48 ugexe joined #perl6
16:48 yoleaux joined #perl6
16:48 {dpk} joined #perl6
16:48 SmokeMachine__ joined #perl6
16:48 wtw joined #perl6
16:48 avar joined #perl6
16:48 literal joined #perl6
16:48 confuseAcat joined #perl6
16:48 crux joined #perl6
16:48 doublec joined #perl6
16:48 bbarker`` joined #perl6
16:48 bowtie joined #perl6
16:48 awwaiid joined #perl6
16:48 pRiVi joined #perl6
16:48 zhmylove joined #perl6
16:48 mattp__ joined #perl6
16:48 sjohnson joined #perl6
16:48 baest joined #perl6
16:48 mdaq joined #perl6
16:48 solarbunny joined #perl6
16:48 pnu joined #perl6
16:48 hobbs joined #perl6
16:48 cibs joined #perl6
16:48 sammers joined #perl6
16:48 erdic joined #perl6
16:48 gfldex joined #perl6
16:48 ab5tract joined #perl6
16:48 gypsydave5 joined #perl6
16:48 autarch joined #perl6
16:48 leedo joined #perl6
16:48 Gothmog_ joined #perl6
16:48 Grrrr joined #perl6
16:48 novapatch joined #perl6
16:48 daxim joined #perl6
16:48 tadzik joined #perl6
16:48 f3ew joined #perl6
16:48 breinbaas joined #perl6
16:48 Sgeo joined #perl6
16:48 DrForr joined #perl6
16:48 huf joined #perl6
16:48 yakudza joined #perl6
16:48 profan joined #perl6
16:48 cgfbee joined #perl6
16:48 ggherdov joined #perl6
16:48 Psyche^ joined #perl6
16:48 eiro joined #perl6
16:48 burnersk joined #perl6
16:48 DarthGandalf joined #perl6
16:48 matt_ joined #perl6
16:48 domidumont joined #perl6
16:48 corbyhaas joined #perl6
16:48 olinkl joined #perl6
16:48 sftp joined #perl6
16:48 isacloud joined #perl6
16:48 ilmari joined #perl6
16:48 DrPete_ joined #perl6
16:48 go|dfish joined #perl6
16:48 gtodd joined #perl6
16:48 b2gills joined #perl6
16:48 orevdiabl joined #perl6
16:48 obra joined #perl6
16:48 advwp_ joined #perl6
16:48 luis joined #perl6
16:48 sjn joined #perl6
16:48 chewie_1982 joined #perl6
16:48 jantore joined #perl6
16:48 M-Illandan joined #perl6
16:48 eternaleye joined #perl6
16:48 parisba joined #perl6
16:48 [ptc] joined #perl6
16:48 xdbr joined #perl6
16:48 arnsholt joined #perl6
16:48 moritz joined #perl6
16:48 mrf_ joined #perl6
16:48 ashleyde1 joined #perl6
16:48 tony-o_ joined #perl6
16:48 _sri_ joined #perl6
16:48 dbohdan joined #perl6
16:48 Util_ joined #perl6
16:48 nebuchadnezzar joined #perl6
16:48 n0xff joined #perl6
16:48 pyrimidine joined #perl6
16:48 Exodist joined #perl6
16:48 diakopter joined #perl6
16:48 synbot6 joined #perl6
16:48 Guest51288 joined #perl6
16:48 vytas joined #perl6
16:48 g4 joined #perl6
16:48 emdashcomma joined #perl6
16:48 MadcapJake joined #perl6
16:48 ggoebel7 joined #perl6
16:48 kst joined #perl6
16:48 pierrot joined #perl6
16:48 Khisanth joined #perl6
16:48 mr-foobar joined #perl6
16:48 darutoko joined #perl6
16:48 sno joined #perl6
16:48 bakedb joined #perl6
16:48 kaare_ joined #perl6
16:48 bitmap joined #perl6
16:48 Gardner joined #perl6
16:48 clkao joined #perl6
16:48 flaviusb joined #perl6
16:48 hanekomu joined #perl6
16:48 oka^ joined #perl6
16:48 skaji joined #perl6
16:48 moznion joined #perl6
16:48 Hotkeys joined #perl6
16:48 mspo joined #perl6
16:48 skarn joined #perl6
16:48 roguelazer joined #perl6
16:48 rvchangue joined #perl6
16:48 Timbus joined #perl6
16:48 Praise joined #perl6
16:48 llfourn joined #perl6
16:48 keix joined #perl6
16:48 xinming_ joined #perl6
16:48 cpage_ joined #perl6
16:48 abaugher_ joined #perl6
16:48 sQuEE joined #perl6
16:48 colomon joined #perl6
16:48 jevin_ joined #perl6
16:48 ShimmerFairy joined #perl6
16:48 zengargoyle joined #perl6
16:48 jojotus joined #perl6
16:48 Zoffix joined #perl6
16:48 noganex joined #perl6
16:48 dj_goku joined #perl6
16:48 RabidGravy joined #perl6
16:48 Skarsnik joined #perl6
16:48 espadrine joined #perl6
16:48 dakkar joined #perl6
16:48 cdg joined #perl6
16:48 skids joined #perl6
16:48 csd_ joined #perl6
16:48 havenwood joined #perl6
16:48 YP-QMUL-W joined #perl6
16:48 raydiak_ joined #perl6
16:48 khw joined #perl6
16:48 cpage joined #perl6
16:48 dustinm` joined #perl6
16:48 gugod joined #perl6
16:48 boegel joined #perl6
16:48 dg joined #perl6
16:48 hahainternet joined #perl6
16:48 diego_k joined #perl6
16:50 ugexe i would hope installing from a read-only location would be possible
16:50 timotimo huh
16:50 timotimo well, that's not installing. that's running
16:50 timotimo but we shouldn't fail like that
16:50 timotimo a failure to lock the lockfile should just cause us to ignore the repo henceforth
16:50 ugexe Failed to open file /home/nickl/perl6/supply-toys/lib/.precomp/.lock: permission denied
16:50 timotimo if i wasn't deep in moarvm work right now, i'd take a look myself
16:50 timotimo it's probably rather easy. will you have a quick look?
16:50 mrf_ 126785
16:50 mrf_ RT 126785
16:50 mrf_ RT# 126785
16:50 mrf_ Argh
16:50 TimToady Excess Flood from camelia?  huh...
16:50 yoleaux 15:13Z <ilmari> TimToady: what should the semantics for shifting native ints by negative or greater than width amounts be? it's undefined in C, and thus in the current moar
16:50 camelia joined #perl6
16:51 ilbot3 joined #perl6
16:51 Topic for #perl6 is now »ö« Welcome to Perl 6! | http://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, std:, or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
16:51 timotimo urgh
16:51 timotimo so we should look if the folder exists before trying to create it to get the .precomp folder, eh?
16:52 TimToady .tell ilmari I suspect if C has good performance reasons for leaving large shifts undefined, we should probably do so as well
16:52 yoleaux TimToady: I'll pass your message to ilmari.
16:52 ilmari TimToady: that's undefined behaviour as in nasal daemons
16:52 yoleaux 16:52Z <TimToady> ilmari: I suspect if C has good performance reasons for leaving large shifts undefined, we should probably do so as well
16:52 ilmari not even implementation-defined or hardware-defined
16:53 TimToady well, if they don't have good reasons, then we shouldn't :)
16:53 ugexe yes, although those 2 problems may not be related (im just investigating artifacts im now noticing)
16:53 ilmari the result of shifting negative numbers is implementation-defined
16:53 CIAvash joined #perl6
16:53 ilmari TimToady: perl5 recently changed it to saturate the shift amount to wordsize and have negative shifts invert the direction
16:54 TimToady the performance problem arises when you have to put guards on your CPU instructions to catch negative or overflow and deal with them
16:55 TimToady and we don't much care when we're using boxed types, because the extra overhead is negligible in that case, but when we're using native types, eventually we might care
16:55 TimToady but we could opt for safety by default, and turn off checks by pragma
16:55 ilmari https://github.com/Perl/perl5/blob/blead/pp.c#L2068-L2092
16:56 TimToady on the make-it-work-right-first principle
16:56 ilmari both java and js have defined behaviour for this (only with different word sizes)
16:56 ilmari actually, I'm not sure shifting by a negative amount is defined in either
16:56 TimToady word-size should also probably be pragmatcially modifiable
16:56 sivoais joined #perl6
16:56 TimToady at least for rotate
16:57 ilmari it's currently hardcoded to 64 in moar and jvm, and 32 in js
16:57 ilmari for native types, taht is
16:57 pmurias for js I just use the js shifts
16:57 dalek rakudo/nom: e0a9f9b | (Stefan Seifert)++ | tools/build/install-core-dist.pl:
16:57 dalek rakudo/nom: Remove bogus use lib from install-core-dist.pl
16:57 dalek rakudo/nom:
16:57 dalek rakudo/nom: Looks like some leftover from the origin of the script as test file.
16:57 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/e0a9f9b933
16:58 TimToady the question is whether using native types to begin with is already saying "use native semantics"
16:58 pmurias which when given the right operand bigger than 32 uses only the low five bits
16:58 lizmat joined #perl6
16:58 TimToady where "native" potentially means "non-portable"
16:58 ilmari pmurias: that's what the jvm and moar do as well, but they use explicit 64bit integers
16:58 ilmari long and MVMint64, respectively
16:59 ilmari TimToady: non-portable is okay, the problem is undefined (as in nasal demons) behaviour
16:59 ilmari non-portable as in implementation-defined
16:59 grondilu m: sub { 1, 2 ... * }()
17:00 camelia rakudo-moar 3975f8: OUTPUT«(timeout)»
17:00 grondilu m: sub { 1, 2 ... * }
17:00 camelia rakudo-moar 3975f8: ( no output )
17:00 ilmari m: (1, 2 ... *)
17:00 camelia rakudo-moar 3975f8: ( no output )
17:00 ilmari m: say (1, 2 ... *)
17:00 grondilu ^that fails if I put a newline just before '...'
17:00 camelia rakudo-moar 3975f8: OUTPUT«(...)␤»
17:00 TimToady we usually know the size of the word, given p6 natives are declared int32 or int64, and if just 'int', it's 32 or 64, with local shift semantics
17:00 TimToady not saying that very clearly...
17:01 grondilu oh no it doesn't with this simple example
17:01 ilmari TimToady: the shift ops in moar use the .i64 part of the register, and in java the functions take and return longs, which are 64bit
17:01 jnthn evening, #perl6
17:01 TimToady trying to say that if we're working in "int", we should use implementation-defined semantics, and with "int32" or "int64", force correct semantics regardless of architecture by default
17:01 n0tjack m: say "ABABABA" ~~ tr/A/Q/;
17:01 camelia rakudo-moar 3975f8: OUTPUT«Cannot modify an immutable Str␤  in block <unit> at /tmp/idyQDsiZL8:1␤␤»
17:02 n0tjack m: my $s = "ABABABA"; say $s ~~ tr/A/Q/;
17:02 camelia rakudo-moar 3975f8: OUTPUT«StrDistance.new(before => "ABABABA", after => "QBQBQBQ")␤»
17:02 lucasb joined #perl6
17:02 MadcapJake does nativecall have an unsigned long type?
17:03 ilmari our native ulong     is Int is ctype("long")     is unsigned is repr("P6int") { };
17:03 MadcapJake awesome
17:03 raiph joined #perl6
17:03 jnthn TimToady: Since we do computations at full width in general, and then store at smaller widths, not sure the size thingy will really work out
17:04 TimToady well, we can always just do like C, and claim it's undefined, and let people work out when they can cheat :)
17:05 jnthn ;)
17:05 hoelzro o/ #perl6
17:05 MadcapJake if a c header file says `int`, should I assume that's an `int32` or `int64`? (total C n00b)
17:05 TimToady MadcapJake: not on a PDP-11 :0
17:05 pmurias hoelzro: \o
17:05 TimToady :)
17:05 hoelzro o/ pmurias
17:06 Celelibi joined #perl6
17:06 * zengargoylew always took int to mean we don't know/care as long as all the int are the same int
17:07 MadcapJake i think my machine is a bit newer than that :P, so what do i do? Can i just leave it as `int` and let Perl 6 or NativeCall figure it out? Or is that not possible?
17:07 grondilu weird behavior: significant newline:  https://gist.github.com/grondilu/b0d01187de72f277625d
17:07 hoelzro nine: how does the new curli stuff handle helper .so files created by a dist? I installed Linenoise, but I can't find liblinenoise.so anywhere
17:08 TimToady int used to mean what it means in P6, 'the longest integer that will run at full speed', but then they invented 'long' :)
17:08 ugexe hoelzro: maybe related to %?RESOURCES ?
17:09 larion joined #perl6
17:09 TimToady .oO(but that was an int time ago...)
17:09 hoelzro heh
17:09 hoelzro ugexe: I'll look at %?RESOURCES, thanks
17:09 jnthn fwiw, `spurt slurp('foo'), 'bar'` is not promised to round-trip at byte level.
17:09 MadcapJake yeah, plus a few functions I'm wrapping use both `int` and `long`, if there's one thing that's really alien to me in C it's numbers.
17:09 jnthn (Not a bug, just a consequence of the Perl 6 string model)
17:10 jnthn The darn file system non-normalization thing is a pain. :/
17:11 nine hoelzro: #3 on my TODO. Just starting to test my fix for #1
17:11 yoleaux 16:23Z <mrf_> nine: I am not sure i understand you comments on my PR
17:11 TimToady maybe it'd be worthwhile to have Blob.slurp/spurt
17:11 jnthn We already have :bin on slurp
17:11 hoelzro nine: excellent, thanks! what's #1, if I may ask?
17:11 jnthn Which gives a Buf
17:11 jnthn and you can spurt a Buf
17:11 TimToady okay
17:11 jnthn But if you want byte level identity you'd better work with bytes :)
17:11 TimToady hard to keep track of this language, it keeps changing :)
17:12 jnthn Don't think that's changed for a while ;)
17:12 nine hoelzro: half-missing check if transitive dependencies of a precomp file are up to date
17:12 nine hoelzro: we only check the precomp files but don't compare with their source
17:12 hoelzro ah ha
17:12 jnthn I'm half tempted to just replace the utf-8 clean 8-bit thing with an ASCII clean 8-bit thing
17:12 ribasushi joined #perl6
17:13 TimToady ASCIZ ftw!
17:13 jnthn Because otherwise we're going to have to go worrying about when normalization would canonically re-ordrer.
17:13 jnthn Which is a layer violation, architecturally.
17:15 jnthn And it seems people want to make a big deal out of exceedingly rare things.
17:15 jnthn .oO( If y'all used Windows they'd be so rare they'd not happen :P )
17:15 TimToady m: say SAMECASE "a","b"
17:15 camelia rakudo-moar e0a9f9: OUTPUT«5===SORRY!5=== Error while compiling /tmp/9C5JeczF2J␤Undeclared name:␤    SAMECASE used at line 1␤␤»
17:15 lucasb grondilu: strange indeed. seems like the '...' is getting parsed as the yada yada (fail) operator, instead of sequence constructor
17:15 TimToady if someone wanted to tweak levenshtein to be case insensitive, that's be cool
17:15 mst jnthn: 7-bit ASCII ftw
17:16 TimToady or to could all case mismatches as a single change
17:16 TimToady probably LHF for some definition of LH
17:17 jnthn mst: If that's what POSIX offered we'd be fine. But it doesn't. It offers a bunch of bytes that you've no idea how to interpret.
17:17 TimToady it's iso-8859-mumble
17:18 Juerd jnthn: fyi: The problem with the mqtt module was in the module itself, not in supplies or IO::Socket::Async.
17:19 jnthn Juerd: Saw that in the backlog. Phew. :)
17:19 Juerd jnthn: Yea. Sorry :)
17:19 jnthn Juerd: BTW, if you didn't get the answer, you .close the Tap you get from a Supply.inerval to stop the flow
17:19 patrickz joined #perl6
17:19 Juerd jnthn: I hadn't noticed the answer. Thanks for repeating :)
17:20 jnthn Well, I couldn't tell if you'd figured it out or not from the backlog :)
17:21 Juerd Now that Net::MQTT works fine, I should probably add it to the ecosystem :)
17:21 Amnez777 joined #perl6
17:21 Juerd It's not completely finished yet, but it is usable
17:21 jnthn It's fast enough for you now?
17:21 nine jnthn: thank you for suggesting a directory per compiler-id in precomp store. This way I can change the repo format without backwards compatibility hassle :)
17:21 jnthn ;-)
17:21 Juerd Well, not fast enough for what I originally intended. Perl 6 itself doesn't quite handle huge amounts of data efficiently yet.
17:21 Amnez777 joined #perl6
17:21 Amnez777 joined #perl6
17:21 Juerd But it's fast enough for *most* things done with MQTT, I'm sure.
17:21 dalek rakudo/nom: 704c585 | (Stefan Seifert)++ | src/core/CompUnit/ (3 files):
17:21 dalek rakudo/nom: Check precomp files of dependencies against their source
17:21 dalek rakudo/nom:
17:21 dalek rakudo/nom: Before loading a precomp file, we already checked if its newer than all its
17:21 dalek rakudo/nom: dependencies. But we only checked the precomp files of the dependencies.
17:21 dalek rakudo/nom:
17:21 dalek rakudo/nom: Now we also check if those precomp files are actually newer than their sources.
17:21 dalek rakudo/nom: This fixes strange errors when chaning the source of a dependency of a
17:21 dalek rakudo/nom: precompiled module.
17:21 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/704c5859be
17:22 nine hoelzro: #1 done :)
17:22 hoelzro \o/
17:22 hoelzro nine++
17:22 jnthn nine: I'd expected we'd make use of that some years down the line, not some days down the line. But, cool. :D
17:22 Juerd The difference in speed between the (functionally identical!) test suites of p5/Net::MQTT::Simple and p6/Net::MQTT is huge.
17:22 jnthn Juerd: Yeah, we've a good amount of optimization work to go. :)
17:22 lucs These precomp ideas, are there docs about them I could read?
17:23 nine lucs: https://gist.github.com/jnthn/47a42b2e86e7e552b2e2
17:23 lucs Thanks
17:23 jnthn nine++ # bet that patch fixed a lot of issues
17:24 Juerd real    0m0.189s
17:24 nine jnthn: I just added the paths to the source files to the .deps files. That way I don't have to read a lot of .src files just to find out which files to stat()
17:24 Juerd real    0m10.136s
17:24 Juerd p5 vs p6 :|
17:24 Juerd Looking forward to the future, though :)
17:25 booq joined #perl6
17:26 pmurias jnthn: shouldn't slurp roundtrip on unix?
17:27 * zengargoylew not sure where to start in fixing Algorithm::Trie::libdatrie.  looks like LibraryMake or Find::Bundled or something else uses @*INC.
17:27 jnthn pmurias: no
17:27 pmurias jnthn: or at least on linux
17:27 jnthn Str is a grapheme-level construct. that implies normalized.
17:27 jnthn *That
17:28 jnthn filenames and other stuff from the OS needs to round-trip
17:28 Woodi that normalization non-uniques is OS- or FS-specific ?
17:29 jnthn Woodi: FS, though some OS only have FS that lack the problem :)
17:31 pmurias jnthn: but if we slurp and then spew it should roundtrip?
17:31 jnthn Juerd: I suspect an amount of that is extra startup time, and an amount of it is test compilation time.
17:31 jnthn pmurias: Not unless you use :bin
17:32 Juerd jnthn: Both amounts, but not large amounts. Time to first line of output is only 0.5 s
17:32 jnthn Juerd: ah, it's one big test file?
17:32 Juerd Yes
17:33 Juerd https://github.com/Juerd/Net-MQTT-Simple/blob/master/t/regex.t versus https://github.com/Juerd/p6-mqtt/blob/master/t/regex.t
17:33 Woodi problem is becouse IO layer is "simple". and it is simple becouse this such things are rare/just discovered. but in the future can be more differences... maybe then general approach/lower-IO-layer can be crafted ?
17:33 Juerd Note that the function tested, filter-as-regex, is not a pure translation
17:33 pmurias jnthn: so a given beat of printed text can be separated into graphemes in multiple different ways?
17:33 Woodi anyway: do shell do not have such problems ?
17:33 stux|RC-only joined #perl6
17:33 Woodi grr... don't* ?
17:34 Juerd The number of tests is 560. It's the only code I have at this point that allows for a comparison because it's almost identical.
17:34 jnthn pmurias: Multiple codepoint streams can map to the same graphemes, yes.
17:34 Juerd I could just be unlucky to run into the most un-optimized parts :)
17:34 jnthn And it's normal for input to be normalized.
17:35 jnthn Pepole act like Perl 6 is the only language where this happens :P
17:35 Juerd Of course, it's the only language we use! ;)
17:35 jnthn :)
17:35 pmurias jnthn: I meant to ask about first spewing and then slurping, sorry
17:35 uruwi joined #perl6
17:35 jnthn I'm just surprised people are surprised, is all. :)
17:35 jnthn pmurias: Oh...
17:36 jnthn pmurias: Well, if you spurt (spew? :P) something in a Str and then slurp it then yeah, it's going to lead to the same graphemes. :)
17:36 Juerd In my experience, only very few actual programmers are actual polyglots.
17:36 patrickz .seen jdv
17:36 yoleaux I haven't seen jdv around.
17:36 jnthn pmurias: And if you spew it again, the same byte sequence.
17:36 Juerd A lot of people know a quite a few language, none of them well. Only a few people know multiple languages well.
17:36 Juerd s/langauge/languages/
17:36 TimToady just as most of the data of the world is turning into UTF-8 by accident, eventually all the data of the world will have turned into NFC by accident :)
17:37 Juerd TimToady: Most text data is UTF-8 and processed and passed as byte arrays :|
17:37 arnsholt jnthn: I'm confused about shaped arrays again. Is the shape (or at least of part of it available to the type at declaration-time? It's available in .new, but that's too late for CArray to compose in the dimensions into the type
17:38 Juerd Even with Perl 5, where actual decoding into an internal representation (which happens to resemble utf8 quite closely ;)) is possible, a lot of code is still just passing text strings around without ever decoding or encoding them.
17:38 jnthn arnsholt: The number of dimensions is part of the type
17:39 Juerd But with languages like PHP, you don't even have the option of having actual unicody semantics. Some functions handle Unicody stuff, but most of the time, 1 byte = 1 character. :(
17:39 Juerd At least C is completely honest about not caring :)
17:40 jnthn :)
17:40 nine Funny. The "panda's bootstrap uses the installed Panda modules" bug has been there since 2012. I guess it just hasn't been that much of a problem.
17:40 jnthn :)
17:40 MadcapJake how would I represent a typedef with NativeCall?
17:41 jnthn Depends what it's def'in'
17:41 timotimo jnthn: it's just kinda weird to be able to have invalid utf8 characters in filenames round-trip properly, but then choke on non-normalized composed characters ...
17:41 rindolf joined #perl6
17:42 jnthn timotimo: it doesn't choke, it just can't round-trip them
17:42 arnsholt jnthn: Right, right. Where in the type is it stored though? Or rather, can I get at it somehow from a method ^parameterize or the like?
17:42 jnthn Valid UTF-8 can still be non-normalized
17:42 ZoffixW joined #perl6
17:42 patrickz .tell jdv79 Is p6-CPAN still a thing? If yes, how does that play with HTTP support being removed from zef?
17:42 timotimo jnthn: that's bad enough :)
17:42 yoleaux patrickz: I'll pass your message to jdv79.
17:42 molaf joined #perl6
17:42 timotimo jnthn: imagine we build a diff tool that claims hellö and the other hellö have equal contents just because we accidentally open one of both files each time ...
17:42 ugexe So CompUnit::PrecompilationStore::File does not provide a fallback for using a module in a read only directory, so it fails trying to create the lock. Could it be better if (in a read only directory) it just skip precompiling, or use a different fallback temp path for the generated files?
17:43 hankache joined #perl6
17:43 timotimo ... we should probably introduce an API to get at directory contents with Buf instead of Str ...
17:43 ugexe patrickz: i have a zef refactor going on with plugin stuff, and one is for HTTP
17:43 timotimo and then use utf8-c8 to display to the user what the file name is, perhaps?
17:43 hankache hola #perl6
17:43 ZoffixW Well, my 2-day messing about trying to make a P6 web app ended in failure :( Can't get POST params with Bailador :/
17:43 jnthn Trouble is, people are going to want to work with them as strings anyway
17:44 hankache m: say -True;
17:44 camelia rakudo-moar 704c58: OUTPUT«-1␤»
17:44 jnthn And then we'll end up with them decoding them into things that won't round-trip
17:44 jnthn So we'll just have everyone writing the same issue into their programs.
17:44 hankache the above line should return -1? or 0?
17:44 jnthn -1
17:45 jnthn m: say +True
17:45 camelia rakudo-moar 704c58: OUTPUT«1␤»
17:45 jnthn m: say -+True
17:45 camelia rakudo-moar 704c58: OUTPUT«-1␤»
17:45 jnthn Because that.
17:45 hankache thanks jnthn
17:45 nine Pushed https://github.com/tadzik/panda/commit/40ae1ab334b8fc0746d9346bb1cc7ac108f91a74 Fix bootstrap.pl loading the outdated installed Panda
17:45 flussence .tell stmuk pl6anet.org's atom feed is linked to from the front page of perl6.org now; since people whose browsers don't understand feeds may be clicking it, here's a bit of css to make it readable in them (if you want it): https://gist.github.com/flussence/ed0b12992514d26afef0
17:45 yoleaux flussence: I'll pass your message to stmuk.
17:45 nine This must be one of the most trivial fixes ever.
17:45 hankache i thought -True == False == 0
17:46 Juerd hankache: - is for numbers, not for booleans. By using - on a boolean, you coerce it to a number.
17:46 hankache thank you for the clarification
17:46 Juerd hankache: Did you mean !True?
17:46 Juerd Er, that looks weird. Did you mean "!True"?
17:46 TimToady or did you mean 1/True? :P
17:47 hankache Juerd i guess i got lost between -True and !True, I thought they were the same thing
17:47 Juerd Ooh, can we have an error message for dividing by False? :)
17:47 Woodi precondition: *user* have 2 files named helo*... a) rare; b) user problem realy ;)  c) if filehandles are used and not closed then no problem
17:47 Juerd It will spark new discussions amongst mathematicians
17:47 ilmari m: say 1/False
17:47 camelia rakudo-moar 704c58: OUTPUT«Attempt to divide 1 by zero using div␤  in block <unit> at /tmp/EKODjuDoID:1␤␤Actually thrown at:␤  in block <unit> at /tmp/EKODjuDoID:1␤␤»
17:48 Actualeyes left #perl6
17:48 patrickz ugexe: Awesome! :-D
17:50 hankache TimToady :P
17:50 nine hoelzro: #2 down. I fear and hope that the most straight forward way to fix the "find your .so file" issue is finally implementing %?RESOURCES
17:50 hoelzro that's probably The Right Way To Do It
17:52 jnthn ugexe: The FileSystem comp unit repo was more intended for development than production, and in development you'll likely have write permissoins. What were you wanting to use it for? I wonder if we just want an alternative CompUnit::Repository that doesn't try to precompile at all, rather than trying/failing every time.
17:53 n0tjack m: say so so True;
17:53 camelia rakudo-moar 704c58: OUTPUT«True␤»
17:53 TimToady m: say not so not so True
17:53 camelia rakudo-moar 704c58: OUTPUT«True␤»
17:54 noam joined #perl6
17:56 ugexe jnthn: reading modules off a sdcard
17:57 jnthn Well, depends if we want it to Just Work with -Ilib I guess :)
17:58 nine We can certainly not make it fail just because it couldn't write precomp files
17:59 nine Should be LHF suitable for anyone who needs that feature.
17:59 MadcapJake as far as typedefs, would something like this work: constant KeySym = uint;
18:00 jnthn MadcapJake: Yes, thing so
18:00 jnthn *think
18:02 jnthn back later &
18:03 domidumont1 joined #perl6
18:07 n0tjack joined #perl6
18:11 lichtkind later jonathan
18:11 lichtkind knows anyone if NSA arrived?
18:11 * ZoffixW cries "Bailador:ver<*>:auth<>:api<> already installed"
18:12 ugexe use --force for now
18:12 ZoffixW lichtkind, is it the supply stuff? I believe so
18:12 ZoffixW ugexe, don't have that
18:12 TimToady lichtkind: fixed-size arrays, but not ragged
18:12 lichtkind Native shaped array ints basically a moar and perl 6 feature
18:12 ZoffixW oh
18:12 lichtkind thanks tim
18:13 TimToady the name's toady
18:13 TimToady tim is just the family name :)
18:13 ZoffixW :P
18:13 lichtkind planning an article here
18:13 nine Oh boy. Seems like language modules loaders are in need of a redesign, too.
18:13 lichtkind the zen master lives in the now
18:14 MadcapJake anyone know a good example of a multi that dispatches on a named arg e.g., `f(:up, "foo"); f(:down, "bar");`
18:14 * flussence starts poking at this Pod::Coverage thing to try and get it to work...
18:14 nine ZoffixW: you can always --force it
18:14 ZoffixW nine, but I don't have that option
18:15 ZoffixW panda --force  install . just prints usage instructions
18:15 ZoffixW (╯°□°)╯︵ ┻━┻
18:16 ZoffixW Enough P6 web stuff for me for today :) If you're not enjoying it; it's not worth doing lol :)
18:16 mohae joined #perl6
18:18 nine ZoffixW: how old is your panda?
18:18 lucasb is it relevant to put --force after the install arg, as in "panda install --force" ?
18:19 ZoffixW nine, I built it yesterday at 14:06 of whatever time zone the IRC log uses: http://irclog.perlgeek.de/perl6/2015-12-01#i_11634091
18:19 lichtkind but mr today good your present : would you find it a fair representation to say that maybe perl 6 greatest feature is the ability to reduce complexity by bridging gaps of campatibiliy borders adn in the heads of developers?
18:19 nine ZoffixW: that's ancient! That version probably got loaded into the mainframe via punch cards
18:19 ZoffixW lol
18:20 masak lichtkind: ...as supposed to which successful programming language or piece of software...? ;)
18:20 * TimToady thinks Perl 6 has no greatest feature, which is its greatest feature...
18:20 masak opposed*
18:21 TimToady languages with greatest features tend to be horrible for other things
18:21 Deepak joined #perl6
18:21 lichtkind hai masak
18:21 MadcapJake anyone able to lead me to an example of a multi that dispatches on a named arg? I'm not finding anything like that on examples.perl6.org or doc.perl6.org
18:22 n0tjack another newb question: how do I upgrade to the latest Rakudo*? I tried brew upgrade rakudo-star, but it complains I already have 2015.09 installed (I want to upgrade to 2015.11).
18:22 n0tjack OSX, in case that wasn't implied by brew
18:22 lichtkind i tend to agree but i ment it its greatest aim
18:22 Deepak joined #perl6
18:22 ZoffixW MadcapJake, https://github.com/zoffixznet/perl6-Color/blob/master/lib/Color.pm6#L27
18:22 n0tjack MadcapJake: I don't know of any examples off the top of my head, but I might be able to come up with one if you describe your higher-level goal.
18:23 lichtkind masak: my line of thought is the perl 4 could glue together all things you used on the chell
18:23 lichtkind and perl 6 can vial dsl and it  felixibility glue it on interneal level any software together
18:24 Deepak Hi All, I thought a bit about Perl6's default behaviour of using graphemes, and found it concerning in one place
18:24 Deepak https://gist.github.com/deepakg/a2f19e077ee8696bc3da
18:24 Deepak would appreciate your thoughts
18:24 Juerd Deepak: Could you give a one-line summary, or teaser?
18:24 ilmari MadcapJake: https://github.com/rakudo/rakudo/blob/nom/src/core/Str.pm#L1350-L1357
18:25 mspo from the gist: Synopsis:
18:25 mspo Perl6 converts code-points to graphemes. Unfortunately, this might cause some code-points to not round-trip between reading and writing a text file.
18:25 ZoffixW MadcapJake, and actually I have a ton of those multi's there. Just check out the possible usage statements :) https://github.com/zoffixznet/perl6-Color#new
18:25 MadcapJake I'm writing a wrapper for X11 XTest, and I want to make a nice Perl6ish interface,  the python interface has two default args to key events (for up and down events) `up = True, down = True` which I thought would be an easy usecase for a multi, and using dispatching on `:up` and `:down`
18:26 n0tjack Deepak: graphemes are an abstraction, which means the implementation is inaccessible to you. if you care about your file as a byte stream, rather than a character (grapheme) stream, use a Buf.
18:26 lucasb m: multi f(:$up!) { '^^^' }; multi f(:$down!) { 'vvv' }; say f(:foo), f(:bar)  # for MadcapJake, do you mean something like this?
18:26 camelia rakudo-moar 704c58: OUTPUT«Cannot call f(:foo); none of these signatures match:␤    (:$up!)␤    (:$down!)␤  in block <unit> at /tmp/C1tfqzrfG8:1␤␤»
18:26 spider-mario joined #perl6
18:26 lucasb m: multi f(:$up!) { '^^^' }; multi f(:$down!) { 'vvv' }; say f(:up), f(:down)
18:26 camelia rakudo-moar 704c58: OUTPUT«^^^vvv␤»
18:27 MadcapJake lucasb: yeah that's exactly what I mean! so simple, I thought it'd be more complicated than that :D
18:27 ZoffixW lucasb, what does the "!" do there?
18:27 ilmari m: say $*IN.slurp(:bin)
18:27 camelia rakudo-moar 704c58: OUTPUT«Method 'slurp' not found for invocant of class 'IO::Handle'␤  in block <unit> at /tmp/TiF3DJ9I9f:1␤␤»
18:27 n0tjack ZoffixW: means it's a mandatory named arg
18:27 ZoffixW Ah
18:27 Deepak there is still definitely an element of surprise here - I don't want to treat a text file as binary stream
18:27 lucasb ZoffixW: yep, required
18:27 MadcapJake what does the `|` do in a proto's signature?
18:27 n0tjack MadcapJake: flattens the arg list
18:28 lichtkind i ment it in a way that quintessential task of any programmer is reducing complexity
18:28 MadcapJake n0tjack: but what about when it's `(|)` as the arg list?
18:28 n0tjack MadcapJake: I forget, lemme check real quick
18:28 Juerd Summary of Deepak's concern: unicode does not round-trip bytes, so writing the "same" data back actually writes the normalized data, which may have different code points.
18:29 Juerd s/bytes/bytes or codepoints/
18:29 lichtkind MadcapJake it enforces a context
18:30 MadcapJake what's that mean? o_O
18:30 lucasb MadcapJake: It's just a placeholder that matches any argument list
18:30 n0tjack MadcapJake: I think it means "any call to this function, no matter how invoked"
18:30 n0tjack MadcapJake: it's the catch-all
18:30 MadcapJake oh ok, so it's like, "place all multi arguments here"
18:30 n0tjack I think so, I'm still learning
18:30 Juerd I share that concern because most software isn't aware of anything above codepoints, if they even have support for more than bytes, and the different data may actually be considered inequal to older data. But I think that the only way to ever resolve this, is to simply continue to use explicit binary modes for communication with anything that is processed by such software.
18:31 ZoffixW MadcapJake, if you saw that in my module, I believe I added it so that the default constructor would not be triggered.
18:31 ZoffixW But I just copy-pasted it from someone who gave it to me in the channel and the comment was "it would be nice if this stuff was actually documented" :)
18:32 MadcapJake ZoffixW: it was in the rakudo core string proto that I saw `(|)`
18:32 ZoffixW Ah
18:32 MadcapJake yeah that isn't documented in language/functions (should be)
18:32 n0tjack I honestly can't find where tr/// is documented
18:32 n0tjack the search function on docs.perl6.org is ... finicky
18:32 Juerd Deepak: I think your example does highlight a bug or missing feature in (git) diff
18:33 ugexe foo(:$bar, |c) { do-work($bar); nextsame(|c) } foo(:bar(1), 2, 4, "asdf"); # nextsame(2, 4, "asdf")
18:33 MadcapJake n0tjack: I know it's briefly discussed in the regex synopsis
18:33 masak lichtkind: it's not clear to me that what you're saying means anything in particular. though I hasten to add that this may very well be a limitation in my comprehension of what you're saying.
18:33 masak lichtkind: but I don't feel you're expressing something measurable/observable/refutable.
18:33 MadcapJake ugexe: i think that's different from when it's used in a proto's signature though
18:33 Juerd Deepak: A similar problem occurs when some troll replaces a semicolon with a greek question mark, or a latin 'e' with a cyrillic 'е'...
18:34 ugexe MadcapJake: how so
18:34 MadcapJake ugexe: https://github.com/rakudo/rakudo/blob/nom/src/core/Str.pm#L1350
18:34 ugexe i mean, why do you think thats different
18:35 masak m: say "e" lt "е"
18:35 camelia rakudo-moar 704c58: OUTPUT«True␤»
18:35 masak m: say "e" eq "е"
18:35 camelia rakudo-moar 704c58: OUTPUT«False␤»
18:35 dalek mu: e516122 | (Matthew Wilson)++ | misc/perl6advent-2015/schedule:
18:35 dalek mu: move to later slot
18:35 dalek mu: review: https://github.com/perl6/mu/commit/e5161224f4
18:35 MadcapJake I thought that prefacing a variable with `|` flattened it (inside a signature) but in that proto signature the `|` isn't prefacing any variable
18:35 * masak proposes the new programming language eeеeе
18:35 MadcapJake prefixing* xD
18:36 flussence signatures are different to normal p6 syntax
18:36 ilmari m: "eе".uninames.say
18:36 camelia rakudo-moar 704c58: OUTPUT«(LATIN SMALL LETTER E CYRILLIC SMALL LETTER IE)␤»
18:37 lichtkind masak well i meant if a language is so chanable  it can bridge cultural borders, welcomes concise syntax but also if you can theoretically include parsers for other languages as p6grammars you have an internal in-vom communication without to rely on too  much architecture
18:37 lichtkind so signature o a slang?
18:37 ugexe MadcapJake: you dont have to capture whatever | results in (|c)
18:37 lichtkind so signature are a slang?
18:37 MadcapJake right so `|` seems to have three usecases, prefixing variables inside signatures (flattens), longest match `or` in regex, and something else in proto signatures?
18:37 ilmari MadcapJake: the proto is only necessary because the Str class is being compiled during bootstrap
18:38 Deepak well, reading from a file is just one place where this would affect us, another case would be reading names of directory on mac os where all filenames are always stored in the NFD form
18:38 MadcapJake but even the example in the language/function doc has a `|` at the end of the proto's signature http://doc.perl6.org/language/functions#proto
18:38 ilmari m: class Foo { multi method foo(Bool:D :$foo) { "so $foo" }; multi method foo(Str:D :$foo) { "str $foo" } }; my Foo $f .= new; say [ $f.foo(:foo), $f.foo(:foo("foo")) ]
18:38 camelia rakudo-moar 704c58: OUTPUT«[so True str foo]␤»
18:39 Deepak sorry, haven't played with Perl6 a whole lot yet, but what would readdir return
18:39 supernovus joined #perl6
18:39 arnsholt Bah. Including debug prints in the Metamodel code breaks precomp stuff, somehow >.<
18:39 diakopter masak: eeeeee
18:39 supernovus Hi #perl6
18:40 lichtkind hai supernovus
18:40 nine arnsholt: including any prints in a module breaks precompilation :( I'm using say to communicate dependencies back to the process that started precomp
18:40 ugexe MadcapJake: that example is what i pasted above. it means it must contain $reason and $name, and any number of other arguments are ok in addition. if your proto does not need to define an argument for every multi it will dispatch to it would just use (|) signature
18:40 nine arnsholt: there is plenty of room for improvement on that one
18:41 ZoffixW nine++ updating panda added --force
18:41 MadcapJake ok so then the `|` in a proto signature *does* do something different
18:41 ugexe and i dont think | is flattening inside a signature
18:41 ribasushi joined #perl6
18:41 ugexe its doing the same thing as if it was a regular method/subroutine
18:41 ZoffixW supernovus, oh hai :) You have a few PRs waiting BTW :)
18:41 n0tjack MadcapJake: the docs say "This is often used in proto definitions (like proto foo (|) {*}) to indicate that the routine's multi definitions can have any type constraints."
18:42 masak diakopter: no, "eeеeе". the name is important.
18:42 arnsholt nine: That explains it, yeah!
18:42 supernovus ZoffixW: thanks for letting me know, I really should check my catchall account more often.
18:42 arnsholt nine: Actually, what bits of code should I look at regarding that? I may have an idea...
18:42 diakopter masak: it's like FVEY except five Es
18:43 supernovus Cool, a bunch of the pull requests were part of what I was coming to ask about (removing @*INC). Merging them now.
18:43 nine arnsholt: CompUnit::PrecompilationRepository::precompile and the say statements in CompUnit::Repository::Installation and CompUnit::Repository::FileSystem
18:43 MadcapJake n0tjack: that is kind of bizarre to me, does it desugar to something or is it a special-cased kind of thing?
18:44 sivoais joined #perl6
18:44 n0tjack MadcapJake: I don't think it's a special case, but ultimately I'm too new to give you any insights
18:44 MadcapJake http://doc.perl6.org/routine/proto not found on server :(
18:44 ugexe think of it like *%_, *@_
18:45 Peter_R joined #perl6
18:45 uruwi joined #perl6
18:46 Ch0c0late joined #perl6
18:48 MadcapJake I added an issue to perl6/doc: https://github.com/perl6/doc/issues/218
18:49 ZoffixW MadcapJake++
18:50 Juerd jnthn: I can reproduce the hanging on calling a non-existing method. Will now golf.
18:51 hoelzro m: flat [(18, 16, 24), (3, 20, 20)]
18:51 camelia rakudo-moar 704c58: ( no output )
18:51 hoelzro m: say flat [(18, 16, 24), (3, 20, 20)]
18:51 camelia rakudo-moar 704c58: OUTPUT«((18 16 24) (3 20 20))␤»
18:52 hoelzro how do I get flat to create a 6-element list out of that 2-element one?
18:52 hoelzro I thought that flat would make that [18, 16, 24, 3, 20, 20]
18:52 TimToady arrays itemize their elements
18:53 TimToady m: flat ((18, 16, 24), (3, 20, 20))
18:53 camelia rakudo-moar 704c58: ( no output )
18:53 TimToady m: say flat ((18, 16, 24), (3, 20, 20))
18:53 camelia rakudo-moar 704c58: OUTPUT«(18 16 24 3 20 20)␤»
18:53 TimToady easiest solution, don't put it into an Array :)
18:53 hoelzro ah ha
18:53 hoelzro thanks TimToady!
18:53 supernovus Hmm, I pulled the changes to HTTP::Easy, and now the Travis build is failing: https://travis-ci.org/supernovus/perl6-http-easy/builds/94466716 It claims that PSGI isn't in the module ecosystem, but it should be...
18:53 nine I wonder if we actually need language module loaders. They could also just be plain normal CompUnit::Repositories and part of the $*REPO chain. We'd just have to make sure :from is properly respected by all repos and that the precomp stores are handled properly.
18:55 Skarsnik nice broke everything! x)
18:55 hoelzro @ vars are Arrays by default, right?
18:55 Juerd Yes. Not just by default, but always, iirc
18:55 lichtkind masak is the christmas date  doable ?
18:56 bpmedley joined #perl6
18:56 diakopter wut
18:57 TimToady .oO(people should keep their personal lives off the channel :)
18:57 isacloud joined #perl6
18:59 ZoffixW supernovus, could it be this stuff? https://github.com/supernovus/perl6-http-easy/blob/master/.travis.yml#L8
18:59 ZoffixW s/this/because of this/;
18:59 ZoffixW supernovus, this is what .travis.yml I use; seems to work fine https://github.com/zoffixznet/perl6-Color/blob/master/.travis.yml
19:00 supernovus ZoffixW: It doesn't even get to that part. It dies in the 'panda installdeps .' portion.
19:00 parisba joined #perl6
19:00 ZoffixW Oh :(
19:00 ZoffixW No idea.
19:00 znpy joined #perl6
19:00 diakopter supernovus: looks like it didn't reinstall rakudobrew
19:00 MadcapJake how can i check if a string is in an array?
19:00 ZoffixW MadcapJake, grep?
19:01 ZoffixW Also, wouldn't ~~ also work?
19:01 MadcapJake really? neat!
19:01 arnsholt nine: Cheers! I'll keep you posted!
19:01 nine arnsholt: yeah!
19:01 ZoffixW m: my @a = "zoof", "zof", "zoffix"; say so "zoffix" ~~ any @a;
19:01 camelia rakudo-moar 704c58: OUTPUT«True␤»
19:01 ZoffixW m: my @a = "zoof", "zof", "zoffi"; say so "zoffix" ~~ any @a;
19:01 camelia rakudo-moar 704c58: OUTPUT«False␤»
19:02 ZoffixW MadcapJake, ^ this seems to work
19:02 supernovus ZoffixW: That seems a reasonable .travis.yml, some of the 'script' stuff seems to be for older releases, I'm going to clean it up and try again.
19:02 flussence figured out what's wrong with Pod::Coverage - it works by doing qqx/$*EXECUTABLE-NAME --doc/ which loses any -Ilib on the original command line...
19:02 nine m: my @a = "zoof", "zof", "zoffix"; say so "zoffix" eq any @a;
19:02 camelia rakudo-moar 704c58: OUTPUT«True␤»
19:02 ilmari m: my @a = "zoof", "zof", "zoffix"; say so "zoffix" eq any @a;
19:02 camelia rakudo-moar 704c58: OUTPUT«True␤»
19:02 ilmari nine: ⁵ :)
19:02 ZoffixW :o
19:02 supernovus Could it also be because I renamed META.info to META6.json on the PSGI repository?
19:03 MadcapJake ah yeah `eq` is string equality
19:03 vendethiel joined #perl6
19:03 ZoffixW supernovus, nope. This repo has META6.json, but its status is passing: https://github.com/hoelzro/p6-algorithm-elo
19:04 mrsolo_ joined #perl6
19:06 supernovus ZoffixW: Well, I'll try simplifying the .travis.yml on HTTP::Easy and see if it works better.
19:08 MadcapJake when in a for loop, if I assign to $_, will it assign to the item of the array?
19:08 mspo ~ $ perl6 --doc
19:08 mspo >
19:08 mspo should that do something?
19:09 MadcapJake m: my @a = 'a', 'b', 'c'; for @a { $_ = $_.uc }; say @a
19:09 camelia rakudo-moar 704c58: OUTPUT«[A B C]␤»
19:09 hoelzro m: say flat ((1, 2, 3), (4, 5, 6)); my @d = ((1, 2, 3), (4, 5, 6)); say flat @d;
19:09 camelia rakudo-moar 704c58: OUTPUT«(1 2 3 4 5 6)␤((1 2 3) (4 5 6))␤»
19:09 MadcapJake oh sweet, it didn't work in my terminal (I think $_ is a special shell var)
19:09 hoelzro is there a way I can convince @d to flatten so that the second output has the flattened contents like the first output?
19:09 mspo are you using single quotes?
19:09 [Coke] docs - http://doc.perl6.org/language/unicode_entry should mention how to use named characters or codepoints to generate a string.
19:10 Juerd I can't find on perl6.org where you can report bugs.
19:10 MadcapJake i used double that time because I didn't want to type double quotes around all the letters xD
19:11 Skarsnik supernovus, Ho hello, I think there is a leak in XML::Element.elements https://gist.github.com/Skarsnik/5dfb0dce3b517f13d767 kept growing in memory :(
19:11 ilmari m: my @a = <a b c>; for @a { $_ .= uc }; say @a
19:11 camelia rakudo-moar 704c58: OUTPUT«[A B C]␤»
19:11 mspo m: my @a = <<a B c>>; for @a { $_ = $_.uc }; say @a;
19:11 camelia rakudo-moar 704c58: OUTPUT«[A B C]␤»
19:11 MadcapJake mspo: yep that was it :P shell fail!
19:11 DrForr Juerd: rakudobugs@perl6.org # but if it's not mentioned there it should be.
19:11 mspo ilmari: nice
19:11 ilmari m: my @a = <a b c>; for @a { .= uc }; say @a
19:11 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/iooDQNJMzQ␤Preceding context expects a term, but found infix .= instead␤at /tmp/iooDQNJMzQ:1␤------> 3my @a = <a b c>; for @a { .=7⏏5 uc }; say @a␤»
19:11 MadcapJake ilmari: always forget about that lovely .= operator
19:11 Juerd DrForr: Thanks!
19:12 DrForr It may be @perl.org, its been a while since I've had occasion to use it.
19:13 Juerd rakudobug@perl.org according to google
19:13 flussence `perl6 -Mtrace` only goes one file level deep, not very useful when Pod::Coverage's test file is 3 lines long...
19:13 [Coke] m: say "hi\c[WORD JOINER]world"
19:13 camelia rakudo-moar 704c58: OUTPUT«hi⁠world␤»
19:13 DrForr Like I said :)
19:14 Juerd Sent!
19:14 FROGGS joined #perl6
19:14 diakopter without the plural
19:14 dalek rakudo/resources: 2c916e3 | (Stefan Seifert)++ | src/ (2 files):
19:14 dalek rakudo/resources: Make CompUnit objects available to higher level loading code
19:14 dalek rakudo/resources:
19:14 dalek rakudo/resources: Perl6::World's self.do_pragma_or_load_module now has access to the CompUnit
19:14 dalek rakudo/resources: object instead of just the low level CompUnit::Handle. This way we have access
19:14 dalek rakudo/resources: to all the other properties, like .distribution.
19:14 dalek rakudo/resources: review: https://github.com/rakudo/rakudo/commit/2c916e342d
19:14 flussence and `perl6-debug-m` doesn't work at all, looks like I'll have to do this the good old php way.
19:15 n0tjack m: my $a=92; say <<b $a c>>;
19:15 camelia rakudo-moar 704c58: OUTPUT«(b 92 c)␤»
19:15 ZoffixW :o
19:15 flussence *sigh*... adding debug prints makes the code break differently
19:15 Juerd jnthn: Golfed the mysteriously halting code, reported bug. https://rt.perl.org/Public/Bug/Display.html?id=126787
19:15 jnthn Juerd: Thanks. :)
19:16 Juerd Didn't really golf all the way because I thought it'd be annoying without the extra whitespace ;)
19:16 n0tjack m: my @a=(92,12,13); say <<b @a c>>;
19:16 camelia rakudo-moar 704c58: OUTPUT«(b @a c)␤»
19:16 n0tjack m: my @a=(92,12,13); say <<b @a[] c>>;
19:16 camelia rakudo-moar 704c58: OUTPUT«(b 92 12 13 c)␤»
19:16 n0tjack heh
19:17 uruwi Yep, one of the weak points
19:17 n0tjack uruwi: well, i understand why: now @ is almost as common as F or H
19:17 n0tjack though I while the [] suffix is somewhat mnemonic, it's a bit unintuitive
19:18 Juerd I can definetely live without interpolating @foo[], %foo<>, etc, as long as we can keep {}. It's great!
19:19 supernovus Nope, still dies with "Dependency PSGI is not present in the module ecosystem". How odd.
19:19 sivoais joined #perl6
19:20 ZoffixW weird
19:21 jnthn Juerd: Yes, bug golfing is more concept golfing than character golfing.
19:21 Juerd Once you're done with the graphemes, you can move on to normalizing concepts ;)
19:22 Juerd We need that abstraction, so we can count the number of concepts, in order to have concept golfing competitions! ;)
19:22 MadcapJake any way to define something inside a proto and have it accessible in the multis?
19:22 * jnthn calls FUD on "this will be a source of hard-to track down bugs", fwiw.
19:22 Juerd Hmmm. I do wonder what golfed Perl 6 would look like.
19:23 Juerd jnthn: What is? Or would be?
19:23 jnthn Juerd: https://gist.github.com/deepakg/a2f19e077ee8696bc3da#file-gistfile1-txt-L31
19:24 Juerd Oh, that one
19:24 Juerd Anyone with md5sum can track the bugs down, but I do doubt that people will be used to that kind of debugging.
19:24 jnthn Yes, other tools maybe don't support Unicode as well as they should.
19:24 ZoffixW Man, I'm unlucky -_-
19:24 jnthn One would hope the trend will be towards them doing s.
19:24 ZoffixW Another panda installation issue https://gist.github.com/zoffixznet/ab2f79eba1495e5b9318
19:24 Juerd But it's a skill they'll quickly pick up :P
19:24 jnthn *so
19:25 * Juerd will, for now, refrain from using é in passwords.
19:26 MadcapJake what if I did a state variable inside a proto, would it be accessible in the dispatched multis?
19:26 jnthn MadcapJake: Only if you declared it dynamic.
19:26 jnthn state $*FOO or so
19:26 nine ZoffixW: /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources should have been installed by rakudo's make install!?
19:26 jnthn dinner &
19:26 Juerd Bon apetit
19:27 MadcapJake jnthn: any downsides to doing that? Or should I just repeat the logic in each multi?
19:27 ZoffixW nine, it's there and has a bunch of stuff in it: https://gist.github.com/zoffixznet/1ea1b1cc490612dc2ce2
19:28 ZoffixW MadcapJake, have a helper sub you call in the multis?
19:28 MadcapJake oh that's good, thanks ZoffixW!
19:28 nine ZoffixW: oh, so it probably can't find the source file
19:28 nine ZoffixW: /var/www/tmp/p6high.xtatik.org/.panda-work/1449084519_1/lib/Text/VimColour seems to be missing the file extension?
19:29 kjk joined #perl6
19:29 Skarsnik why not prefix these sha with their filename? x)
19:29 nine ZoffixW: yep, the extension is missing in https://github.com/stmuk/p6-Text-VimColour/blob/master/META.info
19:29 ZoffixW Aha!
19:29 ZoffixW nine, thanks. Nice bug tracing :)
19:29 ZoffixW I'll submit a pr
19:29 nine Skarsnik: I need to be able to look the files up while having only the SHA
19:30 Skarsnik I think Test::Meta should a mandatory test x)
19:30 Skarsnik +be
19:31 uruwi joined #perl6
19:31 flussence okay, I've narrowed down Pod::Coverage's infinite loop to Pod/Coverage/Full &parse-exports — it's doing something weird with introspection on JSON::Tiny/Test/Test::Coverage that ends up self-referencing. I've no idea *what* it's supposed to do but hopefully someone smarter will be able to take it from there :)
19:32 supernovus bbl
19:32 ZoffixW .tell stmuk_ sent you a  PR: https://github.com/stmuk/p6-Text-VimColour/pull/11
19:32 yoleaux ZoffixW: I'll pass your message to stmuk_.
19:32 flussence .oO( if only that method had some documentation )
19:33 timotimo ooooh supernovus is (was) here!
19:34 kjk what's perl6's equivalent of a 'finally' block found in other programming languages?
19:34 Skarsnik LAST { } ?
19:35 kjk I tried that, but it won't be run...:  try { say "hohoh"; LAST { say "done!" } }
19:35 kjk only outputs "hohoh"
19:35 timotimo Juerd: you said "@ vars are always Arrays"; not quite true, because now we have the "is" trait on variables work properly! <3
19:35 domidumont joined #perl6
19:35 timotimo m: my @foobar is Buf[int]; say @foobar.perl
19:35 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/Qq5RZ__NWx␤Can't use unknown trait 'is ' in a variable declaration.␤at /tmp/Qq5RZ__NWx:1␤------> 3my @foobar is Buf[int]7⏏5; say @foobar.perl␤    expecting any of:␤        TypeObject␤        d…»
19:36 timotimo uhm
19:36 timotimo forget i said anything, i guess?
19:37 Juerd kjk: LEAVE
19:37 Juerd kjk: No, don't go. Stay!
19:37 timotimo hahaha
19:37 Juerd kjk: I meant: instead of LAST, use LEAVE.
19:37 diakopter XD
19:37 _mg_ joined #perl6
19:37 kjk lol
19:37 Skarsnik kjk, I don't remember, finaly will be always executed?
19:37 timotimo perhaps NEXT should be called STAY instead?
19:37 Juerd m: try { say 1; die; say 2; LEAVE { say 3 } }
19:37 camelia rakudo-moar 704c58: OUTPUT«1␤3␤»
19:38 kjk Skarsnik: yah, i thought a 'finally' block is supposed to be run regardless if there's an exception or not
19:38 n0tjack why are phasers all CAPITALIZED?
19:38 Juerd n0tjack: Makes them stand out
19:38 n0tjack why should they stand out more than flow control?
19:38 n0tjack or die etc?
19:38 moritz are there any volunteers for tomorrow's advent post?
19:38 timotimo because it's WEIRD flow control
19:38 lestrrat joined #perl6
19:39 Juerd n0tjack: I personally wouldn't mind having RETURN and DIE... :)
19:39 moritz or maybe somebody who has a slot later, but already finished his post, could do it earlier?
19:39 n0tjack Juerd: I want OHNOOOOOOOOOE
19:39 Juerd n0tjack: But I'm quite happy with phasers being uc, because we don't use them quite as often as return and die, and it's harder to recognise leave { ... } as something special, than it is to recognise LEAVE { ... }
19:39 timotimo n0tjack: can be made with a slang :)
19:40 timotimo Slang::Phasers::Humor
19:40 n0tjack Has anyone done a LOLCAT slang?
19:40 Juerd The word 'slang' is weird to me. Slang is dutch for 'snake', so it makes me think of Python.
19:40 Skarsnik I want HAZ in NC
19:40 ZoffixW Juerd, "Sub LANGuage" :)
19:40 ZoffixW moritz, do you mean the 4th? I might be done with mine by then. I have a day off tomorrow.
19:40 Juerd ZoffixW: Sub as in inferior? :P
19:41 kjk Juerd: thanks! that worked
19:41 ZoffixW Juerd, Sub as in subsystem
19:41 Juerd Obviously inferior to a supersystem.
19:41 ZoffixW heh
19:41 moritz ZoffixW: yes, the 4th, not tomorrow, sorry
19:41 moritz ZoffixW: and yes, that would be awesome
19:42 Juerd They never did release "The Adventures of Subman", did they?
19:42 ZoffixW K, I'll finish the article off tomorrow morning (EST time)
19:42 Juerd kjk: And the great thing about having a LEAVE phaser instead of "finally", is that it'll work for any block.
19:43 Hotkeys ZoffixW: slang is slang for sub language?
19:43 Hotkeys :P
19:43 ZoffixW :P
19:43 Deepak joined #perl6
19:43 Juerd m: say 1; die; say 2; LEAVE { say 3 }
19:43 camelia rakudo-moar 704c58: OUTPUT«1␤3␤Died␤  in block <unit> at /tmp/X9n_0qPl08:1␤␤»
19:43 [Coke] can we bundle the http-proxy aware client with panda before christmas?
19:43 kjk Juerd: awesome! just need some getting used to lol
19:43 Juerd Even though it died, we still get the 3! :)
19:43 zengargoylew dunno, i've used LAST in loops quite a bit.
19:43 dalek mu: 32f17f4 | (Matthew Wilson)++ | misc/perl6advent-2015/schedule:
19:43 dalek mu: Update schedule
19:43 dalek mu: review: https://github.com/perl6/mu/commit/32f17f4c60
19:44 moritz diakopter: thanks
19:44 ZoffixW diakopter, thanks
19:44 ZoffixW moritz, you owe me a coke
19:44 ZoffixW :)
19:44 MadcapJake Why would I get a "no 'self' available" error inside a proto inside a class?
19:44 Juerd zengargoylew: Can you give an example? I couldn't wrap my head around why you'd want LAST instead of just having that code after the loop's body.
19:44 moritz ZoffixW: come to the German Perl Workshop 2016 and I'll gladly buy you one
19:45 ZoffixW That's too far both temporally and geographically :)
19:45 moritz Juerd: the advantage of LAST is that it's inside the lexical scope of the loop
19:45 [Coke] ZoffixW, moritz: how did I get roped into this? ;)
19:45 zengargoylew Juerd: that's pretty much it... but it can avoid a test if the loop doesn't need to execute.   like putting a '.' at the end of something.
19:45 ZoffixW :P
19:45 Skarsnik Juerd, if you break the loop with a last?
19:45 moritz Juerd: so you don't have to leak variables out of the loop just to print them afterwards, for example
19:45 Juerd moritz: I can see how that's useful.
19:45 Juerd zengargoylew: I don't quite understand what you mean by test if the loop doesn't need to execute.
19:45 uruwi Apologies for interrupting.
19:46 mobo joined #perl6
19:46 zengargoylew moritz++ that's also what i've used them for.
19:46 uruwi If Find::Bundled is in the ecosystem, shouldn't it be installable by Panda?
19:46 Juerd Skarsnik: Code after the loop is also executed if the loop is exited with last.
19:46 zengargoylew for @stuff -> { say $_; LAST { say "did stuff" } }
19:47 FROGGS uruwi: that's the plan, yes
19:47 zengargoylew no @stuff, no 'did stuff'
19:47 zengargoylew vs say 'did stuff' if @stuff;
19:47 uruwi FROGGS: Plan?
19:47 FROGGS uruwi: the basic idea of putting stuff in the ecosystem
19:48 yqt joined #perl6
19:48 MadcapJake I am getting an error that @!presses is used where no 'self' is available: https://github.com/MadcapJake/p6-xtest/blob/master/lib/XTest.pm6#L98
19:48 Juerd zengargoylew: Ooooh! Now I get it! That's great :)
19:48 kjk is there currently anyway to not fail a decode? i.e., if mybuf.decode('utf-8') fails to decode something that's acutally not encoded in utf-8, substitute it with some '?' character or silently ignore such failures
19:49 Skarsnik there is a new encoding for that I think?
19:49 flussence m: say Buf.new(|(^256).roll(40)).decode('utf8-c8').perl
19:49 camelia rakudo-moar 704c58: OUTPUT«(signal ABRT)*** Error in `/home/camelia/rakudo-m-inst-2/bin/moar': munmap_chunk(): invalid pointer: 0x0000000003c46d60 ***␤======= Backtrace: =========␤/lib64/libc.so.6(+0x730bf)[0x7f34bcf870bf]␤/lib64/libc.so.6(+0x7892e)[0x7f34bcf8c92e]␤/home/cam…»
19:49 flussence guess not :D
19:50 zengargoylew for @tests { state $c; $c++ if my_test($_); LAST { is $c, @tests.elems, 'passed all tests' } }
19:50 moritz kjk: method encode has a :replacement named argument; I don't think decode has the same
19:51 kjk flussence and moritz: ic...:( thanks
19:51 Juerd Nope, no :replacement yet :(
19:51 Juerd IMHO utf8-c8 should be the default for decode.
19:51 MadcapJake figured it out, I didn't know that my proto needed to also be a method :P
19:52 uruwi m: say Buf.new(|(^256).roll(40)).decode.perl
19:52 camelia rakudo-moar 704c58: OUTPUT«Malformed UTF-8 at line 1 col 1␤  in block <unit> at /tmp/isKSc_QtT2:1␤␤»
19:52 leedo flussence: poking about Pod::Coverage::Full, it seems like the require ::($!toload); fails, which may be leading to further errors
19:52 Juerd I have .decode("utf8-c8") everywhere, and 0 occurrences of bare .decode, because I simply don't want my code to die on malformed input.
19:52 uruwi m: say Buf.new(|(^256).roll(40)).decode('utf8-c8').perl
19:52 camelia rakudo-moar 704c58: OUTPUT«(signal ABRT)*** Error in `/home/camelia/rakudo-m-inst-2/bin/moar': munmap_chunk(): invalid pointer: 0x0000000003c7edf0 ***␤======= Backtrace: =========␤/lib64/libc.so.6(+0x730bf)[0x7ff0cfb090bf]␤/lib64/libc.so.6(+0x7892e)[0x7ff0cfb0e92e]␤/home/cam…»
19:52 brrt joined #perl6
19:52 Juerd m: Buf.new(123, 65).decode("utf8-c8").say
19:52 camelia rakudo-moar 704c58: OUTPUT«{A␤»
19:52 Juerd Heh, 123 is too low.
19:52 Juerd m: Buf.new(200, 65).decode("utf8-c8").say
19:52 camelia rakudo-moar 704c58: OUTPUT«A␤»
19:53 Juerd m: Buf.new(200, 65).decode("utf8").say
19:53 camelia rakudo-moar 704c58: OUTPUT«Malformed UTF-8 at line 1 col 1␤  in block <unit> at /tmp/nNqFeHyAty:1␤␤»
19:53 brrt \o #perl6
19:53 Juerd Hi brrt
19:53 brrt hi Juerd
19:54 n0tjack I love how flexible and intuitive array/hash slicing is in p6
19:55 timotimo except when you have a lazy sequence that's longer than the array you're slicing :)
19:55 n0tjack haven't hit that hurdle yet :)
19:55 n0tjack I'm not used to lazy lists, so I don' tuse them much (yet)
19:56 timotimo it has recently(ish) been made more intuitive-ish
19:56 timotimo m: my @a = <hi you there>; .say for @a[^10]
19:56 camelia rakudo-moar 704c58: OUTPUT«hi␤you␤there␤(Any)␤(Any)␤(Any)␤(Any)␤(Any)␤(Any)␤(Any)␤»
19:56 timotimo m: my @a = <hi you there>; .say for @a[lazy ^10]
19:56 camelia rakudo-moar 704c58: OUTPUT«hi␤you␤there␤»
19:57 timotimo ^- lazy sequences will automatically truncate when reaching (past) the end
19:57 nine Ok, I need help. How can I get a %?RESOURCES variable into currently compiling code?
19:58 timotimo is $*W.install_lexical_symbol the right thing for you, nine?
19:59 timotimo oh
19:59 timotimo make_variable_from_parts knows about a few $? variables
19:59 timotimo $?LINE and $?FILE
19:59 timotimo &?BLOCK and &?ROUTINE
20:00 timotimo that could very well be the right thing for %?RESOURCES
20:00 Juerd My simple MQTT program uses hundreds of MBs of memory, ever increasing. Is there a way to figure out where this is all going?
20:00 nine timotimo: yes. Yet I'm struggling to get the information there to make it accessible
20:00 timotimo Juerd: the --profile output will tell you where things get allocated, but that may not be granular enough
20:00 timotimo nine: don't forget you can just generate code there that looks stuff up, or calls a sub from the core to get the data together
20:01 Juerd Heh, --profile segfaults after a second :)
20:01 timotimo Juerd: urgh! i forgot you are using multi-threaded stuff
20:01 timotimo that's NYI
20:01 Juerd Oh
20:02 Skarsnik could be interesting to have access to some GC value, like the amount of ram curently used, nb item alloc/free? could make for more fine profiling maybe
20:03 timotimo well, all we need is an op (extop even) that gives you access to the ThreadContext. after that, you can do everything with NativeCall. just have to make extra sure the GC doesn't jump in between doing things, otherwise you'll blow up spectacularly :D
20:04 mspo -XX:-PrintGCDetails -XX:-PrintGCTimeStamps :)
20:04 MadcapJake Why can't I access attributes inside a proto method?  I am getting "cannot look up attributes in a type object" for this line: https://github.com/MadcapJake/p6-xtest/blob/master/lib/X11/XTest.pm6#L96
20:04 timotimo MadcapJake: sounds like someone/something is invoking that method on an undefined value
20:04 chansen_ joined #perl6
20:05 timotimo MadcapJake: you can put XTest:D: at the beginning of your signature to force calling it on defined values only
20:06 SmokeMachine__ joined #perl6
20:06 MadcapJake can you do that for CPointer's too?
20:06 timotimo sure
20:07 ribasushi joined #perl6
20:07 MadcapJake i'm not sure what's undefined though :(
20:07 timotimo the backtrace doesn't tell you?
20:08 timotimo oh. it could also be that @!presses is undefined
20:08 Skarsnik It's sad I don't manage to compile the clang branch of smokegen (the tool to build kde/qt binding) that look so promissing to generate binding x) http://pastebin.com/19RAKtfN && http://pastebin.com/0WjdK5LR :(
20:09 MadcapJake error was in my test code :P
20:09 timotimo glad to hear you found it :)
20:09 brrt (for some reason i can't install Devel::REPL for perl5 :-()
20:09 timotimo then get Reply instead
20:10 ZoffixW joined #perl6
20:10 timotimo brrt: ^
20:10 ZoffixW Hey. I'm trying to make a hash where $0 is a key and $1 is value. Can't figure it out :S
20:10 ZoffixW m: my $m = "foo=bar\nber=beer\nbor=boor" ~~ m:g/^^(\w+)'='(\w+)/; say $m.chunks
20:10 camelia rakudo-moar 704c58: OUTPUT«Method 'chunks' not found for invocant of class 'List'␤  in block <unit> at /tmp/kEfeZ7q8wt:1␤␤»
20:10 brrt Reply doesn't have readline
20:10 clkao joined #perl6
20:10 brrt or should i install that seprately
20:11 timotimo it does not?
20:11 timotimo mst was like "damn, son, Reply is so much better than Devel::REPL!"
20:11 timotimo so i just thought it'd be the best thing ever
20:11 masak m: "foobar" ~~ /(...)(...)/; my %h = ~$0 => ~$1; say $h.perl
20:11 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/yW2N_3t3sk␤Variable '$h' is not declared. Did you mean '%h'?␤at /tmp/yW2N_3t3sk:1␤------> 3~ /(...)(...)/; my %h = ~$0 => ~$1; say 7⏏5$h.perl␤»
20:11 masak m: "foobar" ~~ /(...)(...)/; my %h = ~$0 => ~$1; say %h.perl
20:11 camelia rakudo-moar 704c58: OUTPUT«{:foo("bar")}␤»
20:11 MadcapJake does NativeCall work with .h files? or only .so files?
20:11 masak ZoffixW: ^^
20:11 mst Reply does have readline
20:11 ilmari brrt: it does, asl ong as you have Term::ReadLine::Gnu installed
20:11 timotimo MadcapJake: only .so files and .dll and .dylib
20:12 MadcapJake hrrm, well now I don't know what to do, I need to access /usr/include/X11/Xlib.h
20:12 ZoffixW m: "foo=bar\nber=beer\nbor=boor" ~~ m:g/^^(\w+)'='(\w+)/; my %h = ~$0 => ~$1; say %h.perl
20:12 camelia rakudo-moar 704c58: OUTPUT«{"foo=bar" => "ber=beer"}␤»
20:12 brrt oh really
20:12 MadcapJake oh i just need to find the right name I think
20:12 brrt oh, thanks!
20:12 timotimo MadcapJake: we have a C parser, i think
20:13 mst note that even Eval::WithLexicals' tinyrepl has readline support if you install ::Gnu
20:13 ggherdov joined #perl6
20:13 ZoffixW m: my %h; for ( "foo=bar\nber=beer\nbor=boor" ~~ m:g/^^(\w+)'='(\w+)/ ) -> $m {  %h{$m[0]} = $m[1]; }; say %h
20:13 camelia rakudo-moar 704c58: OUTPUT«ber => 「beer」, bor => 「boor」, foo => 「bar」␤»
20:13 mst which is what I use, because I don't actually use any of the features in more clever things
20:13 ZoffixW This works, I guess
20:13 mst but Reply is a much better standard answer
20:14 zakharyas joined #perl6
20:14 * ZoffixW misses the P5 version; my %h = "foo=barnber=beernbor=boor" =~ /^(w+)=(w+)/mg
20:14 pnu joined #perl6
20:15 MadcapJake how do I get grep to find a literal `.` I tried backslash but it's still giving me any character
20:15 MadcapJake (grep in shell)
20:15 moritz MadcapJake: grep -F .
20:15 timotimo m: my %res = flat "foo=bar\nber=beer\nbor=boor".comb(/^(\w+)\=(\w+)$/, :match); say %res.perl
20:15 camelia rakudo-moar 704c58: OUTPUT«{}␤»
20:15 timotimo m: say "foo=bar\nber=beer\nbor=boor".comb(/^(\w+)\=(\w+)$/, :match).perl
20:15 camelia rakudo-moar 704c58: OUTPUT«()␤»
20:16 timotimo m: say "foo=bar\nber=beer\nbor=boor".comb(/^(\w+)\=(\w+)/, :match).perl
20:16 camelia rakudo-moar 704c58: OUTPUT«(Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "foo=bar\nber=beer\nbor=boor", to => 3, from => 0), Match.new(ast => Any, list => (), hash => Map.new(()), orig => "foo=bar\nber=beer\nbor=boor", to => 7, from =…»
20:16 timotimo m: say (flat "foo=bar\nber=beer\nbor=boor".comb(/^(\w+)\=(\w+)/, :match)).perl
20:16 camelia rakudo-moar 704c58: OUTPUT«(Match.new(ast => Any, list => (Match.new(ast => Any, list => (), hash => Map.new(()), orig => "foo=bar\nber=beer\nbor=boor", to => 3, from => 0), Match.new(ast => Any, list => (), hash => Map.new(()), orig => "foo=bar\nber=beer\nbor=boor", to => 7, from =…»
20:16 timotimo m: say %(flat "foo=bar\nber=beer\nbor=boor".comb(/^(\w+)\=(\w+)/, :match)).perl
20:16 camelia rakudo-moar 704c58: OUTPUT«Odd number of elements found where hash initializer expected␤  in block <unit> at /tmp/r8r6Agh9qo:1␤␤»
20:16 timotimo hmm.
20:16 timotimo m: say %(flat "foo=bar\nber=beer\nbor=boor".comb(/^(\w+)\=(\w+)/, :match)>>.list).perl
20:16 camelia rakudo-moar 704c58: OUTPUT«{:foo(Match.new(ast => Any, list => (), hash => Map.new(()), orig => "foo=bar\nber=beer\nbor=boor", to => 7, from => 4))}␤»
20:16 moritz timotimo: need ^^ instead of ^ for one
20:16 timotimo m)
20:16 MadcapJake ok so there's actually no xlib.so file...
20:16 timotimo moritz: good point
20:16 ZoffixW Oh, I forgot about comb
20:16 mst ilmari: isn't Term::ReadLine::Perl5 also usable?
20:17 timotimo m: say %(flat "foo=bar\nber=beer\nbor=boor".comb(/^^(\w+)\=(\w+)$$/, :match)>>.list>>.Str).perl
20:17 camelia rakudo-moar 704c58: OUTPUT«Odd number of elements found where hash initializer expected␤  in block <unit> at /tmp/QV0v0u7cVz:1␤␤»
20:17 timotimo m: say (flat "foo=bar\nber=beer\nbor=boor".comb(/^^(\w+)\=(\w+)$$/, :match)>>.list>>.Str).perl
20:17 camelia rakudo-moar 704c58: OUTPUT«($("foo", "bar"), $("ber", "beer"), $("bor", "boor")).Seq␤»
20:17 timotimo oh, is that so.
20:17 ilmari mst: no idea, I always use ::Gnu
20:17 timotimo m: say ("foo=bar\nber=beer\nbor=boor".comb(/^^(\w+)\=(\w+)$$/, :match)>>.list>>.Str>>.flat).perl
20:17 camelia rakudo-moar 704c58: OUTPUT«($(("foo",).Seq, ("bar",).Seq), $(("ber",).Seq, ("beer",).Seq), $(("bor",).Seq, ("boor",).Seq))␤»
20:17 timotimo m: say %("foo=bar\nber=beer\nbor=boor".comb(/^^(\w+)\=(\w+)$$/, :match)>>.list>>.Str>>.flat).perl
20:17 camelia rakudo-moar 704c58: OUTPUT«Odd number of elements found where hash initializer expected␤  in block <unit> at /tmp/N5igqhqy4M:1␤␤»
20:17 mst ilmari: same, hence my hoping you'd know ;)
20:17 _nadim joined #perl6
20:17 timotimo >:(
20:17 ZoffixW :)\
20:17 timotimo m: say %(gather "foo=bar\nber=beer\nbor=boor".comb(/^^(\w+)\=(\w+)$$/, :match)>>.list>>.Str>>.take).perl
20:17 camelia rakudo-moar 704c58: OUTPUT«{:ber("beer"), :bor("boor"), :foo("bar")}␤»
20:17 timotimo there you go. it's terrible, but it works
20:18 ZoffixW Thanks :) That's terrible :)
20:18 timotimo here's a much shorter one:
20:18 timotimo m: say %("foo=bar\nber=beer\nbor=boor".comb(/(\w+)/)).perl
20:18 camelia rakudo-moar 704c58: OUTPUT«{:ber("beer"), :bor("boor"), :foo("bar")}␤»
20:18 jnthn MadcapJake: Factoring stuff out into a proto isn't a bad idea, no. That's why we allow it. :)
20:18 timotimo m: say %("foo=bar\nber=beer\nbor=boor".comb(/\w+/)).perl
20:18 camelia rakudo-moar 704c58: OUTPUT«{:ber("beer"), :bor("boor"), :foo("bar")}␤»
20:19 MadcapJake so is there a route I can take to use header files, I can't find any xlib.so files on my machine.
20:19 Spot__ joined #perl6
20:19 ilmari MadcapJake: xlib? do you mean libx11?
20:19 ilmari libX11, rather
20:19 timotimo MadcapJake: libX11.so
20:19 MadcapJake oh i'm a dufus apparently xD
20:19 timotimo MadcapJake: but libxcb is probably something nicer to bind anyway
20:20 ilmari although if you're doing things from scratch... what timotimo said
20:20 MadcapJake well I already wrote nativecall wrappers for xlib.h, I wonder if that'll just work with libx11.so
20:20 timotimo xcb probably also comes with "binding implementor friendly" data or docs
20:20 timotimo as long as the names that are to be found in xlib.h are provided by libX11.so, that's fine. nm can tell you (dunno which flags to pass for that)
20:21 MadcapJake cool, well let me try libx11.so and then if that doesn't work I'll go from there, this wrapper is really small
20:21 ilmari aiui large parts of xcb is generated from XML protocol descriptiosn
20:22 corbyhaas joined #perl6
20:22 telex joined #perl6
20:24 jnthn TimToady: Did you happen to think any more on Rxx thunkery?
20:25 timotimo MadcapJake: if libX11 doesn't give you what you want, perhaps try ldd (which xmessage) or something ;)
20:26 timotimo for example, is libXt perhaps the library you use for the "XTest" extension? who knows!
20:26 Ch0c0late joined #perl6
20:26 MadcapJake to be clear, my ultimate goal is to be able to programmatically run keyboard commands
20:27 nine jnthn: what exactly was your plan with CompUnit if I may ask? It contains a lot of interesting information, but how would one access it?
20:27 MadcapJake timotimo: thanks for the refs, i'll check those out
20:28 jnthn nine: I was meant to have a plan? /o\
20:28 jnthn nine: Is the use case you have in mind needing access to it within the compunit itself?
20:29 nine jnthn: well, %?RESOURCES could benefit from it
20:30 nine But it's kind a hard to access a CompUnit that's not even assembled yet since for that we need the CompUnit::Handle which means that we already have to compile the code.
20:30 jnthn Yeah. I mean, I was expecting we'd have a way to query all the loaded compunits.
20:30 ZoffixW Is there any way to make my grammar work? It only works if I remove all lines that do not start with a dot:
20:30 ZoffixW m: https://gist.github.com/zoffixznet/4b066b9928a6a89e8dae
20:30 camelia rakudo-moar 704c58: OUTPUT«(Any)␤»
20:30 nine Oh, yes, $*REPO.loaded
20:31 jnthn That walks the chain too?
20:31 zengargoylew MadcapJake: do you know how to do what you are trying to do?   suggesting looking at a program `xdotool` which lets you programatically (or manually) simulate keyboard input and mouse activity
20:31 nine jnthn: no, but that would be the simple part.
20:32 nine Ok, so assuming that we don't want to make the whole CompUnit available, I still have to figure out how to get the %?RESOURCES from the Repository to the code in Perl6::Actions
20:32 jnthn OK, so what's missing is how a given file can ask for its compunit object.
20:32 kipd joined #perl6
20:33 MadcapJake zengargoylew: yeah i saw that but it seems to require you to specify the window, and I just want to run the keyboard shortcut.  I might just take another look at that
20:33 nine I just thought if you meant the CompUnit to be available from within the computation unit during compilation, we'd have to remove the is required. We don't have to just for %?RESOURCES
20:33 jnthn Yes, true
20:34 jnthn I'm not sure we need the CompUnit object to be reachable from there, tbh
20:34 jnthn But we still need a way to map the current file to a dist, so we can find its resources
20:34 ZoffixW Figured it out:
20:34 ZoffixW m: https://gist.github.com/zoffixznet/514bc71d256f386c9969
20:35 jnthn I'm a tad concerned how this'll work out with FileSystem
20:35 camelia rakudo-moar 704c58: OUTPUT«Constant => color: #0000c0; text-decoration: underline; ␤Comment => color: #c00000; font-weight: bold; ␤Special => color: #c000c0; font-weight: bold; ␤Identifier => color: #804000; text-decoration: underline; ␤Statement => color: #008080; font-weig…»
20:35 jnthn Since people will want to get at their resources while in development too
20:35 raiph joined #perl6
20:35 jnthn So that also needs considering into it.
20:36 jnthn Dunno if there was already a solution on that one...
20:36 mst bah, brrt has already gone
20:36 mst timotimo: you inspired me: http://shadow.cat/blog/matt-s-trout/mstpan-17/
20:36 mst hopefully people who go via that page won't forget ::Gnu
20:37 TimToady If it weren't for the long compile times, I'd never get any backlogging done... :)
20:37 ZoffixW heh
20:38 arnsholt nine: Question: What's the purpose of the embedded script snippet in CompUnit::Repository::Installation? I can't quite make sense of it
20:38 ab5tract can valid utf be provided in a non-NFD-or-NFC form?
20:39 mst TimToady: <obligatory xkcd>
20:39 jnthn ab5tract: UTF-whatever is about bytes => codepoints, NF* is about codepoints => codepoints
20:40 timotimo mst: REPL is also a four-letter-word :D
20:40 ab5tract jnthn: interesting... who ever guessed this would be hard? :)
20:40 jnthn ab5tract: Certainly you could end up with UTF-* that decodes to codepoints that are neither in NFD nor NFC.
20:40 mst timotimo: that's not a word, it's an ETLA
20:40 n0tjack how does one enhashulate a list of Pairs? like <a 1 b 2 c 2>.pairup is a list of pairs but not a hash - I wanna hash it
20:40 n0tjack (anonymously)
20:40 jnthn .hash ? :)
20:40 n0tjack damn you perl6
20:40 mst always best to remain anonymous when making a hash of things
20:40 ab5tract ok. i was going to float a proposal to have a code-point form flag that would enum to NFC/NFD for easy roundtripping
20:40 flussence 're.pl is still the best name for a perl REPL ever' ~~ s/ perl// # IMO :)
20:41 timotimo n0tjack: just %(...) it
20:41 n0tjack I should just try typing the obvious function name before asking any questions :/
20:41 mst flussence: well, but you'd lose the .pl gag
20:41 ab5tract but naive solutions don't seem to cover these darn character encodings very well :)
20:41 mst which was have the [fp]un
20:41 n0tjack thanks jnthn, timotimo
20:41 mst s/have/half/
20:42 _nadim is it possible to get, from the parser, where an object was declared?
20:42 ab5tract i think it makes sense that if you want byte-for-byte behavior, you need to go Buf
20:42 MadcapJake libxtst (xtest, i believe) is in my /user/share/docs but there is no .so file for some reason :(
20:43 ab5tract it just stinks to have to caveat our "absolutely awesome Unicode support!" with anything at all, no matter how trivial
20:43 nine arnsholt: that's the code for the wrapper scripts (like the installed panda script) that look up the location of the real script code and run that.
20:43 empT joined #perl6
20:43 olinkl joined #perl6
20:43 timotimo do we have file and line methods on code objects now in rakudo?
20:43 Begi joined #perl6
20:43 jnthn ab5tract: The problem isn't our Unicode support, it's thing that say they support it, but then don't understand that comparison cannot be done at byte level without normalizing.
20:44 timotimo m: say &infix:<+>.^methods
20:44 camelia rakudo-moar 704c58: OUTPUT«(<anon> IS_PURE <anon> <anon> <anon> soft <anon> <anon> yada perl <anon> onlystar candidates unwrap wrap <anon> <anon> package leave <anon> <anon> cando <anon> <anon> <anon> <anon> multi <anon> <anon> add_phaser phasers assuming WHY set_why perl of <anon> …»
20:44 jnthn *things
20:44 timotimo m: say &infix:<+>.^methods.grep(*.name ne '<anon>')
20:44 camelia rakudo-moar 704c58: OUTPUT«(IS_PURE soft yada perl onlystar candidates unwrap wrap package leave cando multi add_phaser phasers assuming WHY set_why perl of returns fire_phasers has-phasers count line file of ACCEPTS signature Str arity returns new outer static_id)␤»
20:44 timotimo _nadim: you can .^find_method('new').file and .^find_method('new').line :)
20:44 dalek joined #perl6
20:45 MadcapJake lol stupid case-sensitive linux commands :P it was there all along as Xtst instead of xtst... o_O
20:45 timotimo (if it actually defines a new method.. though you will probably get the proto method new that lives inside Any or Mu)
20:45 jnthn ab5tract: That's question #1 in the Unicode normalization FAQ. :) http://unicode.org/faq/normalization.html#1
20:45 ab5tract jnthn: totally. and that's where "Unicode" hits the wall of 'crap I need to be ones and zeros' anyway. there was a time where I equated UTF-* and Unicode..
20:45 empT question about sub MAIN ... can named args be extracted (in a manner similar to @*ARGS)
20:45 ab5tract that didn't turn out very well :)
20:45 timotimo empT: you mean like when using a slurpy hash with the *%foo syntax?
20:46 empT i guess.  in many scripts i like to just dump the args (& names) at start of execution for debug mode so i can tell from log/output how it was run.
20:46 _nadim timotimo: trying it, thanks
20:47 zengargoylew MadcapJake: i'm thinking that keypresses are *always* sent to a window.  it's just the root window vs a normal visible window.  IIRC... been ages since i've done X stuff.
20:47 muraiki joined #perl6
20:47 ab5tract jnthn: in fact I can imagine a library that "solves" the roundtripping question by having an object that "has Buf $!original; has Str $!normalized;"
20:47 timotimo m: say Hash.^can('new').perl
20:47 camelia rakudo-moar 704c58: OUTPUT«(method new (Map $: *@args, *%_) { #`(Method|68551192) ... }, method new (Mu $: | is raw) { #`(Method|67645472) ... })␤»
20:47 timotimo _nadim: .^can will give you multiple candidates, that may help you more than .^find_method
20:48 timotimo hehe, hehe. "can"didates
20:48 ab5tract where if you change that object's Str in any way, you have already broken roundtrip expectations for that var and the normalized form is fine to print out
20:48 ab5tract or spurt, or what have you
20:48 MadcapJake zengargoylew: ok maybe that was my misunderstanding, xdotool has you enter a string WM_CLASS I believe (or something like that)
20:49 ab5tract jnthn: or am I again being too naive? :)
20:50 ab5tract clarification: I'm not arguing for that to be in core, save for the arguable use case in IO*
20:51 jnthn ab5tract: You would need to make sure it does the right thing on output. :)
20:51 jnthn But yes, could probably do something like that, but you'd need to consider how to handle string operations on it too
20:52 jnthn Oh, but you already said that :)
20:52 jnthn And I only read the highlighted lines :)
20:52 zemmihates joined #perl6
20:52 empT timotim: yeah, say i have  sub MAIN(Int :$nstart = 1, Int :$pnstart = 100, ...etc...) { ...    I'd like to easily dump the values of all args, overridden or not
20:53 ab5tract but ... if i put a Buf as the filename arg to spurt, won't it cast it to Str anyway? hmmm
20:53 chansen_ joined #perl6
20:54 * ab5tract to the source!
20:54 mst UTSL
20:55 ab5tract :)
20:55 ab5tract for once, with rakudo, I can
20:55 mst I do it with the perl5 VM sometimes, but you do kinda have to be a masochist for that one
20:55 ab5tract haven't had that luxury with programming languages before
20:56 ab5tract mst: problem is, Perl convinced me very quickly that I had no reason to maintain interest in C
20:56 ab5tract for personal reasons, of course
20:56 ab5tract I'm just not a hotrodder or a register junky
20:56 Skarsnik C with some libs (like glibs) is not bad to write
20:56 mst I learned C to write qmail extensions
20:57 ab5tract Skarsnik: I don't mean to imply it
20:57 mst I am ... atypical
20:57 ab5tract please keep in mind that I am talking about C 89
20:57 ab5tract and playing with Perl before understanding character pointers
20:57 ab5tract it was like "why bother?"
20:57 mst note also that I can read C quite well, but can't really write it
20:57 ab5tract that was in '97
20:57 arnsholt nine: Oh, it looks up the location of the perl6 program?
20:57 mst it's just useful when you're trying to figure out how the guts of something work
20:58 timotimo empT: in general, you can get that by putting a |capture argument at the very beginning; i don't know if the introspection understands that to provide proper USAGE text for you, though
20:58 ab5tract contrast that with Perl 6, where I've actually learned a fair bit of the language by looking at the _implementation_ of the language...
20:58 timotimo m: say foo(|c, :$nam1, :$nam2) { say c.hash.perl }; foo(:nam1(10), :nam2<foo>);
20:58 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/7DLVHyxhXt␤Variable '$nam1' is not declared␤at /tmp/7DLVHyxhXt:1␤------> 3say foo(|c, :7⏏5$nam1, :$nam2) { say c.hash.perl }; foo(␤»
20:58 ab5tract mst: certainly so :)
20:58 timotimo wat %)
20:58 MadcapJake oi, now I need to fgure out how to get a MIT-MAGIC-COOKIE-1 key...
20:59 timotimo m: say foo(|c, :$nam, :$nam) { say c.hash.perl }; foo(:nam(10), :nam<foo>);
20:59 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/WKbB1XobLY␤Variable '$nam' is not declared␤at /tmp/WKbB1XobLY:1␤------> 3say foo(|c, :7⏏5$nam, :$nam) { say c.hash.perl }; foo(:n␤»
20:59 timotimo apparently that's not how
20:59 timotimo m: say foo(|c (:$nam, :$nam)) { say c.hash.perl }; foo(:nam(10), :nam<foo>);
20:59 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/umNFRqWb4B␤Variable '$nam' is not declared␤at /tmp/umNFRqWb4B:1␤------> 3say foo(|c (:7⏏5$nam, :$nam)) { say c.hash.perl }; foo(:␤»
20:59 timotimo oooh
20:59 timotimo i put "say" instead of "sub"
20:59 timotimo that's dumb :D
20:59 timotimo m: sub foo(|c, :$nam, :$nam) { say c.hash.perl }; foo(:nam(10), :nam<foo>);
20:59 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/NTw5cQJ7cJ␤Redeclaration of symbol $nam␤at /tmp/NTw5cQJ7cJ:1␤------> 3sub foo(|c, :$nam, :$nam7⏏5) { say c.hash.perl }; foo(:nam(10), :na␤    expecting any of:␤        shape declaration␤»
20:59 timotimo m: sub foo(|c, :$nam, :$nom) { say c.hash.perl }; foo(:nam(10), :nom<foo>);
20:59 camelia rakudo-moar 704c58: OUTPUT«Map.new((:nam(10),:nom("foo")))␤»
21:03 espadrine joined #perl6
21:04 ab5tract it's true that one learns a lot more about Perl 5 by digging into the internals
21:05 leont joined #perl6
21:05 ab5tract but it doesn't necessarily teach you lessons in Perl 5 the language, and unfortunately my relative proficiency in Perl 5 doesn't cut much mustard when it comes to core hacking
21:05 leont What does «Missing or wrong version of dependency '<unit-outer>'» mean?
21:05 yoleaux 27 Nov 2015 12:11Z <jnthn> leont: I fixed a Proc::Async issue that could cause data loss in various cases, which was quite likely responsible for your harness issues.
21:05 leont jnthn: awesome!
21:06 ingy [Coke]: Ingy döt Net (lower case d)
21:06 ab5tract jnthn++ # Proc::Async fixes!
21:07 leont Was busy fixing TAP::Harness for the Supplier changes, expecting to update the PR today or tomorrow
21:07 timotimo wtf, dependency "unit-outer"?!
21:08 _dolmen_ joined #perl6
21:09 _nadim I have a script, it uses a local module where i declare a few classes and muti subs. The multi subs from are not used, instead the script multi sub(Any) catches everything. when i move the multi sub from the module to the script, it works fine. I thought multi subs did not need to be exported!
21:09 jnthn _nadim: They need to be exported.
21:09 flussence how do I do «use newline :crlf;» on current rakudo?
21:09 _nadim I guess it has changed since 2009!
21:09 flussence m: use newline :crlf;
21:09 camelia rakudo-moar 704c58: OUTPUT«===SORRY!===␤Could not find newline:ver<True>:auth<True>:api<True> in:␤    /home/camelia/.perl6/2015.11-321-g704c585␤    /home/camelia/rakudo-m-inst-2/share/perl6/site␤    /home/camelia/rakudo-m-inst-2/share/perl6/vendor␤    /home/camelia/rakudo-…»
21:10 timotimo m: use nl :crlf;
21:10 camelia rakudo-moar 704c58: OUTPUT«===SORRY!===␤Could not find nl:ver<True>:auth<True>:api<True> in:␤    /home/camelia/.perl6/2015.11-321-g704c585␤    /home/camelia/rakudo-m-inst-2/share/perl6/site␤    /home/camelia/rakudo-m-inst-2/share/perl6/vendor␤    /home/camelia/rakudo-m-ins…»
21:10 timotimo hmm
21:10 MadcapJake Why would I get "Cannot assign to an immutable value" inside a class, appending to @!presses?  I've never even assigned anything to it (class A { has @!presses; })
21:11 flussence if I just have to put it on all my IO::Socket constructors, I guess I can do that instead...
21:12 timotimo m: class T { has @!presses; sub addpress($test) { @!presses.append($test) } }; T.new.addpress("hi")
21:12 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/xqlrVy07PF␤Variable @!presses used where no 'self' is available␤at /tmp/xqlrVy07PF:1␤------> 3presses; sub addpress($test) { @!presses7⏏5.append($test) } }; T.new.addpress("hi")␤»
21:12 jnthn _nadim: It was once speculated multi would export implicitly, but we thought better of it :)
21:12 timotimo m: class T { has @!presses; method addpress($test) { @!presses.append($test) } }; T.new.addpress("hi")
21:12 camelia rakudo-moar 704c58: ( no output )
21:13 _nadim jnthn:  am happy you did, I do multi sub do_something is export (Dog $g) but I now I get the error "missing block" after 'export'
21:14 jnthn is export comes after the signature
21:14 leont Did anything change regarding typed arrays? I'm getting an error I didn't use to get
21:14 _nadim thanks, I need to find something more current
21:14 empT timotmo: thx. am trying some variations on that capture for MAIN now.
21:15 MadcapJake m: class A { has @!presses; method add($s) { push @!presses, $s } method say() { say @!presses } } my $a = A.new; $a.add('a'); $a.say
21:15 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/kT8rwmJ2Ag␤Strange text after block (missing semicolon or comma?)␤at /tmp/kT8rwmJ2Ag:1␤------> 3s; method add($s) { push @!presses, $s }7⏏5 method say() { say @!presses } } my $a ␤    expecting an…»
21:15 MadcapJake m: class A { has @!presses; method add($s) { push @!presses, $s }; method say() { say @!presses } } my $a = A.new; $a.add('a'); $a.say
21:15 camelia rakudo-moar 704c58: OUTPUT«5===SORRY!5=== Error while compiling /tmp/h6xJDUdtCE␤Strange text after block (missing semicolon or comma?)␤at /tmp/h6xJDUdtCE:1␤------> 3, $s }; method say() { say @!presses } }7⏏5 my $a = A.new; $a.add('a'); $a.say␤    expecting any of:…»
21:15 jnthn leont: We implemented shaped arrays. Also fixed a flattening inconsistency between object construction and variable assignment.
21:16 nine arnsholt: no, not the perl6 executable. The bin/panda of panda's repository will be installed into the sources directory with the SHA as file name. The generated wrapper script tries to find this file in sources/ of some repository and runs it
21:16 timotimo empT: good luck!
21:16 leont I'm not getting «Type check failed in assignment to @!handlers; expected TAP::Harness::SourceHandler but got Array», on code that worked a few weeks ago
21:16 nine arnsholt: I actually have no idea why we have this indirection
21:16 _nadim jnthn: works like a charm, at this speed I will have a P6 module by next week. after a lot of sweat, frustration and joy.
21:16 leont Probably I did something wrong in the first place, but I'm not yet sure what
21:16 timotimo leont: where do i find this version of that code?
21:17 jnthn leont: I suspect the assignment consistency fix
21:17 jnthn leont: Trowing in an @(...) or a .list in the thing you're passing to the constructor would do it
21:17 * nine wonders why noone so far has been annoyed enough to strip the useless :ver<True>:auth<True>:api<True> from the "Could not find" messages...
21:17 jdv79 is the auth/ver/api stuff ready for a test drive?
21:17 yoleaux 17:42Z <patrickz> jdv79: Is p6-CPAN still a thing? If yes, how does that play with HTTP support being removed from zef?
21:17 jnthn It's probably in a Scalar container, which we no longer disregard
21:18 [Coke] ingy: it was just an example; See https://gist.github.com/coke/63c7bbb82f075c7bb1f5#file-contribs-out-L491
21:18 cdg joined #perl6
21:18 arnsholt nine: Oh. I think I see. It's mostly incidental to the question of precompilation though, I suppose?
21:18 nine arnsholt: yes and I'm not sure we even want to keep it this way
21:18 jdv79 patrickz: sure.  talk to ugexe:)
21:18 dalek doc: f1013a6 | (Anthony Parsons)++ | doc/Type/IO/Socket/INET.pod:
21:18 dalek doc: Fix inconsistent references to :$nl-in
21:18 dalek doc: review: https://github.com/perl6/doc/commit/f1013a69b9
21:19 arnsholt nine: I'll leave that yak for someone else to shave, right now =)
21:19 FROGGS nine: you ask why we have wrappers for scripts like panda?
21:19 nine FROGGS: yes
21:19 FROGGS nine: well, imagine you install Panda v1 and Panda v1.1
21:19 leont Seems it was «has SourceHandler @.handlers = SourceHandler::Perl6.new();» that was at fault
21:20 FROGGS nine: how do you run the right bin/panda when only one can be in PATH?
21:20 MadcapJake what's immutable in this line: https://github.com/MadcapJake/p6-xtest/blob/master/lib/X11/XTest.pm6#L96
21:20 jnthn FROGGS: Do you know much about the idea for %?RESOURCES?
21:20 jnthn FROGGS: Of note, was there a plan for how it'd work out with file system repos?
21:21 leont Can't seem to fix it without getting rid of the type :-/
21:21 timotimo MadcapJake: $_ in the line before
21:21 timotimo MadcapJake: you'll need -> $_ is copy {
21:21 jnthn leont: That's...really odd
21:21 FROGGS jnthn: I know something, dunno if I know much
21:21 timotimo MadcapJake: otherwise ~= won't work
21:22 jnthn nine++ is pondering how we implement %?RESOURCES, and when I started thinking about it I realized I had no idea how it would work with the filesystem case, when there's no distribution objects around...
21:22 FROGGS jnthn: and in case we keep the META6.json of the installed dist, it can potentially work for CURF too
21:22 FROGGS ahh
21:22 FROGGS if there is no dist obj then we won't be lucky
21:22 jnthn Ah, the idea was to have one of those...somewhere?
21:23 nine We could just map $cwd/resources into the %?RESOURCES hash
21:23 FROGGS I'm not sure, but it is the only way to fake a dist object
21:24 FROGGS nine: probably
21:24 arnsholt Hmm. What's the best idiom for checking for the existence of a dynamically scoped variable?
21:25 FROGGS m: say $*FLUBBER ~~ Failure
21:25 camelia rakudo-moar 704c58: OUTPUT«True␤»
21:25 jnthn Do you care about existence or definedness?
21:25 nine Or rather $repo.prefix ~ '/../resources' which sucks but would actually map to the common distribution layout where we will have lib/ and resources/
21:25 arnsholt jnthn: Existence
21:25 jnthn Then probably have to check for Failure as FROGGS showed
21:26 jnthn m: say $*FLUBBER.WHAT
21:26 camelia rakudo-moar 704c58: OUTPUT«(Failure)␤»
21:26 jnthn m: say $*FLUBBER.exception.WHAT
21:26 camelia rakudo-moar 704c58: OUTPUT«(NotFound)␤»
21:26 jnthn m: say $*FLUBBER.exception.WHO
21:26 camelia rakudo-moar 704c58: OUTPUT«X::Dynamic::NotFound␤»
21:26 jnthn If you need to be super-robust there's also that
21:26 arnsholt Yeah, that works. I assumed looking up a contextual that didn't exist would throw an exception, but Failure I can work with =)
21:26 arnsholt Cheers!
21:27 FROGGS nine: sounds like a good idea to me
21:27 FROGGS gnight
21:28 Su-Shee left #perl6
21:31 dalek rakudo/nom: cd45c61 | jnthn++ | src/core/Block.pm:
21:31 dalek rakudo/nom: Stop phaser loop swallowing loop exceptions.
21:31 dalek rakudo/nom:
21:31 dalek rakudo/nom: Fixes use of last inside of a NEXT phaser in for loops, map, etc.
21:31 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/cd45c61729
21:31 empT joined #perl6
21:32 dalek roast: 93b1a6d | jnthn++ | S04-phasers/next.t:
21:32 dalek roast: Tests for RT #123731, and related tests.
21:32 dalek roast: review: https://github.com/perl6/roast/commit/93b1a6d381
21:32 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=123731
21:32 * jnthn had 2 abortive attempts at fixing that before hitting on the actual fix, which was a quarter the size of the previous two attempts...
21:32 Begi joined #perl6
21:33 nine jnthn: all 's well that ends well :)
21:33 muraiki jnthn: did you have a chance to look at the potential-bug-with-GC that was causing long-running processes to stall?
21:34 jnthn muraiki: Not yet; had bits of time, but not with enough brane to debug concurrent GC issues :(
21:34 jnthn (Doing some travel/teaching at the moment)
21:34 colomon joined #perl6
21:35 muraiki jnthn: sorry, if I had any idea of how to do that I'd help out. :)
21:35 leont !@#$%^&*
21:35 nowan joined #perl6
21:35 leont The line numbers of my errors are all wrong, because it's in an async block, and I can't get the right line numbers out of it somehow :-/
21:36 muraiki m: !@#$%^&*
21:36 camelia rakudo-moar 704c58: OUTPUT«WARNINGS:␤Useless use of "!" in expression "!@" in sink context (line 1)␤»
21:36 jnthn Perl... :P
21:36 nine Well #!@!$%^&* is valid Python, too ;)
21:37 jnthn :D
21:37 nine jnthn: would you frown upon using a dynamic variable to pass the resources hash from the Repository to Perl6::Actions?
21:38 jnthn nine: Umm...how do we get from there to Perl6::Actions?
21:39 jnthn nine: Don't we pre-comp in a nested process?
21:39 nine oh....of course
21:39 leont It seems Array.max now returns an array instead of a scalar, that would explain some of the issues I'm seeing…
21:40 jnthn m: say [1..10].max
21:40 camelia rakudo-moar 704c58: OUTPUT«10␤»
21:40 jnthn m: say [1..10].max.perl
21:40 camelia rakudo-moar 704c58: OUTPUT«10␤»
21:40 jnthn m: say [1..10].max.WHAT
21:40 camelia rakudo-moar 704c58: OUTPUT«(Int)␤»
21:40 nine Seems like I've used up my first two attemps at doing this already
21:40 jnthn :)
21:40 jnthn Third time lucky today
21:41 jnthn I wonder if we can use the compunit's SC handle to map to a CompUnit object kept in a hash in a CompUnit::Repository
21:42 * leont tries to reproduce a small test case
21:42 jnthn It could also emit that during precomp
21:42 nine Well while my first attempt was completely useless as it was a totally wrong direction, it at least led me to a plan to have module loaders for other languges be just CompUnit::Repositories, too.
21:42 hudo joined #perl6
21:43 arnsholt jnthn: With a bit of luck, I'll have a patch soonish that removes the process boundary when precomping
21:43 nine That would change the landscape completely!
21:45 arnsholt Well, first I'll have to get it to work =)
21:45 domidumont joined #perl6
21:47 ab5tract jnthn: proof of concept seems to work alright https://github.com/ab5tract/p6-playground/blob/master/Roundtrip/lib/Roundtrip.pm
21:48 ab5tract now, does say automatically put the object into .Str, or should one do ~ to be safe?
21:48 geekosaur say does .gist which produces a Str
21:49 timotimo Juerd: your bug about promises and errors is interesting. it is actually about "what do we do if a promise is broken that nobody is awaiting or .then-ing"
21:49 ab5tract geekosaur: thanks
21:49 cognominal joined #perl6
21:50 timotimo Juerd: because if you .keep the promise first, then await $promise.then: { ... }, you'll get the exception thrown
21:50 timotimo Juerd: if you don't mind, i'll rename the ticket
21:50 Deepak joined #perl6
21:50 Peter_R joined #perl6
21:51 TEttinger joined #perl6
21:51 Juerd timotimo: I don't understand much of what you're saying and I'm fine with any steps you take that can eventually help resolve the issue :)
21:51 * leont totally doesn't get why he's observing a list when his small example isn't
21:51 MadcapJake Why does per6-debug-m throw a `could not find Debugger...` error?
21:52 MadcapJake oh i probably need to update rakudo/perl6 eh?
21:53 timotimo Juerd: i'm going with "user error" or "misunderstand how promises are supposed to work" here, with a side of "docs may need improvement"
21:54 nine MadcapJake: I think you need to install Debugger::UI::CommandLine
21:54 ab5tract yeah that unfortunately does not ship with core
21:54 Juerd Are you saying that 'then' is like 'try', in that it hides errors by design?
21:54 timotimo nine, MadcapJake, i think at the very moment the perl6 debugger isn't working
21:54 ab5tract feels awkward to install a broken tool in a way :/
21:54 timotimo ab5tract: IMO that's for rakudo star, not for core ...
21:54 ab5tract it also is not currently able to do much with threads
21:54 timotimo Juerd: .then gives back another promise
21:55 timotimo Juerd: that is the key here. if you don't listen to what that promise evaluates to, you won't notice when it gets broken.
21:55 Juerd In that case I think some syntactic sugar is needed for the very common use case of just wanting to execute bar after foo is done.
21:56 Juerd Having to do things to catch exceptions myself, in a way that is easily overlooked or forgotten, feels like a bad idea.
21:57 Juerd It's like the whole returning undef thing we just got rid of.
21:57 timotimo if you don't await the promise, you're bound to not notice when promises hang or explode
21:57 Juerd Or actually, the "or die" thing.
21:57 timotimo in general you're expected to be awaiting all your stuff :)
21:57 patrickz joined #perl6
21:57 leont Awesome. Rakudobrew claims to install panda, but then its dependencies aren't there!
21:57 nine Ok, I'll leave this now and start fresh tomorrow. Good night!
21:58 leont "Could not find Shell::Command:ver<True>:auth<True>:api<True> in:"
21:58 timotimo nine: have a good rest!
21:58 nine arnsholt: please keep me posted about any progress or non-progress :)
21:58 leont No idea what's going on
21:58 timotimo leont: did you recently nuke your rakudo install dir?
21:58 leont I didn't, should I?
21:58 jnthn Rest wile, nine++
21:58 jnthn *well
21:58 timotimo i did after the curli branch got merged and that made things smoother for me
21:58 Juerd timotimo: I think that big mistakes like calling non-existent methods should at the very least complain on stderr, but preferrably halt all threads.
21:59 leont What do I need to delete exactly?
21:59 n0tjack joined #perl6
21:59 Juerd timotimo: Alternatively, if everything needs to be await'ed, then that should be enforced...
21:59 Juerd This mistake, if it is one, is too easy to make.
21:59 timotimo leont: "which perl6" ought to point you (indirectly perhaps) to a folder somewhere install/bin/
21:59 timotimo leont: i deleted that whole install/ folder and re-built everything
21:59 timotimo leont: btu rakudobrew has a "nuke" option, too
22:00 timotimo jnthn: should we do something about promises that get broken when nobody is awaiting them or has a .then installed on them?
22:00 ab5tract timotimo: than perl6-debug-m should not ship with core
22:00 ab5tract *then
22:00 timotimo like sink thta exception into the scheduler's "unhandled exception handler"
22:00 timotimo ab5tract: but perl6-debug-m can take any frontend, not just the commandline one!
22:00 ab5tract true
22:00 ab5tract very true
22:01 ab5tract my apologies :)
22:01 Juerd afk  # off to bed
22:01 timotimo all other 0 of them!
22:02 jnthn timotimo: If you have a "then" then you are meant to use the first Promise's result inside of it
22:02 dalek perl6-most-wanted: 04b1d08 | Demayl++ | most-wanted/modules.md:
22:02 dalek perl6-most-wanted: Add Email::Valid as WIP
22:02 dalek perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/04b1d085bb
22:02 dalek perl6-most-wanted: 400b132 | labster++ | most-wanted/modules.md:
22:02 dalek perl6-most-wanted: Merge pull request #8 from Demayl/master
22:02 dalek perl6-most-wanted:
22:02 dalek perl6-most-wanted: Add Email::Valid as WIP
22:02 dalek perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/400b132868
22:02 timotimo jnthn: right. what if you don't have a "then"?
22:02 jnthn Sinking a Promise debatably should sign it up to an unhandled thing
22:02 timotimo jnthn: juerd's example has a promise that gets kept and an error in the block that's passed to the .then
22:03 timotimo i can implement that :)
22:03 disco91 joined #perl6
22:03 jnthn To do one thing then another, await first-thing; await second-thing; is better though
22:03 Skarsnik should something like https://gist.github.com/Skarsnik/16222eb1acbe1e5f7f75 should keep the same memory size and not grow like it does? x)
22:04 znpy joined #perl6
22:05 timotimo Skarsnik: you mean the loop that assigns $foo to the new variable causes growth?
22:05 Skarsnik yes
22:06 timotimo that's kind of bad :)
22:06 jnthn perl6-debug-m is only in the Rakudo repo at all becaues it was getting hard to maintain outside of there because we don't have a good enough API yet
22:06 lizmat joined #perl6
22:06 lizmat .botsnack
22:06 yoleaux :D
22:06 synbot6 om nom nom
22:07 jnthn Once we have the slang/macro QTree API it can be booted back out again.
22:07 Skarsnik timotimo, I have a big leak with a script that do lookup on a XML tree (with the XML module) and I suspect it the same stuff, a big nested struct that get copied and never freed
22:08 patrickz joined #perl6
22:09 Skarsnik I should had added more data, the vm I work in only have 2GB x)
22:10 ab5tract jnthn: that makes sense. i hadn't tied masak++'s efforts on macros with consequences to the debugging stack, but the potential benefits are obvious
22:10 timotimo Skarsnik: just assigning that thing there shouldn't increase memory usage ;(
22:10 timotimo Skarsnik: it shouldn't do a copy at all
22:10 ab5tract i'm likely out for the night
22:10 ab5tract have a great *, all! o/
22:11 timotimo gnite ab5tract
22:11 dalek mu: 074940b | coke++ | CREDITS:
22:11 dalek mu: snapshot AUTHORS as CREDITS
22:11 dalek mu:
22:11 dalek mu: needed to put the 2015.12 announcement together
22:11 dalek mu: review: https://github.com/perl6/mu/commit/074940be27
22:12 [Coke] .tell ShimmerFairy did the credits conversion, you're off the hook.
22:12 yoleaux [Coke]: I'll pass your message to ShimmerFairy.
22:14 jnthn Phew, think I nailed the other phasers bug in the xmas list too
22:14 lizmat jnthn++  :-)
22:14 Skarsnik nice, how many bug left? x)
22:14 jnthn spectest time
22:14 timotimo \o/
22:15 jnthn 20 when I'm done with this one
22:15 mohij joined #perl6
22:16 n0tjack joined #perl6
22:18 pyrimidine [Coke]: on AUTHORS, 'Chris Fields' is pyrimidine (me)
22:19 pyrimidine [Coke]: and thx for adding me (I think I was in there from the parrot days, maybe first pass implementation of .trans)
22:21 pyrimidine [Coke]: shoulda asked, would you like that as a pull request?
22:21 * leont still doesn't get what's going on with this .max, but adding a [0] after it seems to fix is :-s
22:22 dalek ecosystem: 4af6cf6 | (Kamil Kułaga)++ | META.list:
22:22 dalek ecosystem: author renamed metafile
22:22 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/4af6cf6bf4
22:22 arnsholt leont: Sounds like maybe you've inadvertently created a list of lists?
22:22 RabidGravy jnthn, you'll be delighted to know that New Supply is really leak free, been running my forthcoming experimental cron thingy for two and a half hours with nary an impact on resources :)
22:23 [Coke] pyrimidine: PR is best for mu stuff, yes. (note that CREDITS is what i'm using for right now, and there I care about matching up nicks with names - and your nick is not in the list, but your name is (so you're fine for nwo)
22:23 timotimo leont: i think you have a list of arrays there and you're getting the biggest one from .max
22:23 dalek ecosystem: 8bb4b0e | (Kamil Kułaga)++ | META.list:
22:23 dalek ecosystem: author renamed metafile
22:23 dalek ecosystem: review: https://github.com/perl6/ecosystem/commit/8bb4b0ea3a
22:23 [Coke] https://gist.github.com/coke/63c7bbb82f075c7bb1f5 now includes all the information from MU's CREDITS (nee AUTHORS) file. up to 889 people.
22:24 jnthn RabidGravy: Nice. It was leaky before, or not known?
22:24 timotimo Skarsnik: i'll try to have a look later; thanks for giving such a small test case <3
22:24 RabidGravy dunno, never run anything that long before
22:25 leont It seems you're right, but that means .max is distributive (I'm doing «@!handlers.max(*.can-handle($name));», apparently that method doesn't get called on the array)
22:25 RabidGravy also interval() seems rock solid, triggering an event spot on every minnute for all that time
22:26 jnthn cool :)
22:27 * jnthn is always happy to get reports about things that *do* work
22:27 jnthn ('cus compiler hackers normally just hear lots about the ones that don't ;))
22:27 dalek rakudo/nom: f0a96da | jnthn++ | src/ (2 files):
22:27 dalek rakudo/nom: Fix FIRST in loop/while/until.
22:27 dalek rakudo/nom: review: https://github.com/rakudo/rakudo/commit/f0a96dacbc
22:28 pyrimidine [Coke]: thx, will add a PR then :)
22:28 dalek roast: e220ab9 | jnthn++ | S04-phasers/first.t:
22:28 dalek roast: More tests for FIRST, including RT #121147.
22:28 dalek roast: review: https://github.com/perl6/roast/commit/e220ab926d
22:28 synbot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=121147
22:28 RabidGravy (it would have dropped some if they didn't hit the right second as it is grepping for DateTime.now.seconds.Int == 0)
22:29 * leont found it, seems I should have made that argument () instead of []
22:29 Skarsnik hm, should I spawn a process to run some code that leak and kill it/respawn a new one to have the code going? Will that work?
22:29 RabidGravy that's a solution :)
22:30 sno joined #perl6
22:31 dalek roast: a74506c | jnthn++ | S04-phasers/next.t:
22:31 dalek roast: Add missing RT ticket label.
22:31 dalek roast: review: https://github.com/perl6/roast/commit/a74506c818
22:31 flussence I don't know if this is a sane request or not, so I'll ask: could CU:R:FileSystem prefer to put everything in "{$OS-specific-cache-dir}/perl6/" before $*CWD.child('.precomp') ? Or would that make everything explode horribly?
22:32 timotimo Skarsnik: did you ever see if it actually gets past create-stuff($foo, 500);?
22:32 Skarsnik hm, I did not test that lol
22:32 timotimo do you have an idea how many things you're creating there?
22:32 timotimo the one with $cpt == 500 will create 500 of $cpt == 499
22:33 jnthn OK, now we're down to 20 xmas RTs. :)
22:33 timotimo every one of the 500 $cpt == 499's will create 500 $cpt == 498
22:33 Skarsnik damn let me retest that
22:33 timotimo m: say "that's { 500 ** 500 } objects"
22:33 camelia rakudo-moar f0a96d: OUTPUT«that's 305493636349960468205197939321361769978940274057232666389361390928129162652472045770185723510801522825687515269359046715531785342780428396973513311420091788963072442053377285222203558881953188370081650866793017948791366338993705251636497892270212003…»
22:33 timotimo does that fit in you rram?
22:33 colomon joined #perl6
22:34 Skarsnik m: say 50 ** 50
22:34 camelia rakudo-moar f0a96d: OUTPUT«8881784197001252323389053344726562500000000000000000000000000000000000000000000000000␤»
22:34 Skarsnik that still a lot x)
22:35 jnthn Buy more RAM... :P
22:35 leont Given a Supplier, is it good or bad to call the Supply method more than once?
22:35 timotimo not a problem, leont
22:35 jnthn leont: "depends"
22:35 timotimo oh
22:35 jnthn leont: The semantics around it are a little interesting, though useful :)
22:35 jnthn leont: Each .Supply call gives you a freshly sanitized supply
22:36 jnthn m: my $sup = Supplier.new; my $s = $sup.Supply; $s.tap({ .say }); $s.emit(1); $s.done(); $s.tap({ .say }); $s.emit(2);
22:36 camelia rakudo-moar f0a96d: OUTPUT«Method 'emit' not found for invocant of class 'Supply'␤  in block <unit> at /tmp/lyneMCRb4V:1␤␤»
22:36 jnthn oops
22:37 hankache joined #perl6
22:37 jnthn m: my $sup = Supplier.new; my $s = $sup.Supply; $s.tap({ .say }); $sup.emit(1); $sup.done(); $s.tap({ .say }); $sup.emit(2);
22:37 camelia rakudo-moar f0a96d: OUTPUT«1␤»
22:37 quester joined #perl6
22:37 quester joined #perl6
22:37 quester left #perl6
22:37 jnthn m: my $sup = Supplier.new; $sup.Supply.tap({ .say }); $sup.emit(1); $sup.done(); $sup.Supply.tap({ .say }); $sup.emit(2);
22:37 camelia rakudo-moar f0a96d: OUTPUT«1␤2␤»
22:37 jnthn Those who capture the difference.
22:37 leont I see…
22:38 yqt joined #perl6
22:38 timotimo what do those who capture the difference do, jnthn?
22:38 jnthn *two
22:38 Skarsnik timotimo, this was leaking after the parsing done: https://gist.github.com/Skarsnik/5dfb0dce3b517f13d767 :( (and quite a lot)
22:38 jnthn timotimo: Multiply!
22:38 timotimo oooh
22:38 jnthn leont: If you only ever emit, of course, then there's no difference. :)
22:39 jnthn leont: .sanitize just enforces the supply grammar
22:39 jnthn emit* [done|quit]
22:39 timotimo Skarsnik: in that case it'd probably really be interesting to get info for the different kinds of allocators we have.
22:40 jnthn OK, teaching tomorrow, so time to get a good 8 hours sleep in
22:40 quester joined #perl6
22:40 * jnthn loves that the course is located in the hotel he's staying in :)
22:40 leont It kind of matters in one case, will think about this. Thanks :-)
22:40 jnthn np
22:40 jnthn Happy hacking
22:41 jnthn 'night all
22:41 timotimo gnite jnthn :)
22:41 timotimo Skarsnik: if we had that kind of stat, we could see if there's things being malloc'd by an external library that don't get freed, for example
22:41 timotimo Skarsnik: anyway, that script of yours won't leak after it has finished creating stuff, so that's one worry off my back
22:41 timotimo still have no idea what's wrong with your xml stuff :(
22:41 Skarsnik well XML is purely perl6
22:41 empT_ joined #perl6
22:42 timotimo oh? all of that?
22:42 timotimo i thought you have a C binding there!
22:42 Skarsnik The html parser is a binding
22:42 timotimo Gumbo, yeah
22:42 Skarsnik but all the memory it use get freed
22:42 timotimo oh? how can you tell?
22:44 Skarsnik well the Clib came with a gumbo_delete that free its internal stuff and it called at the end of the parse-html, all it remained are the xml object
22:44 timotimo oh, so that recursively cleans out everything? well, that's good.
22:45 timotimo did you give me a --profile of that script running? or should i try to reproduce locally?
22:45 timotimo (though i'm running lots and lots of spec tests, so a bit low on ram and cpu time to try that)
22:45 Skarsnik try with HTML::Parser::HTML
22:45 Skarsnik *XML
22:46 Skarsnik they share the same interface x)
22:46 lestrrat joined #perl6
22:46 timotimo OK
22:47 Skarsnik I tried to skip this step, but xml can't load the xml saved
22:47 Skarsnik it probably does not like the javascript in the middle of it or something
22:48 timotimo urgh
22:48 timotimo perhaps it needs to be inside CDATA to properly work?
22:48 timotimo wait, you mean trying to parse html5 as xml?
22:49 Skarsnik XML::Document has a xml.save
22:49 timotimo oh, i see
22:49 timotimo yeah, that should probably be round-trip-safe :|
22:54 MadcapJake So does perl6-debug-m not work right now? After installing Debugger::UI::CommandLine, I'm now getting "Circular module loading detected involving module 'Debugger::UI::CommandLine'" when I run perl6-debug-m
22:54 Skarsnik lol
22:54 bjz joined #perl6
22:55 japhb .botsnack
22:55 yoleaux 15:11Z <timotimo> japhb: how about we let perl6-bench have a list or hash of test code (exitcode tells if usable) to actual code (or filename) so we can be compatible with different rakudo versions for all stuff
22:55 synbot6 om nom nom
22:55 yoleaux :D
22:56 timotimo yo japhb :)
22:56 japhb timotimo: Can you explain further?
22:56 timotimo sure!
22:56 timotimo here's an example:
22:56 timotimo we have a benchmark "pushme", right? but newer versions have "append" that we'd expect to use for this
22:57 japhb That much I understood
22:57 timotimo so the entry in the microbenchmarks.pl could look like [ "my @foo.append('hi')", "blah blah @a.append(@a) blah blah", "1", "blah blah @a.push(@a) blah blah" ]
22:57 timotimo instead of just the code there
22:58 Skarsnik well I have to to sleep, have a good night #perl6
22:58 japhb Are you trying to say that we have for each benchmark a list of different code snippets that work with different historical Perl 6 variants, and it just tries them in order?
22:59 japhb First one to succeed is considered correct?
22:59 timotimo gnite Skarsnik!
22:59 ab5tract MadcapJake: sounds like a rakudobug to me
22:59 flussence ...why not try them all regardless of version?
22:59 timotimo japhb: that's the idea
22:59 timotimo flussence: because then which results do you compare how?
23:00 ab5tract MadcapJake: it also sounds suspiciously CURLI related
23:00 japhb flussence: Because modern Perl 6 still has @a.push, it just means something different (with quite possibly wildly different performance characteristics) than it used to.
23:00 timotimo flussence: in the pushme case, you'll compare the old rakudos "flattening" append stuff against new rakudos "item append". the latter will most probably be much faster
23:00 timotimo exactly that
23:00 MadcapJake yeah timotimo mentioned that it might be broken right now
23:00 patrickz joined #perl6
23:01 ab5tract MadcapJake: do you know about the --ll-exception flag for perl6?
23:01 MadcapJake no what's that
23:01 ab5tract it sounds like that's as good as it gets
23:01 timotimo MadcapJake: prevents some filtering from happening on the backtraces
23:02 timotimo some errors will only ever give you a backtrace if you have --ll-exception, even.
23:02 ab5tract it can be helpful in the case of crashes
23:03 ab5tract which might not give anything useful to you if you don't use it, as timotimo mentioned
23:03 japhb timotimo: I'm wondering if we need to have a "feature probe" phase that determines tags for the various compilers for what they support in what way, and then have the benchmark snippets be able to look for having or not having a particular compiler feature tag
23:03 ab5tract in fact it's a bit more useful for debugging concurrency issues than perl6-debug has been in my experience
23:03 timotimo japhb: that sounds like it'd be 10x mightier than what i suggest, but what i suggest is "the simplest thing that can possibly work" :)
23:04 MadcapJake i got this printed https://gist.github.com/MadcapJake/1bd1b39ca2a742034871
23:04 _dolmen_ joined #perl6
23:04 mohij joined #perl6
23:04 pyrimidine joined #perl6
23:04 woolfy joined #perl6
23:04 * japhb ponders whether to go mighty or go simple
23:04 ab5tract MadcapJake: oh, I was suggesting it in replacement of perl6-debug
23:05 woolfy .
23:05 MadcapJake oh i see xD
23:05 diakopter japhb: the bigger they fall...
23:05 ab5tract but it's only useful if you are crashes
23:05 woolfy left #perl6
23:05 ab5tract in that case
23:05 timotimo MadcapJake: i think someone made the debugger "work" a bit farther than you recently, but then got a case of "the frontend is bitrotted" :(
23:05 timotimo (or perhaps it was the back-end that was bitrotted)
23:05 ab5tract it seems like there is an event horizon of a better peg to hang debugging on
23:05 MadcapJake without debug, it's still not printing anything, ab5tract, my code is running some c routines so I'm guessing I would need to debug to get some answers
23:06 ab5tract that we haven't quite whirlpooled across yet
23:06 timotimo ab5tract: that's kind of an interesting mental image
23:06 ab5tract MadcapJake: darn
23:06 ab5tract timotimo: much obliged
23:06 timotimo japhb: i'm not sure if i'd be up to implementing your suggestion, whereas i might stand a chance of implementing mine. though, don't forget i haven't a clue of perl5 :)
23:06 masak 'night, #perl6
23:06 MadcapJake yeah, i'll try and work some more on this later tonight, gotta head to dinner!
23:07 timotimo gnite masak!
23:07 ab5tract MadcapJake: you could try checking out a release tag from before the CURLI stuff
23:07 ab5tract and rebuilding rakudo
23:07 MadcapJake yeah that's a good idea, thanks ab5tract !
23:07 timotimo if you do that, you should probably nuke your installation folder, too ...
23:07 ab5tract timotimo: was just about to mention that :)
23:09 ab5tract not much sense in investing heavily in fixing a tool that is going to need re-fixing in the near future
23:10 timotimo well, with electron bindings in the ecosystem now, why hasn't anybody built a debugger UI with multi-threaded features yet? :)
23:10 japhb timotimo: I am actually thinking of blessing the simple route now, because I'm thinking that sometime post-Christmas I may just drop support for pre-Christmas compilers and just write test variants keyed on Perl 6 version.
23:10 japhb Thus we could have a 6.c and a 6.d version or so.
23:10 timotimo oh
23:11 patrickz joined #perl6
23:11 japhb timotimo: Which is to say, until e.g. 2017, it's probably best to just do the simplest thing that could work.
23:12 japhb And not build up a big edifice of complexity only to tear it down a few months later.
23:12 ab5tract timotimo: because QTrees, it seems. but the electron stuff is well-deserving of attention.
23:12 ab5tract is anyone doing an electron advent post?
23:12 timotimo the QTrees thing is actually about the back-end, not the front-end
23:12 timotimo japhb: how long would you think would it take you to build that feature?
23:13 japhb Your suggestion?
23:13 ab5tract i would assume that it would result in front end changes as well
23:13 timotimo yes, the simplest one that could work
23:13 ab5tract i haven't looked at the level of coupling
23:14 timotimo they are "coupled" with a sort of "event/subscription" thing
23:14 Zoffix Do you guys have anything useful to generate syntax-highlighted HTML of Perl 6 code with line numbers I could use for code snippets in Advent blog post? I tried to build my own for 2 days, but time's running out and I'm getting an error on the two boxes I have available ATM....
23:14 japhb timotimo: In a fantasy world in which I am not distracted by $day-job and/or a vast desire to sleep, a couple hours.
23:14 ab5tract sounds like the kind of things that QTrees could have an impact on
23:14 ab5tract anyway, i'm out for real this time
23:14 ab5tract o/ #perl6
23:14 Zoffix \o
23:15 timotimo https://github.com/jnthn/rakudo-debugger/blob/master/lib/Debugger/UI/CommandLine.pm#L633 - have a quick look
23:15 ab5tract Zoffix: I've seen it done. We should have an easy way to do it.
23:15 timotimo Zoffix: :hc in vim will give you an html file if you ask it nicely enough
23:15 dalek mu: 4acb2db | cjfields++ | CREDITS:
23:15 dalek mu: add my nicks
23:15 dalek mu: review: https://github.com/perl6/mu/commit/4acb2db716
23:15 dalek mu: 5e7a186 | (Zoffix Znet)++ | CREDITS:
23:15 dalek mu: Merge pull request #13 from cjfields/master
23:15 dalek mu:
23:15 dalek mu: Add nicks
23:15 dalek mu: review: https://github.com/perl6/mu/commit/5e7a186e7d
23:15 * japhb heads back to hotel before it becomes really absurdly late
23:15 timotimo okay, good night, japhb!
23:15 timotimo thanks for stopping by and discussing!
23:16 japhb Of course!  :-)
23:16 flussence Zoffix: could try pygments too, I think that can do HTML output
23:16 Zoffix timotimo, isn't that what Text::VimColour uses? My vim is too old.
23:16 Zoffix timotimo, and it generates CSS/HTML separate too
23:16 empT joined #perl6
23:17 timotimo doesn't matter. just copy-paste it from a browsre window to an contentsEditable-enabled input field like wordpress' WYSYWIG editor
23:17 timotimo that'll give you the css stuff for free without hassle
23:17 timotimo (and yes, that's fucking awesome that we have something like that in 2015)
23:17 Zoffix oh
23:17 Zoffix flussence, thanks pygments online thing did something usable...
23:17 Zoffix Now, for copy-paste test.
23:17 timotimo the worst thing you can do is copy-paste from something like that into pidgin. then you'll end up with line breaks disrupted and CSS in-line in plain text
23:18 timotimo Zoffix: you should have asked sooner, so that you didn't have to waste so much time on the stupid highlighting hassle and more time on making your post good :)
23:18 Zoffix timotimo, it was a good practice on making my first P6 web app.
23:18 Zoffix AND my first grammar :P
23:19 timotimo ah. well, that's fine :)
23:19 timotimo you'll write another post about that, right? :D
23:19 Zoffix hehe, maybe :P
23:20 timotimo my brain is still in the "oh god, we only have 5 posts scheduled for the advent calendar!!" mode/mood
23:20 Zoffix :)
23:21 Zoffix hm, copy-pasting doesn't copy the styles
23:22 * Zoffix spins up a windows box to try it there
23:22 timotimo it does not?!
23:22 leont Seems a fairly simple module that uses a somewhat complicated one (TAP) hangs for me during parsing.
23:23 leont Anyone a clue what could be going on?
23:24 timotimo GOD DAMN IT
23:24 Zoffix Nope
23:24 timotimo zoffix is right
23:24 timotimo >:(
23:24 Zoffix It works if I c/p into Word though, so you're half-right :P
23:25 timotimo damn.
23:25 timotimo i saw that feature in google docs (slides) and there it works
23:25 timotimo but not in wordpress
23:25 timotimo WWWOOORRRDDDDDDDDPRRRRESSSSSSS >:( >:( >:(
23:26 cfloare joined #perl6
23:26 timotimo http://lucumr.pocoo.org/cogitations/2007/05/30/pygments-in-wordpress/
23:26 timotimo "does not exist" >:(
23:27 timotimo and that "pygment it" plugin can only do line numbers if pygments is installed locally on the webserver
23:28 timotimo which is wordpress' server, so no clue if they'd allow that... can we even install plugins there at all? probably only if we have a paid version of wordpress ...
23:28 n0tjack joined #perl6
23:28 * timotimo looks for a table to flip
23:29 timotimo .tell TimToady should a Promise that gets sunk get a handler installed that forwards any exceptions to $*SCHEDULER for its "unhandled exception handler" thingie?
23:29 yoleaux timotimo: I'll pass your message to TimToady.
23:31 daxim joined #perl6
23:31 skids joined #perl6
23:34 Zoffix joined #perl6
23:43 disco91 left #perl6
23:45 zengargoyle joined #perl6
23:47 kid51 joined #perl6
23:50 leont I'm having two local libs in my dist, one is loading the other, this always hangs, even if Foo.pm doesn't contain anything other than «use Bar;»
23:50 timotimo .tell japhb how about i ask another person who can perl5 to implement that feature?
23:50 yoleaux timotimo: I'll pass your message to japhb.
23:50 AlexDaniel joined #perl6
23:51 AlexDaniel “why are phasers all CAPITALIZED?” – what I find weird is that we have “FIRST” but “once”
23:51 flussence found while doing `panda smoke`: Hinges causes a deadlock on the precomp lockfile
23:52 leont Tried again with Bar being literally «class Bar {}», even now Foo takes a second and a half to load!
23:52 flussence ...seems like anything with some sort of compilation error causes it, actually
23:54 Goonthen joined #perl6
23:55 cpage_ joined #perl6
23:55 TimToady timotimo: maybe sinking a promise should throw an exception right off the bat
23:55 yoleaux 23:29Z <timotimo> TimToady: should a Promise that gets sunk get a handler installed that forwards any exceptions to $*SCHEDULER for its "unhandled exception handler" thingie?
23:55 lizmat AlexDaniel: "once" was once called START, but deemed not to be a phaser by TimToady at some point
23:55 jdv79 p5 is a verb now?
23:55 lizmat AlexDaniel: hence the lowercase version
23:56 Zoffix I figured it all out, BTW... *inhales deeply*: go to http://pygments.org/ and highlight your markup and copy the URL of the page you're on, go to https://inlinestyler.torchbox.com/styler/convert/ and enter you URL into the box, copy the markup that page generated into a file named data.html and remove everything that is NOT the <pre></pre> with your code, then run this Perl 5 script (https://gist.github.com/zoffixznet/55af69fe0f709aa60ba5) to add line
23:56 Zoffix numbers to your code, in Wordpress scroll all the way up, and switch to HTML/text mode, scroll down to the target position and paste your generated code, then move the " 1:" line number INSIDE the <pre> and delete the line number at the </pre>, scroll all the way up, switch back to Visual mode, scroll back to where you were... Boom, you have your Perl 6 code syntax-highlighted and line-numbered.. *exhales*
23:56 timotimo jdv79: you there! do you want to do the task?
23:56 Zoffix What could be easier?
23:56 AlexDaniel lizmat: if it's not a phaser, then what is it?
23:56 Hotkeys jdv79: what do you have against verbing
23:56 jdv79 do you even p5 bra?
23:56 timotimo i didn't grow sufficiently big man-boobs to wear a p5 bra ...
23:57 jdv79 nada.  just seemes funny
23:57 flussence .oO( does wordpress support those javascript gist include things github does? )
23:57 jdv79 i thought bra is the new bro.  idk...
23:57 timotimo yeah
23:57 lizmat AlexDaniel: a blast or blorst ?
23:57 diakopter braugh
23:57 timotimo i don't know why doods enjoy calling each other "brassiere"
23:58 Zoffix flussence, doesn't seem to.
23:58 flussence crud.
23:58 jdv79 i dont get it either.  i would say bro but that might date me.  i'm gettin old in any case.
23:58 lizmat AlexDaniel: once is essentially "do .... unless $++"
23:58 AlexDaniel “Block, OR Statement”
23:58 Zoffix jdv79, the cool kids of today say it "bruh"
23:59 AlexDaniel lizmat: fine
23:59 jdv79 o k
23:59 AlexDaniel “Some of the statement prefixes also behave a little bit like phasers, but they run in-line with the executable code, so they are spelled in lowercase.”
23:59 diakopter brouhaha
23:59 timotimo Zoffix: when did "broheim" get out of fashion?

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

Perl 6 | Reference Documentation | Rakudo