03:23:37  * SkyRocknRolljoined
04:13:15  * RyanEjoined
04:20:18  <RyanE>is there a way in luvit to get command-line parameters, like in traditional Lua's local arg = {...} arg[1], etc.?
04:30:41  <RyanE>nvm... found it... on this page: https://github.com/luvit/luvit/wiki/lua-to-luvit
08:32:42  * SkyRocknRollquit (Remote host closed the connection)
13:36:13  <SinisterRectus>never understood the reasoning for the difference there
14:58:16  * SkyRocknRolljoined
15:02:45  * SkyRocknRollquit (Ping timeout: 256 seconds)
15:14:44  * SkyRocknRolljoined
15:26:57  <RyanE>Yeah, changing arg to args seems kind of arbitrary.
15:27:09  <RyanE>Maybe that's closer to how node.js does it?
15:27:22  <RyanE>in any case, worth a tiny oddity like that. Good stuff.
15:27:27  <creationix>It is
15:27:45  <RyanE>thanks!
15:28:39  <RyanE>Last night, never having used luvit, I replaced some LuaSocket code that took me a long time to get right with some net-based code. Easy Peasy!
16:22:34  * SkyRocknRollquit (Ping timeout: 260 seconds)
16:38:08  * SkyRocknRolljoined
16:48:27  * SkyRocknRollquit (Ping timeout: 240 seconds)
17:04:48  * SkyRocknRolljoined
17:34:05  * Tenrys_joined
17:36:57  * Tenrysquit (Ping timeout: 240 seconds)
17:59:09  <SinisterRectus>nice
17:59:59  <creationix>wait till you try coro-net ;D
18:29:02  * SkyRocknRollquit (Remote host closed the connection)
18:29:45  <RyanE>creationix: is that actually a thing, or are you screwing with me? :)
18:29:50  <RyanE>dig the coroutines.
18:42:07  <creationix>RyanE: https://github.com/luvit/lit/blob/master/deps/coro-net.lua
18:42:21  <creationix>used heavily here https://github.com/creationix/weblit
18:43:24  <creationix>sorry for lack of docs https://github.com/creationix/weblit/blob/master/libs/weblit-server.lua#L192-L196
18:44:16  <creationix>or here's an example implementing the redis protocol https://github.com/creationix/redis-luvit/blob/master/libs/redis-client.lua
18:45:57  <creationix>to me, coro-net with codecs is the best part of the whole luvit project. It's a crying shame I never documented it properly
18:46:54  <creationix>another example doing minimal http to get straight to websocket https://github.com/creationix/redis-luvit/blob/master/libs/websocket-client.lua
21:28:12  <RyanE>nice.
21:28:13  <RyanE>thx
21:28:19  <RyanE>I'll look at it tonight.
21:29:22  <creationix>@RyanE if you have any questions on the coro-net stuff, hit me up. I'll so my best to support that part.
21:29:59  <creationix>the luvit parts that clone the node.js API directly weren't a good idea in my opinion, callbacks with lua is painful.
21:30:11  <creationix>hindsight is 20/20 they say
22:06:54  <RyanE>I'm not using it for anything production, I'm just toying at this point, but I appreciate the offer.
22:08:20  * SkyRocknRolljoined