Camelia, the Perl 6 bug

IRC log for #mojo, 2010-11-02

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

All times shown according to UTC.

Time Nick Message
00:11 Koistya left #mojo
00:16 alnewkirk joined #mojo
00:45 memememomo_ is now known as memememomo
00:46 memememomo is now known as memememomo_
00:55 ash_ joined #mojo
01:09 MojoGuest444 joined #mojo
01:09 MojoGuest444 From: http://www.networkedblogs.com/33Knp (9 hits)
01:09 MojoGuest615 joined #mojo
01:09 MojoGuest615 From: http://www.networkedblogs.com/33Knp (10 hits)
01:09 MojoGuest444 I can feel you.
01:09 MojoGuest615 test
01:09 MojoGuest444 .
01:09 MojoGuest615 t
01:10 MojoGuest444 /part
01:10 MojoGuest615 left #mojo
01:11 MojoGuest444 left #mojo
01:11 MojoGuest604 joined #mojo
01:11 MojoGuest604 From: http://www.networkedblogs.com/33Knp (11 hits)
01:12 MojoGuest604 left #mojo
01:12 MojoGuest350 joined #mojo
01:12 MojoGuest350 From: http://www.networkedblogs.com/33Knp (12 hits)
01:12 MojoGuest350 left #mojo
03:39 daviddelikat joined #mojo
04:04 tl joined #mojo
04:06 tholen42 left #mojo
04:41 MojoGuest915 joined #mojo
04:46 MojoGuest915 left #mojo
05:03 memowe_ joined #mojo
05:05 Alias left #mojo
05:06 memowe left #mojo
05:14 diegok left #mojo
05:14 diegok joined #mojo
05:31 Kulag joined #mojo
05:32 stephan49 joined #mojo
05:33 kthakore_ joined #mojo
05:33 rhaen_ joined #mojo
05:33 _und3f joined #mojo
05:33 alnewkir1 joined #mojo
05:33 su-bzero joined #mojo
05:33 fish__ joined #mojo
05:33 ryanc_ joined #mojo
05:34 Drossel left #mojo
05:34 und3f left #mojo
05:35 stephan48 left #mojo
05:41 alnewkirk left #mojo
05:41 su-bzero_ left #mojo
05:41 rhaen left #mojo
05:41 ryanc left #mojo
05:41 rhaen_ is now known as Rhaen
05:41 fish_ left #mojo
05:41 kthakore left #mojo
06:27 sri moin
06:28 perlrocks joined #mojo
06:29 sri think i'll make some radical low level changes
06:30 * marcus phears
06:30 sri higher up it won't really be noticeable though ;p
06:30 marcus that's good :)
06:30 marcus so it'll only break xant' stuff.
06:30 sri i just want to remove bytestream use from internals
06:31 marcus xantus' even
06:31 marcus for performance reasons?
06:31 sri don't think so this time :)
06:31 sri perfromance will be one side effect
06:32 sri but also better separation of the parsers
06:32 sri they currently share buffer objects, not so nice
06:32 sri performance wise, i've barely started but already got 100 req/s more ;p
06:33 marcus on the client?
06:33 sri overall
06:33 marcus nice.
06:33 marcus sounds like it's worth it.
06:34 sri this stuff is so unoptimized, no matter what i change it will be a noticeable improvement :)
06:34 sri think i'll also add Mojo::Util
06:34 sri which will be guts of bytestream
06:34 sri *+the
06:35 sri use Mojo::Util 'xml_escape'; print xml_escape '<lalala>';
06:35 sri sooner or later that just has to be done
06:36 sri the gain should be massive
06:36 sri (performance wise)
06:37 sri Mojo::ByteStream will be turned into a convenience object for end users
06:37 sri but not get any internal use
06:38 marcus sounds sane
06:42 MojoGuest45 joined #mojo
06:42 MojoGuest45 From: http://www.networkedblogs.com/33Knp (13 hits)
06:43 sri i just hate the name Mojo::Util :S
06:43 MojoGuest45 what is this all about?
06:43 sri blackjack and hookers
06:44 marcus \o/
06:44 koban joined #mojo
06:47 sri http://whatthefuckhasobamadonesofar.com/ # haha
06:51 marcus I liked that one
07:54 MojoGuest45 left #mojo
07:56 zakame joined #mojo
07:57 breaker313 joined #mojo
07:58 MojoGuest304 joined #mojo
07:58 MojoGuest304 From: http://xantus.tumblr.com/page/2 (4 hits)
07:58 MojoGuest304 bfb
08:00 MojoGuest304 left #mojo
08:03 breaker313_ joined #mojo
08:03 breaker313_ left #mojo
08:05 breaker313_ joined #mojo
08:05 su-bzero left #mojo
08:08 breaker313 left #mojo
08:09 arthas joined #mojo
08:10 su-bzero joined #mojo
08:30 _und3f is now known as und3f[A]
08:30 und3f[A] is now known as und3f
08:42 breaker313_ left #mojo
08:49 y0j joined #mojo
09:26 spleenjack joined #mojo
09:37 MojoGuest487 joined #mojo
09:37 MojoGuest487 From: http://news.ycombinator.com/item?id=1277067 (36 hits)
09:37 MojoGuest487 left #mojo
11:09 marcus dancer has no direction http://blogs.perl.org/users/sawyer_x/2010/​11/internal-redirects-in-dancer.html?utm_s​ource=feedburner&amp;utm_medium=feed&amp;u​tm_campaign=Feed:+PlanetPerl+(Planet+Perl)
11:43 sri marcus: lol
11:47 sri it still amazes me that nobody really questions the internal redirect design in catalyst
11:48 sri but it kinda proves my point that most perl web developers are about 5 - 10 years behind
11:49 omega hms, I have some domain logic that throws Throwable objects
11:49 omega but Mojo::Exception expects only strings?
11:50 sri Mojo::Exception is not very smart
11:50 sri feel free to make it smarter :)
11:50 omega ahh, can get the raw object from raw_message
11:51 stephan49 i want to change the response headers, how could i do that?
11:51 sri $self->res->headers
11:52 stephan49 k, thx
11:59 sri haha, i bet the changes i'll commit later will cause countless new bugs :S
12:00 sri i'm trying in-place functions for encoding/decoding
12:00 sri b64_encode $foo;
12:01 stephan49 k
12:01 sri very easy to shoot yourself in the foot with that
12:02 stephan49 maybe
12:02 sri for my $foo (@lalala) { b64_encode $foo }
12:03 sri that will cause so many funny bugs
12:03 sri because you of course change @lalala
12:04 forwardever joined #mojo
12:06 sri just fell for it myself, so maybe not the best idea
12:08 perlrocks Twitter: "Just discovered Mojolicious. It's like Rails but for Perl. I think I'm going to make it the subject of my new blog" --purinkle http://twitter.com/purinkle/status/29463374695
12:38 su-bzero_ joined #mojo
12:43 su-bzero left #mojo
12:45 daviddelikat left #mojo
12:55 und3f is now known as und3f[A]
13:11 daviddelikat joined #mojo
13:58 daviddelikat left #mojo
14:00 GitHub176 joined #mojo
14:00 GitHub176 mojo: master Sebastian Riedel * b42872c (45 files in 19 dirs): added experimental module Mojo::Util as a faster low level alternative to Mojo::ByteStream and rewrote many internals to use it instead - http://bit.ly/d5Ljjr
14:00 GitHub176 left #mojo
14:00 sri this one will need a lot of testing
14:01 daviddelikat joined #mojo
14:08 perlrocks Twitter: "Made #mojolicious about 10% faster overall and quite a bit more for many non trivial use cases. :) http://bit.ly/akpohV #perl" --kraih http://twitter.com/kraih/status/29472843210
14:10 sri hmm, actually it's closer to 20%
14:11 sri whatever, performance is not important anyway ;p
14:13 ash_ left #mojo
14:24 alnewkir1 left #mojo
14:26 perlrocks Twitter: "Most of #mojolicious is actually 20% faster after the last patch, but who cares about unrealistic micro benchmarks anyway. ;) #perl" --kraih http://twitter.com/kraih/status/29474578750
14:30 dotan joined #mojo
14:43 perlrocks Twitter: "♺ @kraih: Most of #mojolicious is actually 20% faster after the last patch, but who cares about unrealistic micro benchmarks anyway.  #perl" --xomaa http://twitter.com/xomaa/status/29476032739
14:45 fhelmber_ joined #mojo
15:01 koban left #mojo
15:03 ysyrota joined #mojo
15:05 dm_ joined #mojo
15:49 jamesw left #mojo
15:51 jamesw joined #mojo
15:56 dm_ left #mojo
16:04 sri http://badassjs.com/post/1461943420/face-​detection-in-javascript-via-html5-canvas # cool
16:06 sri http://github.com/liuliu/c​cv/blob/current/js/ccv.js # yay for deep nesting
16:11 jamesw left #mojo
16:15 GitHub79 joined #mojo
16:15 GitHub79 mojo: master Sebastian Riedel * 552ad65 (2 files in 2 dirs): cleanup - http://bit.ly/9oYlN2
16:15 GitHub79 left #mojo
16:16 jamesw joined #mojo
16:21 sri hmm, interesting hello world benchmark results
16:21 sri hypnotoad is a little faster than starman for a plain mojo app
16:22 sri and the client is just 3% slower than lwp
16:23 Alias joined #mojo
16:24 sri considering there are still a few low hanging fruits, i'm quite happy
16:27 Alias__ left #mojo
16:40 ysyrota left #mojo
16:42 dotan left #mojo
17:12 forwardever sri: is there a way to get all params for specific names, for example like: my @values= $req->params_for(@form_fields); this would look much nicer in controller methods
17:13 sri forwardever: no
17:13 forwardever sri: do you think that such a method would make sense in Mojo::Message::Request ?
17:13 sri just make it a helper
17:14 sri and turn it into a plugin as usual
17:14 forwardever think it should be core, this is why asked :)
17:15 sri is there a common use case?
17:15 sri when would i ever want to mix up params with different names?
17:16 forwardever e.g. I don't want to read all params for security reasons, just the valid ones, so I pass a list of valid keys to params_for, and get the corresponding values
17:17 forwardever i could than do further validation and pass the values to previews, forms ...
17:17 sri you might be misunderstanding something then
17:17 sri like my ($foo, $bar) = params_for(qw/foo bar/)?
17:18 forwardever yes
17:18 sri doesn't work
17:18 sri ?foo=23&bar=lalala&foo=baz
17:19 forwardever oh, I understand...
17:19 sri you could limit it to only the first value, but that wouldn't be generic enough for core
17:22 forwardever maybe, one could create a second method, like multi_params_for and get back array_refs, however I have to admit that I worked only with one value per params so far
17:27 marcus ooh, lbr on twitter
17:28 marcus ooh, lbr is not in here anymore
17:28 forwardever will have to do it manually than for now, currently, I prepare a model layer for my scaffold plugin using plain dbi (and make it abstract enough to also work with other orms), already have a working scaffolder for objectdb (which is in early stages of development, so will publish dbi first)
18:32 spleenjack left #mojo
18:46 forwardever sri: ($foo,$bar_arref_ref) = params_for('foo', ['bar']); would work
18:46 sri forwardever: ugly though
18:47 forwardever doing it manually is not pretty either
18:47 sri just make it a plugin and it will get merged if it becomes popular enough ;)
18:49 forwardever these kind of plugins would never become popular as they are too limited in functionality, maybe a util plugin with a variety of helpers
18:49 memowe joined #mojo
18:49 memowe_ left #mojo
18:49 ryanc_ is now known as ryanc
18:52 chansen left #mojo
18:52 chansen joined #mojo
18:53 forwardever sri: another question: is there a built in protection when it comes to name collisions, e.g. helper method names (using several plugins from several authors, there should be kind of a warning when starting an app)
19:00 kthakore_ is now known as kthakore
19:04 sri forwardever: thats a good idea
19:11 perlrocks Twitter: "Mojolicious:: Lite soooo funny" (ja) --DRZ400SM http://twitter.com/DRZ400SM/status/29497425383
19:13 GitHub181 joined #mojo
19:13 GitHub181 mojo: master Sebastian Riedel * cddb07f (1 files in 1 dirs): added helper warning - http://bit.ly/d0k8RL
19:13 GitHub181 left #mojo
19:13 sri forwardever: there ya go
19:15 forwardever okay, will test how it works, thanks
19:17 forwardever left #mojo
19:21 alnewkirk joined #mojo
19:31 spleenjack joined #mojo
20:34 MojoGuest140 joined #mojo
20:34 MojoGuest140 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (5 hits)
20:34 MojoGuest140 left #mojo
20:34 MojoGuest867 joined #mojo
20:34 MojoGuest867 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (6 hits)
20:34 MojoGuest867 left #mojo
20:42 MojoGuest161 joined #mojo
20:42 MojoGuest161 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (7 hits)
20:48 MojoGuest161 hello
20:48 MojoGuest161 is now known as JeromeL
20:49 JeromeL how can I change the destination server ?
20:57 JeromeL left #mojo
21:02 MojoGuest283 joined #mojo
21:02 MojoGuest283 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (8 hits)
21:02 tempire joined #mojo
21:03 MojoGuest283 left #mojo
21:04 MojoGuest829 joined #mojo
21:04 MojoGuest829 From: http://www.reddit.com/r/html​5/comments/bt76k/irc_client/ (9 hits)
21:07 MojoGuest47 joined #mojo
21:07 MojoGuest47 left #mojo
21:14 MojoGuest983 joined #mojo
21:14 MojoGuest983 From: http://www.networkedblogs.com/33Knp (15 hits)
21:20 MojoGuest983 left #mojo
21:25 MojoGuest962 joined #mojo
21:25 MojoGuest962 From: http://news.ycombinator.com/item?id=1277067 (37 hits)
21:25 MojoGuest962 left #mojo
21:30 MojoGuest120 joined #mojo
21:30 MojoGuest120 From: http://news.ycombinator.com/item?id=1277067 (38 hits)
21:30 MojoGuest120 left #mojo
21:44 MojoGuest829 left #mojo
21:48 MojoGuest804 joined #mojo
21:48 MojoGuest804 From: http://www.networkedblogs.com/33Knp (16 hits)
21:48 MojoGuest804 sweet
21:49 MojoGuest804 left #mojo
21:49 MojoGuest573 joined #mojo
21:49 MojoGuest573 From: http://www.networkedblogs.com/33Knp (17 hits)
21:49 MojoGuest573 v cool
21:49 MojoGuest573 left #mojo
21:52 Alias left #mojo
21:55 stephen left #mojo
21:58 stephen joined #mojo
22:04 daviddelikat left #mojo
22:10 su-bzero joined #mojo
22:12 alnewkirk left #mojo
22:14 su-bzero_ left #mojo
22:30 spleenjack left #mojo
22:32 daviddelikat joined #mojo
22:34 Rhaen hello world
23:22 fhelmber_ left #mojo
23:26 arthas left #mojo
23:26 ltriant left #mojo
23:32 ltriant joined #mojo
23:59 perlrocks Twitter: "RT @kraih: Most of #mojolicious is actually 20% faster after the last patch, but who cares about unrealistic micro benchmarks anyway. ;) ..." --insurgentsoft http://twitter.com/insurge​ntsoft/status/29519493817

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