01:32:20  * Something12quit (Ping timeout: 276 seconds)
02:05:50  * DarkGodquit (Ping timeout: 256 seconds)
03:39:56  <rphillips>creationix: https://github.com/tbastos/lift
03:39:58  <rphillips>uses luv
03:42:30  * Something12joined
04:53:53  * Xequit (Quit: *.yolo *.swag)
04:55:05  * Xejoined
06:49:09  * SkyRocknRolljoined
07:03:43  * kostcoquit (*.net *.split)
07:05:16  * kostcojoined
07:07:48  * SkyRocknRollquit (Ping timeout: 248 seconds)
07:22:01  * SkyRocknRolljoined
08:31:21  * DarkGodjoined
09:16:53  * kostcoquit (Changing host)
09:16:53  * kostcojoined
09:27:16  * kostco_joined
09:28:08  * Something12quit (Ping timeout: 276 seconds)
09:28:53  * kostcoquit (Ping timeout: 260 seconds)
09:28:59  * kostco_changed nick to kostco
12:43:15  * SkyRocknRollquit (Ping timeout: 240 seconds)
13:15:54  <creationix>neat project
14:40:04  <rphillips>good morning
16:12:30  <creationix>mornin
17:00:06  * |--|quit (Quit: ZNC - http://znc.in)
17:12:46  * |oo|joined
17:23:25  * Haragethjoined
17:42:11  * Haragethquit (Ping timeout: 264 seconds)
17:56:39  * sclark39joined
17:57:50  <sclark39>I'm having an issue with the luvit/http-server example:
17:57:53  <sclark39>Uncaught Error: [string "bundle:/deps/stream/stream_readable.lua"]:805: attempt to index global 'process' (a nil value)
17:58:36  <sclark39>Anyone know what I'm missing?
17:59:30  <sclark39>ah
17:59:31  <sclark39>_G.process = require('process').globalProcess()
18:01:50  <creationix>sclark39, hmm, did we break something
18:02:09  <sclark39>I don't know, I'm running it through luvi
18:02:21  <sclark39>and so the init.lua doesn't get called, I think
18:02:23  <creationix>are you using the luvit package with it's init function
18:03:11  <creationix>this is the official way to use the luvit environment (implicit globals) from a luvi app https://github.com/luvit/luvit/blob/master/examples/custom-binary/main.lua#L3-L9
18:03:59  <creationix>for what it's worth, I'm slowly moving luvit away from implicit globals to make it more compatible with luvi, lua, and luajit runtimes
18:04:08  <sclark39>That sounds good.
18:04:37  <sclark39>Did you ever merge that PR of mine to bring TLS support to websocket-client?
18:04:50  <sclark39>(or fix it some other way)
18:04:58  <sclark39>https://github.com/creationix/redis-luvit/pull/2
18:05:49  <creationix>so I think the way to solve that is to add a tls flag to coro-net
18:06:02  <creationix>host, port, tls
18:06:20  <creationix>part of making luvit more portable is possibly moving to luaossl for ssl bindings
18:06:30  <creationix>for that to work, the current coro-wrap technique is problematic
18:07:06  <creationix>also it's ineffecient to intern all the ciphertext as lua strings just to pass it back to C land for decrypting
18:07:33  <creationix>if we instead teach the luv bindings to just use an openssl context on streams, it should speed things up
18:07:50  <creationix>it does add a bit of coupling and is a bit of work
18:08:54  <sclark39>I'm trying to make a simple http server that can receive POST requests. I'm sure this is wrong:
18:08:54  <sclark39>local function onRequest(req, res)
18:08:55  <sclark39>req.on( 'data', function(data) p( data ) end )
18:08:55  <sclark39>req.on( 'end', function() p( 'end' ) end )
18:10:00  <creationix>sclark39, do you have node.js experience or any reason to prefer the node style?
18:10:13  <sclark39>Not at all. I've been avoiding it for most of my work.
18:10:16  <creationix>if not, I recommend using the coro-* style and possibly the weblit framework
18:10:33  <creationix>luvit's "official" libraries are mostly a 1-1 clone of node.js
18:10:35  <creationix>they aren't as lua friendly as could be
18:10:52  <sclark39>:P
18:10:54  <creationix>https://github.com/creationix/weblit
18:11:33  <creationix>weblit will buffer the body by default
18:12:00  <sclark39>How do I install a luvi library?
18:12:02  <sclark39>It's been a while
18:12:04  <creationix>https://github.com/virgo-agent-toolkit/super-agent/blob/master/api/libs/http-handler.lua#L15
18:12:23  <creationix>sclark39, just download the pre-built binary and put it in your path
18:12:31  <creationix>though, you probably want lit too
18:12:39  <creationix>in which case, the get-lit.sh script is handy
18:12:47  <creationix>https://luvit.io/install.html
18:13:03  <creationix>that will download luvi for your platform and the lit zip and build lit using lit + luvi
18:13:12  <creationix>then just copy the `luvi` and `lit` files to your path
19:07:38  * DarkGodquit (Remote host closed the connection)
19:10:01  * DarkGodjoined
19:49:10  * sclark39quit (Ping timeout: 272 seconds)
21:23:04  * sclark39joined
21:24:41  * sclark39quit (Client Quit)
22:39:32  * Haragethjoined