Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-06

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

All times shown according to UTC.

Time Nick Message
01:09 laouji joined #mojo
01:57 d4rkie joined #mojo
02:21 crab what did you actually do?
02:26 ispy_ joined #mojo
02:35 sri crab: changed the way we handle MOJO_APP
02:36 sri which required many small changes to how we instantiate apps and handle other small detection problems
02:36 sri https://github.com/kraih/mojo/commit/21​11684fe5b986d00ec5e8abef405d414aa34086
02:37 sri that's the main commit
02:37 Psyche^ joined #mojo
02:37 sri it may look simeple, but is quite complex
02:38 sri s/e//
02:41 sri grep for MOJO_APP and try to grok what the code does :)
02:43 sri most of it only gets complex with embedded applications, since there's global state involved
02:43 sri basically... i've reduced global state as much as i could without big backcompat breakage
02:44 sri removing MOJO_APP completely would be a logical next step
02:47 sri https://github.com/kraih/mojo/commit/2111​684fe5b986d00ec5e8abef405d414aa34086#L3L9
02:47 sri that code was the core problem
02:48 sri it stored objects in %ENV
02:48 sri and all the other stuff mostly depended on that
03:01 ispy_ joined #mojo
03:02 noganex_ joined #mojo
03:27 GitHub116 joined #mojo
03:27 GitHub116 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/e9​a69a7e79f48144de5227f4c7c365e87d008570
03:27 GitHub116 [mojo/master] added synopsis for cookie jar - Sebastian Riedel
03:27 GitHub116 left #mojo
03:32 * diegok got all the cookies from the jar
03:32 sri :o
03:48 GitHub175 joined #mojo
03:48 GitHub175 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/cb​67cf4368122711c35ddade4f344f13a8d1a897
03:48 GitHub175 [mojo/master] more transactor examples - Sebastian Riedel
03:48 GitHub175 left #mojo
04:04 GitHub154 joined #mojo
04:04 GitHub154 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/b7​2b3537a2d5e8266ed77e9b4cf52291392f7574
04:04 GitHub154 [mojo/master] a few more synopsis examples - Sebastian Riedel
04:04 GitHub154 left #mojo
04:42 xaka joined #mojo
04:44 arpadszasz joined #mojo
04:48 Britzel joined #mojo
05:53 spleenjack joined #mojo
06:01 dbr joined #mojo
06:22 osprey_ joined #mojo
06:29 ovnimancer joined #mojo
06:44 pau4o joined #mojo
06:59 beyondcreed joined #mojo
07:11 Vandal joined #mojo
07:17 taryk joined #mojo
07:21 jamesw joined #mojo
07:45 tholen joined #mojo
07:52 fhelmber_ joined #mojo
08:33 marcus sri: can we add .ogg to Mojolicious::Types ?
08:56 mire joined #mojo
09:03 batman_ joined #mojo
09:08 tholen joined #mojo
09:09 tholen42 joined #mojo
09:23 berov joined #mojo
09:26 berov left #mojo
09:49 mjy joined #mojo
09:49 mjy hi, is it (still) true that a mojolicious::lite script should run directly under mod_fcgid (not mod_fastcgi)?
10:04 batman hi, i'm trying to test "close" event in Mojo::IOLoop::Stream: I'm trying to do Mojo::IOLoop->remove($server_id); but the close event in client stream is not fired. any idea how i can do that?
10:05 berov joined #mojo
10:06 berov Hey,
10:08 berov what happened with the MojoX namespace convention? What would be a recommended namespace for something(application) which heavily uses/inherits Mojolicious functionality, but is not necessarily a plugin?
10:09 berov Should I go for a Top level namspace or..
10:09 batman berov: you can choose something completely different if you like. Berov.pm or something :)
10:09 berov use Mojo::...
10:10 batman if it's an application, i would rather name it something that has something to do with the application, rather than using Mojolicious::
10:10 berov yea :)  agree
10:12 batman what does the app do?
10:12 batman don't really need to be relevant either... call it Cookie::Monster if you like :)
10:12 berov it is a base for a CMS
10:13 berov like Drupal actualy CMF like drupal
10:13 batman ok. sure it's not going to be a plugin?
10:13 batman ok
10:13 berov No
10:13 berov there is already something I started
10:13 berov but t bekame too monolitic
10:13 batman ok
10:13 berov I started decoupling it
10:14 berov when something can be a Mojolicious::Plugin
10:14 berov I make it like plugin
10:14 berov and when it is specific to the app
10:15 berov it should go to the app's namespace
10:15 berov It can be MyApp::Plugin::* too
10:16 berov inheriting at the top  from Mojolicious::Plugin..
10:17 berov then.. from the minimal base app can be constructed "profiles"(Drupal) or bundles (Simfony) or Task(s) Modern perl :)
10:18 berov just wanted to know what people would find more "natural" and "obvious" and perlish
10:18 berov the mojo people - because it is based on mojolicious
10:19 batman when i create plugins i normally do Mojolicious::Plugin::
10:19 batman when creating apps i normally do App::Whatever::Web
10:19 batman that way i can do App::Whatever::Cli or something later...
10:20 berov so.. The App namespace is agood choice
10:20 batman no, sorry.
10:20 batman Whatever::Web :)
10:20 berov ?
10:20 berov ah
10:20 berov aha, I understand
10:20 batman but you can use the App:: prefix if you like... no one here to stop you really...
10:20 berov ye
10:21 batman but i tend to do Whatever:: which is just a module with version inside and POD, and then Whatever::Model, Whatever::Web, ...
10:21 batman but that's just me
10:21 berov ye , exactly how I think
10:23 berov is this you? http://search.cpan.org/~jhthorsen/App-Mypp-0.13/
10:24 batman yes
10:24 batman :P
10:24 berov ah ok, will explore
10:24 batman berov: i suggest using metacpan.org instead of search.cpan.org
10:24 batman it's so much better
10:27 berov well will have to read somewhere to find the differences
10:27 batman differences between metacpan and search.cpan?
10:27 berov :)
10:27 berov well yes
10:27 batman just look at it: http://metacpan.org :S
10:27 berov I use it
10:28 batman ah
10:28 berov an instant search box
10:28 berov and… reverce dependencies
10:28 berov and...
10:28 berov anyway
10:29 batman how did you find mypp? googled me?
10:30 berov no
10:31 berov searched in cpan for jhthorsen
10:31 berov which got from here
10:37 batman aha :)
10:38 arpadszasz joined #mojo
11:01 arpadszasz joined #mojo
11:10 marcus he's a professional cyberstalker
11:21 nicomen how do I use ojo to get the content of a json pointer out in a one-liner?
11:21 nicomen g(URL)->json(path) didn't seem to do the trick?
11:27 daxim joined #mojo
11:28 marcus it should?
11:29 marcus nicomen: perl -Mojo -E'say g("ifconfig.me/all.json")->json("/connection")'
11:56 arpadszasz joined #mojo
12:37 mjy hi, is it (still) true that a mojolicious::lite script should run directly under mod_fcgid (not mod_fastcgi)? I must have done something wrong if it should ...
12:42 sri marcus: -1, ogg is too uncommon imo, i'd rather like to see a MIME::Types plugin for everything else on cpan
13:00 jnap joined #mojo
13:05 jnap joined #mojo
13:13 marcus sri: it's one of the types you have to support for html5 audio.
13:14 marcus firefox and chrome supports it.
13:21 sri marcus: yea, it's not even cross platform
13:52 gryphon joined #mojo
13:57 Lucas1 joined #mojo
14:08 arpadszasz joined #mojo
14:13 sri we also don't have mp4 or ogg video mime types for html5 video
14:14 sri anyway, if you care have a vote, if not then it doesn't deserve to be in core ;p
14:15 daniel_ joined #mojo
14:22 marcus html5 is hot tho :)
14:22 marcus I'll add a vote
14:24 sri marcus++
14:26 nicomen marcus: opera too, I believe ogg vorbis and ogg theora are the only really free options out there
14:28 sri webm is free too
14:29 nicomen ah you are of course correct
14:29 sri html5 video and audio codes are a total mess though
14:29 sri i'm still hoping it will get resolved somehow
14:31 nicomen yeah, everyone wanted their solution
14:31 nicomen and the ones big enough to have h.264 support wanted to get something out of their licenses
14:31 nicomen the end was that no formats where defined
14:32 sri does audio/ogg really use ogg *and* oga extensions or is one more common?
14:32 nicomen (not to mention existing hardware with h.264 decoding)
14:32 nicomen sri: I think most oggvorbis content uses .ogg and theora .ogv
14:33 sri right you are
14:33 sri just looked through the specs and they use .ogg and .ogv
14:34 nicomen it seems someone wants to use ogx for generic ogg container and oga for audio, and ogv for video: http://wiki.xiph.org/index.php/​MIME_Types_and_File_Extensions
14:34 sri i think sticking with w3c specs is the best thing to do here
14:35 sri it's a good general rule of thumb for future additions to our mime types... "w3c spec or gtfo!" :)
14:35 mire joined #mojo
14:36 nicomen http://www.rfc-editor.org/rfc/rfc5334.txt ;)
14:36 nicomen but I see your point
14:36 sri ietf specs should be taken with a grain of salt ;p
14:37 berov w3spec++
14:37 daxim w3c does not govern types, ietf rfcs do.  they are collected at http://www.iana.org/assignments/media-types/
14:38 sri correct, but we don't care about *all* mime types
14:38 sri just the ones w3c recommends
14:40 sri in fact, for mojolicious core i still believe we should stick with the most common ones, and leave everything else for plugins
14:42 daxim http://p3rl.org/Plack::MIME has a sensible list
14:43 sri that's bullshit
14:43 sri text/x-c? seriously?
14:43 sri x-fortran?
14:44 * sri falls off chair
14:44 nicomen what, no text/x-perl ?
14:47 sri text/x-script.perl!
14:50 sri tempire, crab: your votes count
15:01 hunt joined #mojo
15:07 asarch joined #mojo
15:18 Britzel joined #mojo
15:21 batman not sure if this is strange, but i was surprised: i'm doing $stream->write($_) for @chunks; on the client side and i expected the server to emit "read" on each chunk, but sometimes i can do 100 writes and only 90 reads
15:26 sri nothing strange about that
15:27 batman i thought each write() would be one tcp packet which again emitted one read event
15:27 CromeDome joined #mojo
15:41 sri that's not how sockets work
15:42 batman i see
15:49 sri if you want message framing you need a protocol like websockets
15:50 batman ok
15:50 xaka joined #mojo
15:51 sri or as tempire would recommend, zeromq :)
15:55 pau4o left #mojo
15:59 jnap joined #mojo
16:03 jnap joined #mojo
16:05 labrown joined #mojo
16:08 marcus joined #mojo
16:14 inokenty joined #mojo
16:18 sri maybe we should also remove the x- prefix from application/x-javascript
16:18 inokenty joined #mojo
16:20 sri same for woff i guess
16:29 GitHub178 joined #mojo
16:29 GitHub178 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/81​3d36c15983d0a4c92da7b2b488a76ab5ae9aec
16:29 GitHub178 [mojo/master] removed x- prefix from js and woff MIME types - Sebastian Riedel
16:29 GitHub178 left #mojo
16:29 Lucas1 joined #mojo
16:31 preflex_ joined #mojo
16:34 sri and the gzip mime type is wrong :o
16:37 hunt joined #mojo
16:37 * sri shakes tempire and crab
16:41 marcus nicomen: FOR THE LOVE OF GOD, SOMEONE FIX THE MIMES!
16:41 sri oh, xml mime type also changed to application/xml
16:41 rem_lex| joined #mojo
16:42 asarch joined #mojo
16:42 labrown I, I don't remember what happened, sir.  I was just walking home with my groceries and it started to follow me...  It kept making funny faces... That's when I hit it with the olive loaf.  I don't remember anything after that
16:44 * sri facepalms
16:45 sri i actually used the correct xml mime type in browser examples... but then kept using the wrong one for the rest
16:48 * marcus looks at IRC::RemoteControl. Interesting module, but goddamn what a horrible dependency graph.
16:48 d4rkie joined #mojo
16:52 sri marcus: are the mime types i listed all you want?
16:52 hunt joined #mojo
16:52 marcus sri: yes
16:53 marcus sri: I think with your +1 vote and mine it's unlikely to not be implemented.
16:53 sri i think you might be correct
16:57 Datamongers joined #mojo
17:00 jnap joined #mojo
17:02 GitHub109 joined #mojo
17:02 GitHub109 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/30​7a5db475a7cd7064c24e68de752cd17d8ae489
17:02 GitHub109 [mojo/master] fixed gz, xml and xsl MIME types and added new ones for HTML5 audio/video (closes #368) - Sebastian Riedel
17:02 GitHub109 left #mojo
17:06 jnap joined #mojo
17:12 sri interesting, webm uses vorbis for audio
17:17 sri damn, perian project is dead :(
17:33 Datamongers joined #mojo
17:44 bobkare joined #mojo
17:45 bobkare joined #mojo
18:12 mire joined #mojo
18:12 hide joined #mojo
18:12 jzawodn joined #mojo
18:12 BinGOs joined #mojo
18:12 garu joined #mojo
18:12 ashleydev joined #mojo
18:12 bzero joined #mojo
18:12 mikegrb joined #mojo
18:12 charsbar__ joined #mojo
18:12 whee joined #mojo
18:12 njlg joined #mojo
18:12 ruz joined #mojo
18:12 keedi joined #mojo
18:12 mattp_ joined #mojo
18:12 diegok joined #mojo
18:12 trone joined #mojo
18:12 phips joined #mojo
18:12 drift joined #mojo
18:12 yko joined #mojo
18:12 jmmills joined #mojo
18:12 memowe joined #mojo
18:12 rwstauner joined #mojo
18:12 jwang joined #mojo
18:12 kvorg joined #mojo
18:12 perlite joined #mojo
18:12 zivester joined #mojo
18:12 batman joined #mojo
18:12 mjy joined #mojo
18:12 gryphon joined #mojo
18:12 Lucas1 joined #mojo
18:12 preflex joined #mojo
18:12 rem_lex| joined #mojo
18:12 hunt joined #mojo
18:12 CromeDome joined #mojo
18:12 arpadszasz joined #mojo
18:12 daxim joined #mojo
18:12 jamesw joined #mojo
18:12 spacebat joined #mojo
18:12 gabiruh joined #mojo
18:12 Ulti joined #mojo
18:12 Annihitek joined #mojo
18:12 nuba joined #mojo
18:12 Mikey joined #mojo
18:12 espen joined #mojo
18:12 heytrav joined #mojo
18:12 dwierenga joined #mojo
18:12 nicomen joined #mojo
18:12 bjoernfan joined #mojo
18:12 human39 joined #mojo
18:12 mike_ joined #mojo
18:12 chansen joined #mojo
18:47 GitHub18 joined #mojo
18:47 GitHub18 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/60​db8138f73167f7b8a8cd152d92d82ff99e1cdd
18:47 GitHub18 [mojo/master] detect both XML MIME types - Sebastian Riedel
18:47 GitHub18 left #mojo
18:49 sri the spec is a little weird, text/xml is for human readable xml while application/xml is for apis... they've tried to deprecate text/xml... but both are still valid
18:54 Netfeed what about application/soap+xml and so on?
18:54 dwierenga joined #mojo
18:55 * sri shoots Netfeed
18:55 Netfeed :(
19:04 sri marcus: m4a for audio/mp4 might also make sense
19:05 sri but i can't find that much information about it
19:07 sri guess i'll leave that out until someone can give me a very detailed explanation :)
19:59 Liam`` joined #mojo
20:07 sri oooh
20:07 sri new github notifications! \o/
20:09 xaka joined #mojo
20:16 batman_ joined #mojo
20:41 dwierenga joined #mojo
21:07 rem_lex|pivo joined #mojo
21:26 nicomen sri: finally! hope they don't suck ;
21:26 nicomen )
21:41 jnap joined #mojo
21:47 GitHub44 joined #mojo
21:47 GitHub44 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/31​a0abe113703b7e92edffbaa3733576aa160900
21:47 GitHub44 [mojo/master] list built-in MIME types - Sebastian Riedel
21:47 GitHub44 left #mojo
21:48 sri not sure yet if listing the mime types is a good or bad idea
21:53 lukep joined #mojo
22:05 preflex_ joined #mojo
22:08 sri hmm, i guess it's important information
22:09 daniel_ joined #mojo
22:18 Liam`` joined #mojo
22:31 mjy left #mojo
23:28 mire joined #mojo

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