»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:05 nadim_ joined 00:11 masak left 00:14 flatwhatson joined 00:19 jaldhar joined 00:54 xinming left 01:03 envi joined
On96 TE 01:18
YES! Just as inspector clausau said once "the case is solvet".
01:20 risou joined
On96 foreach my $name ( $query ->param ) {my @val = $query ->param( $name );foreach ( @val ) {$_ = Encode::decode_utf8( $_ );} $name = Encode::decode_utf8( $name ); :-) 01:20
simply decoding and encoding at the right places...
UTF-8 is working! 01:21
sorear I recommend not putting spaces before -> 01:24
Spaces before postfix operators break in Perl 6
according to perldoc CGI, you should just be able to use CGI '-utf8'; and have it all automatic 01:26
flussence_ the best way to handle utf8 is pretend it doesn't exist, unless you're the one doing IO 01:27
01:30 tyatpi_ joined 01:40 lue joined
lue hello! o/ 01:40
01:42 risou left 01:44 stkowski left
sorear hi. 01:45
01:56 donri left 01:57 donri joined 02:03 risou joined 02:10 woosley joined
dalek ecza: 5d5bdc7 | sorear++ | lib/Cursor.cs:
Add support routines for new dispatch-method model
02:14
02:15 jaldhar left 02:16 jaldhar joined 02:19 ajs left 02:20 ajs joined 02:22 Chillance left 03:03 ponbiki left 03:17 GinoMan joined 03:27 jimmy1980 left 03:29 flatwhatson_ left 03:35 whiteknight left 03:42 rdesfo1 joined 03:47 ymasory joined 03:57 xinming joined 04:09 donri left
mberends good morning 04:16
lue good morning o/ 04:18
mberends I ran Rakudo spectests overnight, and have observed a significant slowdown since a week ago 04:19
it could be the local computer, does anyone else notice the full spectest suite taking approximately twice as long? 04:22
04:23 Su-Shee_ joined
mberends
.oO( if only someone would develop a test result aggregation database. oh wait, what was that popolnik? )
04:24
04:26 Su-Shee left 04:38 ajs left, ajs joined 04:45 Alias joined 04:47 Alias_ left 05:03 gbacon left 05:06 aesop joined 05:13 rdesfo1 left 05:15 tyatpi_ left 05:18 gbacon joined 05:20 justatheory left, justatheory joined 05:25 justatheory left 05:37 bbkr left 05:42 orafu left 05:46 orafu joined 05:47 ponbiki joined
dalek ecza: 2c07097 | sorear++ | lib/Kernel.cs:
Implement topologically ordered method cache invalidation
05:53
mberends hi sorear 05:54
sorear hi mberends
how are things for you?
mberends busy at $work, after hours too 05:55
sorear is sneaking up on multiple dispatch
05:56 flatwhatson_ joined
mberends sorear: nice 05:56
sorear I have to sleep now, but I'll probably have protoregexes working /correctly/ tomorrow 05:57
mberends :)
sorear good chance of nominal MMD by #phasers, but no promises
tuit shortage. 05:58
sorear out
06:10 woosley left 06:16 JimmyZ joined, ajs left 06:17 Mowah joined 06:18 wooden joined, wooden left, wooden joined 06:23 JimmyZ left 06:24 nymacro joined 06:27 am0c_ left, drbean left 06:34 drbean joined 06:40 drbean left
mberends Rakudo slowdown confirmed on a second hardware/software combination, seems to have happened around 2011-03-12 :( 06:42
06:47 drbean joined 07:04 drbean left
mberends anyone: could someone (*tm) with git-bisect-fu search for which Rakudo commit slowed Rakudo tests/spectests down by a factor of 2? 07:12
07:13 coldhead left
jdhore mberends, I'm betting you're not using a parrot built with the gms GC 07:17
07:18 drbean joined
mberends jdhore: this is using whatever Rakudo's Configure.pl --gen-parrot chooses 07:18
jdhore what's the date of your build?
mberends today, latest checkouts 07:19
jdhore odd
mberends whenever PARROT_REVISION changes I do a make realclean and rm -rf parrot parrot_install
07:27 ThundrMeistr joined 07:34 cbk joined 07:43 ThundrMeistr left 07:52 cbk left 08:03 alim joined, risou_ joined 08:07 risou left 08:10 _twitch joined 08:17 mj41 joined 08:32 alim left 08:33 alim joined
dalek ecza: c58db17 | (Martin Berends)++ | Makefile:
[Makefile] add targets aot spectest clean realclean and help
08:40
08:46 Chillance joined 08:48 alim left 08:49 alim joined
On96 Is it great crime to decode utf8 before saving a file and then encode it utf8 when displaying it (the results is an html page)? 08:50
08:53 _twitch left, woosley joined 09:02 masak joined
masak morning, zebras. 09:02
On96: no, that doesn't sound like great crime at all.
sounds like what you'd want to do in general with the I/O barrier and strings. 09:03
on the "inside" of your application, you want to treat the strings are sequences of characters. on the "outside", you generally have to treat them as sequences of bytes.
which means what you generally do is decode, process, encode. 09:04
09:07 envi left
tadzik hello zebras 09:14
masak \o 09:18
09:19 alim left
moritz_ good morning 09:19
masak rakudo: .say for ("hi", "good morning" X~ " ") Z~ <tadzik moritz_> 09:28
p6eval rakudo 25e5bd: OUTPUT«hi tadzik␤good morning moritz_␤»
masak interesting question on the above: how would the thing be parsed without the parens? 09:29
masak sees if he can get viv working locally again
ah. S03 mentions just that: "Note that list associativity (X) only works between identical operators. If two different list-associative operators have the same precedence, they are assumed to be non-associative with respect to each other, and parentheses must be used to disambiguate." 09:30
std: .say for "hi", "good morning" X~ " " Z~ <tadzik moritz_>
p6eval std 4608239: OUTPUT«===SORRY!===␤"X~" and "Z~" are non-associative and require parens at /tmp/8SzyU2iLVZ line 1:␤------> .say for "hi", "good morning" X~ " " Z~ ⏏<tadzik moritz_>␤Check failed␤FAILED 00:01 121m␤» 09:31
masak right. case closed.
moritz_ wow, being greated with syntactically invalid code... #perl6 has seen better times :-)
masak hey! my original code was valid! :P 09:32
moritz_ fairy nuff
masak also, the tie between "good times" and "syntactic validity" is tenuous at best... 09:34
masak stops overanalyzing
On96 Thanks masak... then it looks like the dream I had last night was productive! :-) 09:36
masak :)
"#perl6: Dream Productively"
09:38 Su-Shee_ is now known as Su-Shee 09:39 araujo left 09:47 alim joined 09:51 szabgab joined
moritz_ still no new MoR chapter :( 09:57
masak also, the last couple chapters have been, well. not worse in quality, but also not building on the main story. 10:03
moritz_ considering that it's a fan fiction of philospher's stone, there needs to be some motivation to go into that forbidden corridor 10:05
so the last chapter might be the builtup for that
but yes, so far it looks like a side story
masak oh, true. it's not that I mind the extra focus on Hermione; she already has a pretty large part in the story, so it makes sense. 10:07
and leading up to the forbidden corridor would indeed explain the detour.
tadzik who was working on the irc client? 10:09
moritz_ tadzik: TiMBuS I think
masak the place where I last laughed out loud was '"But that's *crazy*!" Susan blurted out. [...] The Headmaster leaned down until he was face-to-face with the young girl. [...] Dumbledore put a finger to his lips and twiddled them, making a *bweeble-bweeble-bweeble* sound.'
10:14 donri joined
masak moritz_: have you started reading the Sequences? 10:25
10:29 mj41 left 10:31 Mowah left 10:36 noganex_ joined 10:37 noganex left 10:38 Mowah joined
moritz_ Sequences? 10:40
10:42 patrickas joined
patrickas wiki.lesswrong.com/wiki/Sequences 10:42
hello all!
tadzik hello!
patrickas o/ Master Zebra!
tadzik whoa, whoa :) 10:43
10:44 masak left
donri finished MoR 10:45
donri craves new chapters 10:46
patrickas Dang I forgot moritz_ hides joins and leaves! lost the intended effect :-)
donri ... unfortunately you'll have to wait weeks to get your fix now
tadzik I hide them too :) 10:47
moritz_ reading it in the logs, in retrospec it's quite impressive :-)
donri aww!
tadzik (:
donri is patrickas the author?
patrickas donri HELLO NO!
donri is EY?
patrickas donri: Yes, Elizer is the author of MoR he used to blog frenquently on LessWrong , some of his posts have been assembled into "The Sequences" (url pasted above) 10:52
donri in deed 10:53
11:01 masak joined 11:16 meraxes_ left
donri rakudo: say ?" " 11:17
p6eval rakudo 25e5bd: OUTPUT«Bool::True␤»
11:17 JimmyZ joined 11:20 meraxes_ joined
masak buubot: ?eval say !!"0" 11:23
ENOBUUBOT
11:24 MayDaniel joined, MayDaniel left, MayDaniel joined
masak anyway, in Perl 5, "0" boolifies to False. 11:24
perl6: say ?"0"
p6eval rakudo 25e5bd, niecza v3-78-gc58db17: OUTPUT«Bool::False␤»
..pugs: OUTPUT«␤»
masak oh. in Perl 6 too :)
11:24 MayDaniel left
tadzik . o O ( I should reuse the "Master Zebra" title ) 11:26
masak "Mastering Regular Expressions and Zebras"? 11:29
huf i have a little app called zbr that makes a zebra run to the middle of my terminal, poop and then jump on it 11:31
i managed to wean myself off of typoing bzr as zbr that way ;)
of course, now i type bzsr 11:32
11:33 zby_home joined, Vlavv left
masak huf: did you write the zebra app yourself? 11:36
tadzik care to share?
huf yeah, it's just a very small curses thing
hmm, i wonder where i put the source 11:37
tadzik masak: as in whyhello.im/tadzik :)
masak tadzik: ah :) 11:39
tadzik: in a couple of years, you can advance to being "Senior Master Zebra" :)
patrickas tadzik is that a black unstriped zebra ?
tadzik oh, I'll have to find a padawan first :) 11:40
11:40 whiteknight joined
tadzik you're quite close to it anyway, masak ;) 11:40
masak "padawan" as in "apprentice"? 11:42
11:42 JimmyZ left
masak that's me :) 11:42
11:43 JimmyZ joined
huf masak: huf.parawag.net/zbr.tgz 11:43
or tadzik 11:44
it's more stupid and less useful tho :)
masak sure :)
11:45 tyatpi_ joined
tadzik that's super cool :) 11:46
masak huf: make error: gist.github.com/877423
oh! it's because I don't have some curses lib installed?
huf looks like it
11:46 Vlavv joined 11:57 JimmyZ left
tadzik gone 11:58
11:58 cjk101010 joined
masak now it works. huf: *lol* 11:58
huf :)
masak "why did you install the 'ncurses' package?" -- "I'd rather not say." 11:59
huf essential tools
12:03 JimmyZ joined 12:12 JimmyZ left 12:19 Vlavv left 12:23 nymacro left 12:33 araujo joined, araujo left, araujo joined 12:34 nymacro joined, Vlavv joined 12:44 mj41 joined 12:51 patrickas left 13:04 f00li5h left, mj41 left 13:09 tyatpi_ left 13:29 am0c left 13:31 MayDaniel joined 13:41 am0c joined 13:48 envi joined 14:07 risou_ left 14:08 mj41 joined 14:09 jimmy1980 joined 14:11 tyatpi_ joined 14:22 _twitch joined 14:23 alim left
moritz_ "because of the zebras" 14:27
14:31 mj41 left 14:41 cjk101010 left 14:56 tty234 left
moritz_ mberends: I can't confirm any significant rakudo slowdowns since Toulouse-47-g3680ac3 (2011-03-08) and now. All spectest runs took about 20 minutes on my dual core laptop 14:57
14:58 mj41 joined 15:03 cjk101010 joined 15:05 tty234 joined 15:09 _twitch left 15:16 mj41 left 15:20 risou joined 15:36 song10 joined 15:37 song10 left
sorear mberends++ 15:38
15:42 mj41 joined 15:45 cjk101010 left 15:47 cjk101010 joined 16:16 risou_ joined 16:21 risou left 16:23 jedai left 16:29 justatheory joined 16:33 jedai joined 16:37 mj41 left 16:38 cjk101010 left 16:42 woosley left 16:43 whiteknight left 16:49 am0c left 17:06 am0c joined
colomon masak, moritz_: don't suppose one of you guys knows an easy way to generate a binary tree graph for a blog post? 17:10
masak colomon: en.wikipedia.org/wiki/Graphviz ? 17:12
though given enough time, I might just skip the graphviz step and work out a Perl 5/6 script to generate the SVG directly. 17:13
17:14 dju joined
colomon Oooo, I remember using Graphviz to try to chart the entity relationships in a STEP file once. That was one hideously complicated graph. 17:14
masak++
masak or two scripts. one to generate the coordinates for the nodes and edges, and one to decorate those with SVG elements. 17:15
17:15 dju left 17:16 dju joined
masak pipe one to the other, and voilà! 17:16
17:18 mj41 joined
colomon I guess is the point where I should mention my other blog. :) 17:18
not p6 related, alas: exploringjt.wordpress.com/ 17:19
masak nice. hadn't heard about JT before. 17:21
colomon It's an annoying CAD format. 17:23
They made it simple and elegant, and then heaped on about four layers of compression stuff on top of everything.
poop, graphviz won't install on my OS X. :( 17:27
ascii tree, here we come.
masak colomon: might be you can use this nice tool: github.com/masak/tote/commit/033fc...3fd2923730 17:36
(note, ASCII graph above, rendered .png version below)
ah, here it is: ditaa.sourceforge.net/ 17:40
at some point, I'd like to make a Perl 6 port of that tool. it's seriously cool.
flussence_ I once tried to get graphviz to render the entire dependency graph of packages I have installed on my desktop. It doesn't like doing graphs with 1500+ nodes apparently... 17:41
17:41 nymacro left
masak flussence_: I think I've seen graphviz graphs with far more nodes than that... 17:42
flussence_ It might've been running out of /tmp space, come to think of it...
sorear flussence_: once I tried to render the static call graph of a 1MB executable using graphviz
flussence_ (which is on a tmpfs, so it probably ran out of RAM) 17:43
sorear it generated a .svg with a nominal size of 10^6 by 10^3
that was about 30,000 edges iirc
flussence_ ouch
(hm, I tried again and it gave me a 32766x55 png...) 17:46
17:47 Rotwang joined
moritz_ I've successfully rendered signing graphs of my GPG key ring 17:48
but it's hard to find a viewer that doesn't crash on it :-)
colomon masak: nifty! 17:49
17:52 envi left
masak colomon: yeah. I should use it more myself. 17:53
tadzik o/ 17:56
masak \o 17:58
colomon o\
masak what's that... a leg? 17:59
colomon saluting hand, I reckon. :)
masak oh right.
18:15 ymasory left
colomon masak: new ditaa-powered post: exploringjt.wordpress.com/2011/03/1...an-coding/ 18:24
masak \o/ 18:33
colomon: have you considered making the edges as T crossings rather than slashes? 18:34
18:35 ymasory joined
colomon T crossings? 18:38
slashes obviously came out wrong...
18:40 ymasory left 18:42 Patterner left
masak T crossings, as in one vertical line from the parent node meeting a horizontal line joining the child nodes somehow. 18:45
18:46 Psyche^ joined, Psyche^ is now known as Patterner
colomon ah 18:50
19:14 tyatpi_ left 19:47 alim joined
lue hello world o/ 20:03
20:11 alester left
colomon \o 20:15
masak hellue!
20:21 MayDaniel left
mberends hi lue! how is your C++ experiment going? 20:23
20:28 zby_home left 20:29 whiteknight joined 20:30 takadonet joined
takadonet hey all 20:30
lue mberends: Forgotten about :) . Besides, I think I'm more interested in getting my Pod reader working first. 20:32
.oO[ It's the start of spring break (week-long break from school) and it's snowing outside :D ] 20:33
mberends lue: ok, and have a good week (spring in NL is for real now :-) 20:34
arnsholt It's spring in Norway too. The snow is melting! =D 20:35
I so look forward to snow-free Oslo 20:36
mberends remembers piles of snow in Oslo during NPW2009
(or was it heaps? not stacks, anyways) 20:37
arnsholt Hehe. When was that again? Late march or something?
mberends April 16-17 2009 www.perlworkshop.no/npw2009/ 20:39
arnsholt Impressive. The snow is usually gone by that time
lue The weather was good for a bit, but the snow and other wintery weather came back just in time for situational irony. 20:40
arnsholt Where in the US you at? 20:41
mberends winter often has a final snap during Easter in the UK as well 20:42
20:44 donri left
lue Pacific Standard Time zone :) [only daylight savings is on, grrr.] 20:45
20:47 risou_ left
arnsholt mberends: Yeah, although easter is a bit early for that here 20:48
mberends oh yeah US is already on DST, Europe does that only next weekend :/
arnsholt Easter is the traditional "go to the mountains for cross-country skiing"-holiday =)
lue Easter is when this year? 20:49
arnsholt Stupid late
Last week-end of march, IIRC
20:51 donri joined
mberends Easter Sunday will be April 24 20:52
arnsholt Heh. Shows how good my memory is 20:56
mberends coincidentally Orthodox Easter is also on the same date, unlike in most other years christianity.about.com/od/faqhelpde...change.htm 20:57
flussence_ std: sub MAIN(Str :$foo, Str :$bar);
p6eval std 4608239: OUTPUT«===SORRY!===␤Malformed block at /tmp/AbynIkbxjt line 1:␤------> sub MAIN(Str :$foo, Str :$bar)⏏;␤ expecting any of:␤ constraint␤ param_sep␤ parameter␤ routine_def␤ trait␤Parse failed␤FAILED 00:01 120m␤»
lue That's a day after DW Season 32 begins! 20:58
flussence_ ooh, thanks for reminding me :)
lue (in both the UK *and* the US, btw \o/) 20:59
21:02 am0c left
colomon US is getting DW the same time this season? 21:06
21:09 Sarten-X joined
mberends feels his gloat-fu weaken ;) 21:09
lue colomon: indeed it is. Actually the Christmas Special last, er, christmas, aired on the same day as well. It's also the first season to have filmed footage on US soil! 21:12
21:13 GinoMan left 21:48 [Coke] joined 21:55 bph joined 21:57 [Coke] left 22:01 tyatpi_ joined 22:04 [Coke] joined 22:08 lue left 22:11 alim left
tadzik o/ 22:17
22:19 twinshadow joined 22:23 Rotwang left 22:50 cjk101010 joined 22:57 kaare_ left 23:07 f00li5h joined 23:09 [Coke] left 23:14 Mowah left 23:19 coldhead joined 23:39 cjk101010 left