Camelia, the Perl 6 bug

IRC log for #mojo, 2010-11-24

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

All times shown according to UTC.

Time Nick Message
00:11 spleenjack left #mojo
00:57 Akron sri: Better to fork a BadStylicious ... (however - regarding evaluated variables I definitively think it's not bad style! :-P)
00:57 Akron left #mojo
03:38 arpadszasz joined #mojo
03:48 ashleydev_logbot left #mojo
03:49 ashleydev_logbot joined #mojo
04:03 tl joined #mojo
04:05 tholen42 left #mojo
04:12 MojoGuest756 joined #mojo
04:12 MojoGuest756 From: http://news.ycombinator.com/item?id=1277067 (59 hits)
04:13 MojoGuest756 left #mojo
04:13 MojoGuest917 joined #mojo
04:13 MojoGuest917 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (16 hits)
04:13 MojoGuest917 left #mojo
04:22 jamesw left #mojo
04:29 su-bzero_ joined #mojo
04:33 su-bzero left #mojo
06:06 arpadszasz left #mojo
06:47 koban joined #mojo
06:58 kvorg left #mojo
07:18 und3f[A] is now known as und3f
07:43 * sri yawns
07:43 * omega concurs
07:46 memememomo_ is now known as memememomo
07:50 memememomo is now known as memememomo_
07:53 sri chansen: maybe next time :)
07:58 ysyrota joined #mojo
08:29 kaare joined #mojo
08:39 fhelmber_ joined #mojo
08:44 snearch joined #mojo
09:03 spleenjack joined #mojo
09:12 koban left #mojo
09:18 spleenjack left #mojo
09:20 spleenjack joined #mojo
09:21 GitHub126 joined #mojo
09:21 GitHub126 mojo: master Sebastian Riedel * 7cb7713 (1 files in 1 dirs): cleanup - http://bit.ly/fyErly
09:21 GitHub126 left #mojo
09:29 arthas joined #mojo
09:30 GitHub75 joined #mojo
09:30 GitHub75 mojo: master Sebastian Riedel * 4253a4d (1 files in 1 dirs): improved test - http://bit.ly/fj9EN3
09:30 GitHub75 left #mojo
09:43 MojoGuest367 joined #mojo
09:43 MojoGuest367 From: http://www.google.com.hk/search?sourceid=​chrome&ie=UTF-8&q=websocket+demo (1 hits)
09:51 MojoGuest367 hi
09:52 MojoGuest367 left #mojo
10:06 snearch left #mojo
10:25 robn joined #mojo
10:37 perlrocks Twitter: "Wrote "Gyazo Server Mojolicious:: Lite wrote in" http://j.mp/dMGpos" (ja) --akiym http://twitter.com/akiym/status/7382164115030016
10:45 yko joined #mojo
11:06 yko The dark side I sense in you.
11:06 koban joined #mojo
11:20 MojoGuest851 joined #mojo
11:20 MojoGuest851 From: http://www.google.fr/search?sourceid=ch​rome&ie=UTF-8&q=websocket+demo (1 hits)
11:20 und3f my voice! he took my voice!
11:20 MojoGuest851 left #mojo
11:30 MojoGuest602 joined #mojo
11:31 MojoGuest602 viva la revolucion
11:32 MojoGuest602 left #mojo
11:33 jamesw joined #mojo
11:53 baton8 left #mojo
11:56 robn left #mojo
11:58 baton8 joined #mojo
12:00 MojoGuest558 joined #mojo
12:00 MojoGuest558 From: http://news.ycombinator.com/item?id=1277067 (61 hits)
12:02 MojoGuest558 left #mojo
12:13 sri come to the dark side, we have cookies!
12:30 yko und3f can say only 'Phhh Hhhhh' now. haha!
12:42 koban left #mojo
12:43 koban joined #mojo
12:49 sri :o
12:57 sri yko: your harvester could use the feature i added yesterday to avoid monkey patching
12:57 yko OOohhh
12:57 sri considering a harvester like that might not want to use keep alive anyway
12:58 * yko knees and pray for bless
12:58 yko Well, anyway i faced with toruble arround sleep
12:58 sri https://github.com/kraih/mojo/b​lob/master/t/mojo/client.t#L84
12:59 sri that lets you control the connection
12:59 yko aha i see
13:01 yko ahaaa. that stuff just caches connection and client will use it because it's exists in cache, right?
13:01 sri no
13:01 yko :)
13:01 sri $tx->connection($id)
13:01 sri you give it a specific connection id
13:02 sri that you prepared for it
13:08 yko Ok. I will test it. Thank you. Actually, looking from this side i can overload build_tx , call SUPER and inject connection every time tx created...
13:08 crab is there any built-in function to serve a 404?
13:08 yko render_not_found
13:08 crab oh, ok. i thought it was that, but i was looking for it in the wrong place
13:09 yko M9s::Controller
13:10 crab so the simplest way is to say $r->route('/favicon.ico')->to(cb => sub { shift->render_not_found })?
13:10 sri $r->get('/favicon.ico' => sub { shift->render_not_found });
13:11 yko hmm. i'm pretty sure there's even more simple way, but i dont know it :)
13:11 crab thanks.
13:12 sri it's the new hybrid syntax
13:12 crab and indeed, it doesn't work for me. oops.
13:15 yko crab: what mojo version ? :)
13:16 sri people don't run "mojo version" often enough -.-
13:16 sri it even checks cpan now
13:16 sri and tells people to upgrade
13:16 yko wow
13:17 yko sri: that syntax came when you merged M9s and M9s::Lite?
13:17 sri think so
13:19 yko nice
13:20 yko btw, there's no more mojolicious command?
13:20 crab yko: "not HEAD", basically
13:20 sri nope, commands got merged
13:20 yko hehe, nice
13:20 yko sri++
13:21 sri very happy with the mojolicious architecture now
13:21 crab Mojolicious and Mojolicious::Lite are merged now?!
13:21 sri https://github.com/kraih/mojo/blob​/master/lib/Mojolicious/Guides/Rou​ting.pod#Mojolicious::Lite_routes
13:21 sri there is a recipe too
13:22 sri crab: they share more code
13:22 sri crab: work the same as before though
13:22 sri you can now just use an additional hybrid DSL
13:22 crab cool.
13:22 sri Mojolicious::Lite is basically just 20 lines of code now
13:23 sri :)
13:23 crab whenever i hear "DSL", i think of "java is a DSL to convert XML into stack traces"
13:23 sri lol
13:25 daviddelikat left #mojo
13:25 memememomo_ is now known as memememomo
13:26 MojoGuest621 joined #mojo
13:27 MojoGuest621 left #mojo
13:27 MojoGuest497 joined #mojo
13:27 memememomo is now known as memememomo_
13:28 MojoGuest497 left #mojo
13:31 yko Hmm. Is IOLoop has empty queue it will call on_tick/on_idle each 0.025, right?
13:31 yko *every
13:31 sri likely
13:32 yko well. Then harvester should have timeout(0.1) at least
13:32 yko thx
13:32 sri up to you
13:33 sri on my laptop it is still high enough not to eat much cpu
13:33 sri 0.25 was 0.3% cpu and 0.025 was 0.5% cpu
13:34 sri it is easy to test with "mojo daemon"
13:39 yko hmm. you are right. but just IOLoop->new->start will eat 99%
13:39 yko i think i'm doing something wrong
13:39 sri poll?
13:40 yko mojo daemon => 0.3%, perl test.pl => 99%
13:40 yko moment...
13:40 sri i know what that is
13:40 sri empty poll doesn't block at all :(
13:40 yko singleton/
13:40 sri i might have an idea
13:40 yko ahmm. should listen for some dummy socket? :)
13:41 yko ehmm?
13:41 sri yea
13:41 sri i need a dummy descriptor
13:41 sri and add it for reading
13:42 perlrocks Twitter: "koorchik's Perl blog: Example applications Mojolicious (not Lite) http://ff.im/uhsCP" (bg) --planetperlru http://twitter.com/planetper​lru/status/7428910203535360
13:43 sri it is only IO::Poll
13:43 sri kqueue blocks
13:44 yko $loop->listen({file => './dummy'}); # helps, gg
13:54 GitHub41 joined #mojo
13:54 GitHub41 mojo: master Sebastian Riedel * 9dfd4b9 (5 files in 4 dirs): fixed a bug where an empty Mojo::IOLoop would never block - http://bit.ly/ex8ZC7
13:54 GitHub41 left #mojo
13:54 sri yko: fixed
13:55 yko wow! cool
13:55 yko damn, i almost wrote workarround :)
13:56 perlrocks Twitter: "Introduction / Perl Web Framework Mojolicious Getting Started - Getting Started with Perl code samples http://bit.ly/eJnaYD" (ja) --wPerlnews http://twitter.com/wPerlne​ws/status/7432261129474048
13:58 yko god bless miyagawa and cpanm
13:59 yko and github's /tarball/master route :)
13:59 sri cpanm http://latest.mojolicio.us should work too ;p
14:00 yko but lastes it's cpan version ye?
14:00 sri nope
14:00 yko cpan? damn cool!
14:00 yko githud i mean
14:00 sri ye points to master
14:03 yko make: *** No rule to make target `script/hypnotoad'
14:03 sri ops
14:03 yko committed it too early?
14:03 yko aha :D
14:03 koban left #mojo
14:04 sri *jedi mind trick*
14:04 und3f sri, btw, you just fixed a bug with Mojolicious and other event loops when mojolicious don't have any objects )
14:04 sri these are not the commits you are looking for
14:04 yko gg
14:04 und3f just in case you want to know
14:05 koban joined #mojo
14:05 sri und3f: isn't that what the changes entry said?
14:05 daviddelikat joined #mojo
14:05 und3f sri, und3f@kotepc mojo % LANG="" make
14:05 und3f make: *** No rule to make target `script/hypnotoad', needed by `blib/script/hypnotoad'.  Stop.
14:05 sri thats what yko just said ;p
14:06 und3f oh..
14:06 sri und3f: you are slow today
14:06 und3f hmm..
14:06 und3f i need to sleep
14:06 und3f Yko steal my speed
14:06 sri it's the middle of the day? Oo
14:06 und3f right in the middle
14:06 spleenjack1 joined #mojo
14:07 yko today i very sleepy day in ua :\
14:07 und3f Right
14:08 und3f Bluesy sleepy day
14:08 yko i could hardly bring myself up at morning
14:08 yko gg. bluesy it will became with darkness
14:08 GitHub156 joined #mojo
14:08 GitHub156 mojo: master Sebastian Riedel * 6967cc8 (2 files in 2 dirs): fixed typo - http://bit.ly/hvckKD
14:08 GitHub156 left #mojo
14:08 yko gg right. just a little type
14:08 yko thx
14:08 und3f i could play blues
14:09 und3f and it will become bluesy right now )
14:09 sri on a balalaika?
14:09 yko ugh. damn, you have the power
14:09 yko haha. balalaika blues :D
14:09 und3f :|
14:10 yko und3f, c'mon! can you play something sad and bluesy on balalaika? :D
14:10 spleenjack left #mojo
14:10 sri http://www.youtube.com/watch?v=Iui-pvM6CXI
14:11 yko ahh.. you cal it blues? :D
14:11 und3f thats rock'n'roll i guess
14:12 sri http://www.youtube.com/watch?v=​rLZ8Tr-0lYo&feature=related # more bluesy
14:12 und3f Here is nice balayka
14:12 und3f http://www.youtube.com/watch?v=X8pqoBBqEpI
14:13 yko damn. nice
14:13 yko my grandfather played balalayka
14:14 yko when he weared ushanka, felt boots and got some beer he played like that. not so cool, but enough close...
14:14 sri :)
14:16 yko hmm i like that "drunk blues`n`balalaika" :)
14:18 * sri will now listen to some Tool and Puscifer to get into the right mood for hypnotoad hacking
14:19 und3f Arkhipovskiy is really cool musician
14:19 yko Did Tool wrote something new last time?
14:19 sri nothing new since 10000 days
14:19 yko thx for Puscifer
14:20 sri Puscifer cover of Rocket Man is absolutely amazing
14:20 yko damn they're good! thanx twice
14:20 yko didn't know there's another fork of tool except Perfect Circle :D
14:21 sri perfect circle might be working on a new album :o
14:22 perlrocks Twitter: "allframeworks / Perl: Example applications Mojolicious (not Lite) http://ff.im/uhzdY" (bg) --planetperlru http://twitter.com/planetper​lru/status/7438946627756032
14:24 sri if you like a perfect circle make sure to check out "C is for (Please Insert Sophomoric Genitalia Reference HERE)" and "Dont shoot the messenger" from Puscifer
14:24 * yko pulling discography from ex.ua
14:25 yko Maybe you have cookies on your dark side, but we have something more here :D
14:25 * sri didn't like V is for Vagina that much, too experimental
14:27 arthas left #mojo
14:28 sri http://www.youtube.com/watch?v=jcLdnNhL428 # good song too
14:31 yko M Is for Milla hehe
14:32 und3f here is good song http://www.youtube.com/watch?v=oxCa16-nxtM
14:32 und3f bluesy like this day )
14:33 sri http://www.youtube.com/watch?v=ioeutEu1_8s # how about some actual hacker music :D
14:34 yko last time i became fan of amon amarath. dont ask....
14:42 sri Oo
14:58 su-bzero_ Anna German.
15:13 kaare left #mojo
15:26 yko V is for Vagina is damn experimental, ye. But Momma Sed excuses everything
15:29 yko lol. in clip for Momma Sed there's Сaduceus bottle, what else :)
15:51 sri haha
15:51 sri yea, the clip is really good
15:52 yko Sometimes i think about MojoX::VirtualDOM or something like that that will looks like DOM but works on flight without building DOM at all
15:52 sri http://www.youtube.com/watch?v=dR3ccmWmLhk
15:53 yko ye. sri++
15:53 sri you mean a stream parser?
15:53 yko hmm. something like that. just regexp search possible with /gc option
15:54 sri that would have to work entirely different with a whole different api though
15:54 yko Sometimes i have cases when dom is not usable. 4 req/s, 400kb of html and 40 bytes i really need
15:55 sri that might always be hard with a pure perl parser
15:55 yko sri, i'm thinking about keep interface as much similar to Mojo::DOM as it's possible. maybe one day ill really drop writing stupid regexps and make something like  that
15:56 sri Mojo::DOM can still be made a few times faster though
15:56 sri by making the parser use a recursive regex
15:56 sri pushing all the real work into the regex engine
15:56 yko i think you understand that building whole DOM tree and just find some chunk of data without actually regarding standarts much
15:57 sri you want Mojo::SAX with css selectors :)
15:57 yko hmm. had not deal with recursive regexps yet
15:57 yko gg. maybe
15:58 sri $sax->find('#foo' => sub { ... })->parse($chunk)->parse($chunk)...
15:59 yko well one day ill have enough time to play with that idea
15:59 yko who knows, maybe world will became a little better? :)
16:01 koban left #mojo
17:03 kaare joined #mojo
17:18 daviddelikat left #mojo
17:33 daviddelikat joined #mojo
17:39 arpadszasz joined #mojo
17:45 ysyrota left #mojo
18:00 spleenjack1 left #mojo
18:27 GitHub199 joined #mojo
18:27 GitHub199 mojo: master Sebastian Riedel * e86e382 (3 files in 3 dirs): fixed a small route condition bug - http://bit.ly/e0PhyG
18:27 GitHub199 left #mojo
18:50 al left #mojo
18:58 al joined #mojo
19:16 ltriant left #mojo
19:24 xantus[] diablo 3 is looki
19:24 xantus[] looking good
19:24 MojoGuest854 joined #mojo
19:24 MojoGuest854 From: http://news.ycombinator.com/item?id=1277067 (62 hits)
19:24 xantus[] I saw the d3 blizdon videos
19:24 xantus[] blizcon
19:24 xantus[] damn, can't type this morning.  cold hands
19:24 MojoGuest854 left #mojo
19:33 sri heh
19:33 sri agreed, wonder how the d3 esport thing will turn out
19:36 sri xantus[]: found the dev.xantus.org bug?
20:24 fhelmber_ left #mojo
20:29 fhelmber_ joined #mojo
20:30 fhelmber_ left #mojo
20:31 fhelmber_ joined #mojo
20:38 fhelmber_ left #mojo
20:39 kvorg joined #mojo
21:01 ltriant joined #mojo
21:18 xantus[] sri: no
21:18 xantus[] I have ios 4 now though
21:25 yko left #mojo
21:33 yko joined #mojo
21:35 perlite_ joined #mojo
21:39 perlite left #mojo
21:39 perlite_ is now known as perlite
21:51 spleenjack joined #mojo
21:55 sri github broked again?
21:57 omega not here
21:57 ltriant left #mojo
21:57 yko left #mojo
22:01 mmcleric_ joined #mojo
22:03 ltriant joined #mojo
22:12 daviddelikat left #mojo
22:16 und3f sri, everything ok with github
22:16 sri it is back
22:19 su-bzero_ left #mojo
22:22 arpadszasz left #mojo
22:27 kaare left #mojo
22:45 GitHub150 joined #mojo
22:45 GitHub150 mojo: master Sebastian Riedel * 1109412 (5 files in 3 dirs): improved number detection in Mojo::JSON - http://bit.ly/i0sKgz
22:45 GitHub150 left #mojo
22:48 sri look away if you're afraid of dark magic
22:49 mmcleric_ sri: cool, thanks for this fix (it was me who reported issue/35)
22:49 * sri feels all dirty now
22:51 sri mmcleric_: as far as i understand the flags the trick is not idiot proof either
22:51 sri but we'll see
22:51 mmcleric_ but at least it's better now
22:52 sri at first sight yes, but tricks like that tend to backfire :)
22:55 GitHub136 joined #mojo
22:55 GitHub136 mojo: master Sebastian Riedel * f5b7f74 (2 files in 2 dirs): added test - http://bit.ly/ewE4vc
22:55 GitHub136 left #mojo
23:25 GitHub164 joined #mojo
23:25 GitHub164 mojo: master Sebastian Riedel * c25083e (1 files in 1 dirs): cleanup - http://bit.ly/gBBT6s
23:25 GitHub164 left #mojo
23:40 sri github has hiccups again :S
23:41 spleenjack left #mojo
23:43 sri guess that means time to sleep
23:43 sri Zzz
23:59 daviddelikat joined #mojo

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