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

IRC log for #mojo, 2014-12-25

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

All times shown according to UTC.

Time Nick Message
00:18 good_news_everyon joined #mojo
00:18 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/gnPfCA
00:18 good_news_everyon mojo/master 175bacc Sebastian Riedel: show how to combine arguments
00:18 good_news_everyon left #mojo
00:25 woz joined #mojo
00:29 bobkare joined #mojo
00:41 bobkare joined #mojo
01:27 KCL_ joined #mojo
02:14 woz joined #mojo
02:57 klapperl joined #mojo
03:23 bobkare joined #mojo
03:40 bobkare joined #mojo
03:47 bobkare joined #mojo
03:50 noganex_ joined #mojo
03:53 bobkare joined #mojo
03:59 bobkare joined #mojo
04:03 woz joined #mojo
04:48 inokenty-w joined #mojo
05:40 bobkare joined #mojo
05:51 woz joined #mojo
05:53 bobkare joined #mojo
06:26 bd joined #mojo
06:30 D joined #mojo
06:39 rem_lex|pivo joined #mojo
06:42 bobkare joined #mojo
06:49 davido_ joined #mojo
06:53 go|dfish joined #mojo
07:23 Vandal joined #mojo
07:40 woz joined #mojo
08:06 sugar joined #mojo
08:19 Vandal joined #mojo
08:21 bobkare joined #mojo
08:24 dod joined #mojo
08:24 dod joined #mojo
08:44 neyasov_ joined #mojo
08:51 KindOne joined #mojo
08:57 irq joined #mojo
09:24 ver joined #mojo
09:29 woz joined #mojo
09:35 sugar_ joined #mojo
09:59 neyasov_ joined #mojo
10:06 amon joined #mojo
10:30 neyasov__ joined #mojo
10:37 Eke- joined #mojo
11:02 Eke- joined #mojo
11:18 woz joined #mojo
11:34 sugar__ joined #mojo
11:43 irq joined #mojo
12:28 denis_boyun joined #mojo
13:07 woz joined #mojo
13:27 KCL joined #mojo
13:38 Eke- joined #mojo
13:43 Eke|| joined #mojo
14:12 user joined #mojo
14:13 franck34 hi
14:13 purl hi, franck34.
14:13 franck34 got a problem for rendering simple json
14:13 franck34 https://gist.github.com/eviltik/a64843f904e7f97b2961
14:13 franck34 any idea ?
14:13 purl any idea is welcomed.
14:18 franck34 got it, sorry, noob here
14:26 jberger franck34: first of all, purl is a bot
14:26 jberger purl: botsnack
14:26 purl :)
14:27 jberger franck34: second, we can't know anything until you would post some code. hopefully a nice minimal case demonstration
14:27 jberger oh oops
14:27 jberger I missed it in there
14:28 jberger ok, so you are trying to render as part of your route definition
14:29 jberger which isn't going to work
14:29 franck34 yes thanks exact
14:29 franck34 i just start mojo this morning ;)
14:29 franck34 it's ok thanks i understood that my render stuff must be in a sub
14:30 jberger in that case, please read the tutorial and guides in the order here
14:30 jberger http://mojolicio.us/perldoc
14:30 purl http://mojolicio.us/perldoc is lovely
14:30 jberger awww thanks purl
14:30 franck34 i'm reading and testing in the same time, so sorry for noise
14:30 franck34 ha
14:30 franck34 just a question regarding websocket
14:31 franck34 is there an automatic fallback mecanism if websocket upgrade failed ?
14:31 jberger like to flash or something?  no
14:31 franck34 by example, baye/fayeux fallback to jsonp if there is a reverse proxy between client and server which does not accept websocket
14:31 franck34 ok
14:32 jberger I believe there are js libraries that can handle that
14:32 jberger but I typically don't care
14:33 jberger http://caniuse.com/#feat=websockets
14:34 franck34 well, it's not a client compat problem, it's a reverse proxy or proxy between client and server
14:34 jberger franck34: which rev proxy are you using?
14:35 franck34 i'm working on a GUI which need some realtime stuff (elastic search -> logstash -> redis -> pub/sub -> mojo -> websocket -> client)
14:35 franck34 it's an industrial product so i can't tell you which rev proxy customer will use
14:35 jberger nginx works with negligible configuration
14:35 franck34 i just know that faye/bayeux on nodejs got a nice jsonp fallback mecanisme
14:36 jberger mod_proxy has something
14:36 franck34 yep but i'll not be able to tell customers to upgrade their rev proxy :) (f5 denyall rweb imperva ...)
14:36 jberger jsonp can't do server side push
14:37 jberger so it would have to be supplemented by some long poll
14:37 franck34 yep
14:38 franck34 long-polling – Based on XMLHttpRequest, used for same-domain connections
14:38 franck34 callback-polling – Based on JSON-P, used for cross-domain connections
14:38 franck34 theses are the 2 fallbacks method from bayeux
14:38 franck34 http://faye.jcoglan.com/browser.html
14:38 jberger Maybe the pusher.js library has sone things?
14:39 franck34 from pusher.com ?
14:39 franck34 ha no
14:39 franck34 ha yes
14:40 franck34 the (my) product is sold on an appliance and without internet access (admin dmz)
14:40 franck34 i'll try to speak to coglan for a mojo implementation (plugin)
14:40 jberger and it seems that faye supports node and ruby, which means it doesn't rely on node internals
14:41 franck34 absolutely
14:41 purl Rather.
14:41 preaction ooh, so you could write a Mojolicious::Plugin::Faye
14:42 franck34 something like that lol
14:42 franck34 but well, i'm not the good one to do that, i'll just try ..
14:48 jberger I'm not sure who your target audience is, but in order to make something that works, I don't think it's unreasonable to set minimum system requirements
14:49 franck34 i definitively can't
14:49 franck34 but well, i think long pool is enought for my needs rather than websocket
14:49 franck34 %s/pool/poll
14:50 jberger well there you go then
14:50 franck34 yep
14:51 franck34 since how many time mojolicious exist ? i'm really surprise about non blocking stuff, was thinking that only erlang, twister python and nodejs was able to do that
14:51 franck34 %s/twister/twisted
14:52 jberger been several years
14:52 franck34 nice framework, really
14:52 jberger https://github.com/kraih/mojo/blob/master/Changes
14:52 jberger we are very proud of it, thanks
14:54 jberger 2008 I guess
14:55 jberger I've been involved since 3.0
14:55 mst franck34: um, there's been async stuff in perl for 15 years plus
14:55 mst franck34: I think POE may predate twisted
14:55 mst (POE is fucking weird, but it totally works)
14:56 franck34 mst: lol ok
14:56 * mst tends to recommend Mojo for specifically web non-blocking and IO::Async for general event driven servers these days
14:56 woz joined #mojo
14:56 mst obviously in here you're likely to find most people use Mojo for everything
14:57 mst ... and over in #io-async they use IO::Async for everything
14:57 mst but I'm special, as usual ;)
14:57 jberger quite right
14:57 jberger hmmm I was building an io Async reactor at some point, want I
14:57 mst I think I first learned POE back in ... 2004, maybe? after starting at twisted and deciding that it hated me
14:57 jberger wasnt
14:58 franck34 i'll recommand both nodejs and mojo now, since i'm coming from gui side (so js is ok for me, server side or client side), but for this project i have to deal with old school guys (how know perl since many year) so it's a perfect deal
14:58 franck34 (mojo)
14:58 mst I keep meaning to play with cljs
14:59 mst but I have this tendency to write lisp in everything anyway
14:59 franck34 i didn't search atm, does mojo + redis (pub/sub) is ok ?
15:00 franck34 google say yes
15:01 jberger franck34: see Mojo::Redis2
15:01 franck34 google said mango
15:01 franck34 really cool
15:01 preaction Mango is MongoDB, not Redis
15:01 franck34 oops
15:02 franck34 i need both
15:02 franck34 and seem's ok for bot
15:02 franck34 h
15:03 franck34 time to read the hole doc
15:03 franck34 have a good night, happy end of years, and probably speak you soon !
15:03 * franck34 need english lesson asap too lol
15:04 jberger franck34: French?
15:04 purl the french (aka "frogoise") are a bunch of cheese-eatin' surrender monkeys.  i heard it on the simpsons. or the French are assholes. or Sacre bleu or http://www.frenchlesson.org/
15:04 franck34 jberger: yep
15:04 franck34 purl: :D
15:04 purl i guess D is http://www.digitalmars.com/d/ or for dickgirls
15:04 jberger since many years tipped me off
15:04 franck34 sorry for that
15:04 jberger no it's fine
15:05 mst after a while you can guess which variety of non-english-native speaking you're reading
15:05 mst this is not a problem
15:05 jberger my French has gotten very rusty and I can understand you well
15:05 franck34 was thinking you are french (berger is a common french family name)
15:05 mst j'ai oublie le plus part de la language francaise que j'ai etudie
15:05 jberger American mutt
15:06 franck34 mst: %s/le/la the rest is perfect :)
15:06 franck34 have to go now, see you ! and thanks for help
15:07 mst memorised it years ago while I could still remember enough
15:07 mst apparently not quite perfectly :D
15:07 jberger je peut parler francais mais n'as personne
15:07 jberger yeah, mine didn't work out so well
15:07 jberger damn
15:07 franck34 %s/peut/peux %s/n'as/ne connais personne pour parler
15:07 franck34 :D
15:08 franck34 by
15:08 jberger o/
15:16 rem_lex joined #mojo
15:17 davido_ joined #mojo
15:17 dod joined #mojo
15:18 franck34 joined #mojo
15:19 franck34 done https://github.com/faye/faye/issues/355 lol
15:22 jberger good luck on that
16:06 sugar joined #mojo
16:28 punter joined #mojo
16:29 punter ho ho ho
16:29 purl Now I have a machine gun!
16:39 sh4 joined #mojo
16:45 woz joined #mojo
16:48 sugar_ joined #mojo
17:23 Grinnz purl you are scary sometimes
17:23 purl ...but purl is <reply> I am a (modified) flooterbuck infobot, and my owner is hachi.  Download source at http://flooterbuck.sourceforge.net/ or edenc's bitch or espertinho or bugado or stupid. or the mongodb of irc bots or Nuclear Biological Chemical or a big metal dummy. or he mongodb of irc bots or a big fat liar...
17:44 sh4 joined #mojo
18:21 denis_boyun joined #mojo
18:34 woz joined #mojo
18:41 dotandimet joined #mojo
18:48 basiliscos joined #mojo
19:45 denis_boyun joined #mojo
20:23 woz joined #mojo
21:04 sugar_ joined #mojo
21:45 sugar__ joined #mojo
22:12 woz joined #mojo
22:20 denis_boyun joined #mojo
22:41 denis_boyun joined #mojo
22:47 davido_ joined #mojo
23:15 s1037989 joined #mojo
23:17 s1037989 joined #mojo

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