Camelia, the Perl 6 bug

IRC log for #ilbot, 2013-05-17

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

All times shown according to UTC.

Time Nick Message
00:52 codex joined #ilbot
00:52 moritz joined #ilbot
00:52 triplem[a] joined #ilbot
00:52 pdurbin joined #ilbot
15:21 codex moritz: whenever you have time, curious if the changes look good to you?
15:28 moritz codex: better, though it looks like there's quite a bit of code duplication
15:29 moritz codex: I haven't yet figured out if it was the same way before, and your patches made it just more apparent, or if the amount of duplicated code actually increased
15:35 codex it was :)
15:35 codex that was my earlier comment -- there has to be a central "timestamp" function that gets called
15:42 moritz and I when I read that comment, I silently nodded along, but without enthusiasm, because I didn't know how often that stuff occurrs :-)
15:45 moritz oh, and with a bit of symbol table hacking it can be made zero-overhead at runtime
15:46 moritz one can make timestamp point to either CORE::localtime or CORE::gmtime before exporting it
15:46 moritz $ perl -wE '*mytime = \&CORE::localtime; say scalar mytime()'
15:46 moritz Fri May 17 17:46:41 2013
15:46 moritz something like this :-)
18:03 moritz codex: eeks, you used tabs for indention in files otherwise indented with spaces
18:03 * pdurbin slaps codex
18:14 moritz anyway, codex++ for submitting the patches
18:15 codex mmm, no?
18:15 codex cat .vimrc | grep tabstop
18:15 codex set tabstop=4
18:16 codex it's definitely 4 spaces
18:16 codex it drives me nuts when people use tabs
18:17 moritz codex: but do you have expandtab as well?
18:17 moritz ts=4 only sets the display width of a tab
18:18 codex set shiftwidth=4
18:18 codex set expandtab
18:18 codex yep
18:19 codex ugh, actually no. No i don't. The system I did the work on doesn't
18:19 codex :(
18:19 codex sorry about that
18:20 codex I am going to fix it
18:20 moritz no worries
18:20 moritz I've rewritten most of that code anyway
18:20 codex ok
18:20 moritz BEGIN {
18:20 moritz *mytime = config(backend => 'timezone') eq 'local'
18:20 moritz ? \&CORE::localtime : \&CORE::gmtime;
18:20 moritz }
18:20 moritz and now I use mytime() instead of the if/else with gmtime and localtime
18:20 codex nice
18:21 codex what is the * for btw. I haven't seen that
21:22 moritz that's for typeglobs
21:23 moritz 'perldoc perlmod' if you want the gory details :-)

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