The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-06-03

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

All times shown according to UTC.

Time Nick Message
00:03 Akron Hm.
00:03 zivester joined #mojo
00:03 Akron Golfing this down is fun.
00:04 nicomen in this case, you might want to ungolf for performance rather than brevity
00:05 Akron Maybe. (?:(?:$ATTR_RE){1,2})*+ passes all tests.
00:07 sri no, i like that specific number, it can be googled
00:08 Akron Haha.
00:09 Akron In case a regex engine is really building fsas, {1,2} is more efficient!
00:10 sri well, have you profiled it? :)
00:10 nicomen do you know why just (?:$ATTR_RE)*+ doesn't work?
00:10 Akron (?:(?:$ATTR_RE){1,666})*+ is fine as well.
00:10 sri if it's faster...well... fuck being able to google it ;p
00:11 Akron nicomen: No idea.
00:11 nicomen perl1 feature: # comments
00:12 beyondcreed joined #mojo
00:12 Akron sri: Are you benchmarking?
00:12 sri nope
00:16 sri quick oneliner makes it look slower
00:16 sri a very unscientific time perl -Ilib -Mojo -E 'x("< " . ("lala " x 500000))'
00:16 sri hahahaha
00:16 purl LOLCON 4 reached.
00:16 sri Complex regular subexpression recursion limit (32766) exceeded at lib/Mojo/DOM/HTML.pm line 119.
00:17 sri so much for that Akron
00:18 nicomen sri: but do you get the intended result with the "fixed" version?
00:18 Akron :(
00:18 nicomen (not sure what the intended result should be really)
00:19 sri the intended result is not to get a warning or error
00:19 sri while still being able to pass the official dom.t tests
00:19 sri that oneliner is actually a pretty tough test case
00:20 sri those 500000 "lala"s look like attributes without values until you know there's no trailing ">"
00:22 sri of course, in the end it turns out to be text
00:22 sri all of it, including the "<"
00:22 nicomen aha, this one bails out much faster ;-P
00:23 nicomen $ time perl -Ilib -MXML::TreePP -E 'my $t = XML::TreePP->new("< " . ("lala " x 500000)); print $t->write;'
00:23 nicomen Invalid tree at -e line 1.
00:23 nicomen real    0m0.040s
00:23 sri yea well, Mojo::DOM::HTML does not bail out, it succeeds
00:23 nicomen \o/
00:23 Akron All glory to the hypnotoad!
00:24 nicomen I wonder how the HTML5 spec wants one to parse that
00:24 sri byte for byte
00:24 nicomen ah ya right
00:25 Akron Assume it's a drm mangled video ...
00:26 sri when the wwdc keynote mentioned html5 premium video i so wanted to punch that guy
00:27 Akron Oh - you are right. "premium". That's the word.
00:28 sri tempire: right, please punch that guy from me :o
00:28 Akron :)
00:28 Akron So - I have t go. Good night! \o
00:28 tempire lulz
00:29 sri http://i.imgur.com/V0V34OJ.jpg
00:29 tempire It's amazing how clueless non-creators are
00:29 tempire http://www.forbes.com/sites/briansolomon/2014/06/02/apple-shares-sink-after-wwdc-lacks-new-hardware/
00:29 sri lol
00:30 shmuel joined #mojo
00:30 tempire I don't remember the last time a reporter didn't make me sad about the world.
00:46 jberger Apple really just survives on conspicuous consumption
00:50 fhelmber_ joined #mojo
00:57 laouji joined #mojo
00:59 jberger sri: can you use rxrx to investigate some regex?
01:00 jberger is there some simple form of the regex that demonstrates the problem?
01:21 Averna joined #mojo
01:41 asarch joined #mojo
01:50 klapperl joined #mojo
02:10 elik joined #mojo
02:33 sri at some point i'm going to have to build some pub/sub helpers for Mango
02:33 sri jberger: dunno, can i?
02:34 sri i've cleaned up minion some more and made return values more clear
02:35 sri jberger: let me know if you see something that could be simplified
02:38 tempire lulz
02:39 tempire cocoapods is doing a hackathon this weekend; a program chooses 3 random pods and your group has to make an app based on them.
02:44 sri that reminds me... we totally missed out on the opportunity to play the cpan drinking game at mojoconf
02:46 russum joined #mojo
02:50 fhelmber_ joined #mojo
02:51 tempire Next year we'll do cool things.
02:51 tempire A question and answer session would probably be good.
02:51 tempire And entertaining.
02:54 * sri nods
02:54 cpan_mojo Minion 0.11 by Sebastian Riedel - http://metacpan.org/release/SRI/Minion-0.11 (depends on Mojolicious)
02:56 crab what's the cpan drinking game? every time someone uploads a module to cpan, you take a drink?
02:56 crab if it fails its tests on >1 platform, you take a drink
02:56 crab if it has a proper readme, you take a drink
03:46 basic6 joined #mojo
03:50 cpan_mojo Minion 0.12 by Sebastian Riedel - http://metacpan.org/release/SRI/Minion-0.12 (depends on Mojolicious)
04:04 dotandimet joined #mojo
04:09 jnbek joined #mojo
04:24 laouji joined #mojo
04:51 fhelmber_ joined #mojo
04:58 laouji joined #mojo
05:33 neyasov____ joined #mojo
06:08 Eke- joined #mojo
06:39 dpetrov_ joined #mojo
06:39 eugen joined #mojo
06:45 dod joined #mojo
06:51 fhelmber_ joined #mojo
06:56 marcus sri++ # lean mean coding machine
07:00 tianon crab: don't forget Changes, and then again for a well-formed Changes that actually parses nicely :)
07:02 eseyman joined #mojo
07:09 laouji_ joined #mojo
07:24 charsbar___ joined #mojo
07:24 dj_goku joined #mojo
07:24 mikegrb joined #mojo
07:24 throughnothing joined #mojo
07:24 Kovensky joined #mojo
07:24 phillipadsmith joined #mojo
07:24 mtj joined #mojo
07:24 chansen joined #mojo
07:24 HtbaaPi joined #mojo
07:24 Ralesk joined #mojo
07:24 jzawodn joined #mojo
07:24 Phil21 joined #mojo
07:24 cfedde joined #mojo
07:24 bjoernfan joined #mojo
07:24 sawtooth joined #mojo
07:24 dwierenga joined #mojo
07:24 salparadise joined #mojo
07:24 stokachu joined #mojo
07:24 ryanc joined #mojo
07:24 yko joined #mojo
07:24 rwp joined #mojo
07:24 KindOne joined #mojo
07:24 mil joined #mojo
07:24 nic joined #mojo
07:24 mattp joined #mojo
07:24 abhishekisnot joined #mojo
07:24 Mikey joined #mojo
07:24 dududude joined #mojo
07:24 neyasov joined #mojo
07:24 batman joined #mojo
07:24 diegok joined #mojo
07:24 mudler joined #mojo
07:24 memowe joined #mojo
07:24 DaTa joined #mojo
07:24 bowtie joined #mojo
07:24 cotto joined #mojo
07:24 tempire joined #mojo
07:24 rblackwe joined #mojo
07:24 tomboh joined #mojo
07:24 cooper joined #mojo
07:24 preaction joined #mojo
07:24 ironcamel joined #mojo
07:24 Foxcool joined #mojo
07:24 sri joined #mojo
07:24 mport joined #mojo
07:24 ceej joined #mojo
07:24 omega joined #mojo
07:24 dexteruk joined #mojo
07:24 D4RK-PH0ENiX joined #mojo
07:24 kbenson joined #mojo
07:24 ivan joined #mojo
07:24 Rallias joined #mojo
07:24 dotan joined #mojo
07:24 hkclark joined #mojo
07:24 sugar joined #mojo
07:24 hesperaux joined #mojo
07:24 oetiker joined #mojo
07:24 alnewkirk joined #mojo
07:24 maze joined #mojo
07:24 riche joined #mojo
07:24 priodev joined #mojo
07:24 romel joined #mojo
07:24 basic6 joined #mojo
07:24 jnbek joined #mojo
07:24 Vandal joined #mojo
07:24 rawler joined #mojo
07:24 basiliscos joined #mojo
07:24 laouji joined #mojo
07:24 dpetrov_ joined #mojo
07:24 eseyman joined #mojo
07:24 dod joined #mojo
07:24 eugen joined #mojo
07:24 Eke- joined #mojo
07:24 risugg joined #mojo
07:24 Negor joined #mojo
07:24 Claudio joined #mojo
07:24 Adura joined #mojo
07:24 howitdo joined #mojo
07:24 dotan_dimet joined #mojo
07:24 dj_goku_ joined #mojo
07:24 odc joined #mojo
07:24 crab joined #mojo
07:24 kvorg joined #mojo
07:24 genio joined #mojo
07:24 kmx joined #mojo
07:24 DaniBunny joined #mojo
07:24 nikita joined #mojo
07:24 tianon joined #mojo
07:24 bzero joined #mojo
07:24 yusukebe joined #mojo
07:24 michael_ joined #mojo
07:24 ssm joined #mojo
07:24 inokenty joined #mojo
07:24 Gedge joined #mojo
07:24 cosimo joined #mojo
07:24 mtths joined #mojo
07:24 doby joined #mojo
07:24 suy joined #mojo
07:24 Bender joined #mojo
07:24 marcus joined #mojo
07:24 Jonis joined #mojo
07:24 jberger joined #mojo
07:24 dahl joined #mojo
07:24 lupi joined #mojo
07:24 nemux joined #mojo
07:24 robinsmidsrod joined #mojo
07:24 geira joined #mojo
07:24 shadowpaste joined #mojo
07:24 noidd joined #mojo
07:24 upasana joined #mojo
07:24 dsog joined #mojo
07:24 Kundun joined #mojo
07:24 augensalat joined #mojo
07:24 moritz joined #mojo
07:24 BinGOs joined #mojo
07:24 xtetsuji joined #mojo
07:24 garu joined #mojo
07:24 gabiruh joined #mojo
07:24 Andreas joined #mojo
07:24 mst joined #mojo
07:30 igorsutton joined #mojo
07:32 trone joined #mojo
07:37 trone joined #mojo
07:49 denis_boyun joined #mojo
08:16 edestler joined #mojo
08:38 dgikiller joined #mojo
08:41 ver joined #mojo
08:45 jim joined #mojo
08:51 fhelmber_ joined #mojo
08:55 denis_boyun joined #mojo
09:11 nicomen did anyone use Mojolicious::Plugin::LeakTracker?
09:45 denis_boyun joined #mojo
10:06 rem_lex|pivo joined #mojo
10:17 laouji joined #mojo
10:22 laouji_ joined #mojo
10:27 laouji joined #mojo
10:27 laouji_ joined #mojo
10:34 laouji joined #mojo
10:40 alnewkirk joined #mojo
10:41 fhelmber_ joined #mojo
10:44 laouji joined #mojo
11:02 laouji joined #mojo
11:03 neyasov____ joined #mojo
11:07 D4RK-PH0ENiX joined #mojo
11:08 laouji joined #mojo
11:12 mishantil Sooo.. mojoconf again soon? :)
11:13 sjn mishantil: wanna organize one? :)
11:18 mishantil sjn: First time for everything eh? But yeah, might do. I'll have to be sure that we are able to follow up on the excellent work of this years organizers though.
11:21 sjn mishantil: start by finding 3-5 people who want to help you make it happen, and when you're happy with their commitment, then submit your proposal here :)
11:31 Akron joined #mojo
11:33 d4rkie joined #mojo
11:49 d4rkie joined #mojo
11:52 ryozi joined #mojo
12:05 laouji joined #mojo
12:31 mire__ joined #mojo
12:39 sugar joined #mojo
13:06 nic Akron++  # Mojolicious::Plugin::WebFinger
13:06 nic Was just looking at remotestorage thinking we need support for perl servers :)
13:09 Couple joined #mojo
13:09 sshaw joined #mojo
13:10 neilhwatson joined #mojo
13:10 Couple left #mojo
13:13 cpan_mojo Mojolicious-Plugin-YamlConfig 0.1.8 by Danijel Tasov - http://metacpan.org/release/DATA/Mojolicious-Plugin-YamlConfig-0.1.8
13:32 Akron nic: Hey, yes - we do! :)
13:36 sri maybe someone here has an idea https://groups.google.com/forum/#!topic/mojolicious/-Ro0_w4cblg
13:47 btyler joined #mojo
13:51 nicomen is there a doc page with backward compatiblity issues in mojo? (someone is asking at work for upgrade from 4.83 to 5.03)
14:00 nic https://groups.google.com/forum/#!topic/mojolicious/PYfjHyVj26w
14:01 nicomen ah thanks that is useful
14:07 punter joined #mojo
14:12 disputin joined #mojo
14:14 avenj joined #mojo
14:14 cpan_mojo Test-Mojo-Most 0.01 by Lee Johnson - http://metacpan.org/release/LEEJO/Test-Mojo-Most-0.01
14:14 cpan_mojo Mojolicious-Plugin-Mail 1.3 by Anatoly Sharifulin - http://metacpan.org/release/SHARIFULN/Mojolicious-Plugin-Mail-1.3
14:30 disputin joined #mojo
14:44 gryphon joined #mojo
14:59 oetiker_ joined #mojo
15:15 dotandimet joined #mojo
15:16 KindOne joined #mojo
15:21 sri hmmm
15:21 sri i have a hackish solution for the problem in the mailing list i linked to earlier
15:22 crab what is?
15:22 sri little less hackish than before... but still
15:22 sri http://pastie.org/9254373
15:23 sri a new attribute for Mojo::Content that signals if a connection close is to be expected, and a way for Mojo::UserAgent to disable relaxed connection close handling
15:24 sri the real problem is broken responses for CONNECT requests, they are just a broken anomaly
15:28 crab the patch doesn't seem terrible
15:29 sri the big problem is always HTTP/1.0 and just plain broken cases we have to support
15:35 good_news_everyon joined #mojo
15:35 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/vTXb7g
15:35 good_news_everyon mojo/master 079514f Sebastian Riedel: improved support for broken responses to CONNECT requests
15:35 good_news_everyon left #mojo
15:44 good_news_everyon joined #mojo
15:44 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/Tg9p9g
15:44 good_news_everyon mojo/master 745a67c Sebastian Riedel: slightly better test case
15:44 good_news_everyon left #mojo
15:48 dotandimet joined #mojo
15:59 Tiger joined #mojo
16:01 beyondcreed joined #mojo
16:02 Dandre joined #mojo
16:10 denis_boyun joined #mojo
16:13 cfedde Why does my Mojo::IOLoop->recurring not  seem to run in my Test::Mojo scripts?
16:17 cfedde as soon as I run the app with morbo the IOLoop seems to run. but when run by Test::Mojo it does not seem to run at all
16:21 nicomen $ perl -wlE 'use Test::Mojo; use Mojo::IOLoop; print Mojo::IOLoop->is_running ? "running" : "not running";'
16:22 nicomen not running
16:22 nicomen http://mojolicio.us/perldoc/Mojo/IOLoop#start
16:28 fhelmber_ joined #mojo
16:31 cfedde perl -MTest::Mojo -MMojo::IOLoop  -E 'Mojo::IOLoop->start; say Mojo::IOLoop->is_running ? "running" : "not running";'
16:31 cfedde not running
16:35 nicomen cfedde: you probably need to start the io loop yourself
16:36 sh4 joined #mojo
16:45 KindOne joined #mojo
16:54 crab cfedde: if you start an ioloop with nothing to do, it won't do anything
16:54 crab cfedde: the "say" in your example is reached only after the ioloop exits
16:55 crab "Start the event loop, this will block until "stop" is called. Note that some reactors stop automatically if there are no events being watched anymore."
16:55 ua_ joined #mojo
16:56 crab so yes, you need to start it, but after giving it something to do
17:01 davido_ joined #mojo
17:08 mire__ joined #mojo
17:23 mullinator joined #mojo
17:24 mullinator hello, I am new to mojolicious and I am having some issues using the tt plugin
17:24 mullinator I am setting the default renderer to tt, and the controller is still using the stock renderer
17:24 mullinator when I attempt to use render_tt, it bitches that the method does not exist in the controller object.
17:27 asarch joined #mojo
17:29 sri you should report the missing helper to the author then
17:30 sri (or wrong documentation)
17:33 mullinator figured it out.
17:33 mullinator I didnt realize the extension needed to be .tt
17:38 mire__ joined #mojo
17:52 Eke- joined #mojo
17:57 ua_1 joined #mojo
17:58 basiliscos joined #mojo
17:59 elik joined #mojo
18:08 dotandimet joined #mojo
18:11 abra joined #mojo
18:18 dvinciguerra joined #mojo
18:18 denis_boyun joined #mojo
18:29 russum joined #mojo
18:42 mire__ joined #mojo
18:47 ua_ joined #mojo
18:53 ua_1 joined #mojo
19:06 punter joined #mojo
19:09 skiehn joined #mojo
19:38 sri oh apple...lol https://pbs.twimg.com/media/BpN92WiCIAAHKlf.jpg:large
19:38 howitdo joined #mojo
19:40 neilhwatson WTF?
19:45 tempire Just be happy they even mentioned Perl
19:46 neilhwatson I've never been to the land of rainbows and unicorns where Java is fast.
19:46 tempire Java is actually hella fast these days
19:46 marcus we do seem to get the short end of the stick in that graph
19:46 marcus ruby is faster and faster? :-p
19:47 marcus and lua is slow? Someone must have smoked something good while making that.
19:48 tempire He who makes the slides has the power
19:48 tempire It's a timeless law
19:50 sri "but the slide looks better this way"
19:50 sri -- someone from the apple design department
19:51 btyler also, js slower than ruby or python is pretty wacky
19:52 sri lua is crazy fast
19:52 btyler yeah, luajit is incredible
19:53 btyler but I'd imagine js <=> python/ruby is fairly common knowledge among dev types who work with scripting langs
19:53 btyler I love lua, but it is less known
20:08 Akron joined #mojo
20:13 Akron nic: Did you start a repo for remotestorage?
20:13 Akron remojostorage ... ;)
20:25 sh4|2 joined #mojo
20:30 marcus I actually think the most striking thing about the slide is that c# is missing completely
20:32 tempire I guess it is neither fast nor easy to develop in.
20:39 cpan_mojo Minion 0.13 by Sebastian Riedel - http://metacpan.org/release/SRI/Minion-0.13 (depends on Mojolicious)
20:40 * sri added another backend method for listing registered workers
20:42 sri that makes 14 methods every backend needs
20:44 sri no wait, 15 actually :o
20:45 lb there are 16 methods which every backend requires
20:47 sri no 15
20:48 marcus Our chief weapon is surprise...surprise and fear...fear and surprise.... Our two weapons are fear and surprise...and ruthless efficiency.... Our *three* weapons are fear, surprise, and ruthless efficiency...and an almost fanatical devotion to the Pope.... Our *four*...no... *Amongst* our weapons.... Amongst our weaponry...are such elements as fear, surprise....
20:53 dotandimet joined #mojo
20:55 dotandimet1 joined #mojo
20:58 dotandimet joined #mojo
21:11 good_news_everyon joined #mojo
21:11 good_news_everyon [mojo] kraih tagged v5.04 at b95bb1f: http://git.io/XuOS2A
21:11 good_news_everyon left #mojo
21:12 cpan_mojo Mojolicious 5.04 by Sebastian Riedel - http://metacpan.org/release/SRI/Mojolicious-5.04
21:12 good_news_everyon joined #mojo
21:12 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/dv3LdQ
21:12 good_news_everyon mojo/master d632239 Sebastian Riedel: bump version
21:12 good_news_everyon left #mojo
21:30 riche joined #mojo
21:33 * sri hopes abstracting out the minion backend will be worth it in the end
21:59 Gedge joined #mojo
22:04 * nic decides it's ok to remove Mojolicious v2.55 from a server
22:05 * sri faints
22:07 nic (it was an install from when I was trying it out for the first time; haven't used it since :) )
22:20 disputin joined #mojo
22:34 denis_boyun_ joined #mojo
22:43 * tempire swifts his codez
22:44 dvinciguerra joined #mojo
22:45 riche man ur lucky to play with code all day, i've been in spreadsheets most of the day
22:45 d4rkie joined #mojo
22:47 basiliscos joined #mojo
23:01 rem_lex joined #mojo
23:43 meshl joined #mojo
23:49 cpan_mojo Mojolicious-Plugin-Piwik 0.14 by Nils Diewald - http://metacpan.org/release/AKRON/Mojolicious-Plugin-Piwik-0.14

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