Camelia, the Perl 6 bug

IRC log for #mojo, 2011-02-13

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

All times shown according to UTC.

Time Nick Message
00:02 kaare left #mojo
00:36 jamesw left #mojo
01:09 stephen left #mojo
02:06 tl joined #mojo
02:06 tholen42 left #mojo
02:11 ispy_ joined #mojo
02:27 jamesw joined #mojo
03:19 alyx joined #mojo
03:50 mmcleric left #mojo
03:58 mmcleric joined #mojo
04:04 tholen42 joined #mojo
04:05 tl left #mojo
04:45 GitHub157 joined #mojo
04:45 GitHub157 mojo: master Sebastian Riedel * f0f0cff (8 files in 2 dirs): link to more documentation - http://bit.ly/h6yUyX
04:45 GitHub157 left #mojo
04:56 GitHub159 joined #mojo
04:56 GitHub159 mojo: master Sebastian Riedel * c6cf6a8 (8 files in 2 dirs): pod improvements - http://bit.ly/e02taG
04:56 GitHub159 left #mojo
05:34 metaperl joined #mojo
06:34 espent joined #mojo
06:37 espent_ left #mojo
06:47 rcs joined #mojo
06:49 MojoGuest628 joined #mojo
06:49 MojoGuest628 From: http://news.ycombinator.com/item?id=1277067 (221 hits)
06:50 MojoGuest628 left #mojo
07:08 ispy_ left #mojo
07:25 rcs left #mojo
07:26 rshhh left #mojo
07:32 rshhh joined #mojo
07:45 MisterHatt anyone played with embedded documents in mongo?
08:06 kaare joined #mojo
08:06 GitHub26 joined #mojo
08:06 GitHub26 mojo: master Sebastian Riedel * 2fdb3b8 (2 files in 2 dirs): fixed a small url_for bug - http://bit.ly/hTT518
08:06 GitHub26 left #mojo
08:19 sri hmm, seems QT is dead
08:19 sri nokia doesn't really have much use for it anymore
08:44 jamesw whither kde?
08:52 MisterHatt sri: o.o
08:52 MisterHatt as if gtk actually lasted longer in the end
08:53 espent_ joined #mojo
08:53 MisterHatt they could still make it entirely open and hand it over to the kde devs or something I guess, but what a load of shit
08:55 espent left #mojo
08:56 moritz what would they gain from making it entirely open?
08:59 MisterHatt nothing really, but I would assume they're continuing on with meego and symbian
08:59 MisterHatt and if they're abandoning it, they may as well show some good will and hand it off to the community
09:01 sri they won't continue with symbian, meego will be an open source side project
09:02 sri with the new focus on wp7 there is not much incentive to continue investing in qt
09:02 sri they actually need to make huge cuts
09:02 sri i saw somewhere that they are going to fire a few thousand people
09:02 MisterHatt my brief usage of wp7 has actually put me off the pl;atform
09:03 sri like marcus said, it is a bit like the first ios
09:03 MisterHatt I dont see why more effort isnt put into getting qt running nicely in android though, android's widgeting is mostly horrible freom my brief exposure
09:18 daviddelikat joined #mojo
09:20 daviddelikat1 left #mojo
09:28 tl joined #mojo
09:28 tholen42 left #mojo
09:28 sri http://www.msqt.org/ # lol
09:32 MisterHatt I cant even tell if that's serious or not
09:34 tl left #mojo
10:22 tholen joined #mojo
10:36 su-bzero` is now known as su-bzero[A]
10:36 su-bzero[A] is now known as su-bzero`
10:39 su-bzero` is now known as su-bzero[A]
10:39 su-bzero[A] is now known as su-bzero`
10:54 tl joined #mojo
10:58 su-bzero` is now known as su-bzero[A]
11:00 tl left #mojo
11:30 su-bzero left #mojo
11:31 su-bzero joined #mojo
11:32 rshhh left #mojo
11:42 su-bzero_ joined #mojo
11:46 su-bzero left #mojo
11:48 tholen left #mojo
11:48 tholen joined #mojo
11:48 tholen left #mojo
12:00 perlrocks Twitter: "[Perl] [mojolicious] / Mojolicious Japanese translation project documents - livedoor Wiki (Wiki) http://htn.to/JDpW4z" (ja) --tyamaguc07 http://twitter.com/tyamaguc​07/status/36756493801881600
12:08 su-bzero_ left #mojo
12:08 su-bzero[A] is now known as su-bzero
12:20 sri oh, i didn't notice you could actually vote on github issues
12:46 jzy joined #mojo
12:46 jzy i need some advice if anyone is around
12:47 jzy ppl must still be waking up
12:49 yko jzy, just ask
12:50 jzy k, so i want to make a mojo site that serves images taken from a local directory and pagenates them
12:51 jzy any ideas on where i should start (learning as i go)
12:52 yko http://mojolicio.us/perldoc​?Mojolicious/Guides/Growing
12:52 jzy in terms of things to read..
12:52 jzy yko: thanks
12:52 yko and other guides from http://mojolicio.us/perldoc
12:53 yko Documentation is perfect at the moment. You should just follow growing guide and read corrsponding routing/rendering guides from time to time
12:53 jzy i've been reading through the rendering guide today
12:54 yko growing one is better place to start i think
12:54 jzy i read it a few days ago, i'll go back and see again
12:54 yko later you may want to read Mojolicioous itself pod and Mojolicious::Controller also
12:54 jzy i have a basic very simple site working
12:54 perlrocks Twitter: "Mojolicious:: Guides:: Growing finished translating. http://dlvr.it/GTLQJ" (ja) --hiraba_reader http://twitter.com/hiraba_rea​der/status/36770272128278529
12:55 yko ^-- see :)
12:56 yko later you will need to decide how to render images to user. i'd make ln -s link to /public dir of your app and render from there
12:57 jzy thats a good idea
12:57 jzy what is "Mojolicious itself pod"
12:58 yko jzy: see HIGHLIGHTS section of http://mojolicio.us/perldoc
12:58 jzy oh cool, thanks again
12:59 jzy btw, i thought the growing documentation was awesome, got me interested in trying this out
12:59 yko it is
13:00 jzy who's writing all this documentation?
13:00 yko Sebastian Riedel (ALL HAIL TO SRI!)
13:01 jzy lol, hip hip hooray
13:01 MisterHatt it's a mystery how he finds the time to write mojo, write mojo docu, and watch enough simpsons and futurama to include quotes in every block of code
13:03 jzy wow yes, simpsons quotes are a nice touch, hopefully i'll get to the point of reading the code
13:12 jzy left #mojo
13:14 jzy joined #mojo
13:23 jzy left #mojo
13:26 jzy joined #mojo
13:32 jzy left #mojo
13:55 marcus hai peeps
14:06 rshhh joined #mojo
14:10 tl joined #mojo
14:26 MojoGuest409 joined #mojo
14:26 MojoGuest409 From: http://news.ycombinator.com/item?id=1277067 (222 hits)
14:27 MojoGuest409 left #mojo
14:27 MojoGuest858 joined #mojo
14:27 MojoGuest858 From: http://news.ycombinator.com/item?id=1277067 (223 hits)
14:27 MojoGuest858 left #mojo
14:32 MojoGuest125 joined #mojo
14:32 MojoGuest125 From: http://news.ycombinator.com/item?id=1277067 (224 hits)
14:34 MojoGuest125 left #mojo
14:34 MojoGuest279 joined #mojo
14:34 MojoGuest279 From: http://news.ycombinator.com/item?id=1277067 (225 hits)
14:35 MojoGuest279 left #mojo
15:07 perlrocks Twitter: "[Perl] [I made] Mojolicious:: Plugin:: CSRFDefender was able to use the option in http://htn.to/v4WaKi" (ja) --shiba_yu36 http://twitter.com/shiba_yu​36/status/36803645664141312
15:24 perlrocks Twitter: "Mojolicious:: Lite, base_tag static_file and stylesheets and image files have to worry about thanks to the URL of a better designation. A dynamic output of all but the anxious, should I be rewritten during installation and want to somehow really there." (ja) --tsukamoto http://twitter.com/tsukamot​o/status/36807975280574464
15:31 weestrom joined #mojo
15:32 weestrom just looking for a good succint link (not an in channel howto) looking for resources about creating api keys (can be general but mojolicious focussed would be AWESOME)
15:33 weestrom abandoned the blog engine project on top of mojolicious because I stumbled across a GREAT mobile app idea with mojolicious and a web api as the back end, need to use api keys
15:39 perlrocks Twitter: "Another Mojolicious:: Lite On, CGI:: App but when I was held here document templates, which moved to the DATA section. This alone is no longer needed because an @ or $ escaped and troublesome, JavaScript pages, and that is very easy." (ja) --tsukamoto http://twitter.com/tsukamot​o/status/36811782353977344
15:46 yko damn, i didn't know Inkscape has such a terrible ui :(
16:01 su-bzero yko: Better than Gimp ;))
16:01 su-bzero But it's terrible, actually.
16:01 yko once i tried to teach myself gimp
16:02 yko after that i had to preform photoshop-terapy for about month :'(
16:05 marcus gimp is pretty gimpish
16:05 mateu left #mojo
16:06 yko marcus: has sense but lack bad words :\
16:06 marcus yko: BRING OUT THE GIMP -- Pulp Fiction
16:06 su-bzero Gimp painter is that you need. ;)
16:06 su-bzero Or Gimp-painter...
16:07 marcus I've been trying to convince my fellow designers that they can switch photoshop for pixelmator, but they are not convinced
16:07 yko if you are using photoshop for 10 years it's damn hard to swich to something other
16:10 marcus in reality, I think we should stop with photoshop sketches completely, and work on HTML.
16:10 marcus and CSS
16:11 marcus but my designers threaten to kill me...
16:11 marcus they sure love their gradient tools
16:13 yko you suppose designers to create HTML without sketches?
16:15 marcus http://blog.quplo.com/2010/07/how​-37signals-does-html-prototyping/
16:16 marcus I think it would be a healthier focus than starting with the gloss :p
16:16 * yko hates 37signals
16:16 marcus why?
16:17 yko well, i was working with their basecamp api. so neat
16:18 perlrocks Twitter: "Blog update. 3 Mojolicious Hiraku Kimi Japanese translation of documents. http://bit.ly/h4GaBq / / 3 has been put together for each public tweets timing." (ja) --tsukamoto http://twitter.com/tsukamot​o/status/36821427520806912
16:18 yko oh, we have no this functionality in our API. for sure you can preform some screen scrapings, but it's strongly not recommended
16:18 yko arrrggghhhh
16:18 marcus the rage is strong in this one...
16:18 yko but tbh, their gui are perfect
16:19 marcus I agree they are a bit overhyped, not everything they do is perfect
16:19 marcus but I still share a lot of their philosophies
16:20 marcus even tho we don't actually use their products :)
16:20 marcus we used to use campfire, but now we use IRC
16:20 yko dunno. building html pages without sketches can take a lot of work and then after your boss/customer says: oh, please move this - there or so...
16:20 yko ha, nice
16:21 marcus well, you shouldn't make them pixel perfect
16:21 marcus use sketches to illustrate how things should work, rather than how things should look
16:21 marcus given that it is more important
16:22 yko i'm affected by years working in polygraphy, so it's harder to me :)
16:22 marcus once you nail that, you can start adding web 2.0 buttons :p
16:22 marcus yko: lie detectors? :p
16:23 yko umm. didn't get
16:23 marcus http://en.wikipedia.org/wiki/Polygraph
16:24 ato left #mojo
16:24 yko oh. that's because of my bad english. printing design or so. still dunno how does that stuff should be translaten
16:26 marcus typography? :)
16:26 yko ye
16:26 yko damn :(
16:26 marcus well, I guess you hate html in general then :p
16:27 marcus given the limited kerning and font selection
16:27 yko nope
16:27 marcus anyways, the typography is much easier to adjust through css than photoshop anyways :)
16:27 yko it's different things
16:28 yko prints have own limitation. very strict some times
16:28 marcus I used to work with automated print systems.
16:28 marcus for generating real estate ads.
16:28 * marcus hates rgb -> cmyk conversion with a passion
16:28 yko haha.
16:29 yko i mean design of magazines for example. produce correct printing that can be printed well on old machines
16:29 marcus http://www.bitstream.com/publish​ing/products/pageflex/index.html
16:30 yko few mistakes and you have 35 000 copies x 250 pages of junk :)
16:30 marcus well yeah, we did magazines too
16:31 marcus using automated generation of pdfs, and a designer that composed the generated pdfs in quarkxpress
16:32 yko i did pricing magazines with full-color ads on each page and was released each week
16:34 marcus I am so never doing that stuff again.
16:34 yko so during the week designers of my dep were creating that ads and at friday one man gathered all stuff in quark too
16:34 yko haha, me too
16:34 yko i was hating fridays for years
16:36 yko actually, i supposed to hate html not because of fonts, but because of elements positioning and 'just a one long page'
16:37 yko but i don't. i hate html becahse of ie
16:38 marcus well, you don't need to make your mockups work in ie
16:38 marcus :)
17:15 Akron joined #mojo
17:18 weestrom left #mojo
17:20 weestrom joined #mojo
17:23 weestrom left #mojo
17:49 yko damn i really hate how Inkcape implemented hotkeys and ui stuff
17:49 yko so unusable
18:12 Akron left #mojo
18:25 tholen joined #mojo
18:26 su-bzero yko: ;((
18:40 rshhh left #mojo
18:48 ispy_ joined #mojo
18:58 cstamas hi
19:01 cstamas is there a way to ease generating forms?
19:02 cstamas i used CGI::FormBuilder (a year ago) and i need it again, but the code is not so pretty so i am thinking about rewriting in mojolicius
19:24 tholen left #mojo
19:26 ispy_ left #mojo
19:35 yko cstamas: http://mojolicio.us/perldoc?Mojol​icious/Plugin/TagHelpers#form_for and below
19:59 cstamas yko: thx i check
20:21 MojoGuest244 joined #mojo
20:21 MojoGuest244 From: http://www.google.com/search?sourceid=chrome&​amp;ie=UTF-8&q=websocket+demo&qscrl=1 (1 hits)
20:21 MojoGuest244 left #mojo
20:39 ispy_ joined #mojo
20:48 ispy_ left #mojo
20:54 ispy_ joined #mojo
21:34 ispy_ left #mojo
21:48 robinsmidsrod left #mojo
21:49 julien joined #mojo
21:49 julien hi there
21:49 robinsmidsrod joined #mojo
21:50 julien I'm playing around with mojo, the doc is great but I haven
21:50 julien haven't found a simple introduction on how to create a basic website with it
21:50 julien do you guys have any pointer ?
21:52 moritz julien: try http://mojolicio.us/perldoc?Mojolicious/Lite
21:53 marcus then once you have a lite app running, take a look at the growing guide :)
21:57 sri ok, final release preparations now :)
22:00 marcus lighted the black candles?
22:00 marcus Chicken acquired?
22:01 marcus knives sharpened?
22:02 sri everything in place :)
22:09 julien alright, the perldoc of mojolicious lite was already mu current reading, it's a bit tough for beginners though...
22:09 julien I generated a lite_app unsing mojo generate lite_app and it seems that I can't run it as fastcgi
22:09 julien Sun Feb 13 23:08:34 2011 error Mojo::Server::FastCGI:72 [23251]: Can't accept FastCGI connection: Socket operation on non-socket
22:10 julien cgi and daemon modes work fine
22:17 kaare left #mojo
22:18 julien nevermind, you need to set app->start('cgi');
22:20 marcus left #mojo
22:26 marcus joined #mojo
22:38 jdixon I beg to differ that Mojo Lite is tough for beginners.
22:38 jdixon unless you mean beginners to the Internet
22:38 stephan48 is there a way to name the controllers like App::Controller::Test instead of App::Test?
22:46 marcus left #mojo
22:46 julien jdixon: thanks for the compliment, that's really helpful indeed
22:47 jdixon I wasn't being mean.
22:48 jdixon obviously you're not a beginner to the Internet, are you?
22:48 jdixon I don't think you'd be here if you were.
22:48 julien I'm not a web developper, more of a sysadmin, but I had my share of php, html, css and such, and I'm more than comfortable with webservers
22:49 jdixon same description I'd apply to myself.
22:49 julien however, the way mojolicious splits the processing of requests and generate the html response is still obscur to me (after, say 4/5 hours of playing around)
22:49 jdixon it's certainly different from a plain cgi. but it's very similar to other MVC frameworks.
22:50 julien that's probably the MVC introduction that I'm missing then
22:51 jdixon probably
22:51 jdixon iirc you can generate a sample lite app from the cli
22:51 jdixon might be best to start with that, poke around and refer back to the docs
22:52 jdixon you might want to even look at the project I'm working on
22:52 jdixon like you, I'm a hobbyist webdev
22:53 jdixon so I don't follow strict OOP methodologies
22:53 jdixon "lazy oop"
22:53 jdixon :)
22:53 jdixon https://github.com/obfuscurity​/undeadly/blob/master/index.pl
22:54 julien thanks, i'll take a look
22:54 jdixon np
22:55 sri julien: the growing guide should help a bit with mvc
22:55 julien I want to write a small url shortener to try out mojolicious, I'll see where that goes
22:55 sri but yea, i do expect basic knowledge of web technologies and design patterns
22:55 sri it's an introduction to mojolicious, not web development
22:55 jdixon julien: fwiw, I started with ORM but ripped that out. haven't found a perl ORM I really like yet.
22:56 sri actually i would like to have an introduction to those too
22:57 julien sri: the doc is great, well detailled and easy to read, however when you begin and don't know much, it's hard... I suppose more basic introductions will come when mojolicious becomes more popular
22:58 jdixon I really think it will make sense when you read my code (I hope).
22:58 sri yea, also feel free to put something on the wiki
22:59 sri i wouldn't mind adding a little http and mvc section to the start of the Mojolicious::Lite tutorial
22:59 jdixon I know you're not looking at me. ;)
22:59 * sri looks around
22:59 * jdixon hides
22:59 julien also, I set up nginx to execute my script through fcgiwrap. Is there any way to have mojolicious listen for fastcgi calls on a socket ?
23:01 julien sri and jdixon: does any of you read french ? I wrote something like that, maybe it would do
23:01 jdixon non
23:03 julien left #mojo
23:04 julien joined #mojo
23:05 mateu joined #mojo
23:06 * sri learnt french in school but already forgot everything again
23:08 sri you could use plack and FCGI.pm i guess to listen on a port yourself
23:08 sri but in core we require an external proc manager
23:09 sri most people don't use fastcgi anymore
23:09 MisterHatt julien: any reason to not just reverse proxy off hypnotoad or plack?
23:09 jdixon hypnotoad++
23:09 MisterHatt fastcgi isn't really the greatest thing ever
23:09 MisterHatt jdixon: I use starlet >_>
23:11 julien what's the benefit to have hypnotoad server the HTTP over nginx+fastcgi ?
23:11 julien to me, it looks like you're generating HTTP requests and response twice with no benefit
23:12 MisterHatt julien: it's a lot faster?
23:12 MisterHatt and has higher request throughput
23:12 sri http, pure perl, copy on write for less memory usage, zero downtime software upgrades that just work
23:13 sri http is very predictable and easy to debug
23:14 marcus joined #mojo
23:14 sri by that logic you couldn't use web services or databases with http APIs either
23:15 sri in a bigger setup you'll use cascaded reverse proxies for load balancing anyway
23:15 julien so, if I understand right, hypnotoad will load the app and keep it in memory
23:15 julien while fcgiwrap will just re-execute it every time
23:15 sri no
23:16 sri but i think you don't get memory on write with fcgiwrap
23:16 sri umm
23:16 sri copy on write
23:16 purl copy on write is not copying values before it is absolutely necessary.
23:16 sri grr
23:17 marcus COW
23:17 julien I suppose that's worth a few benchmarks
23:18 sri benchmark for what?
23:18 marcus http://search.cpan.org/~veres​c/FCGI-Spawn-0.16.1/Spawn.pm
23:19 marcus weird english in the pod
23:20 julien pure request/response rate between hypnotoad and nginx/fcgiwrap
23:20 sri pointless
23:20 MisterHatt julien: I did that benchmark like 2 weeks ago
23:20 marcus julien: just look at top to see the memory difference :)
23:20 sri it won't be that much different for a real world app
23:20 MisterHatt hypnotoad uses less memory and is significantly faster
23:20 sri what marcus said
23:20 MisterHatt ofc that was a simple hello world app
23:21 marcus cow is much more important with a big app
23:21 MisterHatt I imagine for somethng doing serious processing and DB calls that the difference wouldn't be as noticable, but I think memory usage would be better with hypnotoad
23:21 sri please don't ever make a hello world benchmark, every time i die a little more inside :(
23:22 marcus I am so tweeting that.
23:22 sri heh
23:23 perlrocks Twitter: ""<sri> please don't ever make a hello world benchmark, every time i die a little more inside :(" #mojolicious" --marcusramberg http://twitter.com/marcusramb​erg/status/36928385846345729
23:23 MisterHatt sri: the test was mostly to compare throughput speeds on starlet/twiggy/starman/hypnotoad/corona/etc, not actual performance of the app
23:23 MisterHatt in fact it was psgi, not even mojo really
23:24 sri ok
23:24 * sri wonders which apps depend on throughput
23:24 MisterHatt none?
23:24 purl none is :/
23:24 marcus sri: memory bound chat servers.
23:25 MisterHatt but I was doing the test for a different reason (related to setting up an environment for my company's apps)
23:25 sri marcus: but why would you use mojolicious for the messaging bus?
23:25 sri i suppose some nginx module would be way better
23:26 marcus sri: because it's awesome? :)
23:26 marcus I dunno. I don't have the need
23:26 * marcus is trying to copy photos of an old disk without crashing the mac
23:26 sri mojolicious is for the dynamic backend component
23:27 sri for messaging i would use nginx directly
23:27 marcus made it die twice by importing from lightroom.
23:27 sri poor old mac
23:28 marcus poor old hdd
23:28 marcus it is almost dead, I suspect.
23:28 julien sri: I suppose I will make you die a little bit more inside... but I imagine there is a logical explanation to this test:
23:28 marcus ripped it out of an obsolete pc
23:29 julien I have this index.cgi that's just a hello world
23:29 julien I run it with nginx and fcgiwrap, with 100 simultaneous users, at 1400 hits/s
23:29 julien and with hypnotoad at 90hits/s
23:30 julien how is that possible ?
23:30 julien (both being performed on localhost)
23:30 MisterHatt ffff
23:30 MisterHatt why do people register domains for 15 yearsa?
23:30 MisterHatt it is not any cheaper
23:30 sri index.cgi sounds very very wrong
23:31 MisterHatt and my client has no idea what the login info is to manage his domains, and his previous webdev retired 8 years ago, like goddamn
23:32 julien the index.cgi is ultra basic, it's simply a get '/hello' => sub { shift->render(text => 'Hello World!') }; app->start();
23:32 MisterHatt julien: development or deployment/production env with hypnotoad?
23:32 julien MisterHatt: what do you mean ? it's my linux box that does some hosting, but nothing huge.
23:34 sri julien: don't know what, but you're doing something wrong
23:34 MisterHatt ignore that, I forgot you're not using psgi which will do different things depending on app env, like logging lots of stuff to stdout in dev mode
23:37 julien sri: both servers return a valid HTTP/1.1 response, nginx and fcgiwrap run in a chroot, hypnotoad is launched as root, and I got my version of mojolicious like 2 days ago
23:37 julien the HTTP injection tool is inject32, from willy tarreau (the haproxy guy): http://1wt.eu/tools/inject/
23:37 sri hello world runs at 1400 rps on my macbook
23:38 julien that's interesting
23:38 julien cat I paste the few lines of perl code here ?
23:38 sri not like you have to care much about anything beyond 500, but 90 is just wrong
23:39 julien I do care, I use to work on webservers that had to scale up to 5000 req/s (on java code). not that I want to do that with my mini mojo app, but I'm always curious about the perfs
23:40 sri what requires 5000 rps per server?
23:41 julien a big big company website
23:41 julien with a lot of users connecting at 9am
23:42 julien hum, maybe I don't have io::epoll installed
23:43 sri raw uncached dynamic content?
23:43 sri at 5000 rps?
23:44 marcus sri:  what env are you getting 1400 with? I can only do like 600 on my laptop.
23:44 marcus with hypnotoad and hello world.
23:44 julien no, a good part was static content, so not handled by the java code
23:44 sri now that's something entirely different
23:46 sri marcus: actually i was lying
23:46 sri marcus: it was the quad core desktop
23:46 julien definitely, but still, I like to take a look at the req rate of the code I write
23:46 sri the database and template system will always be the bottlenecks
23:47 marcus julien: nopaste?
23:47 purl nopaste is probably http://nopaste.snit.ch (works with the script in $_PARROT/tools/dev/nopaste.pl) or http://paste.scsys.co.uk or http://www.extpaste.com or http://gist.github.com or App::Nopaste or http://codepeek.com/paste/ or (: pastebot)
23:47 julien sri: that doesn't mean you shouldn't try to make it run faster
23:48 julien I mean, that's a sysadmin point of view, there are a lot of dev who just write slow code (no I'm not pointing java devs) and then blame the sysadmins for not putting enough memory/cpu in the servers
23:49 crab my desktop does ~7k/s on microhttpd.pl
23:50 marcus Requests per second:    13638.36 [#/sec] (mean)
23:51 marcus guess the ssd helps.
23:51 julien well, I tried again, this time with libio-epoll-perl installed, and hypnotoad eats 100% of the cpu and doesn't serve more than 120req/s
23:51 julien Should I set a hypnotoad.conf somewhere ?
23:52 sri sounds very very wrong
23:52 sri crab: wow, thats slow
23:52 marcus Requests per second:    1198.55 [#/sec] (mean) <- hello.pl on my laptop
23:53 marcus with ab -n10000 -c30 -k http://127.0.0.1:8080/welcome
23:53 sri ssd makes such a difference? :O
23:53 Akron joined #mojo
23:53 julien sri: http://nopaste.snit.ch/31736
23:54 crab sri: that's with io::epoll installed, even
23:54 cstamas oh, looking at the script made me realize why the nick jdixon is so familiar to me :)
23:55 marcus sri: my laptop feels completely different.
23:55 cstamas (oh, just realized that 1hour elapsed since...)
23:56 marcus julien: how are you benchmarking it?
23:58 julien marcus: the HTTP injection tool is inject32, from willy tarreau (the haproxy guy): http://1wt.eu/tools/inject/
23:58 purl i already had it that way, julien.
23:59 julien just get inject32.c, build it with gcc -o inject32 inject32.c -lm and run it with ./inject32 -H "localhost" -G "127.0.0.1:8080/hello" -u 100

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