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

IRC log for #mojo, 2014-12-19

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

All times shown according to UTC.

Time Nick Message
00:00 sri yea, that explains all the leaks in perl code!
00:00 preaction er... really?
00:00 sri it was the name "weaken" all along
00:00 sri seriously, who wants to weaken their perl app?
00:01 woz joined #mojo
00:02 sri !!!!1
00:05 woz joined #mojo
00:06 sri "i stopped using this" -- crockford
00:06 sri :O
00:16 jberger ooooh tail calls
00:16 * jberger should start making a list of things for Javascript: the Perl Parts
00:17 jberger oh and a slurpy parameter
00:17 jberger man, this language is going to be awesome!
00:18 jberger wait seriously, they are going to get a better way to import modules than "require"?!
00:18 jberger he's gotta be kidding me right
00:18 jberger this is the history of Perl
00:18 Grinnz_ lol
00:18 jberger AHAHHAHAHA
00:18 jberger and a lexical variable declaration!!
00:19 jberger my === let
00:19 sri funny thing is, he mentions languages that made lambdas popular... and doesn't mention perl at all
00:19 jberger (don't forget the third = or you'll be sorry)
00:19 sri instead python and ruby!
00:19 firnsy sri: i was surprised by that too
00:19 preaction i've been noticing that a lot more recently
00:19 jberger right, cause python's lambdas are so great
00:19 preaction perl is being erased
00:19 Grinnz_ we should start calling them lambdas more
00:19 jberger seriously, that's why I wanted to write this talk
00:19 sri "Crockford never ceases to confuse me."
00:20 firnsy and python lambdas are as useless as "tits on a bull"
00:20 jberger the idea that javascript is good because of its closures, which look just like perl once you get past all the "bad parts"
00:20 jberger nipples on a breastplate, firnsy, haven't you ready your ASOIAF?!
00:21 firnsy ROFL ... clearly not
00:21 * firnsy hangs head
00:22 jberger good god, he says "you can write good programs with function scope", right cause (function(){ ... })(); looks as good as { ... }
00:22 jberger seriously, this is pissing me off
00:22 jberger :-P
00:22 Grinnz_ lol
00:23 preaction blog it!
00:23 purl <rss="http://www.hazelnco.com/cgi-bin/leisuretown">
00:23 Grinnz_ wat
00:23 Grinnz_ This webpage is not available
00:23 preaction i dunno what purl's on about, but blog about it! get people talking!
00:24 Grinnz_ esp with this whole node.js drama going on...
00:24 Grinnz_ now's a good a time as any
00:24 sri purl: no, blog it is <reply> get people talking!
00:24 purl okay, sri.
00:25 sri purl: blog it!
00:25 purl get people talking!
00:25 Grinnz_ :)
00:25 sri botsnack!
00:25 purl :)
00:25 * jberger will start sketching something tonight
00:25 sri suspicious
00:25 purl rumour has it suspicious is in the eye of the beholder, not an inherent characteristic of anything
00:26 * sri holds another botsnack in Grinnz's direction
00:26 jberger "I'm always trying to improve the way I do things" -- clearly not, you are still using javascript~!
00:26 Grinnz_ purl is apparently a philosopher now
00:28 sri blog it!
00:28 purl get people talking!
00:28 jberger wait wait wait, if you call a method as a function, then "this" is bound to the global scope?!
00:29 preaction javascript doesn't auto-create bound methods, no
00:29 preaction var meth = obj.method; meth(); // <- this is wrong, and so is "this"
00:29 preaction you need: var meth = obj.method.bind( obj ); meth(); // or something
00:29 preaction you've been doing python too much ;)
00:29 jberger its not like the global scope isn't accessible in Perl, its the ::
00:30 preaction yeah. "this" is weird and magic, and i'm glad python and perl don't do it
00:30 preaction it works in java because everything's a method call, but javascript...
00:31 jberger anyway
00:31 * jberger &
00:31 Grinnz_ meth().cook()
00:32 sri yo!
00:32 * Grinnz_ ruminates upon converting his IRC bot framework rewrite to Mojo::IRC
00:34 preaction Grinnz_: it works nice, Mojo::IRC: https://github.com/preaction/Bot-Freyr
00:36 Grinnz_ i was thinking about trying Net::Async::IRC because i've never used IO::Async, but it looks too incomplete
00:37 preaction irc isn't a fun protocol by any means
00:37 Grinnz_ indeed, and if i do use Mojo::IRC, i'm sure batman will be getting another pull request or two ;)
00:38 Grinnz_ my bot presently connects to 3 (4?) different networks with 3 very different protocl usages
00:38 Grinnz_ particularly for login
00:38 preaction i worked on that for a month and there was very little to complain about. i wrote a wrapper around the test hooks they have, and that's about it
00:39 Grinnz_ there is, of course, no globally agreed-upon IRC event for login name
00:39 preaction there's that v3 protocol thing floating around though
00:40 preaction http://ircv3.atheme.org <- which Net::Async::IRC is apparently compatible with
00:40 Grinnz_ yeah... ill believe it when i see it
00:40 preaction extended-join is the interesting one, that lets you see who they really are
00:41 Grinnz_ (or rather, when i see any major network use it :P)
00:41 preaction freenode uses it
00:41 Grinnz_ orly
00:42 Grinnz_ ahh, i see what you mean
00:42 preaction yeah. here doesn't, so i have to be clever about figuring out who's authed to services, but freenode has a way of safely figuring that out
00:42 Grinnz_ with the login in the join, nice
00:42 Grinnz_ i'd still check, because most people login after joining
00:43 preaction there's some other thing where you get notified if they've authed to services _after_ they joined, or deauthed to services
00:43 Grinnz_ :)
00:43 marty joined #mojo
00:43 Grinnz_ i see that one yeah
00:43 preaction account-notify, it's the first extended spec thing even
00:43 Grinnz_ IRC is starting to become a real protocol *single tear*
00:44 preaction it's all grown up!
00:44 preaction but then why xmpp and hipchat and slack? *scowl*
00:44 Grinnz_ away-notify, but what will we do without constant /who spam?
00:45 preaction conceivably spend less money on bandwidth, and more money on beer
00:45 Grinnz_ (first thing i turn off in hexchat)
00:45 sri apparently it can legally drink in the us now https://tools.ietf.org/html/rfc1459
00:45 Grinnz_ hehe
00:50 neyasov____ joined #mojo
01:04 marty joined #mojo
01:31 alnewkirk joined #mojo
01:47 mattastrophe joined #mojo
02:06 klapperl_ joined #mojo
02:08 hshong joined #mojo
02:38 neyasov____ joined #mojo
03:23 woz joined #mojo
03:23 woz joined #mojo
03:58 noganex_ joined #mojo
04:02 punter joined #mojo
04:18 jberger https://twitter.com/cpan_new/status/545794485498560512
04:19 jberger now with support for sprunge.us
04:19 jberger http://sprunge.us
04:19 * jberger sheds a tear for cpan_mojo
04:28 neyasov____ joined #mojo
04:31 jberger does anyone else have a pastebin they would like me to add to mojo nopaste?
04:33 Grinnz fpaste.org ?
04:35 Grinnz though personally, i can just use fpaste for that :P
04:39 jberger it looks a lot like the debian paste site, I think
04:40 jberger Grinnz: there is some fpaste script?
04:41 Grinnz yes, available on fedora or EPEL
04:41 Grinnz python script, apparently
04:41 jberger oh and there is even an api doc, almost none of the pastebin sites has that! http://fpaste.org/doc/api/
04:42 Grinnz http://ur1.ca/j5xka theres the script, pasted by itself :P
04:42 firnsy Fedora FTW!
04:42 jberger eeek, that script
04:44 Grinnz hehe
04:44 hshong sprunge.us looks like http://ix.io/
04:44 firnsy it is python after all
04:45 Grinnz fedora likes their python tools...
04:46 jberger ah, but can it send IRC messages? copy to the clipboard? open your browser?
04:46 Grinnz it's python, not emacs!
04:47 jberger git diff | mojo nopaste -c '#mojo' -o
04:47 * Grinnz tries the new C-x C-IRC command
04:47 jberger git diff | mojo nopaste pastie -c '#mojo' -o
04:47 jberger (forgot the sevice, say pastie)
04:48 Grinnz haha, nice
04:48 jberger probably want -l diff on that too
04:49 MojoNoPaste joined #mojo
04:49 MojoNoPaste someone pasted http://pastie.org/9789394
04:50 jberger that was: git diff HEAD~2 | mojo nopaste pastie -c '#mojo' -l diff
04:51 MojoNoPaste joined #mojo
04:51 MojoNoPaste jberger pasted http://pastie.org/9789396
04:51 jberger forgot to add -n for my nick
05:03 jwang joined #mojo
05:10 akhasanov joined #mojo
05:11 irq joined #mojo
05:19 jberger so I'm finally finishing that Crockford talk
05:20 jberger and that object model is very close to what I just implemented on my gh
05:20 jberger https://github.com/jberger/Class-Anonymous
05:24 woz joined #mojo
05:49 preaction yes, exactly ;)
05:50 preaction or kind of like: https://github.com/alnewkirk/MooX-Prototype
06:07 Eddy joined #mojo
06:18 neyasov____ joined #mojo
06:45 dod joined #mojo
07:24 Vandal joined #mojo
07:47 dod joined #mojo
08:00 Lee joined #mojo
08:01 denis_boyun joined #mojo
08:08 neyasov____ joined #mojo
08:22 basiliscos joined #mojo
08:24 woz joined #mojo
08:26 rem_lex joined #mojo
08:31 sugar joined #mojo
08:33 eseyman joined #mojo
08:42 trone joined #mojo
09:26 irq joined #mojo
09:39 irq_ joined #mojo
09:57 neyasov____ joined #mojo
09:59 fhelmberger joined #mojo
10:03 batman oetiker: i've never encountered that issue you're talking about with cpanm. 0.9 < 0.10
10:04 batman Grinnz_: which pull requests regarding mojo-irc?
10:13 woz joined #mojo
10:31 denny if my session data is getting too big for a cookie, is MojoX::Session the correct thing to use instead?
10:51 hotsnow joined #mojo
10:55 niczero $msg->max_message_size(10_000_000)
10:55 niczero but how do I use that with $self->ua->get(...) ?
10:56 niczero (I realise the answer must be staring me in the (documentation) face, but my head isn't seeing it yet)
10:57 niczero Do I build the transaction myself, setting that value on the request's param?
10:59 Vandal joined #mojo
11:17 niczero ah, you can set it on the response; I was (mis)thinking the response wouldn't exist yet
11:54 basiliscos joined #mojo
12:00 Adura denny, you could test out my module: https://metacpan.org/pod/Mojolicious::Plugin::SessionCompress
12:02 woz joined #mojo
12:05 ignacio_ joined #mojo
12:13 neilhwatson joined #mojo
12:29 niczero perhaps in conjunction with Mojo::JSON_XS
12:29 niczero (which doesn't make your strings shorter or your hair curlier)
12:57 neyasov____ joined #mojo
13:51 woz joined #mojo
14:00 marty joined #mojo
14:01 marty joined #mojo
14:10 asarch joined #mojo
14:16 punter joined #mojo
14:26 amon joined #mojo
14:27 akhasanov joined #mojo
14:39 sugar_ joined #mojo
14:54 Grinnz batman, just meant there's probably a nonstandard event or two i'll need
14:55 batman but mojo-irc doens't define the events... it emits everything that can be parsed: https://github.com/jhthorsen/mojo-irc/blob/master/lib/Mojo/IRC.pm#L584
14:56 zivester joined #mojo
14:56 Grinnz oh, cool :)
14:58 batman :)
15:15 sh4 joined #mojo
15:18 Ptolemarch joined #mojo
15:19 sugar__ joined #mojo
15:21 neilhwatson joined #mojo
15:40 woz joined #mojo
16:04 akhasanov joined #mojo
16:17 ryozi joined #mojo
16:44 sri yay, postgres 9.4 is now in homebrew
16:46 sri NOOOOOOOOOOOOOOOOOOOOOO https://groups.google.com/forum/#!msg/perl.dbi.users/ICbgQFgUIFI/K_uWZ1tB-yYJ
16:47 Grinnz_ oh lawd
16:51 jberger https://www.youtube.com/watch?v=jYj7T9eEQ4U
16:55 cfedde anyone bring this up over in #postgresql?
16:59 sri there is not even a DBD::Pg ticket yet i belive
17:02 cfedde something like "use named placeholders"
17:04 denis_boyun joined #mojo
17:08 amon1 joined #mojo
17:15 irq joined #mojo
17:16 niczero sri: I'm pondering why I can't get $tx->res->max_message_size(0) to work
17:16 niczero Could it be that it gets ignored in the event of a redirect?
17:18 niczero If I use the env var, or hack the default in the .pm it works, so I'm just wondering if a 302 could be snookering it
17:18 niczero Or is the same res (re)used across redirects?
17:29 woz joined #mojo
18:00 tempire lulz
18:14 * sri wonders if the minion worker command should natively support limiting wokers to specific tasks https://github.com/kraih/minion/issues/9
18:15 sri ./myapp.pl minion worker -t foo -t bar -t baz
18:16 akhasanov joined #mojo
18:17 sri on the other hand, the worker command is so minimal right now... more options might make it a worse example
18:17 sri https://github.com/kraih/minion/blob/master/lib/Minion/Command/minion/worker.pm
18:31 Ptolemarch joined #mojo
18:32 sri hmm, patch is actually not too bad, just 3 lines
18:32 sri https://gist.github.com/anonymous/a0aa57435a464b61f011
18:40 * jberger is just going to start using Minion at $work
18:40 jberger I guess I can see that being useful, though I'm only writing my first few tasks
18:42 sri the idea is to have specialized workers per task
18:42 sri like extra premium workers for paying customers
18:44 sri my $mail_task = sub {...}; app->minion->add_task(mail => $mail_task)->add_task(premium_mail => $mail_task);
18:45 sri ./myapp.pl minion worker -t premium_mail
18:45 sri or course you could also use the priority setting, to give jobs of certain customers priority
18:46 sri timtoady
18:46 purl somebody said timtoady was in #perl6 or Larry Wall or there is more than one way to do it
18:47 sri i guess, in the end it's about keeping the default worker command a good example
18:48 sri having an option might be good for that
19:01 sri yea, i guess having an example for how to do this correctly will be good
19:11 sri looking at Minion::Backend::Pg still makes me happy :)
19:14 sri just need SKIP LOCKED in postgresql 9.5
19:15 sri hahahahahahaha
19:15 purl LOLCON 7 reached.
19:15 sri obfuscated erlang http://ferd.ca/obfuscation.html
19:18 woz joined #mojo
19:23 mst sri: that's AMAZING
19:25 Ptolemarch joined #mojo
19:43 basiliscos joined #mojo
19:59 Ptolemarch joined #mojo
20:09 Ptolemarch joined #mojo
20:13 neyasov____ joined #mojo
20:34 dod joined #mojo
20:36 mrmccrac joined #mojo
20:36 mrmccrac anyone know if Mango will work with MongoDB 2.8?
20:49 yko joined #mojo
21:07 woz joined #mojo
21:39 akhasanov joined #mojo
21:49 mattastrophe joined #mojo
21:50 good_news_everyon joined #mojo
21:50 good_news_everyon [mojo] kraih pushed 1 new commit to master: http://git.io/9-u3DA
21:50 good_news_everyon mojo/master 398f499 Sebastian Riedel: a few more examples
21:50 good_news_everyon left #mojo
21:59 disputin joined #mojo
22:09 neyasov____ joined #mojo
22:12 Ptolemarch joined #mojo
22:30 sugar joined #mojo
22:35 disputin joined #mojo
22:41 mattastrophe joined #mojo
22:46 xevz joined #mojo
22:55 woz joined #mojo
23:11 neyasov____ joined #mojo
23:30 sugar_ joined #mojo
23:51 disputin joined #mojo

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