01:11:04  * rgrinbergjoined
01:16:16  * DarkGodquit (Quit: Leaving)
01:58:22  <cat5e>creationix, so as it turns out I can't use Lua patterns because while they can do [^\n]*\n?, they can't do something like ((?!\n|\\n).)*(\n|\\n|$)
01:59:07  <cat5e>in LPeg that's just (1 - eol)^0 * eol
03:18:50  <cat5e>hmm
03:19:13  <cat5e>attribute namespaces are gonna be a pain no matter how I do it
03:19:41  <cat5e>(unless I keep track of attribute order :/)
03:22:49  <creationix>yeah, lpeg is a lot more powerful than patterns
05:11:27  * rgrinbergquit (Ping timeout: 276 seconds)
05:43:47  * SkyRocknRolljoined
06:05:31  * a__quit (Remote host closed the connection)
06:06:43  * a__joined
06:37:56  * rendarjoined
07:02:45  * DarkGodjoined
08:19:14  * rendarquit (Read error: Connection reset by peer)
08:52:47  * rendarjoined
12:58:44  * Zapajoined
12:58:53  * Zapachanged nick to zapakitul
13:00:22  <zapakitul>eyo. Found luvit yesterday and I decided to use it to generate a HTML template for a web app. When ever I try to link to a css style file, it identifies the link as a get request
13:00:30  <zapakitul>can anyone point me in the right direction?
13:11:53  * rgrinbergjoined
13:55:38  * SkyRocknRollquit (Remote host closed the connection)
14:05:15  * zapakitulquit (Quit: Page closed)
14:24:35  <cat5e>creationix, this looks like it'd work http://sprunge.us/jeTT
14:24:38  <cat5e>but I haven't tested it
14:39:21  <cat5e>creationix, you see, I can actually use "if" as a tag name here
14:39:43  <cat5e>if I want a conditional I can use "###### if"
14:50:42  <cat5e>how do I make a package?
14:51:30  <creationix>cat5e a lit package?
14:51:36  <cat5e>yeah
14:51:42  <creationix>just return your exports and add metadata at the top
14:51:59  <creationix>https://github.com/luvit/lit/blob/master/deps/base64.lua
14:52:09  <creationix>name must start with your github username
14:52:14  <creationix>if you want to publish it
14:52:26  <cat5e>no bitbucket support? >.>
14:59:20  <cat5e>creationix, does lit have any docs?
14:59:28  <cat5e>because idk what privateKey is
14:59:38  <creationix>it's your ssh key you use to login to github
14:59:54  <creationix>the default value is $HOME/.ssh/id_rsa.pub
15:00:07  <creationix>https://luvit.io/docs.html
15:00:07  <cat5e>can I use ~ or does it not do shell expansion?
15:00:16  <creationix>no shell expansion
15:00:29  <cat5e>can I use $HOME or does it not do env expansion either?
15:00:43  <creationix>no expansion at all
15:00:47  <cat5e>ugh
15:00:48  <creationix>I don't think
15:01:15  <cat5e>huh
15:01:17  <cat5e>.pub?
15:01:54  <creationix>sorry, not pub
15:02:22  <creationix>https://github.com/luvit/lit/blob/d80d38407a9234988f2d70d49275b6eead120f9b/commands/auth.lua#L54-L61
15:02:48  <creationix>generally you just do `lit auth` and it will prompt you for missing information
15:03:18  <cat5e>y u no oauth? or ~/.ssh/config? .-.
15:03:18  <creationix>it will try to guess email and name from your global git settings
15:08:53  <cat5e>creationix, so like this? https://bitbucket.org/SoniEx2/mdxml
15:09:44  <creationix>looks good
15:09:57  <creationix>test it with `lit add mdxml.lua`
15:10:21  <creationix>and when you're ready to publish do `lit publish mdxml.lua`
15:14:51  <cat5e>well uh I already did publish
15:19:51  <creationix>yep I see it https://lit.luvit.io/packages/SoniEx2/mdxml/v0.0.1
15:38:58  <cat5e>ok 0.0.1 is broken, creating 0.0.2 and it seems to work alright except for whitespace stripping stuff which idk how to do .-.
15:40:02  <cat5e>uh derp
15:42:05  <cat5e>creationix, does the pretty-print module sort the keys?
15:42:28  <cat5e>(or, alternatively, do you have a way to deep-compare 2 tables?
15:46:53  <cat5e>heh https://bitbucket.org/SoniEx2/mdxml/src/20b23214e19c28e9c0bcde1d00f61b8b6ef2e76e/test.lua?at=master&fileviewer=file-view-default#test.lua-35
15:48:07  <cat5e>{ ' ', { [0] = 'test', 'bleh', { [0] = 'WE NEED TO GO DEEPER', 'heh', 'hey' }, wat = 'yeah' } }
15:48:13  <cat5e>I mean, it works, at least
15:49:51  <cat5e>barely
16:03:10  <cat5e>hmm it doesn't validate missing attribute values yet
16:13:16  <SinisterRectus>it uses pairs
16:13:19  <SinisterRectus>doesn't sort anything
16:15:57  <cat5e>aw
16:16:57  * rgrinbergquit (Ping timeout: 250 seconds)
16:42:29  * rgrinbergjoined
16:44:00  <cat5e>creationix, uh I don't think package names should be case-sensitive :/
16:44:44  <creationix>cat5e, no it doesn't sort the keys
16:45:07  <creationix>yeah, should probably make everything lowercase internally
16:45:14  <cat5e>(I did lit install soniex2/mdxml and it did error, I did lit install SoniEx2/mdxml and it worked)
16:46:01  <cat5e>so how do I read a config file?
17:07:47  * daurnimatorquit (Ping timeout: 250 seconds)
17:15:23  * daurnimatorjoined
18:39:40  * rendarquit (Ping timeout: 252 seconds)
18:51:46  * rgrinbergquit (Ping timeout: 252 seconds)
19:07:13  <rphillips>creationix: https://travis-ci.org/virgo-agent-toolkit/rackspace-monitoring-agent#L1595
19:07:17  <rphillips>see this one before?
19:07:50  <creationix>looks like someone has handle.is_closing() when they meant handle:is_closing()
19:08:02  * Haragethjoined
19:08:15  <creationix>though I've also seen cases where a handle is closed and in an invalid state and luv doesn't consider it a handle anymore
19:08:46  * rendarjoined
19:09:02  <creationix>rphillips that timer.lua is from upstream luvit right?
19:09:10  <rphillips>correct
19:10:03  <creationix>that code is good, the passed in value is invalid somehow
19:13:04  <rphillips>creationix: found the error I think in the agent code
19:13:34  <creationix>where?
19:13:49  <creationix>I'm looking in check/base.lua and it looks fine (at least the part in the stack trace)
19:13:56  <rphillips>hmm.
19:14:02  <rphillips>yeah, it does look fine
19:17:34  <creationix>so this was working before and is broke now. Smells like a new bug in luv somewhere
19:17:38  <creationix>or luvit
19:17:51  <SinisterRectus>rphillips: i've seen something like that error when trying to call timer:stop(). never reproduced it, though.
19:19:59  <creationix>but yes, I have seen that when it was a real handle, but had gotten internally corrupted so that my type checker didn't recognize it
19:20:15  <creationix>usually it was because it was already uv.close()'ed
19:20:43  <creationix>gdb showed some really wild values for some of the uv struct property values
19:30:27  <rphillips>creationix: can you join my vidyo?
19:30:31  <creationix>sure
19:32:08  <rphillips>287a534
19:42:38  <rphillips>22e8e0796940e0583c59642dad069873c1077f75
19:42:40  <rphillips>d41469c12461da00db73d548d0fbf018fb28494a
19:42:42  <rphillips>6be5ffdf2b20b870392ee265f6ff7792f072592f
19:42:44  <rphillips>92d9ff211ae864777a8580b5a7326d5f408161ce
19:42:46  <rphillips>c98660c8c3921e43029625e51166c9d273ad09df
19:42:48  <rphillips>972a1a4cc6791b4595941d32f27ce2242012164c
19:45:24  <rphillips>--------
19:45:26  <rphillips>c98660c8c3921e43029625e51166c9d273ad09df
19:49:05  <rphillips>https://github.com/LuaJIT/LuaJIT/commit/c98660
19:52:38  <rphillips>SinisterRectus: tracked it down to that commit
19:52:39  * rgrinbergjoined
19:58:24  <creationix>SinisterRectus, rphillips. I have this for now, still trying to track it down closer https://github.com/LuaJIT/LuaJIT/commit/c98660#commitcomment-18438286
20:05:26  <creationix>hmm, all my tests pass without removing the commit
20:24:20  * a__quit (Remote host closed the connection)
20:25:30  * a__joined
21:03:55  * Haragethquit (Remote host closed the connection)
21:05:22  * a__quit (Remote host closed the connection)
21:06:37  * a__joined
21:44:48  * Haragethjoined
21:57:17  <cat5e>creationix, how do I read a config file?
21:57:45  <creationix>lua works well
21:58:22  <cat5e>creationix, you mean like io.open and stuff?
21:58:34  <creationix>no need for that, just use require or dofile
21:58:57  <creationix>if you want to do it in a non-blocking way, use libuv's I/O and loadstring
21:58:59  <cat5e>creationix, and how do I read MDXML configs?
21:59:30  <creationix>ok, you just want to load some data
22:00:09  <creationix>luvit's fs.readFile(filename, callback) fs.readFileSync(filename) or use coro-fs inside a coroutine
22:00:19  <creationix>io.open works too, but it's blocking
22:00:39  <cat5e>yes, in this case blocking is not an issue
22:00:42  <creationix>so if you're loading these files at server startup, blocking doesn't matter
22:00:50  <cat5e>yeah
22:00:56  <creationix>fs.readFileSync or lua's builtin io.open would be simplest
22:01:13  <cat5e>I wish LPeg and stuff worked with streams :/
22:03:30  <cat5e>I'm still trying to figure out how to correctly parse attribute namespaces btw :/
22:06:16  <creationix>you can do it
22:10:16  <cat5e>creationix, wanna try to parse these? https://bitbucket.org/SoniEx2/mdxml/issues/2/attribute-namespaces-dont-parse-correctly
22:10:26  <cat5e>especially the former
22:11:58  <cat5e>also note that there may be content between the attribute name, the value, and the namespace
22:12:05  <cat5e>(sorry)
22:13:24  <creationix>cat5e sorry, I can't help right now. Good luck!
22:13:36  <cat5e>ok
22:18:06  * erlbot--quit (Remote host closed the connection)
22:18:53  * erlbot--joined
22:27:53  * rendarquit (Quit: std::lower_bound + std::less_equal *works* with a vector without duplicates!)
23:14:10  * rgrinbergquit (Ping timeout: 244 seconds)
23:17:54  * inexjoined
23:20:36  * Haragethquit (Remote host closed the connection)