Camelia, the Perl 6 bug

IRC log for #masakism, 2013-05-01

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

All times shown according to UTC.

Time Nick Message
00:35 est7 joined #masakism
00:47 est7 whois moritz
00:50 bern joined #masakism
01:02 bern joined #masakism
03:34 Tene masak: I just got my copy of Surfaces and Essences today.
05:06 moritz_ joined #masakism
05:44 hrbkid joined #masakism
05:55 atroxaper joined #masakism
06:10 baest joined #masakism
06:15 dmol joined #masakism
06:56 moritz__ joined #masakism
07:16 Farow joined #masakism
07:26 GlitchMr rzm, done, sorry for the delay ;-).
07:27 snearch joined #masakism
07:33 rzm GlitchMr: thanks :)
07:44 hoelzro joined #masakism
07:46 mohij joined #masakism
07:59 cognominal joined #masakism
08:01 Patterner joined #masakism
08:04 masak T minus 8 hours.
08:05 hoelzro \o/
08:06 masak GlitchMr++ # added rzm++
08:06 dmol joined #masakism
08:56 cognominal joined #masakism
09:01 masak T minus 7 hours.
09:12 GlitchMr I wonder when official IRC logs will return...
09:14 masak frankly, that's not a big concern of mine.
09:14 masak I have two excellent backup loggers already.
09:15 hoelzro I also have a log going
09:16 GlitchMr then three
09:16 GlitchMr http://olive.undo.it/perl6/masak0501.txt
09:16 GlitchMr I've a backup log, but still...
09:16 GlitchMr moritz logs are easier to use.
09:53 cognominal joined #masakism
09:54 atroxaper joined #masakism
10:11 masak less than T minus 6 hours. :)
10:11 masak er, I mean "T minus less than 6 hours".
10:27 mmtths joined #masakism
10:32 masak mmtths: greetings.
10:32 mmtths hello
11:03 masak T minus 5 hours.
11:09 atroxaper left #masakism
11:10 atroxaper joined #masakism
11:19 nvb joined #masakism
11:24 dmol I'm reading "using perl 6", but I'll try to use p5, as I know it better :)
11:27 masak ok :)
11:29 colomon joined #masakism
11:29 sergot joined #masakism
11:29 sergot o/ !
11:30 Util joined #masakism
11:31 * Util lurks for curiosity, and to read backscroll
11:40 nvb joined #masakism
11:44 * colomon the same
11:45 masak ok, you're now on the "Audience" list :) https://github.com/perl6/mu/​wiki/perl6-workshop-may-2013
11:50 sjn masak: add me to the audience list too. I have no idea how many will be coming to Oslo.pm today
11:51 masak ok :)
11:51 sjn do you have some kind of schedule/plan published?
11:52 masak added: https://github.com/perl6/mu/​wiki/perl6-workshop-may-2013
11:52 masak sjn: I have a schedule/plan, yes. I expect total anarchy to reign, though. people are free to deviate and go off on tangents, submit solutions, teach others, or just discuss programming.
11:52 masak anything goes.
11:52 sjn ok, cool :)
11:53 sjn LET THE CHAOS COMMENCE (to join, please form a line over there ------>)
11:53 masak :P
11:53 sjn :)
11:53 masak yes, like that.
11:54 masak it's a "Maintained Anarchy".
12:00 cognominal joined #masakism
12:01 masak T minus 4 hours.
12:02 sjn ok, wasn't it supposed to start at 16:00?
12:02 grondilu joined #masakism
12:03 sjn aah, it's 16:00 Zulu
12:06 masak time zones are hard :)
12:06 masak hope this doesn't ruin things for the Oslo.pm group...
12:16 philluminati joined #masakism
12:33 GlitchMr Yep, 3 hours 27 minutes.
12:35 GlitchMr perl6: say "Comming soon"
12:35 GlitchMr s/mm/m/
12:47 atroxaper Hello everyone! Especially Masak!
12:47 masak hello atroxaper!
12:48 atroxaper What a difference between Audience and Participants?
12:48 masak audience is more "readonly", participands is "read/write".
12:48 masak participants*
12:50 pjcj in that case, may I register my intent to be a member of the audience who may not be able to pay full attention at all times?
12:52 masak sure.
12:53 pjcj thanks :)
12:53 masak added you to https://github.com/perl6/mu/​wiki/perl6-workshop-may-2013 :)
12:53 atroxaper Oh. I'm not so good communicative, but i would be happy just listen your course, Masak. Could you add me to audience list?
12:54 * sjn has sent a schedule update to Oslo.pm
12:54 FROGGS joined #masakism
12:54 moritz_ joined #masakism
12:54 FROGGS wow, quiet full here
12:54 mxey joined #masakism
12:56 masak atroxaper: added.
12:56 masak FROGGS: full, but hardly quiet :P
12:56 atroxaper masak, thank you.
12:57 mxey According to the announcement, I am hereby proclaiming that I wanna participate. :)
12:57 moritz_ ... as the prophecy predicted.
12:58 masak mxey: neato! I added you to https://github.com/perl6/mu/​wiki/perl6-workshop-may-2013 :)
12:59 Cybelechild joined #masakism
13:00 masak T minus 3 hours.
13:05 b34bb_H joined #masakism
13:06 b34bb_H #masakismI would like to participate in this workshop
13:08 masak awesome. I added you to this list: https://github.com/perl6/mu/​wiki/perl6-workshop-may-2013
13:09 masak b34bb_H: we'll get going in a little less than three hours.
13:09 b34bb_H alright, thank you
13:15 census joined #masakism
13:21 LlamaRider joined #masakism
13:28 LlamaRider Hm, the log page at http://irclog.perlgeek.de/masakism/today seems unresponsive. Also, hi o/
13:28 masak hi, LlamaRider.
13:28 masak yes, perlgeek is down :/
13:28 GlitchMr LlamaRider, known
13:28 GlitchMr Should I put the link to backup in topic?
13:28 masak might as well.
13:29 Topic for #masakism is now https://gist.github.com/masak/5431185 -- logs at http://irclog.perlgeek.de/masakism/today (backup at http://olive.undo.it/perl6/masak0501.txt) -- http://everytimezone.com/#2013-5-1,240,6bj
13:29 masak GlitchMr++
13:30 GlitchMr Those logs are more ugly than moritz's log, but considering his server is down...
13:31 GlitchMr It's better than nothing
13:32 masak T minus 2.5 hours.
13:32 GlitchMr Also, wow, the channels has lots of OPs ;-).
13:32 masak "ops". it's not an acronym.
13:32 GlitchMr Oh, right
13:32 masak but yes, it does :)
13:33 masak the rule is, you get to be op here if you're a regular at #perl6.
13:33 FROGGS uhh, I got op too *g*
13:34 GlitchMr I guess I cannot also call it "OP" because IRC doesn't have command called "OP". It's "MODE +o".
13:34 FROGGS so, my task is to kick random ppl? :P
13:34 GlitchMr ;-)
13:34 FROGGS so there are quasi a lot of mode+o's?
13:34 masak :P
13:35 * masak .oO( aNotre Dumb joke )
13:35 GlitchMr Then again, ChanServ actually calls it "OPs".
13:35 GlitchMr them*
13:36 masak yeah, but ChanServ is a bot, so what does it know? :)
13:36 GlitchMr OP              Gives channel ops to a user.
13:36 GlitchMr Or perhaps it simply isn't consistent.
13:37 GlitchMr Uppercase COMMANDS look better than lowercase commands.
13:37 masak notice that "channel ops" is lowercase.
13:38 masak I think ChanServ uses a kind of poor-man's highlighting by uppercasing its commands.
13:40 GlitchMr I wonder what this workshop will be about ;-).
13:41 Topic for #masakism is now https://gist.github.com/masak/5431185 -- logs at http://irclog.perlgeek.de/masakism/today (backup at http://olive.undo.it/perl6/masak0501.txt) -- http://everytimezone.com/#2013-5-1,240,6bj
13:41 Farow Don't the irc rfcs have the commands in upper case?
13:41 GlitchMr They do.
13:41 GlitchMr In fact, using lowercase commands breaks the spec.
13:41 GlitchMr Not like servers care.
13:44 GlitchMr T minus 2.25 hours
13:45 FROGGS \o/
13:46 masak \o/
13:47 GlitchMr Perhaps I could make a nicer log browser in 2 hours...
13:47 woolfy Could some op mark me as audience please. I will not understand much of it, but I sure will watch how this unique experience is going to unfold.
13:48 GlitchMr Sure
13:48 GlitchMr woolfy, done
13:48 woolfy GlitchMr thanks
13:49 masak woolfy: why do you say you will not understand most of it? :)
13:49 masak s/most/much/
13:50 GlitchMr That could be actually an interesting challenge. Make the logs appear nicer in the browser, within 2 hours.
13:50 woolfy masak, because I am a poor programmer, as in my programming skills are poor, I don't understand most of your code, etc
13:50 GlitchMr In style of moritz's logs.
13:51 * woolfy therefore is lurker most of the time
13:52 masak woolfy: well, for these four hours, *any* desire to improve is by definition on topic. so feel free to join in at any point you want.
13:57 LlamaRider GlitchMr : Maybe find a JavaScript IRC syntax highlighter and ram it on top of that file? I'm considering doing that with Firefox+Greasemonkey but there wasn't that much backlog in the end.
13:58 GlitchMr I'm going to make a script for that anyway.
13:58 GlitchMr The current logs are simply symbolic links to files ZNC generates.
13:59 moritz_ GlitchMr: not a challenge. The code is all open source, you just an apache to run it
14:01 GlitchMr Would it work with ZNC?
14:01 moritz_ I don't even know what ZNC is
14:01 GlitchMr It's a bouncer
14:02 gati joined #masakism
14:02 GlitchMr Because I think that your script reads the logs in specific format.
14:02 masak gati: greetings.
14:02 gati hi everybody ;)
14:02 moritz_ GlitchMr: it assumes a mysql backend, yes
14:03 ajr joined #masakism
14:03 masak T minus 2 hours.
14:05 masak Guest5462: oh hai.
14:05 Guest5462 Hello, I was Guest66708
14:10 masak you Guests all look alike to me.
14:13 masak Guest5462: the downgrading from 'ajr' to 'Guest5462' happens when you try to take on a nickname that's held/registered by someone else.
14:14 espent joined #masakism
14:14 Guest5462 I used to use both ajr and guru, but when I try to, they won't authenticate. I don't know enough to trouble-shoot the issue, and at the moment my identity doesn't matter much anyway.
14:17 Jt___ joined #masakism
14:18 masak espent: Jt___: greetings.
14:18 masak Guest5462: oh, ok. it would help if you had a real nickname, but I find I don't care enough to force you to pick one. :)
14:20 Guest5462 Don't blame you. :-)* I'll try to lurk, mostly.
14:20 Jt___ Hi masaki I will just lurk ;)
14:22 lizmat T minus 100 minutes
14:22 lizmat 98 actually
14:23 masak ;)
14:23 masak welcome, lurkers.
14:28 GlitchMr http://olive.undo.it/viewlog.php​?channel=masakism&time=0501
14:28 GlitchMr Lame, I know.
14:28 timotimo masaktime!
14:28 GlitchMr The interface could be better. But it's better than raw logs.
14:31 masak timotimo: not quite yet. it's T minus 90 minutes. :)
14:31 census i don't mean to be rude: but i can follow the log at http://olive.undo.it/viewlog.php?channel=masakism ?
14:31 GlitchMr Sure :-).
14:31 moritz_ it's a public website :-)
14:32 census ok good :)
14:32 masak census: you're not rude -- do you mean that you don't want to be with us here on the channel? :)
14:32 census no!
14:32 masak then it's defeintely not rude :)
14:32 census i'm having a repairman come over sometime between and now and the next 3 hours
14:32 census so he'll probably have to shut my power off for a few moments
14:32 GlitchMr I just wanted to make something nicer than raw logs.
14:32 timotimo masak: it said in the url: "masakism&time", so i read "masaktime"
14:32 masak timotimo: oh! :)
14:33 GlitchMr PHP, because too lazy to use anything else.
14:33 masak census: I will have to disappear for ~30 minutes, too, to get food.
14:33 tadzik joined #masakism
14:33 GlitchMr Hi, tadzik
14:33 tadzik hi
14:33 tadzik is it The Time? :)
14:33 GlitchMr I would use Perl 6, but my server isn't good enough for that.
14:33 GlitchMr tadzik, not yet
14:33 GlitchMr 1 hour and 30 minutes
14:33 tadzik 1.5 yet, iirc
14:33 tadzik right
14:34 felher GlitchMr: quite nice for quick hack, though :)
14:34 GlitchMr I still have to improve colors.
14:34 GlitchMr Currently I use lame hack of taking substr() of MD5.
14:35 FROGGS hmmm, good enough I'd say
14:36 GlitchMr Before I will put it into topic, I'll hide .php extension first.
14:36 PerlJam good $localtime all
14:37 FROGGS PerlJam: o/
14:38 Topic for #masakism is now https://gist.github.com/masak/5431185 -- logs at http://olive.undo.it/log?channel=masakism -- http://everytimezone.com/#2013-5-1,240,6bjAls,o
14:40 GlitchMr Now all I need to do is implementing links to go back and forward in the time.
14:41 * PerlJam may have to miss most of The Event because of an AC unit installation (maybe)
14:53 Farow What's the asterisk before someone's name in the log?
14:53 GlitchMr /me
14:54 GlitchMr Should've probably made it cleaner, but whatever.
14:54 * moritz_ demonstates an action, which is usually indicated with a leading asterisk
14:54 Farow I feel that his has been aswered before.
14:55 GlitchMr Perhaps I should put nick in message then, and leave nick empty, not sure
14:56 moritz_ GlitchMr: IME that's inefficient usage of space
14:56 GlitchMr Hmmm, indeed
14:57 GlitchMr /me is difficult to deal with
14:57 GlitchMr hmmm...
14:57 Farow Maybe convert it to italics?
14:57 moritz_ my logs display it with leading asterisk, and in italic
14:57 GlitchMr ok
14:57 GlitchMr I will do that
14:58 GlitchMr moritz, done
14:59 GlitchMr Perhaps I also should align nicks right
14:59 GlitchMr T minus 1 hour
14:59 moritz_ GlitchMr++
15:00 GlitchMr The logs are quick hack anyway.
15:00 GlitchMr I just want working logs, in case somebody will come here late.
15:00 moritz_ I hope to have mine up in a few days again
15:01 masak T minus 60 minutes.
15:02 GlitchMr masak, ;-)
15:02 PerlJam GlitchMr++  (I'd be thankful for the logs if I have to miss)
15:02 masak moritz_: sounds like at this point you know why your host is down...
15:03 trexy joined #masakism
15:03 GlitchMr Hi, trexy
15:03 trexy HI
15:04 trexy this looks like the place for the workshop - looking forward to it
15:04 GlitchMr It will be soon. Very soon.
15:04 GlitchMr 55 minutes.
15:04 GlitchMr Well, and few seconds.
15:05 PerlJam Is the countdown going to swith to 10 or 5 minute increments now?  :)
15:05 trexy ok - will try and get my environment set up (need to install rakudo etc)
15:05 GlitchMr trexy, on Windows, we have installer. On Linux, compile from source.
15:06 GlitchMr (I wouldn't recommend using Rakudo in repositories, it's usually old - the only exception I know of is Arch Linux)
15:06 trexy ok - will be ubuntu linux here
15:06 GlitchMr Ubuntu? Compile then.
15:06 trexy yep - ok
15:06 GlitchMr You can even compile it to home directory, if you want to.
15:06 FROGGS https://launchpad.net/ubuntu/+source/rakudo
15:06 GlitchMr https://github.com/rakudo/star
15:06 GlitchMr Or that
15:07 FROGGS saucy salamander is up-to-date
15:07 FROGGS if somebody uses that
15:07 GlitchMr I didn't even knew we have repository for Ubuntu.
15:07 temp12 joined #masakism
15:07 FROGGS ya, I'd like to create these packages for precise and oneiric...
15:07 GlitchMr Still, 2012.10 is rather old. Not that it's very old, but still.
15:07 FROGGS and quantal someday
15:08 GlitchMr It doesn't have few useful features, like syntax errors hints.
15:08 GlitchMr But it mostly works.
15:08 FROGGS ya, that is why I'd like to make up-to-date packages
15:08 FROGGS but I'm lacking knowledge about deb-package-building
15:09 GlitchMr glitchmr@feather ~/rakudo-star/2012.10/bin> ./perl6 -e '['
15:09 GlitchMr ===SORRY!===
15:09 GlitchMr Unable to parse expression in array composer; couldn't find final ']' at line 2, near ""
15:09 Cybelechild joined #masakism
15:09 GlitchMr Newest Rakudo has better error messages.
15:10 * lizmat is wondering whether it is the intention to use Rakudo Star, rather than the latest Rakudo?
15:10 GlitchMr Unless you use dev version of Ubuntu, I would recommend compiling.
15:11 FROGGS GlitchMr: I'm going to ask the guy who made the 2013.01 package, maybe he can give me a batch or so
15:13 masak lizmat: I don't think it much matters. we can handle both. just make sure to use a Rakudo from, say 2013.
15:13 * lizmat has that :-)
15:16 masak T minus 45 minutes.
15:16 masak exciting!
15:17 Cybelechild It's hapening!
15:17 FROGGS it is more like a hypening!
15:18 * masak hypes the thing some more
15:19 linuxer joined #masakism
15:21 tadzik \o/
15:22 GlitchMr Hi, linuxer
15:22 linuxer Hi
15:22 GlitchMr wow, so many people here
15:23 tadzik exactly 64 \o/
15:23 FROGGS *g*
15:23 GlitchMr 2 ** 6
15:23 GlitchMr :-)
15:23 masak 1000000 people!
15:23 FROGGS that makes a good dev channel
15:24 FROGGS we have to kick 31 though if somebody leaves
15:24 FROGGS :/
15:24 GlitchMr why?
15:24 TimToady joined #masakism
15:24 GlitchMr Hi, TimToady
15:24 FROGGS we can't be 63
15:24 GlitchMr Why not?
15:24 tadzik 111111 people is a good number too
15:24 GlitchMr Power of 2 minus 1 is also a magical number.
15:24 FROGGS hmmm, okay, if you say so
15:25 GlitchMr Remember that programmers start counting from 0.
15:25 FROGGS and what is power of two + TimToady?
15:25 FROGGS I guess 'much'
15:25 tadzik that'd be power of three
15:26 moritz_ oh btw, do we want camelia in here?
15:26 FROGGS damn, only 34 minutes left to talk rubbish
15:26 FROGGS no, but would be nice
15:26 GlitchMr »ö«
15:26 GlitchMr Here.
15:27 FROGGS *g*
15:27 tadzik I think we do want camelia in here
15:27 GlitchMr If you refer to IRC bot, yeah, I think so.
15:27 * moritz_ hands GlitchMr the troll hat
15:27 GlitchMr I even have tried inviting it here, but it seems that it won't be so simple ;-).
15:28 camelia joined #masakism
15:28 GlitchMr perl6: say "I have to eval() first :-)."
15:28 GlitchMr hmmm, yeah
15:28 GlitchMr rn: say "eval..."
15:28 moritz_ the first eval always takes ages
15:28 moritz_ I have no idea why
15:28 GlitchMr Strange
15:28 moritz_ $beverage-of-choice to whoever finds out why, and fixes it
15:28 camelia rakudo d2af40, niecza v24-37-gf9c8fc2: OUTPUT«I have to eval() first :-).␤»
15:29 camelia rakudo d2af40, niecza v24-37-gf9c8fc2: OUTPUT«eval...␤»
15:29 * lizmat was worried camelia was suffering from a dead parrot
15:29 GlitchMr camelia often visits #perl6, so it should have op, I think
15:29 tadzik it's probably too late for a bike ride now :)
15:30 lizmat T minus 30 mins
15:30 masak T minus 30 minutes.
15:30 tadzik yep
15:30 lizmat hehe
15:30 GlitchMr T minus 30 minutes
15:30 masak lizmat++ got first :)
15:30 FROGGS tadzik: a midnight bikeride can be cool to
15:30 tadzik sure
15:30 GlitchMr ok, we don't have much time to talk.
15:30 * TimToady hopes masak broght his hickory stick to whack people over the knuckles with when they act like me
15:31 spider-mario joined #masakism
15:31 FROGGS TimToady: so you are going to act like..., like what?
15:32 GlitchMr Like TimToady, I guess.
15:32 TimToady like the wall under the fly on the wall, mostly
15:32 * FROGGS .oO( maybe always saying: you can do it this way too, and that way, and this, but that's weird )
15:32 masak TimToady: I think we'll be happy to have you here ;)
15:33 TimToady we'll see about that
15:34 FROGGS wall under the fly.... took its time -.-
15:34 masak TimToady wants to be another wall in the brick in the wall in the education channel.
15:35 lizmat let he who is with clue throw the first brick ?
15:36 TimToady actually, as a Californian I'm terrified of bricks
15:36 SlimTim10 joined #masakism
15:36 lizmat I thought flying toasters is what scared Californians?
15:36 TimToady the fly even better after all the bricks collapse
15:37 TimToady *they
15:37 Mithaldu oh nice, better logs
15:38 TimToady .oO(GILO)
15:38 masak SlimTim10: oh hai
15:39 GlitchMr Mithaldu, yeah, I've decided to make a script to parse my logs
15:39 Mithaldu cheers :)
15:41 GlitchMr T minus 20 minutes
15:42 SlimTim10 hi masak, I'd like to join the presentation
15:42 isBEKaml joined #masakism
15:42 masak SlimTim10: as a participant? cool.
15:42 SlimTim10 yep
15:42 GlitchMr We fill channel with ops, lol
15:42 Farow masak why do you manually give ops?
15:42 isBEKaml GlitchMr: yeah, too many ops. :)
15:42 GlitchMr We have more ops than non ops.
15:43 GlitchMr Farow, masak gives ops to people that are often on #perl6.
15:43 Mithaldu he has too many cookies
15:43 masak Farow: I guess I could delegate it to a bot, but I don't expect to be doing it after today :)
15:43 GlitchMr No idea why, but still ;-).
15:43 masak let's say we come under attack by griefers.
15:43 masak many ops => solve the problem quicker.
15:43 Farow Doesn't freenode offer chanserv?
15:43 tadzik too many ops on the dancefloor
15:43 GlitchMr It does
15:44 masak ...and I'm using it.
15:44 Farow So why not use it?
15:44 masak I am.
15:44 thundergnat joined #masakism
15:44 sohaeb joined #masakism
15:44 masak oh, you mean to automatically op people in some way?
15:44 Farow Yes.
15:44 masak I haven't learned how to do that.
15:44 masak will investigate when I have time ;)
15:44 Mithaldu they'd need to register anyhow
15:44 masak oh.
15:44 Farow Most are registered.
15:44 GlitchMr T minus 15 minutes
15:44 sohaeb sd
15:45 masak SlimTim10: added you to https://github.com/perl6/mu/​wiki/perl6-workshop-may-2013
15:45 masak T minus 15 minutes.
15:46 GlitchMr Coming soon: this
15:46 dmol masak: I am going to participate too! :))
15:47 masak dmol: added you :)
15:47 linuxer so, how many participants do you currently have?
15:47 GlitchMr linuxer, >>>
15:47 masak linuxer: https://github.com/perl6/mu/​wiki/perl6-workshop-may-2013
15:47 linuxer ah, i see
15:50 GlitchMr T minus 10 minutes.
15:50 GlitchMr It's soon.
15:50 masak indeed.
15:50 GlitchMr 10 minutes = 600 seconds
15:50 isBEKaml Those T minus guys are way too excited than a NASA launch! :P
15:51 lizmat I guess we're almost "We Are 'Go' for Exploration"
15:52 dmol I just have prepared a fresh project in jEdit and ready to rock! :P
15:52 jose__ joined #masakism
15:53 masak jose__: oh hai
15:53 tadzik jedi-it. Best editor ever :)
15:53 masak T minus SEVEN MINUTES.
15:53 jose__ hello
15:53 dmol tadzik: it does not supprots p6 yet :(
15:53 tadzik :(
15:54 * masak crouches like a cat, ready to pounce!
15:54 tadzik well, do you need it to support it?
15:54 LlamaRider I wish there were more editors with Perl6 highlighting support... And I wish I don't get told I should implement it myself every time I say that out loud :D
15:54 sergot I'm back. :)
15:54 masak for those of you who want a sneak preview, six minutes before we begin: https://github.com/masak/workshop#topic-map
15:54 timotimo hehe
15:54 dmol tadzik: syntax hilight is always a plus. Especially on the 1st steps on learning new language :)
15:55 tadzik true, especially if a language is quite complex :)
15:55 Topic for #masakism is now https://github.com/masak/workshop -- https://gist.github.com/masak/5431185 -- logs at http://olive.undo.it/log?channel=masakism
15:55 GlitchMr ok, now that I ran "ntp", I can count the final countdown.
15:55 masak T MINUS FIVE.
15:55 east joined #masakism
15:56 GlitchMr T minus four.
15:56 sergot 5 minutes. :)
15:56 sergot oh
15:56 dmol masak: cool roadmap :)
15:56 masak sergot: that's so one minute ago!
15:56 masak dmol: glad you like it. :D
15:56 newguy joined #masakism
15:56 * east greets fellow Perl people and bots!
15:56 GlitchMr Hi, east.
15:56 GlitchMr Hi, newguy.
15:56 Topic for #masakism is now https://github.com/masak/workshop#topic-map -- https://gist.github.com/masak/5431185 -- logs at http://olive.undo.it/log?channel=masakism
15:56 newguy hello
15:56 suhaib joined #masakism
15:56 GlitchMr Nice, topic map :-).
15:57 masak T MINUS THREE.
15:57 GlitchMr I wasn't careful, lol
15:57 GlitchMr Hi, suhaib
15:57 * felher really hopes he will be able to stay util the end :)
15:57 * PerlJam is still expecting fire and smoke at T == 0  ;)
15:57 suhaib GlitchMr: Hey
15:57 PerlJam (or at least *some* kind of explosion )
15:58 GlitchMr T minus two
15:58 GlitchMr suhaib, workshop will begin soon.
15:58 masak PerlJam: or just quiet, eerie silence :D
15:58 Ayiko if people get shot to the moon, I hope it isn't in alphabetic order
15:58 GlitchMr So be prepared for it to begin.
15:58 suhaib GlitchMr: Looking forward for it :-)
15:58 GlitchMr T minus one minute 30 seconds.
15:58 masak Ayiko: *lol*
15:58 hege joined #masakism
15:58 masak hege: oh hai
15:58 Mithaldu jeeze, 74 people
15:59 GlitchMr T minus one
15:59 Mithaldu masak: imagine that in a workshop room :)
15:59 dmol 74 jedies!
15:59 hege Hi all
15:59 masak T MINUS 60 SECONDS.
15:59 GlitchMr I'm glad I enabled displaying seconds in my taskbar.
15:59 ynonperek joined #masakism
15:59 ynonperek hi all
15:59 masak ynonperek: yo.
15:59 GlitchMr I can know when something comes near
15:59 isBEKaml Ayiko: I'm somewhere in the middle, so I'll see you through first. :P
15:59 GlitchMr T MINUS 30 SECONDS.
15:59 masak \o/
15:59 sergot \o/
15:59 masak SO EXCITING
15:59 GlitchMr Everything prepared
15:59 GlitchMr 10
15:59 GlitchMr 9
15:59 GlitchMr 8
15:59 sergot 10 left?
15:59 masak gee, I hope so.
15:59 GlitchMr 7
15:59 GlitchMr 6
15:59 tadzik :)
15:59 GlitchMr 5
15:59 GlitchMr 4
15:59 GlitchMr 3
15:59 GlitchMr 2
15:59 GlitchMr 1
15:59 lizmat r: say "Hello Masakism"
16:00 camelia rakudo d2af40: OUTPUT«Hello Masakism␤»
16:00 GlitchMr Lift off!
16:00 PerlJam DING!
16:00 masak hi, I'm masak. I come from Sweden. I've been doing Perl 5 since about 2001, and Perl 6 since 2005. I love to talk Perl, teach Perl, and learn Perl.
16:00 timotimo FIREWORKS
16:00 felher \o/
16:00 isBEKaml DING!
16:00 sjn \o/
16:00 tadzik \o/
16:00 masak could everyone here just give a short one-line presentation of themselves?
16:00 census hi masak! :)
16:00 dmol \o/
16:00 masak like the one above?
16:00 masak it's nice to know who everyone is.
16:00 masak meanwhile, have a look at this nice subway map: https://github.com/masak/workshop#topic-map
16:00 * masak likes subways! :D
16:00 Farow I'm Farow and I've been doing perl since around 2010.
16:00 GlitchMr Hi. I'm GlitchMr, Konrad Borowski. I come from Poland, and I'm 16 years old. Or something.
16:00 tadzik hi, I'm tadzik. I come from Poland, I've been doing Perl for about 5 years, Perl 6 for about 4. I mostly work on module management in Perl 6. If you'd like to help, poke me
16:01 sjn hi, I'm sjn from Oslo. I'm at the Oslo Perl Mongers meetup today, with a microbrew in one hand and a laptop in the oter
16:01 masak and then start reading over at https://github.com/masak/wo​rkshop/blob/master/intro.md
16:01 census hi i'm census.  I come from the U.S.  I've been doing Perl 5 since February.  I have been using perl mainly to web scrape.  I am an historian who is programming for my research and would love to improve my programming skills.
16:01 lizmat I'm liz mattijsen. Doing Perl (4/5) since 1994, Perl 6 off and on since 2001, more dedicated in the past few months
16:01 timotimo hi, i'm timo. i come from germany and I was doing mostly python when i discovered the fun that is perl6, which i really like, but have not successfully made anything big with so far.
16:01 masak oh, this is so awesome. :D
16:01 * east codes perl since 2000 for fun and since 2008 for money, lives and works in Austria
16:01 mxey mxey here, from Germany. I have been doing Perl 5 on and off for some years now. I also do sysadmin stuff, Ruby and Objective C.
16:01 Cybelechild I'm cybelechild from Copenhagen and have been doing Hello World in Perl since yesterday
16:01 hoelzro I'm Rob Hoelz, doing Perl since 2005
16:01 isBEKaml I'm isBEKaml from India, been doing nothing so far. :P
16:01 dmol I'm dmol from Belarus, experienced java -developer (since 2003) . I'm feed up with java, and going to perl since 2013 :).
16:01 sergot Hi, I'm sergot. I come from Poland. I've been doing Perl 5 for about 4 years, Perl 6 for 1-2 yrs.
16:01 rzm Hi, I'm rzm from Greece using Perl 5 for a couple of years.
16:01 japhb_ joined #masakism
16:01 ynonperek hi, I'm Ynon. I come from Israel. I also teach perl and web applications development
16:01 Mithaldu i've been doing Perl since 2005 in germany and love to do it on windows :)
16:01 wesjdj Hi, I'm Wes. Live near London, been to a few YAPCs and Hackathons, and I hate VB
16:01 tadzik Cybelechild: how is it progressing? :)
16:01 jose__ Hi, I'm from Slovakia, have been using Perl 5 for about 3 years, mainly for system administration and text processing.
16:01 mohij perl sort of newbie from Germany. Lots of interest in p6...
16:02 ynonperek (check out my perl stuff on ynonperek.com)
16:02 PerlJam wow. :)
16:02 LlamaRider hi, I'm LlamaRider, Deyan Ginev. I'm a PhD student in CS from Bulgaria, currently doing cool things at NIST in the US.  Doing Perl5 since 2008, Perl6 on-and-off since 2011.
16:02 Cybelechild tadzik, good I guess...
16:02 TimToady My name is Larry W. and I am a Perlaholic.
16:02 isBEKaml wow, this is a FIREHOSE! :D
16:02 b34bb_H I'm b34bb_H, I come from germany, I have been experimentig with perl since... I don't know, 2009 maybe?
16:02 Ayiko I'm Ayiko, live in Belgium, java programmer, I like perl6 a lot more than Java though
16:02 linuxer hi, I'm linuxer. I am from Germany. I've been doing Perl 5 since beginning of 2000 and no Perl 6. I use Perl 5 for private and administration tasks.
16:02 geekosaur joined #masakism
16:02 sivoais I'm sivoais. I'm in Houston, Texas (US) and I've been using Perl 5 since 2008 and I've been dabbling in Perl 6 on the side.
16:02 * felher is a CS student from germany, has just finished his bachelor and is now well on his way to master. I'm doing Perl6 for quite a while now, but know quite a few other languages too
16:02 sergot masak: your subway map is bigger than the one in Warsaw...
16:02 grondilu I'm grondilu, been learning perl as hobby for a few years
16:02 suhaib so many Germany users here :-S
16:03 masak sergot: yes, I know :)
16:03 GlitchMr The subway in Warsaw is really small.
16:03 * nvb is doing perl since 2002 in vienna, austria
16:03 PerlJam Scott Duff, perl user since 1992 when pmichaud introduced me to Perl 4.  Perl 5 user since 1996 or so and a Perl 6 user since "the beginning" :-)   Perl is my favorite language and community.  :)
16:03 cognominal I am Stéphane Payrard, a french mongueur (sic), working on a DSL to generate ASTs for nqp
16:04 * PerlJam is also known as "duff" or "perlpilot" depending on the forum
16:04 spider-mario I study math in France (at the INSA de Rouen), I’ve been using Perl for only one or two years, beginning with Perl6 and then finding out Perl 5 had much of what I liked in Perl6
16:04 japhb_ Geoff Broadwell, Perl user (and often evangelist) since Perl 4 and Rakudo developer
16:04 spider-mario (so, somehow, Perl6 brought me to Perl 5)
16:04 * sergot went to get something to eat
16:04 masak ok, I'm now going to randomly pick two exercises out of a hat^W^WRakudo. the first one to hand in *anything* on those two exercises wins an amazon book of their choice, worth about 20 EUR.
16:04 masak done.
16:04 * TimToady is also known as "What idiot thought that was a good idea?"
16:05 * geekosaur is Brandon Allbery, perl since 1989 (perl 3.0.0)
16:05 masak I won't tell which exercises are thus booby-trapped, that's for you to discover :)
16:05 masak I also plan to collect everyone's code in a gist somewhere.
16:05 GlitchMr Sounds interesting.
16:05 rogerovo joined #masakism
16:05 GlitchMr I'm going to prepare my text editor.
16:05 labster I'm Brent Laabs, a Californian.  I've been using Perl off and on since 2000, but spent the last few years getting more into the language.  I've just written a few modules in Perl 6
16:05 masak if you "hand in" code, feel free to do so through gist.github.com -- it's a nice way to send code across IRC.
16:05 hege hi I am hege from Budapest, Hungary. I am working as telecommunication software engineer. I haven't used perl too much in the last Hew years but I'm a huge fan of Perl5 and perl6.
16:05 masak and then I can link to it.
16:06 TimToady does the code have to work?
16:06 GlitchMr By PM?
16:06 masak TimToady: no.
16:06 mohij say "Hello world!";
16:06 masak GlitchMr: by PM or publicly on the channel, depending on how shy you are.
16:06 GlitchMr ok
16:06 PerlJam mohij wins!
16:06 mohij seems like a wrong solution to about any problem but might fit...
16:06 cognominal [18:02]  <TimToady> My name is Larry W. and I am a Perlaholic.  ==> :)  masakism, is not a 12 steps progra, it is hardly the place to cure your addiction
16:06 GlitchMr say "Hello, world!"
16:06 GlitchMr I won without semicolon.
16:06 masak I will announce the winners of the booby-trapped exercises as soon as they trigger.
16:07 tadzik hm
16:07 blkcat joined #masakism
16:07 tadzik r: say (^1, *+*, ... *)[^20]
16:07 camelia rakudo d2af40: OUTPUT«[31m===[0mSORRY![31m===[0m␤Comma found before apparent series operator; please remove comma (or put parens\n    around the ... listop, or use 'fail' instead of ...)␤at /tmp/GxX71t2tBE:1␤------> [32msay (^1, *+*,[33m⏏[31m ... *)[^20][0m␤»
16:07 tadzik r: say (^1, *+* ... *)[^20]
16:07 camelia rakudo d2af40: OUTPUT«get_attr_str() not implemented in class 'Coroutine'␤current instr.: 'print_exception' pc 111625 (src/gen/CORE.setting.pir:50165) (src/gen/CORE.setting:9744)␤called from Sub '' pc 168 ((file unknown):93) (/tmp/50dA2lTina:1)␤called from Sub '' pc 138975 (src/gen/CORE…
16:07 masak tadzik: please submit rakudobug.
16:07 tadzik when did that break /o\
16:07 * tadzik submits rakudobug
16:08 masak oh, and I've prepared a lot of material for today. I hope it's enough.
16:08 ggoebel o/
16:08 benabik joined #masakism
16:08 tadzik r: say (1, 1, *+* ... *)[^20]
16:08 camelia rakudo d2af40: OUTPUT«1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765␤»
16:08 PerlJam masak: plans are often useless, but planning is essential.  No plan survives contact with the enemy.  Et cetera.   :-)
16:08 masak I know it sure isn't perfect. I've tended to do Perl 5/Perl 6 in the expositions and Perl 5 in the exercises. but you're free to implement in whatever language.
16:08 masak PerlJam: yes.
16:09 isBEKaml tadzik: don't you need a step there? something like a stepping integer?
16:09 masak this workshop is *meant* to take place mostly outside of my prepared material. so consider it a spine around which we can collaborate on the workshop itself ;)
16:09 mxey JAPH as the first step? And here I was preparing for writing readable code ;-)
16:09 tadzik r: say (^2, *+* ... *)[^20]
16:09 camelia rakudo d2af40: OUTPUT«0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181␤»
16:09 tadzik there :)
16:09 isBEKaml tadzik: [1,3 .. 100] # something
16:09 tadzik isBEKaml: ^2 is (0,1)
16:09 pmichaud I'm Patrick Michaud; I've been using Perl since 1992.  Good {localtime} everyone.
16:09 tadzik hello pmichaud
16:10 sergot o/
16:10 GlitchMr r: say "Hi, {prompt "Who are you?"}"
16:10 camelia rakudo d2af40: OUTPUT«Who are you?Hi, Land der Berge, Land am Strome,␤»
16:10 isBEKaml tadzik: yeah, but you did '1, *+*' which I believe doesn't quite work that way.
16:10 masak oh, and around 17:30Z I plan to sneak away for some food. I won't be gone for more than 30 minutes, I think.
16:10 Ox6abe joined #masakism
16:11 * grondilu will need to eat as well at some point
16:11 census right now, the time in Z is?
16:11 masak and we've set the limit to 4 hours, but as far as I'm concerned, you kids are free to party all night :)
16:11 tadzik isBEKaml: yeah, ^1 was wrong
16:11 masak census: 16:11.
16:11 census thanks :)
16:11 masak census: 11 minutes after the workshop began :P
16:11 trexy I'm NIgel Hamilton - start up entrepreneur who got into Perl because "it just worked" 17+ years and has stayed since - avid #perl6 log lurker and general fan of Perl6
16:11 Guest5462 Canada Programming since 1967, Perl since 1996 because I enjoyed the Pink Camel so much, taught P5, followed 6 until I was terminally confused
16:12 newguy I'm a undergrad from south europe trying to get into perl. Having done very, very few perl programming, I strongly believe this isn't for me, but I will read and learn from seeing good examples and solutions.
16:12 masak trexy: Nigel! nice to see you!
16:12 PerlJam Guest5462: confusion is the natural human state  :)
16:12 benabik_ joined #masakism
16:13 Guest5462 The key to programming is not confusing yourself more than necessary
16:13 Ox6abe I have never used perl before. My friend sivoais has asked me to come!
16:13 PerlJam like anything else, you're working against the arrow of entropy
16:13 Ox6abe Only ruby
16:13 spider-mario I’ve found that learning Lojban seems to help, somehow
16:13 GlitchMr So much happens.
16:14 PerlJam Ox6abe: welcome!   Ruby "feels" a lot like Perl to me even though the syntax is very different
16:14 apv joined #masakism
16:14 PerlJam Ox6abe: I don't know if that feeling works the other way for Ruby people though
16:14 GlitchMr Ruby actually took lots of Perl syntax.
16:14 Ox6abe PerlJam: I'm excited then. Thanks PerlJam
16:14 isBEKaml Guest5462: I'd say the key to programming is unravelling confusion when it presents itself. :)
16:14 masak Ox6abe: welcome.
16:14 spider-mario ruby doesn’t have `my`, though
16:14 spider-mario thus, scoping doesn’t work the same way
16:14 tadzik #117825 -- first bug of today's #masakism
16:14 GlitchMr Yeah. I really miss "my" in other programming languages.
16:14 geekosaur (and then jettisoned most of it by declaring it bad form)
16:15 masak isBEKaml: science is a process which turns confusion into structured questions, and questions into data :)
16:15 GlitchMr "my" allows you to find bugs before you will even run the programs.
16:15 GlitchMr program*
16:15 tadzik r: say "
16:15 camelia rakudo d2af40: OUTPUT«[31m===[0mSORRY![31m===[0m␤Unable to parse expression in double quotes; couldn't find final '"'␤at /tmp/EmO6tZ7S6Q:1␤------> [32msay "[33m⏏[31m<EOL>[0m␤    expecting any of:␤        argument list␤        prefix or term␤        prefix or meta-prefix␤        â€¦
16:15 tadzik r: say "Just another Perl hacker,"
16:15 camelia rakudo d2af40: OUTPUT«Just another Perl hacker,␤»
16:15 isBEKaml masak: exactly, that's what I meant by "unravelling confusion"
16:15 GlitchMr http://www.ruby-lang.org/en/documentation/r​uby-from-other-languages/to-ruby-from-perl/
16:15 hoelzro so...are the exercises up yet? I realize this may be a stupid question, but I didn't see a link to them, and I'd rather not be left behind =)
16:15 tadzik I can now move to the 3rd subawy station :)
16:15 tadzik hoelzro: I think the point is to guess them :)
16:15 masak tadzik: I think you're in the lead ;)
16:15 hoelzro guess from where, though?
16:16 timotimo https://github.com/masak/workshop this list
16:16 isBEKaml r: say "JAPH",
16:16 camelia rakudo d2af40: OUTPUT«[31m===[0mSORRY![31m===[0m␤Two terms in a row␤at /tmp/vG2JDt9e4v:1␤------> [32msay "JAPH",[33m⏏[31m<EOL>[0m␤    expecting any of:␤        postfix␤        infix stopper␤        infix or meta-infix␤»
16:16 hoelzro the mds on the workshop GH
16:16 masak tadzik: now I'm all fascinated, following you around on the map.
16:16 hoelzro ah ha
16:16 tadzik :)
16:16 TimToady well, the first point on the grapsh did say JAPH
16:16 wesjdj_ joined #masakism
16:16 wesjdj_ left #masakism
16:16 wesjdj_ joined #masakism
16:16 GlitchMr r: say "JAPH,"
16:16 camelia rakudo d2af40: OUTPUT«JAPH,␤»
16:16 isBEKaml r: say "JAPH,"
16:16 camelia rakudo d2af40: OUTPUT«JAPH,␤»
16:16 GlitchMr r: use Test; ok 42, "Done";
16:16 camelia rakudo d2af40: OUTPUT«ok 1 - Done␤»
16:16 masak isBEKaml: feel free to submit the error you found as LTA.
16:17 masak if people want to announce where they are (in order to get help with something, or discuss something), the appropriate format is "I'm at JAPH".
16:18 census wait i'm confused
16:18 census what are we doing?
16:19 LlamaRider r: my @cheesy = 74, 117, 115, 116, 32, 97, 110, 111, 116, 104, 101, 114, 32, 80, 101, 114, 108, 32, 104, 97, 99, 107, 101, 114; say @cheesy>>.chr.join('');
16:19 camelia rakudo d2af40: OUTPUT«Just another Perl hacker␤»
16:19 grondilu r: say "Just an Other Perl hacker"
16:19 camelia rakudo d2af40: OUTPUT«Just an Other Perl hacker␤»
16:19 sjn census: https://github.com/masak/workshop#topic-map
16:20 sergot masak: census asked a good question. :)
16:20 sjn census: start at the left, find the document above, read it, and if there's something to do there, do it :)
16:20 diakopter joined #masakism
16:20 masak sergot: so, there's this repository: https://github.com/masak/workshop
16:20 census do i do it on my own?  or do i post my script somewhere?
16:21 masak sergot: you can find things to do there. the map is supposed to guide you through it.
16:21 census (I'm looking at japh)
16:21 sergot so, just start from intro.md?
16:21 masak census: if you post your script somewhere, like on gist.github.com, we can all talk about it, which is nice.
16:21 masak sergot: yeah.
16:21 timotimo oh, so we're not supposed to start at any exercise
16:21 sergot masak: thanks!
16:21 tadzik my roman numbers in Perl 6: https://gist.github.com/tadzik/5496321
16:21 masak timotimo: you can do that. but there's an implicit order.
16:21 isBEKaml masak: No, please do - I don't have an email window open (slow connection here)
16:21 tadzik (up to 91, and probably even 99!)
16:22 masak tadzik: you just won a book.
16:22 tadzik \o/
16:22 masak ok, people! tadzik claimed the first book!
16:22 tadzik /o\
16:22 masak there's still a booby-trapped exercise somewhere in there.
16:22 tadzik masak: thank you :)
16:22 Ayiko sub to_roman($n) { 'III'; } # this passes all given tests!
16:22 masak Ayiko: it does :)
16:22 masak Ayiko: good work!
16:22 timotimo i started almost all the way to the right m) at GRAPH
16:23 masak (I only collect gists and similar things. not things on channel)
16:23 masak timotimo: heh :)
16:23 Ayiko no need to collect that sub, if needed I'll recreate it
16:23 timotimo i feel like that png could have had a bigger size or maybe a vector version of it instead
16:23 Mithaldu timotimo: ctrl + mouse wheel
16:24 Mithaldu or + if you're on an amiga
16:24 masak timotimo: there is a vector version, in the svg/ directory
16:24 timotimo oh, neat
16:24 masak :D
16:24 isBEKaml Mithaldu: this is the first time I see amiga mentioned on IRC. :)
16:24 masak things that people have sent so far: https://gist.github.com/masak/5496294
16:24 timotimo github won't give it to me as an actual image file, though
16:24 masak timotimo: try "Raw".
16:25 tadzik newcomers: who wants to publish their first Perl 6 module?
16:25 masak oh, that shows the SVG text :/
16:25 Mithaldu isBEKaml: http://www.youtube.com/watch?v=8fJku_Q8ESE
16:25 tadzik I can guide you through that, we can submit the roman thing to our Perl6 CPAN-thing,
16:25 tadzik which is http://feather.perl6.nl/~sergot/modules/
16:25 sjn masak: second link on the page you just linked is bad
16:26 spider-mario r: my $n = 280498592333870327168239948174​3033703427656749129565173066; say join '', gather until $n == 0 {take chr $n % 256; $n div= 256;}
16:26 camelia rakudo d2af40: OUTPUT«Just another Perl hacker␤»
16:26 masak spider-mario++
16:26 tadzik who
16:26 tadzik spider-mario++
16:26 tadzik that's cool :)
16:26 labster r: print $("reHTona tsuj".flip.tclc, Mu.^methods.grep(/p.**2l$/).tclc, "hacker\n");
16:27 camelia rakudo d2af40: OUTPUT«Just another Perl hacker␤»
16:27 sjn spider-mario++
16:27 masak sjn: ok, removing link.
16:27 census so, some of the stops on the subway path are things to code and others are things to read and think about?
16:27 gtodd joined #masakism
16:27 census (i just did japh and now am on test)
16:28 labster I got lazy on the last part, since I wanted to get on to the next tasks, but the gist is here, (with a "use v6;") https://gist.github.com/labster/5496330
16:28 Foxboron joined #masakism
16:28 masak sjn: found it, my bad. it works now.
16:28 tadzik nobody wants fame and glory in the perl 6 ecosystem? Too bad :)
16:29 census labster: is that for real?
16:29 census tadzik: i do :)
16:29 diakopter masak: is this being logged so latecomers like me can catch up?
16:29 census but i'm afraid i don't have the system requirements or something
16:29 tadzik census: want to publish a Perl 6 module?
16:29 tadzik do you have rakudo installed?
16:29 census i dunno.  i'm bad at perl
16:29 census i don't think i have rakudo.  never heard of it
16:29 tadzik doesn't matter
16:29 tadzik my plan is that we can release the code for roman numerals as a modul
16:30 masak diakopter: see /topic
16:30 census labster: is that a joke your code?  does it really output that message? or are those random characters?
16:30 tadzik we don't have a roman module yet
16:30 Algo joined #masakism
16:30 masak Algo: oh hai
16:30 census tadzik: oh cool!
16:30 labster census: scroll up, I already ran it through camelia :)
16:30 tadzik census: want to try that?
16:30 Guest55444 Hi!
16:30 tadzik you will need rakudo for it though
16:30 masak census: yes, it's a joke. that's how JAPH jokes work :)
16:30 census tadzik: maybe yes, but i don;t know rakudo.  i guess it is ok then
16:31 masak census: that is, people come up with fun ways to print that string.
16:31 trexy \o masak
16:31 tadzik census: what OS are you running?
16:31 census masak: are some of othe stops on the subway just things to read (i.e. no script to right)?
16:31 trexy got a question on "is" in test
16:31 census tadzik: windows xp 32-bit
16:31 spider-mario oh, silly me
16:31 tadzik census: there should be a windows installer, hold on
16:31 spider-mario I could have used [~] instead of join ''
16:31 masak census: lowercase is "just things to read". uppercase is exercises.
16:31 census oh ok, thanks :)
16:32 tadzik census: http://rakudo.org/downloads/​star/rakudo-star-2013.02.msi looks like something for you
16:32 trexy where "is" is? - is it "Cool" - a keyword? how is it hooked in?
16:32 tadzik ping me when you have perl6 running on your system, then we'll proceed :)
16:32 GlitchMr I'm confused, why following code refuses to work
16:32 GlitchMr r: https://gist.github.com/GlitchMr/5496390
16:32 camelia rakudo d2af40: OUTPUT«Usage:␤  /tmp/ZhadazBHrR <value> ␤»
16:32 masak if I miss someone's gist with a solution, please just ping me again. I'm currently bending under the onslaught of privmsgs :)
16:32 GlitchMr r: https://gist.github.com/GlitchMr/5496390
16:32 camelia rakudo d2af40: OUTPUT«XLII␤»
16:32 GlitchMr huh?
16:32 GlitchMr So, it works here, but not on my PC
16:32 labster census: the first part is the characters are reversed, so I do flip, and then .tclc to correct the capitalization.  And the second part is introspecting the Mu object, and finding its .perl method, and printing the name of the method.
16:32 tadzik old rakudo?
16:33 GlitchMr Possibly
16:33 GlitchMr glitchmr@pineapple ~/c/snippets> perl6 --version
16:33 GlitchMr This is perl6 version 2013.02.1 built on parrot 5.3.0 revision 0
16:33 tadzik sounds ok
16:33 census labster: wow, impressive!  i was hoping to learn some p6, but that intimidated me.  hahaha but now i feel less cared
16:33 GlitchMr I get
16:33 GlitchMr glitchmr@pineapple ~/c/snippets> perl6 something.p6 10
16:33 GlitchMr Attempt to return outside of any Routine
16:33 GlitchMr in block  at src/gen/CORE.setting:489
16:33 GlitchMr in block  at something.p6:12
16:34 GlitchMr I'm in subroutine... I've a feeling that for {} had fun with me.
16:34 masak census: this is exactly how it's supposed to happen. first we scare people, then we explain stuff to them :P
16:34 GlitchMr masak, https://gist.github.com/GlitchMr/5496390
16:34 GlitchMr Roman
16:34 labster census: The easy way to do it is, of course, "say 'Just another Perl hacker';" but that's no fun.
16:34 gtodd labster: I like it :-)
16:34 vti joined #masakism
16:34 labster thanks gtodd
16:35 rblackwe_ joined #masakism
16:35 masak GlitchMr: already added you :)
16:35 masak I now have 5 JAPH and 3 ROMAN: https://gist.github.com/masak/5496294
16:35 aldumil joined #masakism
16:36 tadzik I have never written a fancy japh. Hrm
16:36 masak vti, rblackwe_, aldumil: welcome.
16:36 masak tadzik: maybe today is the day you will :D
16:37 tadzik masak: sure :) It's a good day so far
16:37 gtodd masak: why isn't there animated flashing lights for each of the participants that shows where they are on each of the topic nodes
16:37 tadzik gtodd: well volunteered :)
16:37 PerlJam masak: in abstraction.md you talk about "brids" chirping ... we need a spell-check module  :)
16:37 gtodd masak: people would see the race and betting could occur
16:37 census masak: I don't understand the test.md fully.  I think i follow the code.  but I did not see where the actual "test" was that printed out the "ok"
16:37 gtodd doh!
16:37 labster Yeah, this IRC chat needs more special effects!
16:37 masak gtodd: because this is 2013, not 2023 :)
16:37 gtodd masak: :)
16:37 trexy ah ok - just learnt from grondilu's roman answer - use Test - to get to "is"
16:37 census tadzik: ok, i have it downloaded
16:38 masak census: the 'is' prints the 'ok'.
16:38 ynonperek is this a legit solution for Roman ?
16:38 ynonperek use Roman; *to_roman = \&roman;
16:38 spider-mario PLAYLIST reminds me of a program I’ve written which computes the total time of all sound files in a given directory
16:38 spider-mario http://paste.awesom.eu/bv7
16:38 * gtodd meant betting using bitcoin and just for fun ... disclaims all damages etc etc
16:38 tadzik census: does it work? if you open cmd.exe, type 'perl6'?
16:38 masak ynonperek: yes, of course it is. you lazy person! :P
16:38 ynonperek masak cool next :)
16:38 tadzik :D
16:38 masak :P
16:39 grondilu isn't there a sentence missing at the beginning of https://github.com/masak/works​hop/blob/master/end-weight.md ?
16:39 gtodd masak: seriously ... this is fantastic even without the lights ;)
16:39 tadzik oooh, an idea. Japh constructed from caught rakudo exceptions and parts of their error messages
16:39 * geekosaur notes that he's just auditing this course; no guarantee of being able to participate properly because things just love to come up...
16:40 census tadzik: it did not work.  but that is ok, i just lookd at roman.  i realize it is not a hard program, but i think i will struggle enough with it in p5
16:40 ggoebel geekosaur: I'm same position... putting out fires are work atm
16:40 tadzik "hacker" may be hard to find though
16:40 census although i could do it in stata :)
16:40 census maybe i could do it in p5 no problem :)
16:40 tadzik census: okay, have fun :)
16:41 apv joined #masakism
16:41 census tadzik: sorry i'm being wishy washy.  maybe i would like to try
16:41 census i typed perl 6
16:41 tadzik census: no worries :)
16:41 census the output i got was: SORRY! Undeclared routine: perl used at line 1
16:41 masak geekosaur, ggoebel: ok, adding you both to "audience".
16:41 tadzik that sounds about correct :)
16:41 tadzik r: perl 6
16:41 camelia rakudo d2af40: OUTPUT«[31m===[0mSORRY![31m===[0m␤Undeclared routine:␤    perl used at line 1␤␤»
16:42 tadzik you have a working Perl 6, congratulations :)
16:42 census yay!
16:42 census so do i write a script just like i would in perl5, excpet write use p6; up top ?
16:42 isBEKaml census: use v6, yes
16:43 gtodd wow "Tell, Don't Ask" sounds cool
16:44 census masak: how do i submit the code to you?
16:44 masak census: put it on gist.github.com and send me the link.
16:44 gtodd so Tell, Don't Ask is a task or ....
16:45 mxey masak: A clickable subway map would have been handy, I repeatedly click on the image although I already noticed that does not work :D
16:46 swalif joined #masakism
16:46 timotimo make a web app, put it up on heroku! :)
16:47 masak mxey: patches welcome!
16:47 labster I'd be done with roman, but apparently I've broken panda on my rakudo branch. :/
16:47 mxey masak: I wonder what the difference is between the green and orange track, they sound vaguely the same
16:47 masak if someone makes a clickable subway map somewhere, I promise to link to it in /topic ! :)
16:47 census masak: https://gist.github.com/census1/5496501
16:48 masak mxey: green is the simplest one, I think.
16:48 census i dont know git well
16:48 masak mxey: I think of the orange one as the "API" one.
16:48 census like that?
16:48 masak census: yes :)
16:48 masak census: nice!
16:48 census (sorry i am slow.  i'm bad with computers.  trying to keep up)
16:48 masak census++
16:48 masak census: no need to apologise.
16:49 gtodd masak: tell-vs.-ask is on the map/image but the task is ... ?
16:49 gtodd masak: what about just adding link info to the svg?
16:50 census tadzik: how would writing the script in p6 differ from p5?  should i try it in p5 first?
16:50 TimToady Gah, writing a screenscraper for http://rosettacode.org/wiki/​Roman_numerals/Encode#Perl_6 is hard!
16:50 masak TimToady: :P
16:50 masak TimToady: taking the easy route, I see. :P
16:51 masak ok, timotimo++ just triggered the second booby-trap, apparently almost by mistake!
16:51 masak (it was on GRAPH) https://gist.github.com/masak/5496294
16:52 tadzik census: it's going to be different in PErl 6 and Perl 5, those are different languages, yes
16:52 tadzik census: doesn't matter what you try first, really :)
16:52 benabik booby-trap?
16:53 tadzik so, I did the Promise exercise, translating tests to Perl 6. It seems to work:
16:53 mxey Funny that test-2 mentions testing in isolation. I just recently decided to go the other way and write tests more like integration tests that work with mostly real objects
16:53 tadzik r: https://gist.github.com/tadzik/5496546
16:53 camelia rakudo d2af40: OUTPUT«ok 1 - Hasn't been fulfilled yet␤ok 2 - Correct state␤ok 3 - Code has been run␤ok 4 - Already correct state␤ok 5 - Code ran immediately␤ok 6 - Hasn't been rejected yet␤ok 7 - Correct state␤ok 8 - Fulfill code didn't run␤ok 9 - Reject code has been run␤1..9␤»…
16:53 census tadzik: sorry!  i don't mean to be such a pain.  i hardly know p5, so i did not know if i could write p5 and just do some new syntax to get it to p6?  i don't want to troulbe you if this is too much
16:53 tadzik census: oh, but you're not a pain! I love helping people
16:53 tadzik census: both languages are quite complex and have their quirks. I'd recommend to not try to learn both at the same time
16:53 masak benabik: I had randomly booby-trapped two exercises with Amazon book prizes.
16:54 masak benabik: those are now both found, far too early in the workshop :P
16:54 sivoais masak: https://gist.github.com/zmughal/5496547
16:54 * masak looks
16:54 tadzik masak: oh, what was the other one?
16:54 sivoais :-)
16:54 spuelrich joined #masakism
16:54 sjn hey, I'm at ROMAN; how do I make my ROMAN.t's call to to_roman() in ROMAN.pm work? Looks like I need to explicitly export that sub somehow...
16:54 masak tadzik: GRAPH, see gist
16:54 tadzik cool
16:54 masak sjn: Perl 6? yes.
16:54 sjn masak: yes
16:54 masak sjn: 'sub roman($n) is export'
16:54 tadzik wow, that's pretty big
16:55 masak sivoais++ # nice!
16:55 FreezerBurn joined #masakism
16:55 tadzik sivoais: hehehe, that's neat :)
16:55 masak FreezerBurn, spuelrich: greetings.
16:56 FreezerBurn Oi mates
16:56 tadzik hello
16:56 tadzik masak: did you see my Promises?
16:56 masak tadzik: just added it to the gist. looking at your code now :)
16:56 tadzik :)
16:57 masak feel free to highlight me when you do code submissions :)
16:57 tadzik I started reading the description first, and then I just made it pass tests :)
16:57 masak my brain is melting, but I love you all :>
16:57 tadzik this is amazing
16:57 masak glad you like it too :)
16:57 sergot ech.. make install with parrot doesn't work... "Can't write-open packfile-c.pod: access denied at /usr/lib64/perl5/5.12.4/Pod/Perldoc.pm line 1597"
16:57 sergot I'm root. What can I do?
16:57 tadzik huh
16:57 masak sergot: please ask #parrot for help.
16:58 sergot masak: :(
16:58 FreezerBurn Is this the study group for "Learn python the hard way"
16:58 masak I'm sorry, Parrot build errors are outside the scope of this workshop...
16:58 grondilu I'm at GOLF.  I get a "variables will not stay shared" error:  http://paste.siduction.org/20130501165805
16:58 masak FreezerBurn: heh, cute.
16:58 * masak hugs FreezerBurn ;)
16:58 FreezerBurn :D
16:58 tadzik FreezerBurn: similar, but not python, and no "now type print('a') 40 times until you remember" ;)
16:58 masak grondilu: looking.
16:58 grondilu (in diagonal_clash)
16:59 sergot masak: I know, but I thought it is something easy :)
16:59 masak grondilu: I know what it is.
16:59 census by the way masak this is incredible
16:59 masak \o/
16:59 census so well organized and the subway map rocks
16:59 masak grondilu: it's the nested sub.
16:59 grondilu I thought it would work
16:59 pmthium joined #masakism
16:59 masak grondilu: in Perl 6, it works without a hitch.
16:59 masak grondilu: in Perl 5, you need 5.16 or something to get 'my sub', then it works.
17:00 grondilu ok
17:00 mxey Lexical subs are coming with 5.18, AFAIR
17:00 FreezerBurn Hmm time for lunch
17:00 masak mxey: oh! even that :/
17:00 FreezerBurn what to eat
17:00 isBEKaml how do I set an enum like thing in p6?
17:00 TimToady subs, obviously
17:01 mxey You can just use an anonymous sub in a lexical variable, ofc
17:01 masak FreezerBurn: are you going to participate, or just contribute noise?
17:01 masak mxey: oh, there we go. hear that, grondilu?
17:01 isBEKaml enum foo { A, B, C , D} ??
17:01 tadzik isBEKaml: see https://gist.github.com/tadzik/5496546
17:01 masak isBEKaml: I wouldn't use {} there.
17:02 grondilu masak: can I golf it in Perl 6 ?
17:02 masak grondilu: by the way, that code looks smaller, but it can be made *much* smaller still :>
17:02 masak grondilu: oh, sure!
17:02 masak you're meant to choose whichever.
17:02 TimToady r: enum Meta <Foo Bar Baz>; say +Baz
17:02 camelia rakudo d2af40: OUTPUT«2␤»
17:02 isBEKaml tadzik: heh, that *was* the exercise I asked enums for! :)
17:02 tadzik isBEKaml: haha :)
17:02 tadzik isBEKaml: hope I didn't spoil it for you :P
17:03 isBEKaml tadzik: now I'm not going to read your solution. :)
17:03 tadzik I think I now understand how promises work. Learned them the hard way :)
17:03 tadzik please don't. But show me yours later so we can compare them
17:03 masak tadzik: your solution looks good as is, but you've missed one thing.
17:03 tadzik masak: the .new() dying?
17:03 masak tadzik: you're supposed to be able to store up 0 or more fulfilled/rejected callbaks.
17:03 masak tadzik: like a queue for each.
17:04 tadzik oh
17:04 tadzik I'll write more tests and fix it, thanks :)
17:04 masak tadzik: that may not have been clear from the instructions. certainly not from the tests :)
17:04 masak tadzik: feel free to patch PROMISE.md too :) I'll give you access :)
17:04 masak tadzik: added.
17:05 labster Finished ROMAN: https://gist.github.com/labster/5496619  I wrote Lingua::Number for Perl 6, so I was definitely going to use the solution I already wrote :)
17:06 masak :P
17:06 * masak looks
17:06 LlamaRider haha labster++ nice :D
17:06 masak short and sweet. labster++
17:06 masak "The best code is no code at all."
17:07 timotimo some may consider this cheating, but that's the kind of cheat you should be allowed to do in "real life"
17:07 masak yes, exactly.
17:07 masak in the Perl 5 world, they call this kind of cheating "CPAN" :)
17:08 labster And that's the first place you should look if you have a problem.  (or modules.perl6.org if you're using Perl 6)
17:08 tadzik masak: gist updated, with tests :) Will patch PROMISE.md too
17:08 masak tadzik++
17:10 sergot Hm, how does diamond operator work in p6?
17:10 temp14 joined #masakism
17:11 gtodd joined #masakism
17:11 timotimo no, you call lines() instead
17:11 masak sergot: $*IN.get or just get
17:11 masak heh. :)
17:11 sergot thanks!
17:11 masak both are correct.
17:11 masak depending if you want one line or all of them.
17:12 gtodd masak: working on an svg  map :-)
17:12 masak \o/
17:13 tadzik masak: PROMISE.md updated
17:13 tadzik I'll write a Perl 5 version to verify if I translated the tests correctly :)
17:14 labster r: say <green orange light-blue>.pick;  #which route should I take
17:14 camelia rakudo d2af40: OUTPUT«orange␤»
17:14 census masak: i hope you won't be offended but i'll need some breaks.  there is only so much perl learning i can handle in once.  and i don't want to feel like i'm slowing anything down.  i will definitely finish.  (i am like sports.  sports teaches about finish what you start! hahah)
17:14 masak tadzik++
17:14 GlitchMr masak, I've problems golfing your code
17:14 GlitchMr I've golfed it to
17:14 GlitchMr sub a{my%s;grep$s{$_}++,@_}sub t{(my$n=shift)>8&&return print"[@_]\n";for(1..8)
17:14 GlitchMr {@b=(@_,$_);next if a@b or grep{$l=$_;$x=0;a map$l*++$x+$_,@b}1,-1;t($n+1,@b)}$"=","}t 1
17:14 GlitchMr But I have no idea what I could do next.
17:14 masak census: no need to ask forgiveness. take breaks, by all means.
17:15 masak census: this workshop will officially happen for another 3 hours and 45 minutes.
17:15 isBEKaml r: enum FOO<A B C>; say FOO<A>;
17:15 camelia rakudo d2af40: OUTPUT«(Any)␤»
17:15 masak GlitchMr: that looks pretty short already :)
17:15 GlitchMr But it isn't 2 lines with 80 characters.
17:15 masak nope :)
17:15 isBEKaml r: enum FOO<A B C>; say FOO.A;
17:15 camelia rakudo d2af40: OUTPUT«No such method 'A' for invocant of type 'FOO'␤  in block  at /tmp/_HD_3Ey9AE:1␤␤»
17:15 GlitchMr I went beyond limit with 9 characters.
17:16 isBEKaml r: enum FOO<A B C>; say A;
17:16 camelia rakudo d2af40: OUTPUT«A␤»
17:16 isBEKaml r: enum FOO<A B C>; enum BAR<A B C>; say A;
17:16 camelia rakudo d2af40: OUTPUT«A␤»
17:16 isBEKaml how does p6 distinguish between the two?
17:16 isBEKaml r: enum FOO<A B C>; enum BAR<A B C>; say BAR#A;
17:16 GlitchMr r: enum FOO<A B C>; enum BAR<A B C>; say A.perl;
17:16 camelia rakudo d2af40: OUTPUT«(BAR)␤»
17:16 camelia rakudo d2af40: OUTPUT«BAR::A␤»
17:16 Ankorath joined #masakism
17:17 GlitchMr # is for comments.
17:17 GlitchMr It uses "A" from later declaration.
17:17 GlitchMr But I think it should make a warning.
17:17 GlitchMr About redeclaration of symbol A.
17:17 isBEKaml GlitchMr: yeah, I kinda got my wires crossed. :)
17:18 pmichaud GlitchMr: I think the warning should be about ambiguous use of A
17:18 isBEKaml I don't think there should be a warning per se, but that there should be some discriminator.
17:18 GlitchMr glitchmr@pineapple ~/c/snippets> perl6 -e 'my $a; my $a'
17:18 GlitchMr Potential difficulties:
17:18 GlitchMr Redeclaration of symbol $a
17:18 masak isBEKaml: it's supposed to "poison" A if it's imported from two places.
17:18 GlitchMr Well, we already do have warnings for stuff like that.
17:19 pmichaud r: enum FOO<A B C>; enum BAR<A B C>; say FOO::A.perl, BAR::A.perl
17:19 camelia rakudo d2af40: OUTPUT«FOO::ABAR::A␤»
17:19 isBEKaml masak: well, I was thinking of taking A from FOO when I tell it so, even if it's there in BAR.
17:19 pmichaud ^^^ discriminator
17:19 isBEKaml pmichaud: thanks!
17:19 masak isBEKaml: what pmichaud eval'd :)
17:19 masak pmichaud++
17:19 GlitchMr Unless, I have idea how to golf it further.
17:21 mjgardner joined #masakism
17:21 masak GlitchMr: leave it like that for now? good work so far :)
17:21 masak GlitchMr: if you put it in a gist and link me, I'll add it to the growing list of solutions.
17:21 GlitchMr Golfed that to 47 characters.
17:21 mjgardner Sorry I'm late, work silliness.
17:21 GlitchMr use LWP::Simple;eval get"http://git.io/OLFbAA"
17:22 sivoais masak: ROMAN <https://gist.github.com/zmughal/5496721>
17:22 GlitchMr As for gist, https://gist.github.com/GlitchMr/5496713
17:22 * masak looks at both
17:22 Ox6abe joined #masakism
17:22 sergot masak: can onliners have ; in? I mean : "my $s; ... for; say $s;"?
17:22 masak sivoais: nice!
17:22 GlitchMr But I guess that 47 characters solution is cheating
17:23 masak sergot: yes, most of the time you have to, except the last one
17:23 masak sergot: in Perl 5, you can skip it after block }
17:23 tadzik https://gist.github.com/tadzik/5496732 Promises in Perl 5
17:24 Mithaldu tadzik: set the type to perl for highlighting please :)
17:24 tadzik Mithaldu: fixed, thanks :)
17:24 Mithaldu thanks :)
17:24 tadzik I don't use syntax hilighting, so I tend to forget about this :)
17:24 tadzik I found a bug in Moo while translating it :)
17:24 tadzik or maybe a "bug"
17:25 masak do tell.
17:25 tadzik I'd rather if it carp() than warn()
17:25 tadzik Must have an is at /home/tadzik/perl5/perlbrew/perls/perl-5.16.0/l​ib/site_perl/5.16.3/Method/Generate/Accessor.pm line 30.
17:25 mxey given/when is now experimental? When did that happen? :D
17:25 mxey (Running 5.17.11 here for now)
17:25 Mithaldu i do not wish to work without highlighting for the same reason i do not wish to work without my glasses
17:25 masak mxey: that's... news to me too.
17:25 GlitchMr given/when was always experimental in Perl 5.
17:25 mxey OK, the warnings are new thoug
17:25 mxey h
17:26 mxey Now I could either silence the warning or change my code to use ifs, neither of which I really like
17:26 timotimo oh my, i've already spent 1.5h on the GRAPH exercise
17:26 masak haha
17:27 masak ok people, I'm gonna leave you for a while to get some food. you seem to be self-propelled by now. bbi30m
17:27 TimToady mxey: basic problem is that that smartmatching doesn't work very well when the type system is a sloppy as Perl 5's is
17:27 mxey I see
17:27 lizmat timotimo: I'm still stuck with a JAPH
17:27 GlitchMr Take these five programs and render them as oneliners. Be as brief as you can. Be clever.
17:28 lizmat r: my @a=map {.chr},"ahacking".ords;my $b=<7324 14189 9873 5553 17986 12497 5423 7577>;for^8 ->$i{@a[$i]++ for^$b[$i]};$_=@a[].join;s:g/z/ /;.say
17:28 TimToady mxey: the lack of junctional types in particular makes the anding/oring rules arcane
17:28 camelia rakudo d2af40: OUTPUT«(timeout)»
17:28 GlitchMr 1. perl -anE'say$F[2]'
17:28 lizmat alas...
17:29 GlitchMr 2. perl -nE'$s+=$_}{say$s+0'
17:29 timotimo lizmat: i skipped all the way to an exercise that interested me ;)
17:29 GlitchMr 3. perl -nEsay
17:29 GlitchMr I'm so clever
17:30 tadzik timotimo: well, that turned out rather well for you, didn't it ;)
17:30 tadzik (shh! I did the same! :P)
17:30 GlitchMr 4. perl -pe'print"$.. "'
17:30 tadzik well, actually, I did my exercise before I knew there's a list of them
17:31 lizmat masak: https://gist.github.com/lizmat/5496793
17:31 bioevolgenec joined #masakism
17:31 PerlJam mxey: yes, unfortunately smartmatch and given/when will issue a warning in 5.18  and beyond until p5p nail down the proper semantics   (that's what I hear anyway)
17:32 GlitchMr Fifth appears to be slightly complex. I would use flipflop operator to be clever, but I'm not allowed to print START or END.
17:32 * lizmat wonders why there is a Str.ords, and not a Str.codepoints or similar
17:32 mxey PerlJam: So I should avoid using it altogether?
17:32 TimToady mxey: just use  it with literals for matchers, and it should continue to work right for that
17:32 isBEKaml how do I say I need a mandatory param in method signature? sub foo($param!) ? and for optionals: sub foo($param?) ?
17:33 GlitchMr Unless...
17:33 GlitchMr screw performance
17:34 isBEKaml r: sub foo($param!) { say 42 if $param; }; foo();
17:34 camelia rakudo d2af40: OUTPUT«===SORRY!===␤CHECK FAILED:␤Calling 'foo' will never work with no arguments (lines 1, 1)␤    Expected: :($param)␤»
17:34 TimToady isBEKaml: yes, though positionals already default to mandatory
17:34 isBEKaml r: sub foo($param?) { say 42 if $param; }; foo();
17:34 camelia rakudo d2af40:  ( no output )
17:34 TimToady and named args already default to optional
17:34 cognominal isBEKaml, positional parammeter are mandatory by default
17:34 cognominal oops, TimToady beat me to it.
17:34 isBEKaml TimToady: cool, by positional - you mean more than one param or an array/list param?
17:35 lizmat isBEKaml: unnamed parameters
17:36 TimToady positional parameter are the ones that are identified by which position you pass them :)
17:36 GlitchMr 5. perl -ne'/^END$/ and $s = 0; print if $s; /^START$/ and $s=1'
17:36 TimToady i.e. not variadic
17:36 GlitchMr Again, would use flipflops, but they won't work
17:36 isBEKaml TimToady: Ah, I see - thanks!
17:36 isBEKaml lizmat: understood :)
17:37 TimToady flipflops return values that you can use to determine if it's beginning or end
17:37 TimToady the final one has an 'e0' or some such
17:38 tadzik hahaha. My JAPH in Perl 6 is so slow, that on my laptop it prints letter by letter
17:38 swalif @masak http://pastebin.com/4pHYT5LD
17:39 tadzik r: https://gist.github.com/tadzik/5496846
17:39 camelia rakudo d2af40: OUTPUT«Just another Perl hacker␤»
17:39 tadzik masak: ^
17:39 mjgardner left #masakism
17:39 benabik left #masakism
17:39 benabik joined #masakism
17:40 grondilu isn't "my ($n, $values) = @_;' supposed to be the same as "my $n = shift; my $values = [ @_ ];" in perl 5?   It does not seem to be in my GOLF attempt: http://paste.siduction.org/20130501174033
17:41 GlitchMr grondilu, more like my $n = shift; my $values = shift;
17:41 tadzik grondilu: nope
17:41 sergot masak: is this something? https://gist.github.com/serg​ot/5496535#file-oneliners-pl
17:41 mxey masak: https://gist.github.com/mxey/5496860
17:41 grondilu oh yeah, silly of me
17:41 TimToady you're thinking of my ($n, @values) which does behave more like that
17:42 tadzik sergot: do you know flip-flop operator?
17:42 GlitchMr Flip flops confuse me
17:42 sergot tadzik: ?? !! ?
17:42 sergot tadzik: hm, maybe not.
17:42 tadzik sergot: no, ff
17:42 sergot Then no :)
17:42 tadzik like 'say if /start/ ff /end/'
17:43 TimToady (spelled .. in Perl 5, for those who don't know Perl 6 yet)
17:43 sergot tadzik: i dont know ff.
17:44 tadzik sergot: looks like a nice thing for Program 5 in oneliners
17:44 mxey Oh, package blocks, I should use those
17:44 sergot tadzik: thanks for clue/.
17:44 timotimo i may not be catching up to the other contestants, but my solution sure will be nice to use! https://gist.github.com/timo/5496509 (solution to GRAPH)
17:45 Cybelechild And I'm just sitting here doing Romans:)
17:45 GlitchMr So many tasks, not enough time...
17:45 TimToady yes, flipflops were originally added to emulate the semantics of Unixy editors that treat 1,$ as a line number range
17:45 burkean joined #masakism
17:45 GlitchMr Reminds me of p6cc contest entries
17:45 timotimo masak: https://github.com/masak/works​hop/blob/master/end-weight.md - are you missing some text before the "Why?"
17:46 * TimToady wonders if flipflops would be more useful in Perl 6 if defined in terms of smartmatching...
17:46 Guest5462 I think masak's at supper
17:47 GlitchMr Perhaps if we had something like between.
17:47 GlitchMr Also, yeah, I think that implementing it using .ACCEPTS would be good idea.
17:47 GlitchMr Perhaps @input.between('A', 'B')
17:48 GlitchMr Returning (('something', 'something else'), ('other block',))
17:49 isBEKaml r: my @foo=<1 2 3 4>; say @foo.map: { * * 2 };
17:49 camelia rakudo d2af40: OUTPUT«   ␤»
17:49 GlitchMr Because flip flops are some something that could be helpful, but isn't.
17:49 isBEKaml r: my @foo=<1 2 3 4>; say @foo.map: { $^x * 2 };
17:49 camelia rakudo d2af40: OUTPUT«2 4 6 8␤»
17:49 GlitchMr I don't think I've seen flip flop outside of flip flop examples.
17:50 GlitchMr And those examples like always used regexes.
17:50 TimToady since currently flipflops just expect booleans, and smartmatch passes booleans through, current usages would mostly "just work"
17:50 cognominal masak, there is more to Kenya than you think  http://chatley.com/kenya/using/ :)
17:50 sjn hey, what's the simple way of making sort sort numerically?
17:51 tadzik sjn: in which Perl? :)
17:51 GlitchMr sjn, in Perl 5, sort { $a + $b }. In Perl 6, sort.
17:51 sjn <- trying to just use Perl 6 today
17:51 tadzik er, I don't think '+' is the right one :)
17:51 geekosaur p5 is <=>
17:51 GlitchMr <=>
17:51 tadzik <=>, more like
17:51 GlitchMr Right
17:51 sjn GlitchMr: that's wrong :)
17:51 GlitchMr fail
17:51 sjn spaceship operator in P5 :)
17:51 tadzik r: (0, 10).sort.perl.say
17:51 camelia rakudo d2af40: OUTPUT«(0, 10)␤»
17:51 grondilu damn I totally forgot how to do slicing in P5
17:52 sjn isn't default p6 sort asciibetical?
17:52 GlitchMr r: say sort 1, 7, 4, 8, 2, 3, 8, 5
17:52 camelia rakudo d2af40: OUTPUT«1 2 3 4 5 7 8 8␤»
17:52 TimToady grondilu: have to change the sigil to @
17:52 GlitchMr sjn, yep, but only for strings
17:52 isBEKaml grondilu: @arr[0..10]
17:52 tadzik r: (9, 10).sort.perl.say
17:52 camelia rakudo d2af40: OUTPUT«(9, 10)␤»
17:52 thundergnat r: say <1 2 3 4 12 24>.sort +*
17:52 camelia rakudo d2af40: OUTPUT«WhateverCode.new()␤»
17:52 GlitchMr grondilu, @array[3..6]
17:52 grondilu yeah but it's the last index I forgot.  I think -1 will do, right?
17:53 TimToady thundergnat: need colon
17:53 thundergnat oops
17:53 GlitchMr Or parens.
17:53 lizmat r: <9 10>.sort.perl.say
17:53 camelia rakudo d2af40: OUTPUT«("10", "9")␤»
17:53 thundergnat r: say <1 2 3 4 12 24>.sort: +*
17:53 camelia rakudo d2af40: OUTPUT«1 2 3 4 12 24␤»
17:53 tadzik lizmat: those are strings
17:53 geekosaur r: (9, 10).sort.perl.say
17:53 camelia rakudo d2af40: OUTPUT«(9, 10)␤»
17:53 tadzik but you probably know that :)
17:53 lizmat indeed, and therefore sort differently
17:53 tadzik yeah
17:53 tadzik cmp is smart (cmp, right?)
17:54 gtodd joined #masakism
17:54 TimToady n: <9 10>.sort.perl.say
17:54 camelia niecza v24-37-gf9c8fc2: OUTPUT«(val("9"), val("10")).list␤»
17:54 nvb joined #masakism
17:54 GlitchMr r: <9 10>.sort.perl.say
17:54 camelia rakudo d2af40: OUTPUT«("10", "9")␤»
17:54 GlitchMr Niecza is more clever than I've expected.
17:54 TimToady they're strings in rakudo, but IntStr in niecza
17:54 TimToady (IntStr is spec)
17:54 gtodd masak: have an svg with links that work .. at least in chrome
17:55 isBEKaml masak: pastebin.com/sPaJsHwg - my partial solution for Promises. I have no idea if it works. :)
17:55 isBEKaml tadzik: ^^
17:55 * tadzik loioks
17:56 GlitchMr Also, flipflop is sort of nice with line numbers.
17:56 lizmat n: (9, 10).sort.perl.say
17:56 GlitchMr awk 'NR == 5, NR == 7'
17:56 camelia niecza v24-37-gf9c8fc2: OUTPUT«(9, 10).list␤»
17:56 tadzik isBEKaml: you can steal Perl 6 tests from my implementation. Or I can copypaste them for you, so you don't accidentally look at my code :D
17:56 GlitchMr Using awk because I'm a troll.
17:56 lizmat n: (10,9).sort.perl.say
17:56 sjn r: say <1 foo 2 bar 10 baz 20 quux>.hash.keys.sort.perl
17:56 camelia niecza v24-37-gf9c8fc2: OUTPUT«(9, 10).list␤»
17:56 camelia rakudo d2af40: OUTPUT«("1", "10", "2", "20")␤»
17:57 * TimToady kicks GlitchMr in effigy
17:57 GlitchMr n: r: say <1 foo 2 bar 10 baz 20 quux>.hash.keys.sort.perl
17:57 camelia niecza v24-37-gf9c8fc2: OUTPUT«("1", "10", "2", "20").list␤»
17:57 isBEKaml tadzik: since I've already written up something and put it out, I guess it's okay now. :)
17:57 newguy I will read the log later, I now have to go. Thank you again for arranging the time to do this!
17:57 tadzik isBEKaml: https://gist.github.com/tadzik/​5496546#file-gistfile1-txt-L40
17:57 tadzik newguy: thanks for attending, bye!
17:57 newguy left #masakism
17:57 prammer joined #masakism
17:58 isBEKaml tadzik: oh, wow - my solution looks a lot like yours, only that I used containers to push down success/failure tasks. :)
17:58 tadzik yep :)
17:59 mohij @asdf can hold both, arrays and lists, right? arrays can only contain one datatype, right?
17:59 tadzik mohij: the answer to the second question is no
17:59 GlitchMr No
17:59 tadzik there's no 'datatype' in Perl, and thus no constraint
17:59 grondilu I think that will do for GOLF:  http://paste.siduction.org/20130501175903   I guess I suck at golfing
17:59 tadzik as for arrays and lists, how do you distinguish them?
18:00 isBEKaml tadzik: ha ha ha, we both missed the same thing. :)
18:00 GlitchMr It's Perl, not CavakellC#++1.
18:00 isBEKaml tadzik: .new - it's mentioned on the task.
18:00 timotimo hey, the HEX exercise is missing?
18:00 tadzik isBEKaml: what did we miss?
18:00 GlitchMr Perl 6 has some sort of typing, but it's optional.
18:00 GlitchMr Perl 5 doesn't even have typing.
18:01 isBEKaml tadzik: Promises.md - "It should be possible to pass the current state to the constructor...."
18:01 GlitchMr It intentionally doesn't have typing.
18:01 Mithaldu GlitchMr: there is some typing if i remember
18:01 tadzik isBEKaml: sure, that works automagically :)
18:01 GlitchMr Mithaldu, do you mean $ @ %?
18:01 Mithaldu GlitchMr: http://perldoc.perl.org/functions/my.html
18:01 tadzik isBEKaml: you just have to make your $!STATE $.STATE
18:01 sjn r: say <1 foo 2 bar 10 baz 20 quux>.hash.keys.sort.perl # How does one make sort do it numerically here?
18:01 camelia rakudo d2af40: OUTPUT«("1", "10", "2", "20")␤»
18:02 GlitchMr If you mean "my TYPE EXPR", I have no idea how it works. Really.
18:02 tadzik r: say <1 foo 2 bar 10 baz 20 quux>.hash.keys.sort(* <=> *).perl
18:02 GlitchMr But it doesn't provide typing by itself.
18:02 camelia rakudo d2af40: OUTPUT«("1", "2", "10", "20")␤»
18:02 isBEKaml tadzik: the task talks about .state() for getter.
18:02 Mithaldu neither do i, but it exists! :D
18:02 tadzik isBEKaml: that's why I wrote $.state :)
18:02 isBEKaml tadzik: so I figured I'll make them all private.
18:02 sergot masak: there is no HEX.md, or? :)
18:02 Guest5462 What is the significance of d2af40 following rakudo?
18:02 sjn tadzik: is there a way to make hash keys be treated as Int's?
18:02 isBEKaml tadzik: $.state would set it too. :)
18:02 tadzik sjn: sure
18:02 tadzik r: say <1 foo 2 bar 10 baz 20 quux>.hash.keys».Int.sort.perl
18:02 isBEKaml tadzik: the task explicitly says against it.
18:02 camelia rakudo d2af40: OUTPUT«(1, 2, 10, 20)␤»
18:02 tadzik sjn: ^
18:03 sjn hm
18:03 GlitchMr glitchmr@pineapple ~> perl -e 'package Universe {} my Universe $world = [{}, "ee", 9.5, bless {}]'
18:03 GlitchMr glitchmr@pineapple ~>
18:03 thundergnat r: say <1 foo 2 bar 10 baz 20 quux>.hash.keys.sort(+*).perl
18:03 camelia rakudo d2af40: OUTPUT«("1", "2", "10", "20")␤»
18:03 GlitchMr The only thing that typing appears to do in Perl, is enforcing that class does exist.
18:03 GlitchMr Not that useful, IMO.
18:03 tadzik isBEKaml: nope, it won't
18:03 tadzik isBEKaml: would have to be $.state is rw
18:03 isBEKaml tadzik: ah, I forgot about is thingies. :)
18:04 tadzik sjn: same as .keys.map(*.Int)
18:04 tadzik well, not same, » may mess up ordering
18:04 dvj joined #masakism
18:04 tadzik but 1) it's a hash anyway 2) we sort anyway
18:05 mohij @tadzik; http://nopaste.info/16268881b1.html why is it that this breaks if I replace the @mapping to use [ ] instead of ( )? -> Not enough positional parameters passed; got 1 but expected 2
18:05 felher joined #masakism
18:05 tadzik mohij: looking...
18:05 GlitchMr » messes up ordering?
18:05 GlitchMr Huh?
18:05 tadzik GlitchMr: auto-threading
18:05 tadzik it may not come out in the same order
18:05 GlitchMr I know about it
18:06 tadzik mohij: because you'll get an array with one element, being an array
18:06 tadzik so effectively a two-dimensional array
18:06 GlitchMr But it may only mess up ordering if you use it for sideeffects IIRC.
18:06 GlitchMr > (1, 2, 3, 4, 5, 6)».sin
18:06 GlitchMr 0.841470984807897 0.909297426825682 0.141120008059867 -0.756802495307928 -0.958924274663138 -0.279415498198926
18:06 GlitchMr This works fine
18:06 tadzik mohij: () gives you arrays that flatten, [] gives you arrays that don't
18:07 tadzik GlitchMr: well, it's like with hash keys. They _can_ come out in the same order, but you shouldn't rely on that
18:07 * masak is back
18:07 * masak backlogs
18:07 mohij so [ ] is effectively the same as ( [ ] ) right?
18:07 tadzik GlitchMr: by spec, the order can be meesed up
18:07 tadzik mohij: no
18:07 timotimo mohij: you're getting a list with one element which is an array
18:07 tadzik because inside you'll get a non-flattening array agian
18:07 plluksie joined #masakism
18:07 plluksie left #masakism
18:09 GlitchMr tadzik, if the spec could be messed up, it should return a hash.
18:09 gco joined #masakism
18:09 tadzik GlitchMr: why should it?
18:09 GlitchMr Besides, I through that while the » won't cause the code to be executed in order, the result will be always identical.
18:09 GlitchMr (as long code doesn't depend on things like RNG)
18:10 tadzik I think that's the case with ==>
18:11 GlitchMr > (1, 2, 3, 4, 5, 6, 7) ==> print
18:11 GlitchMr 1234567
18:11 GlitchMr huh?
18:11 grondilu ONELINERS:  http://paste.siduction.org/20130501181057
18:11 GlitchMr But
18:11 GlitchMr > (1, 2, 3, 4, 5, 6, 7)>>.print
18:11 GlitchMr 7531642
18:11 tadzik there you go :)
18:11 mxey masak: Regarding PLAYLIST, it says “input format“ there. Should I parse the displayed data, or just copy it into my code?
18:11 grondilu oops
18:12 grondilu ONELINERS (Erratum):  http://paste.siduction.org/20130501181158
18:12 GlitchMr tadzik, I think that >>.print shows that the code isn't ran in exact order, but the result array is always identical.
18:12 mxey wesjdj: Hey I was just looking at your JAPH. Is there a reason you still write out strict although 5.16 implies it?
18:12 tadzik oh, hm
18:13 tadzik maybe
18:13 GlitchMr > sub double($_) { $_ * 2 }; (1, 2, 3, 4, 5, 6, 7)».&double
18:13 GlitchMr 2 4 6 8 10 12 14
18:13 plluksie joined #masakism
18:13 GlitchMr As long you aren't using side-effects, it's safe.
18:13 tadzik does spec say that?
18:13 gtodd joined #masakism
18:14 TimToady Guest5462: d2af40 is part of the crypto hash that identifies that version of rakudo to git
18:14 Guest5462 That makes sense, thanks.
18:14 TimToady Guest5462: git doesn't use version numbers for identity, but a hash of the whole thing instead
18:14 isBEKaml r: sub double { $_ * 2 }; say (1,2,3).map: { &double };
18:14 camelia rakudo d2af40: OUTPUT«double double double␤»
18:14 isBEKaml ha ha
18:14 isBEKaml r: sub double { $_ * 2 }; say (1,2,3).map: { &double($^x) };
18:14 camelia rakudo d2af40: OUTPUT«Too many positional parameters passed; got 1 but expected 0␤  in sub double at /tmp/Zb5NrWAvB6:1␤  in block  at /tmp/Zb5NrWAvB6:1␤␤»
18:15 pjcj mxey: there's no need for it, but it doesn't do any harm either
18:15 isBEKaml r: sub double($x) { $x * 2 }; say (1,2,3).map: { &double($^x) };
18:15 camelia rakudo d2af40: OUTPUT«2 4 6␤»
18:15 mxey pjcj: I know, I am just being curious
18:15 TimToady Guest5462: in functional programming terms, git objects are immutable values that take their identity from their contents, not mutable values that take their identity from their location
18:15 GlitchMr I couldn't find it in spec, but I found some code in spec.
18:15 GlitchMr http://perlcabal.org/syn/S32/Str.html#Str
18:15 GlitchMr .lines».indent.join("\n")
18:16 GlitchMr .indent doesn't have sideeffects.
18:16 tadzik GlitchMr: http://perlcabal.org/syn/S03.html#Hyper_operators
18:16 GlitchMr But this code depends on order.
18:16 tadzik it says Note that hypers promise that you don't care in what order the processing happens, only that the resulting structure ends up in a form consistent with the inputs.
18:16 tadzik TimToady: could you clarify?
18:16 tadzik "consistent form" doesn't quite imply ordering imho
18:17 masak sergot: re https://gist.github.com/serg​ot/5496535#file-oneliners-pl -- programs 2 and 3 can be much shorter :)
18:17 GlitchMr masak, what about 'perl -nEsay' for third?
18:17 masak sergot: for program 5, I think some variant of ff or fff can be used.
18:18 masak GlitchMr: cute!
18:18 * masak keeps backlogging
18:18 nvb joined #masakism
18:18 GlitchMr [17:29:55]GlitchMr3. perl -nEsay
18:18 mohij @tadzik: got it. In fact I can even leave the () off altogether. :-)
18:18 GlitchMr I should make my logs copy&paste friendly
18:18 tadzik mohij: yes :
18:19 tadzik :)
18:19 grondilu about oneliners:  turning a short code into a long one (second part of the task), is  not fun imho.
18:20 TimToady tadzik: it implies same order, along with same hierarchical structure for multi-dimensional things
18:20 GlitchMr I'm going to agree
18:20 GlitchMr What could be perl -pwle 'print "    "' really anyway?
18:21 gco joined #masakism
18:21 tadzik alright
18:21 TimToady it's intuitively obvious :)
18:21 tadzik TimToady: thanks
18:21 mxey masak: https://gist.github.com/mxey/5497143
18:22 GlitchMr Actually, I have entire solution for those expand oneliner tasks.
18:23 TimToady actually, for that particular problem, perl -pwle could just be -pwe
18:23 TimToady or just -pe, since there isn't much to warn about
18:23 masak mxey: just found your BOT solution in the backlog -- looks nice :)
18:23 GlitchMr I'm totally a cheater, but whatever
18:23 GlitchMr perl -MO=Deparse -pwle 'print "    "'
18:23 GlitchMr My solution is that
18:23 * TimToady snerks
18:24 masak hehe
18:24 * masak .oO( because Deparse is how you get maintainable code... )
18:25 fnurk joined #masakism
18:25 fnurk Hello to all
18:25 GlitchMr Then again, I wouldn't use END {} in oneliners.
18:25 GlitchMr But }{
18:25 GlitchMr I like those syntax quirks.
18:26 masak <GlitchMr> So many tasks, not enough time...
18:26 GlitchMr Hi, fnurk
18:26 masak that's by design... :)
18:26 masak fnurk: hi!
18:26 mxey masak: thanks!
18:26 timotimo i lost the link to the gist with all the links. could we put it up on the topic and maybe on the workshop README as well?
18:27 GlitchMr Do you mean https://github.com/perl6/mu/w​iki/perl6-workshop-may-2013?
18:27 masak <timotimo> masak: https://github.com/masak/works​hop/blob/master/end-weight.md - are you missing some text before the "Why?"
18:27 masak timotimo: yes, I was. pushed a new version.
18:28 masak man, github was clearly the right choice for this workshop. :)
18:28 TimToady r: sub double { $_ * 2 }; say (1,2,3).map: &double
18:28 camelia rakudo d2af40: OUTPUT«Too many positional parameters passed; got 1 but expected 0␤  in sub double at /tmp/KcVhrmClIs:1␤  in method reify at src/gen/CORE.setting:5742␤  in method reify at src/gen/CORE.setting:5637␤  in method reify at src/gen/CORE.setting:5637␤  in method gimme at src/ge…
18:28 timotimo GlitchMr: https://gist.github.com/masak/5496294 - this is the one i meant
18:29 TimToady r: sub double { $^x * 2 }; say (1,2,3).map: &double
18:29 camelia rakudo d2af40: OUTPUT«2 4 6␤»
18:29 TimToady isBEKaml: ^^
18:29 TimToady don't need extra {} around call to &double
18:29 TimToady as long as it knows it's 1-ary
18:30 GlitchMr masak, https://github.com/masak/workshop/pull/2
18:30 census joined #masakism
18:30 isBEKaml TimToady: yeah, I was looking for something like that. I didn't like having to pass in $^x in map arguments, but having the function in map pick them off on its own.
18:30 tadzik r: https://gist.github.com/tadzik/5497213
18:30 camelia rakudo d2af40: OUTPUT«Array.new([6, 2], [7, 3], [10])␤»
18:30 tadzik masak: ^ my DSL
18:30 labster https://gist.github.com/labster/5497210  GOLF.  I decided not to go past the point where it was still readable, which I hope is okay.
18:31 GlitchMr Anyway, about "end weight", I use reverse conditional (if or unless), only when dealing with flow control.
18:31 masak <isBEKaml> masak: pastebin.com/sPaJsHwg - my partial solution for Promises. I have no idea if it works. :)
18:31 GlitchMr Just like in the Perl Best Practices book, except I personally have nothing against unless.
18:31 masak isBEKaml: if you have no idea whether something works what famous software artifact can you write/run to find out? :P
18:31 Mithaldu labster: it would be nice if the variable and function names and such were in clear english :)
18:32 isBEKaml masak: yeah, it doesn't - I found out that my API doesn't match the rules, it does things on its own. :P
18:32 labster Mithaldu: Well the point of the exercise is less keystrokes...
18:33 Mithaldu labster: oh, i saw all the intendation and such :)
18:35 masak I just merged both of my pull requests. thanks. love <3
18:35 Tene masak: Have you been following the "polite discussion" about Promises in the Javascript community?
18:35 masak Tene: yes.
18:35 masak Tene: *very* interesting.
18:36 masak there is no HEX.md -- sorry, I screwed up. I'll try to supply it as soon as I've caught up with the present.
18:36 timotimo np
18:37 atroxaper left #masakism
18:37 FreezerBurn left #masakism
18:40 masak I'm backlogging and adding tasks as I find them. if yours is missing in https://gist.github.com/masak/5496294 after I'm caught up, let me know :)
18:42 masak mxey: no, you don't need to parse the input data in PLAYLIST.
18:43 masak mxey: it's meant to be a data structure, a bit like one found in a Spotify-like application.
18:43 n47004 joined #masakism
18:45 dmol masak: What should be done after dry? Should I jump over HEX?
18:46 masak for now, yes. :/
18:47 * masak is caught up with the present
18:47 masak I have 5 privmsg windows to attend to, then I'll add HEX.md :)
18:47 masak should be there way before the workshop is over :)
18:48 masak oh, and LlamaRider++ added links between all the .md files, and pull-reqwust me. so now there's links between everything.
18:48 tadzik r: https://gist.github.com/tadzik/5497390
18:48 camelia rakudo d2af40: OUTPUT«Total time is 19:18␤»
18:48 tadzik masak: ^ playlist
18:49 masak (the pull request was stale because of tadzik++'s addition, but I fetched the repo, rebased locally in a branch, merged with master, and pushed. git is *awesome*.)
18:50 tadzik masak: so, do you have a while to explain the elevator? :)
18:50 gtodd masak: fiddled with links for the svg map and added a pull request for you if you want it :-)
18:50 masak tadzik: no, you can do better than that. the playlist can go for *years*.
18:50 tadzik I may just let my imagination flow :)
18:50 tadzik oh
18:50 masak :)
18:50 labster masak: https://gist.github.com/labster/5497210 GOLF.  You missed it.
18:50 timotimo if i have two lazy gather/take streams and i Z them together, will they be eagerly evaluated? if so, how can i stop that from happening?
18:50 masak labster: thanks, looking.
18:50 masak timotimo: no, they will be lazy by spec.
18:51 labster there's too much whitespace, I know
18:51 GlitchMr masak, dsl in Perl 6 - https://gist.github.com/GlitchMr/5497415
18:51 dmol masak: http://bpaste.net/show/95686/ Promise :)
18:51 masak labster: cool, that's the first Perl 6 golf, I think.
18:51 labster since you have to port it first :)
18:51 TimToady timotimo: the problem with using Z for that is that Z will stop on the shorter list
18:52 GlitchMr /Dynamic/, because it isn't typed exception for some reason.
18:52 masak GlitchMr: DSL looks nice.
18:52 masak GlitchMr: maybe see if you can patch Rakudo to make it a typed exception? :)
18:52 GlitchMr I had to use prefix:<days> hack, because "days" is already something.
18:53 masak oh, sorry about that.
18:53 masak that totally shouldn't be a problem, IMO.
18:53 GlitchMr TimeUnit::days
18:53 masak because lexical scopes.
18:54 GlitchMr Then again, I think I could make it more interesting.
18:54 GlitchMr Perhaps I could try implementing LINQ in Perl 6 for lulz.
18:54 timotimo https://gist.github.com/ti​mo/5496509#file-fringe-pl - i implemented FRINGE, but am not 100% sure my gather/take is actually properly lazy.
18:55 masak timotimo: nice!
18:55 GlitchMr Because, don't get me wrong, what I've done is mostly copy paste from https://perl6advent.wordpress.com/2012/12/20​/day-20-dynamic-variables-and-dsl-y-things/
18:55 masak timotimo: gather { iter-tree($t) } better written gather iter-tree($r);
18:56 masak GlitchMr: :D
18:56 masak GlitchMr: I had forgotten about that one. glad it was useful :>
18:57 GlitchMr The error handling was simply copy of your comment.
18:57 masak no wonder it felt familiar.
18:58 GlitchMr ;-)
18:59 masak anyway, I don't consider that less of a solution just because it was copy+paste.
18:59 * masak .oO( copy+paste is the sincerest form of flattery )
19:00 Tene 11:59  * masak .oO( copy+paste is the sincerest form of flattery )
19:00 tadzik masak: ok, I don't know what you expect of Playlist. Duration seems like a nice thing to use, but it only keeps count of seconds and, frankly, doesn't seem to useful for anything
19:00 masak Tene: :P
19:01 masak tadzik: yeah, we're kinda missing something there in the Perl 6 design, no?
19:01 masak tadzik: like, ability to format durations as 1y2m3d4h5m6s
19:02 tadzik masak: yep
19:02 masak or, better, with spaces in between.
19:02 tadzik I can write a Duration formatter
19:02 GlitchMr Element.new(tag => "p", class="intro", children => [
19:02 masak 1y 2m 3d 4h 5m 6s
19:02 GlitchMr Assigning to class?
19:02 masak tadzik: please do.
19:02 masak tadzik: and then we can talk about spec.
19:02 tadzik okay :)
19:02 masak GlitchMr: oh! fixing.
19:02 tadzik masak: the hard part is that if you want to count months, you need to figure out how long are they
19:03 tadzik it's not like they're always 30 days long
19:03 GlitchMr Perl 6 also complained about ->, but I assume it's Perl 5 code.
19:03 b34bb_H couldn't you just split the string at the :, count seconds and minutes seperate and then add seconds/60 to th minutes (likewise with hours)?
19:03 GlitchMr I'm still going to do it using Perl 6, anyway.
19:03 masak GlitchMr: it's Perl 5 code.
19:03 tadzik b34bb_H: that's what I did so far. We're looking into something more versatile
19:03 masak GlitchMr: feel free to do it using Perl 6.
19:03 GlitchMr Whatever, porting it to Perl 6 is just replacing -> to .
19:03 GlitchMr Even dumb text editor can do that.
19:04 masak b34bb_H: I'm putting the pressure on tadzik to excel, because he's succeeding far too well so far :)
19:04 tadzik :D
19:04 labster c'mon tadzik!  You can do it!
19:04 b34bb_H :)
19:04 tadzik okay, I'll write a Duration formatter up to days
19:04 masak I'm like "shit shit he's actually gonna finish the course!"
19:04 tadzik then we'll think
19:04 tadzik hah, I even had time to eat!
19:04 masak "...in Perl 6!"
19:05 pmichaud if designing a duration formatter, it might also be useful to consider the thoughts in the second paragraph of https://github.com/perl6/specs/issues/13
19:06 Topic for #masakism is now http://freespectrum.herokuap​p.com/workshop-map-links.svg -- https://gist.github.com/masak/5431185 -- logs at http://olive.undo.it/log?channel=masakism
19:06 masak people, check out http://freespectrum.herokuap​p.com/workshop-map-links.svg
19:06 masak gtodd++ # SVG+links
19:06 timotimo you really did put it up on heroku :D
19:07 timotimo pretty cool i must say :)
19:07 Guest5462 Would the duration formatter take leap years into account?
19:08 PerlJam Looks like I missed some interesting stuff while away
19:08 masak Guest5462: only when you apply it to a datetime.
19:08 masak Guest5462: but yeah, it's problematic.
19:08 TimToady "introspection is a code smell" is another form of "tell, don't ask"
19:08 masak Guest5462: I tackled those questions when implementing .delta
19:08 ynonperek masak got the oneliners in p5
19:08 ynonperek https://gist.github.com/ynonp/5497555
19:08 masak TimToady: yep.
19:08 masak ynonperek: looking.
19:09 plluksie left #masakism
19:09 masak ynonperek: oh! we have different definitions of "column". but I accept yours :)
19:09 ynonperek ah sorry will fix
19:09 masak ynonperek: program 2 is clever and I hadn't seen that particular eskimo trick before.
19:09 ynonperek one moment
19:10 timotimo do i have to do something special so that i'm able to wrap a method in an instance of a class?
19:10 PerlJam masak: too clever  :)
19:10 masak PerlJam: yeah well, in oneliners that's "allowed" :)
19:10 ynonperek ah it's the famous abigail's end
19:10 timotimo i wanted to do $instance does role { method storage { $fail = True; "a" } };, but that didn't seem to work.
19:11 mxey meh, I wonder how to create a lazy iterator in Perl 5
19:11 gtodd masak: I used perl to do it ;-) too bad github doesn't host SVG (or images) on their servers or it could just go into the README.md
19:11 gtodd (semi explained in the pull request https://github.com/masak/workshop/pull/3 )
19:11 PerlJam timotimo: s/does/but/
19:11 masak timotimo: should be... just like that.
19:11 timotimo https://gist.github.com/timo​/5496509#file-fringe-pl-L59 - here's my first attempt to make it bomb
19:11 PerlJam oh, /me misread
19:11 * masak looks at pull request 3
19:11 timotimo even if i put but there it won't work
19:12 masak gtodd: merged.
19:13 masak mxey: how to create a lazy iterator in Perl 5: use Moose or Moo. provide a 'next' method.
19:13 timotimo would someone like to try to run it on their machine? (get the ADT module from panda for Extra Joy)
19:13 masak mxey: make the 'next' method not do work until actually asked to.
19:13 ynonperek masak fixed program 1
19:13 ynonperek https://gist.github.com/ynonp/5497555
19:13 ynonperek (now use -ane)
19:13 mxey masak: well, so far it's obvious
19:13 masak ynonperek++ # yes
19:14 masak mxey: really, it's not any harder than that :)
19:14 masak mxey: "iterator" could be either something built into the language, or just a kind of object.
19:14 timotimo i guess the more interesting thing is how to properly manage the state and all
19:14 mxey what timotimo says
19:14 timotimo in the fringe example, it would seem like the iterator would have to hold its own stack
19:15 timotimo from there, it shouldn't be terribly hard
19:15 TimToady timotimo: note that gather/take can work through recursion
19:15 realazthat_ joined #masakism
19:15 timotimo TimToady: yeah, but on perl5 you can't do that :D
19:15 masak mxey: what timotimo said. it should keep track of where it is in the tree.
19:16 mxey Well, there is a gather/take on CPAN :D
19:16 TimToady timotimo: but you can emulate it with a local variable
19:16 masak mxey: doesn't need to be a stack, necessarily. just "where am I".
19:16 timotimo masak: only works if the tree nodes have an "up" pointer ;)
19:17 bsinger joined #masakism
19:17 masak timotimo: ah, yes.
19:17 masak timotimo: if they don't, you indeed need a stack :)
19:17 tadzik r: https://gist.github.com/tadzik/5497390
19:17 camelia rakudo d2af40: OUTPUT«Total time is 6 days, 22 hours, 23 minutes and 29 seconds␤»
19:17 tadzik masak: slightly better playlist
19:17 masak tadzik++
19:17 tadzik it's still stupid though :)
19:18 masak haha "Never Gonna Give You Up" for 10_000 minutes!
19:18 sivoais masak: PROMISE <https://gist.github.com/zmughal/5497614> (still learning Perl 6 OO) :-)
19:18 masak people you all rock
19:18 tadzik masak: I didn't want to let you down ;)
19:19 tadzik sivoais: whoa, did you write that from scratch?
19:19 masak :P
19:19 * masak .oO( practically never gonna let you down )
19:20 masak sivoais++ # seems to be learning Perl 6 OO quite well :)
19:20 census this was amazing!
19:20 timotimo masak: could the way i'm creating the Leaf class in ADT be the cause for my role not working?
19:20 sivoais tadzik: I did look at yours for guidance :-P , but typed it myself to make sure I did the syntax right
19:20 tadzik sivoais++ :)
19:20 masak timotimo: no idea.
19:20 census (even though i haven't been able to finish yet due to external distractions)
19:20 tadzik I thought you just accidentally came up with the same train of thought that I did ;)
19:21 timotimo nope, something entirely different is at fault. the changed storage method is called, but the $fail variable is not set properly ... huh!
19:21 * masak writes HEX.md
19:21 tadzik well, maybe not "accidentally"
19:21 tadzik sivoais: well done :)
19:21 PerlJam masak: Did anyone get to ELEVATOR?
19:21 timotimo a dynamic variable makes it all work out
19:22 tadzik PerlJam: I tried
19:22 timotimo PerlJam: i briefly looked at the description and decided not to do it yet
19:22 tadzik but then masak bashed me on the head with my playlist.pl ;P
19:22 masak PerlJam: no -- did you?
19:22 tadzik if I ever program an elevator, I'll make it skip people who stop an elevator to go from floor 3 to 4
19:22 masak I will do ELEVATOR when I finish with HEX.
19:23 tadzik while I'm going from 0 to 8
19:23 masak but I fear there will not be time... :)
19:23 PerlJam no, I've been away and busy. I was just curious because I had read all of the problems before I left
19:23 tadzik TAKE TEH STAIRS :''''(
19:23 PerlJam tadzik: how do you know who those people are?  (I have an idea, what's yours? :)
19:24 tadzik PerlJam: there'll have to be a button for each floor on the outside-panel
19:24 tadzik so you know in advance how far a person is going
19:24 timotimo tadzik: how do you tell before they have entered?
19:24 PerlJam tadzik++ yep ,that's what I immediately thought of :)
19:24 timotimo tadzik: in that case, just leave out the buttons on the outside :D
19:25 timotimo (and no buttons for floors on the inside either)
19:25 tadzik PerlJam: then you could make the elevator favour people who travel longer
19:25 tadzik and thus encourage taking the stairs
19:25 tadzik win-win
19:25 PerlJam the cost and complexity of the elevator system would go up though.
19:25 timotimo okay, fringe, japh and graph down. what to do next? :)
19:25 PerlJam Probably worth it on tall buildings though
19:26 Cybelechild You could always put an "Out of order" sign on the elevator - much more easier to make people take the stairs. And its easier to program tooo...
19:26 PerlJam Though, I understand that there is some practicaly limit to elevator technology for *really* tall buildings that makes elevators not span the entire height of the building.
19:26 masak :P
19:26 timotimo the "out of order" sign only appears if the person wants to travel just one floor - psychic paper!
19:26 PerlJam s/ly/l/
19:27 Guest5462 What about cleaners, morgue attendants, &c, who have to take a vacuum or a gurney between floors?
19:27 PerlJam Guest5462++
19:27 tadzik good point
19:27 PerlJam frieght elevator
19:27 PerlJam different rules
19:27 Cybelechild On a totally unrelated note - I wan the source-code for psychic paper...or sonic srewdrivers for that matter....
19:27 east PerlJam: to skip lazy people from elevators: it's not possible to get only 1 or 2 levels up, one can only go to floors that are at least like 5 levels up. people will learn quickly.
19:28 labster Cybelechild: or an Eye or Harmony
19:28 labster *of
19:28 masak if you like the idea of psychic paper, check out https://en.wikipedia.org/wiki/Newcomb%27s_paradox -- a bit of a mind-twister.
19:28 PerlJam east: principle of least-surprise would say that you shouldn't provide buttons that don't work.
19:29 east PerlJam: but those buttons will work if you'r far enough away ;)
19:29 masak and in connection with that, http://www.scottaaronson.com/blog/?p=30
19:29 grondilu left #masakism
19:32 labster can't I just flip a coin?  I don't know what I'm going to do, so how can it be predicted?
19:34 * PerlJam wonders if labster had read that far or not
19:34 TimToady not allowing people to take the elevator one floor will simply mean that you'll have twice as much traffic going up and down 5-6 floors to work around it
19:34 labster probably I need to read more :o)
19:34 TimToady (there are actually buildings that are trying this, btw)
19:34 TimToady works well for multiple elevator systems where they can specialize
19:35 TimToady "you do all the even floors, and I'll do all the odd ones" and such
19:35 labster https://gist.github.com/labster/5497694  half of ONELINERs.  Not sure if the last part is a rakudobug or not -- should I be able to do <?before ^^END$$>
19:35 raiph star: sub foo ($n) { my $x = "ff" x 5 div 3; }; }; foo 3
19:35 mxey masak: https://gist.github.com/mxey/5497728
19:35 camelia star 2013.02: OUTPUT«[31m===[0mSORRY![31m===[0m␤Unexpected closing bracket␤at /tmp/Dwv04kRuuA:1␤------> [32mb foo ($n) { my $x = "ff" x 5 div 3; }; [33m⏏[31m}; foo 3[0m␤»
19:35 raiph oops ww
19:35 Ox6abe joined #masakism
19:37 east TimToady: kind of: I work in a building where at lunchtime one can only go up to the top level, where the cafeteria is. One has to make part of a roundtrip to go to levels in between.
19:37 * labster adds 3 more boxes to the table, and then randomly picks two of them
19:37 raiph star: sub to_roman (Int $n) { my $printstring; for <M 1000 D 500 C 100 L 50 X 10 V 5 I 1> -> $roman, $decimal { $printstring .= $roman x $n div $decimal; $n %= $decimal; }; say $printstring; }; to_roman(3)
19:37 camelia star 2013.02: OUTPUT«Not enough positional parameters passed; got 1 but expected 3␤  in sub to_roman at /tmp/hDr9ohQYPv:1␤  in block  at /tmp/hDr9ohQYPv:1␤␤»
19:37 TimToady I mean they're actually trying the thing where each floor gives you the ability to request specific other floors
19:38 mxey masak: “Instead of completely blocking and waiting for the consumer to come back with a result, the producer just leaves its business card, says "you know where to reach me", and gets on with its own code.“ I think producer and consumer are switched here
19:39 raiph masak: i'm starting rather late :) i can see that the div above is getting a string not an int but am otherwise confused...
19:41 east .. and this might be where the guessing starts: what if I pretend to go to level $else, will I catch a cabin quicker? ;)
19:41 masak mxey: indeed. fixing.
19:41 labster Hey, we have 75 people in here, and only 12 JAPH's submitted?  Come on people, this is fun.
19:41 masak people, there's now a HEX.md
19:41 masak sergot, tadzik, PerlJam: I think you advertised oen?
19:41 masak one*
19:42 timotimo oh, it's that game!
19:42 timotimo hm, no, it's not
19:43 east labster: oh right, here's some lazy meta JAPH: $ perl -Mojo -le '@j=split/%%/,g("www.cpan.org/misc/japh")->body; print $j[rand @j]'
19:43 masak timotimo: it's Hex :)
19:43 masak raiph: I'm looking at your eval now.
19:43 masak raiph: I don't immediately see what's up.
19:43 timotimo that reminds me, druid is still not brought up to date with latest perl6 specs :|
19:43 masak :|
19:43 raiph labster: say "Just another Perl hacker" # especially for you
19:43 masak so much to do, so little time.
19:43 raiph masak: i'm trying to golf it
19:43 labster east++
19:44 east :)
19:44 masak raiph: excellent.
19:44 masak raiph: the '.=' is suspect.
19:44 masak raiph: should probably be '~='
19:46 masak I'm going to spend some time writing up ELEVATOR, seeing how far I get.
19:46 masak it's the only missing exercise of the course now. and clearly the most interesting.
19:47 timotimo isn't the course going to end in 15 minutes? :)
19:47 diakopter tricked! it lasts forever!
19:47 PerlJam timotimo: only if you want it to
19:47 timotimo hehe
19:47 PerlJam masak: as soon as you write it up, it will become less interesting  ;)
19:48 timotimo i think i should get some food. i'm feeling a loss of concentration here.
19:49 masak r: my %h = foo => [1, 2, 3]; for %h<foo> { .say }
19:49 camelia rakudo d2af40: OUTPUT«1 2 3␤»
19:49 masak r: my %h = foo => [1, 2, 3]; for %h<foo>.list { .say }
19:49 camelia rakudo d2af40: OUTPUT«1␤2␤3␤»
19:49 masak isBEKaml: ^
19:49 masak PerlJam: ;)
19:49 TimToady r: my %h = foo => [1, 2, 3]; for %h<foo>[] { .say }
19:49 camelia rakudo d2af40: OUTPUT«1␤2␤3␤»
19:50 masak timotimo: my obligations to be on 100% alert end in 10 minutes, yes :)
19:50 masak timotimo: people are free to stick around and party on.
19:50 masak timotimo: I have (paid-for) teaching to attend to tomorrow, but I'll check back in and see how people are doing :)
19:50 PerlJam masak++ btw (for inspiring and engaging people)
19:51 * TimToady read that as "engulfing" for some reason...
19:51 masak east++ # lazy meta JAPH
19:51 east masak++ # so much effort put into this, thank you!
19:51 masak oh, you noticed ;)
19:51 east kind'o ;)
19:52 raiph masak: i had indeed p5ed a couple things and that was stumping me. now i'm getting "not ok 1 - 3 gets converted to III
19:52 raiph #      got: 'True'
19:52 raiph # expected: 'III'
19:52 raiph "
19:52 mxey masak++
19:52 masak I was like "shit shit there are like 20 people signed up instead of just 5 like I expected I have to prepare stuff"
19:52 masak raiph: where's le code?
19:52 raiph will gist
19:53 isBEKaml masak: this is awesome - I guess we should do this once again. :)
19:53 TimToady but is it composable?
19:53 masak :)
19:53 masak isBEKaml: I could do this again.
19:53 masak not sure when.
19:53 timotimo masak: indeed, the effort you put in really shows :)
19:53 GlitchMr How can I remove entries in KeySet?
19:54 GlitchMr .delete doesn't work.
19:54 isBEKaml that's alright - considering the effort that goes into such things, it'd be really nice to space things out. :)
19:54 timotimo GlitchMr: i think you can $foo{$bar} :delete?
19:54 masak if that doesn't work, it's a rakudobug.
19:54 sivoais masak++ # yeah, lots of fun problems!
19:54 GlitchMr I can't
19:54 labster masak++, though it feels like there was too much fun stuff to do
19:54 masak hehe
19:54 GlitchMr masak, https://gist.github.com/GlitchMr/5497868
19:54 GlitchMr pQuery
19:55 raiph masak: https://gist.github.com/anonymous/5497871
19:55 PerlJam labster: Like a good presentation should have some "extra" slides, there should always be "too much fun stuff"  :)
19:55 masak raiph: looking.
19:56 PerlJam raiph: you're returning the result of say
19:56 PerlJam raiph: you should return the string.
19:56 raiph ah. thanks
19:57 swalif joined #masakism
19:57 masak yeah, just discovered that, too :)
19:57 masak 'say' always returns 'True'.
19:57 * d^_^b forgot about the workshop. :(
19:58 GlitchMr Anyway, I've done JAPH.
19:58 GlitchMr https://gist.github.com/GlitchMr/5497892
19:58 PerlJam There's a good lesson here too.   HAd you added returns Str or --> Str to your sub def, rakudo would have caught the error for you
19:58 GlitchMr Enjoy.
19:58 masak looking.
19:58 masak GlitchMr: :P
19:59 masak GlitchMr: eeevil.
19:59 dmol masak: http://bpaste.net/show/95711/ I stuck building graph of optimal ways for Kenia :(
19:59 isBEKaml I'm throwing this out on channel: http://pastebin.com/k1UydVbs. The for loops look fishy to me, they are never unrolled into actions.
19:59 masak dmol: looking.
19:59 d^_^b masak: workshop is over right?
19:59 masak d^_^b: in a minute, yes.
19:59 GlitchMr yep, I think
20:00 GlitchMr It's over now
20:00 d^_^b haha
20:00 GlitchMr Also, masak, can you add this pQuery - https://gist.github.com/GlitchMr/5497868?
20:00 timotimo did the boobie-trapped exercises get triggered at all?
20:00 GlitchMr It implements SELECTOR
20:00 masak isBEKaml: lines 33 and 34, you don't need the {} there
20:01 masak isBEKaml: and that's probably why things don't execute either.
20:01 masak timotimo: yes, both of them.
20:01 masak timotimo: tadzik took ROMAN, timotimo took GRAPH.
20:01 Cybelechild So a BIG Thank you for the workshop!
20:01 Cybelechild It was quite a bit beyound my level, but I enjoyed learning and reading a lot...
20:01 timotimo ooooh :D
20:01 masak I just want to thank everyone who participated in this workshop.
20:01 timotimo i didn't notice the boobie-trapped-ness happen at all :|
20:01 isBEKaml masak: Oh... masak++
20:01 masak you've made my day. you rock.
20:02 timotimo should i jump into the backlog?
20:02 GlitchMr masak, can you add selector?
20:02 masak GlitchMr: yes, hold on :)
20:02 timotimo masak: thanks for the wonderful evening so far :) (and thanks to the rest as well!)
20:03 GlitchMr Workshop was fun
20:03 d^_^b masak: ahh reading through the log.
20:03 GlitchMr Making a quick hacky script to make a log was fun too.
20:03 b34bb_H masak: I'd also like to thank you for this workshop, althogh I havn't been posting solutions I quite learned a bit and had fun while reding other peoples solutions
20:03 b34bb_H :)
20:03 masak excellent!
20:03 masak yeah, that was kind of the idea.
20:04 masak learn from each other :>
20:04 GlitchMr :-)
20:04 trexy thanks masak much appreciated :-)
20:04 mxey masak: big thanks for all your effort
20:04 dmol masak: Yep! Thanks a lot! Could you point "exemplar" solutions? :)
20:04 mohij masak: thanks also from my side.
20:04 GlitchMr masak, thanks for your effort :-).
20:04 GlitchMr dmol, https://gist.github.com/masak/5496294
20:05 masak GlitchMr: selector solution added.
20:05 PerlJam GlitchMr: I think dmol is asking for the "best" solutions.
20:05 masak oh!
20:05 tadzik my GOLF: https://gist.github.com/tadzik/5497945
20:05 tadzik didn't get under 244 though :(
20:05 masak I don't have any "right answers" ready, unfortunately.
20:05 raiph masak: thanks for the great materials; i hope to work through them over coming days
20:06 masak raiph: :)
20:06 b34bb_H will there be a #2 workshop or something?
20:06 PerlJam masak: well ... I wouldn't expect you to.  This is one of those "the journey is more important than the destination" situations as far as I'm concerned
20:06 isBEKaml masak: I couldn't send in any solutions here, I'll be surely working through these exercises over the next few days. :)
20:06 TimToady GlitchMr: merely setting a KetSet member to False should cause it to automatically delete itself
20:06 GlitchMr b34bb_H, most likely, basing on success of this workshop.
20:06 TimToady (by spec)
20:06 GlitchMr TimToady, yet, it somehow doesn't in Rakudo
20:06 GlitchMr I dunno why
20:06 GlitchMr It's still visible by .perl.
20:07 dmol The next time I'll also be an lurker and code watcher :)
20:07 masak GlitchMr: there's a rakudobug in there somewhere.
20:07 felher masak: yeah, great thanks from me too. I didn't have as much time as I had hoped, but I was blown away by how much work you put into this workshop. Awesome job. I too will work through those files in the next couple of days. :)
20:07 masak TimToady: fwiw, I think .{} :delete ought to work as well...
20:08 masak I'm glad the workshop worked for so many of you.
20:08 GlitchMr My server didn't explode from the traffic. I assume it's a great success.
20:08 masak I kinda doubt people will find time to do exercises in their busy daily lives... nevertheless, good luck trying :)
20:08 GlitchMr (then again, web server on it had more traffic then usually)
20:08 masak I'm fully open to setting another date and trying this again sometime.
20:09 PerlJam masak: This is something you could run in-person too ... say at a YAPC
20:10 TimToady masak: sure, sets are supposed to act like hashes when addressed like hashes
20:10 masak TimToady: neither way seems to work right now.
20:10 timotimo oh, the boobie-trappedness was the amazon thing
20:10 timotimo now i understand what's going on
20:11 masak PerlJam: incidentally, I've intended to base my Perl 6 talks at YAPC on this material all along.
20:11 masak PerlJam: so it's definitely going to see some re-use.
20:11 masak YAPC::NA*
20:11 PerlJam masak++ you sir are a very smart man  :)
20:12 sivoais I'll be there!
20:12 dmol masak: Probably, the tasks boundaries should be defined more precisely. I mean, weather it should be provided "general" solution or most quick, or ... I undestand KENYA, as problem, to find optimal solution, with back-tracking possibility and so on...
20:12 GlitchMr Too bad the moritz's logs weren't working during workshop, but other than that, it was a very good workshop :-).
20:12 masak dmol: yeah, some of these need to be refined a bit.
20:12 * PerlJam still needs to sit down and figure out what he's going to do for YAPC::NA  (which days, which talks, etc.)
20:13 dmol masak: In any case it was wonderfull :)
20:13 masak \o/
20:13 b34bb_H If another workshop is going to start, where will it be noticed? stubled accidentally across this one and woudn't like to miss #2 (if it's going to happen)
20:14 b34bb_H sorry for my grammar, I'm some kinda tired ;)
20:15 PerlJam b34bb_H: perlmonks.org at the very least.
20:15 GlitchMr Good question. I'm sure it will be on Planet Six and Strangely Consistent.
20:15 masak b34bb_H: I have no idea. where would you find it? is my blog enough?
20:15 GlitchMr And Perl Monks.
20:15 mxey left #masakism
20:15 GlitchMr Also on Perl Weekly.
20:15 tadzik that was very fun
20:15 masak yeah, it was \o/
20:15 lizmat fwiw, it's still fun for me
20:16 tadzik it is :)
20:16 b34bb_H masak: If you cold give me a link to your blog I'd check every couple of days :)
20:16 tadzik there are still tasks I didn't yet read
20:16 GlitchMr b34bb_H, http://strangelyconsistent.org/
20:16 tadzik b34bb_H: where from did you learn about it this time?
20:16 PerlJam b34bb_H: you don't do RSS?
20:17 b34bb_H I don't have a seady internet connection, I'm sharing an UMTS-Stick with three people and I got WLAN at my school :/
20:17 b34bb_H s/seady/steady/
20:17 GlitchMr The HTML logs are 362KB... ok...
20:18 GlitchMr Logs themselves (in TXT format) are 140KB.
20:18 GlitchMr I don't think it was that bad, considering I have 1Gbit/s connection, and connections are fast these days anyway.
20:18 pmichaud next workshop (and all future workshops) probably need to be noticed to perl6-users, at the least.
20:19 PerlJam b34bb_H: in a perfect world, where would you want announcements to go so that you'd notice them?
20:19 GlitchMr Then again, I should've set up the compression on the server. Oh well...
20:19 raiph b34bb_H: do you recall where you first stumbled on this workshop? was it reddit?
20:20 pmichaud we probably could've done with an announcement on rakudo.org, and tweets through @rakudo
20:20 GlitchMr Anyway, I have to quit.
20:20 b34bb_H I somehow stumbled across perl-community.de wher I've been reading a while ago and somebody linked it there (linuxer I guess)
20:20 felher o/ GlitchMr
20:20 b34bb_H But the blog is totally fine
20:20 GlitchMr Of course, the logs will be still generated. I just go away.
20:24 b34bb_H anyway I have to go now, I wish you all a good $localtime+, hopefully till the next time :)
20:45 gtodd masak: will you post gists / solutions for the problems that got solved?
20:46 linuxer joined #masakism
20:47 geekosaur joined #masakism
20:47 woolfy masak: thanks for the interesting event...  (it mainly did woesh for me...  something way over my head)(but I saved the log that my irc client made, and i saved all your files and the solutions, so I can take a look back at it later ever)
20:49 masak gtodd: https://gist.github.com/masak/5496294
20:49 masak woolfy: feel free to ask questions or comment anything you find.
20:53 blkcat bummed that i wasn't able to pull away from work for this! thanks for hosting masak
20:57 masak blkcat: thanks. maybe next time :)
20:59 linuxer left #masakism
21:03 j0se joined #masakism
21:10 lizmat masak: fwiw, my PROMISE task: https://gist.github.com/lizmat/5498405
21:11 lizmat afaics, it should all just work (â„¢)
21:11 lizmat but the tests just don't  :-(
21:11 timotimo lizmat: i'm mildly surprised that "enum Foo is export <A B C>" will not put A, B and C as arguments to Foo; i thought i had seen something similar some time where "is export" got arguments passed to it
21:12 lizmat the is export apperently allows you to access them from outside
21:12 lizmat but it doesn't really export them (yet)
21:13 timotimo mhm. how do you feel about using the brace form of the class and putting the enum outside the class?
21:13 masak lizmat: looking.
21:14 masak lizmat: did you know that you can put several (separate) files into one gist?
21:14 lizmat no I didn't
21:15 lizmat as a comment, you mean?
21:15 masak lizmat: lines 62 and 63: missing a colon.
21:15 masak no, as separate files.
21:15 masak there's a button "add another file" when you're editing the gist.
21:15 masak lizmat: actually I'm surprised that L62 and L63 aren't parse errors.
21:15 masak lizmat: should be TTIAR.
21:16 lizmat wow. that makes a big difference
21:16 masak lizmat: beyond that, the code looks squeaky-clean and gorgeous.
21:16 masak lizmat++
21:16 masak lizmat: please submit as a rakudobug that that parses. it really shouldn't.
21:16 lizmat will do
21:17 PerlJam that's crazy
21:20 hoelzro left #masakism
21:23 lizmat fwiw, value needs to be a non-private attribute, otherwise the initialization with values doesn't work
21:23 masak yeah.
21:23 masak it can still be readonly, of course.
21:24 masak (or you can write a custom .new)
21:24 lizmat but it doesn't complain about it either when passed to "new"
21:24 masak hm, or a custom .BUILD should be enuf.
21:24 lizmat shouldn't the default "new" not complain when trying to initialise private attributes ?
21:25 spider-mario due to homework that I have to do for friday, I haven’t been able to participate as much as I would have wished, but still, thanks a lot for the initiative, masak. :)
21:25 spider-mario masak++
21:25 masak lizmat: yes, that sounds like a good idea. please propose on #perl6 :)
21:25 masak spider-mario: :)
21:25 masak spider-mario: maybe next time, then.
21:26 tadzik I like how all Promise solutions are mostly identical
21:26 spider-mario whoa, there will be one?
21:26 tadzik it means that the spec was very good )
21:26 tadzik :)
21:26 masak spider-mario: likely, yes.
21:26 spider-mario great. :D
21:26 spider-mario thanks again :)
21:26 masak tadzik: yes, the Promise exercise seemed to work exceptionally well.
21:26 masak tadzik: Promises are in the air right now, especially in the JavaScript world.
21:27 tadzik yup
21:27 masak tadzik: check out Promises/A+ if you haven't already.
21:27 masak especially issue #94... ;)
21:28 lizmat actually, the spec is not really complete, as it doesn't state that calling "fulfill" or "reject" should execute the blocks specified by "then"
21:28 lizmat I guess everybody assumed that, but I don't see it in the spec
21:28 lizmat it can be inferred from the tests  :-)
21:29 masak heh :)
21:30 masak in the Promises/A+ tests, they are supposed to be called *after* the .fulfill or .reject methods have exited.
21:30 masak but I skipped that bit. felt too complicated.
21:30 timotimo is it a good idea to say "the tests are as much part of the specs as the text!"?
21:30 lizmat I guess
21:32 lizmat final PROMISE gist: https://gist.github.com/lizmat/5498552
21:37 masak I added it to the list.
21:37 lizmat thanks!
21:38 timotimo masak: you missed mxeys fringe implementation, i'm afraid: https://gist.github.com/mxey/5497728
21:38 * masak adds it, too
21:39 masak everyone's so awesome <3
21:39 timotimo thanks again for your work in preparing and hosting. much appreciated :)  bedtime now, though!
21:39 masak 'night
22:00 GeirT joined #masakism
22:08 sergot gnight!
22:09 tadzik o/
22:46 troydm joined #masakism
23:30 raiph joined #masakism
23:48 KvH joined #masakism

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