Camelia, the Perl 6 bug

IRC log for #mojo, 2012-03-17

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

All times shown according to UTC.

Time Nick Message
00:03 GitHub178 joined #mojo
00:03 GitHub178 [mojo] kraih pushed 1 new commit to master: http://git.io/aZib-g
00:03 GitHub178 [mojo/master] document port range used for testing - Sebastian Riedel
00:03 GitHub178 left #mojo
00:13 abra joined #mojo
00:33 xaka sri: why dont bind to zero port? in that case OS assign it for you. no need for generator. platform independent.
00:35 sri xaka: patches welcome
00:35 purl patches welcome is always true or unless for search.cpan.org or swahili for "Put up or shut up."
00:37 pfig joined #mojo
00:45 xaka sri: please review. all tests passed
00:48 xaka actually you could make it one line less, "LocalPort => 0" is not required. i see the only problem - the time frame between you bind socket to random port to make a check and using that port. probably it's better to return the binded socket, not a port
00:48 xaka s/better/safer/
00:50 sri xaka: that's the whole point
00:51 sri is that solution portable?
00:53 sri at least on os x and linux the generated ports appear random
00:53 xaka i used to use it on windows long time ago, it works on linux. should work on mac as well (you can check it, i dont have mac)
00:53 sri on osx actually even sequential, so there's a dimishing return on port numbers
00:54 sri perl -MIO::Socket::INET -E'say IO::Socket::INET->new(Listen => 5, LocalAddr => "127.0.0.1", Proto => "tcp")->sockport'
00:54 sri windows testing would be appreciated
00:54 xaka gimmi few minutes, i'll install perl
00:54 sri specifically if ports are different
00:58 xaka works
00:58 xaka sri: http://pastebin.com/kd6WSA61
00:58 sri xaka++
01:38 xaka joined #mojo
01:40 GitHub17 joined #mojo
01:40 GitHub17 [mojo] kraih pushed 1 new commit to master: http://git.io/CgWKhQ
01:40 GitHub17 [mojo/master] added support for multiple static/template classes and fixed port generation bug (closes #302) - Sebastian Riedel
01:40 GitHub17 left #mojo
01:41 * sri loves the new consistency between app->renderer->paths and app->renderer->classes
01:42 sri makes plugins with embedded templates *a lot* easier
01:43 sri very interesting side effect is that the inflate command can now also inflate files from plugins
01:43 sri i think memowe will like that very much
01:44 sri looks like the next release will be a very good one judging by the changelog :D
01:46 sri i also wouldn't be surprised if performance of embedded templates got better
01:53 kitt_vl joined #mojo
01:54 GitHub174 joined #mojo
01:54 GitHub174 [mojo] kraih pushed 1 new commit to master: http://git.io/zU92tQ
01:54 GitHub174 [mojo/master] fixed inflate command class precedence - Sebastian Riedel
01:54 GitHub174 left #mojo
02:17 tardisx sri: in the context of contenticious ? I like it very much. The name is awkward. I can never remember it.
02:17 sri yes
02:23 sri hmm
02:24 sri i'd like to change the relaxed placeholder character
02:24 sri there's a really simple deprecation path
02:25 sri /foo/(.bar) could become /foo/+bar
02:25 sri not sure about the + character, but i want something that doesn't require () quoting
02:29 jmmills Anyone got any pointers on how to spoof FCGI requests to send directly to an applications unix socket? Rather sending through it's parent http service?
02:55 tempire I don't recall - why was the parens necessary for relaxed?
02:55 sri tempire: because . is rather common in paths
02:56 sri the idea is to replace it with a less common character
02:56 sri something that looks ok between : and *
02:57 tempire
02:57 sri ;p
02:57 sri ? is available
02:57 sri @ prolly too
02:57 sri + maybe
02:58 sri % of course too
03:01 kitt_vl joined #mojo
03:01 sri hmm, judging by your lack of enthusiasm i assume it's a bad idea
03:02 tempire I don't like any of those characters over a dot.
03:03 tempire too much regex implications.
03:03 sri well, strictly it's over a dot with parentheses
03:03 tempire is there any way for me to render within a rendering plugin?
03:04 sri YO DAWG...
03:04 purl i guess yo dawg is http://qntm.org/responsibility
03:05 sri templates can include other templates after all
03:07 tempire I though I wanted partial rendering, but recursion.
03:07 hide off topic, but any recommendation on a module to determine file type? I've tried File::Type, File::MMagic and File::Mimeinfo::Magic, OS X's file does a better job. Trying to get the type of an uploaded file.
03:08 sri tempire: partial includes always recurse
03:08 sri as long as you're careful that's ok
03:09 sri btw. i think we should consider a soonish release, changelog is massive already :) https://github.com/kraih/mojo/blob/master/Changes
03:09 tempire I'll release if you give me the text to tweet.
03:09 sri haha
03:10 sri that's the whole reason i don't want to do it myself! ;p
03:11 * sri needs to sleep
03:11 tempire oh, I was missing the inline option.
03:13 tempire I put an asset in pipeline so I could render while I render
03:45 SmokeMachine joined #mojo
03:57 SmokeMachine joined #mojo
04:05 vel joined #mojo
04:09 hshong joined #mojo
04:12 vel joined #mojo
04:26 ispy_ joined #mojo
04:50 kitt_vl joined #mojo
05:04 SmokeMachine hi, how can I test a app that uses EventSource?
05:04 SmokeMachine hi garu!
05:06 SmokeMachine is there a get_ok async?
05:16 SmokeMachine left #mojo
05:26 vel joined #mojo
05:50 kaare joined #mojo
06:29 Properler joined #mojo
07:45 marcus https://twitter.com/DotEd/s​tatuses/180393029058830337 puking dino @ Opera software :)
07:52 Foxcool joined #mojo
07:55 marcus smokemachine look at t/mojolicious/longpolling_lite_app.t in the mojo dist
08:08 marcus Holy cognitive overload https://github.com/joyent/node/w​iki/modules#wiki-web-frameworks
08:11 marcus Zappa looks neat - https://github.com/mauricemach/zappa
08:22 marcus *winning*   warn  - error raised: Error: listen EADDRINUSE
08:28 marcus (listening to port NaN)
08:32 pfig joined #mojo
08:32 pfig_ joined #mojo
08:52 tempire wellst
08:52 tempire I guess I'll release
09:14 baton8_ joined #mojo
10:40 batman is there a way to modify a plugin once it is loaded?
10:40 batman like $app->get_my_plugin("Foo")​->my_attribute("something else");
10:53 * sri yawns
10:54 sri tempire++
11:00 Foxcool joined #mojo
11:09 GitHub75 joined #mojo
11:09 GitHub75 [mojo] kraih pushed 1 new commit to master: http://git.io/C8twAw
11:09 GitHub75 [mojo/master] more examples for additional static/template classes - Sebastian Riedel
11:09 GitHub75 left #mojo
11:11 sri i'd like to see some real world performance comparisons for 2.62
11:11 sri for apps with many templates in the data section
11:12 sri rendering should theoretically be quite a bit faster
11:18 hshong joined #mojo
11:22 pfig joined #mojo
11:23 pfig_ joined #mojo
11:33 sri wait a minute
11:33 sri hmm, i might have made it a little slower actually :o
11:34 memowe oO
11:35 flamey joined #mojo
11:37 sri i think it depends on the number of templates
11:37 sri performance doesn't degrade as quickly with many templates now
11:38 flamey hi guys! is there a way to read contents of an inline template (from Data section) into a string variable?
11:38 mire_ joined #mojo
11:39 flamey did not see anything like this in docs, tried data::section::simple, but it breaks inside mojolicious script (unless i'm using it wrong, of course)
11:40 batman flamey: $content = $controller->render_partial("path/to/template");
11:40 batman without the .html.ep at the end
11:45 sri oh noes
11:46 sri i screwed up something and really made it slower
11:46 memowe sri: Kopf hoch! :)
11:46 sri if i fix that it is in fact faster
11:49 GitHub92 joined #mojo
11:49 GitHub92 [mojo] kraih pushed 1 new commit to master: http://git.io/Slofjg
11:49 GitHub92 [mojo/master] improved Mojolicious::Renderer performance significantly - Sebastian Riedel
11:49 GitHub92 left #mojo
11:49 sri it's an easy 100 rps improvement if your app is around 600 rps :S
11:50 sri likely more depending on hd and number of template files :/
11:51 pfig joined #mojo
11:52 pfig_ joined #mojo
11:54 sri i'm testing on an ssd, so it could be very bad if your hd is slow
12:15 Ultali that fail raptorcorn is incredible
12:25 OpossumPetya joined #mojo
12:26 OpossumPetya joined #mojo
12:31 GitHub44 joined #mojo
12:31 GitHub44 [mojo] kraih pushed 1 new commit to master: http://git.io/AzZErg
12:31 GitHub44 [mojo/master] improved Mojolicious::Renderer performance further - Sebastian Riedel
12:31 GitHub44 left #mojo
12:32 sri ok, now it's a real gain
12:32 memowe sri++
12:44 GabrielVieira joined #mojo
12:44 Properler joined #mojo
12:44 RussianSpy joined #mojo
12:45 RussianSpy joined #mojo
12:47 flamey joined #mojo
12:48 flamey joined #mojo
13:33 GabrielVieira joined #mojo
14:09 pfig joined #mojo
14:09 pfig_ joined #mojo
14:33 marcus I think I am ready for a obj-c mvc framework now http://weblog.bignerdranch.com/?p=398
14:39 GitHub120 joined #mojo
14:39 GitHub120 [mojo] kraih pushed 1 new commit to master: http://git.io/7rxikw
14:39 GitHub120 [mojo/master] better renderer documentation - Sebastian Riedel
14:39 GitHub120 left #mojo
14:42 abra joined #mojo
14:55 kitt_vl joined #mojo
14:59 flamey joined #mojo
15:00 flamey joined #mojo
15:45 Psyche^ joined #mojo
16:11 sri tempire: btw. the new DATA section system makes listing all files a lot easier
16:12 sri you can now actually list all templates and static files
17:03 marty joined #mojo
17:10 sri tempire: https://gist.github.com/2062679 # naive example
17:25 kaare joined #mojo
17:34 Properler joined #mojo
18:11 xaka joined #mojo
18:14 flamey joined #mojo
18:54 D4RK-PH0ENiX joined #mojo
19:05 newbie joined #mojo
19:18 d4rkie joined #mojo
20:03 Properler joined #mojo
20:06 tempire cs5 is uglier than cs4
20:06 tempire almost looks like the entire suite is an air app
20:17 GitHub167 joined #mojo
20:17 GitHub167 [mojo] kraih pushed 2 new commits to master: http://git.io/H0xj0g
20:17 GitHub167 [mojo/master] optimized routes a little - Sebastian Riedel
20:17 GitHub167 [mojo/master] optimized routes tokenizer a little - Sebastian Riedel
20:17 GitHub167 left #mojo
20:17 jzawodn joined #mojo
20:26 jzawodn_ joined #mojo
20:30 * sri hates everything adobe makes
20:37 Psyche^ joined #mojo
20:44 Properler joined #mojo
20:54 * marcus hates node.
20:55 marcus I tried to like it, but..
20:55 marcus it
20:55 marcus 's a big mess.
20:56 sri any specific parts?
21:13 GitHub15 joined #mojo
21:13 GitHub15 [mojo] kraih pushed 1 new commit to master: http://git.io/ZsBc-w
21:13 GitHub15 [mojo/master] added example for low level error event - Sebastian Riedel
21:13 GitHub15 left #mojo
21:14 jnap joined #mojo
21:17 marcus sri: I find express to be very clunky, and it seems to be the leading mvc framework on the platform.
21:18 sri that's true
21:18 GitHub154 joined #mojo
21:18 GitHub154 [mojo] kraih pushed 1 new commit to master: http://git.io/vaW1Lw
21:18 GitHub154 [mojo/master] fixed small leak - Sebastian Riedel
21:18 GitHub154 left #mojo
21:26 marcus finally have a good working tmux+vim setup.
21:27 marcus can actually do development on the ipad now.
21:27 marcus I'm soo ready for the retina version =)
21:51 hide npm frustrated me, got stuck in dependency hell
22:04 flamey joined #mojo
22:08 tempire <3 bootstrap
22:16 hide does make development much easier
22:17 ispy_ joined #mojo
22:39 OpossumPetya joined #mojo
23:07 jnap joined #mojo

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