00:00:01
| * ircretary | quit (Remote host closed the connection) |
00:00:08
| * ircretary | joined |
00:00:17
| <mikolalysenko> | chrisdickinson: these slides have some notes on how to handle arrays and pointers in ssa conversion: https://parasol.tamu.edu/~rwerger/Courses/689/spring2000/ssa/sld001.htm |
00:00:31
| <spion> | hmm. I thought that trumpet's .select() results with an object stream of encountered elements while parsing :) |
00:02:09
| <spion> | err selectAll |
00:02:18
| <spion> | tr.selectAll(selector).pipe(through2({objectMode: true}, function(element) { ... |
00:04:08
| * kevinswiber | quit (Remote host closed the connection) |
00:04:40
| <defunctzombie> | debugging shit in IE 6 with no stack traces is impossible |
00:10:17
| * tmcw_ | joined |
00:13:49
| <substack> | feeling a tingling for some mad science |
00:13:49
| * Maciek416_ | quit (Remote host closed the connection) |
00:15:03
| * kevinswiber | joined |
00:16:15
| * fronx | joined |
00:20:54
| * fronx | quit (Ping timeout: 246 seconds) |
00:22:01
| * timoxley | joined |
00:23:37
| * thlorenz | joined |
00:23:56
| * jcrugzz | joined |
00:24:03
| <rowbit> | Hourly usage stats: [developer: 1, free: 36] |
00:25:35
| * calvinfo | quit (Quit: Leaving.) |
00:30:28
| <defunctzombie> | substack: na, that's just the electric shock therapy |
00:31:20
| * calvinfo | joined |
00:34:26
| * Altreus | quit (Ping timeout: 246 seconds) |
00:34:48
| * Altreus | joined |
00:39:48
| * fallsemo | joined |
00:41:19
| * kevinswiber | quit (Remote host closed the connection) |
00:48:14
| * mikolalysenko | quit (Ping timeout: 246 seconds) |
01:02:14
| * tmcw_ | quit (Remote host closed the connection) |
01:07:03
| * kevino80 | quit |
01:07:18
| <thlorenz> | defunctzombie: zuul's "limitations" played a big role to inspire browserify v3 |
01:07:31
| <thlorenz> | you can config all in package.json now: https://github.com/thlorenz/browserify-shim#packagejson |
01:07:46
| <thlorenz> | this way it works with any tool that can browserify \o/ |
01:08:12
| <thlorenz> | s/browserify v3/ browserify-shim v3/ |
01:08:17
| <defunctzombie> | thlorenz: nice |
01:08:42
| <defunctzombie> | still think that you should use the golden axe of converting them to use commonjs :) |
01:08:54
| <defunctzombie> | if someone resists... kill them |
01:08:58
| <thlorenz> | defunctzombie: yep :) |
01:09:39
| <thlorenz> | defining all in package.json is the way to go IMO, although resolving the right one while run as a transform via browserify was a bit tricky ;) |
01:10:49
| <defunctzombie> | why are folks still not using a jquery module? |
01:12:01
| <thlorenz> | defunctzombie: not sure, but as far as I understand it's still not commonJS -- seems to be trickier to do than meets the eye |
01:12:35
| <thlorenz> | so my examples are all jquery - maybe it'll annoy someone to the point where they'll fix it |
01:12:44
| <defunctzombie> | haha |
01:12:54
| <defunctzombie> | in my current app I just have the jquery file locally |
01:13:01
| <defunctzombie> | and added a module.exports myself to the end |
01:13:15
| * mikolalysenko | joined |
01:13:21
| <defunctzombie> | maybe we need to make a real jquery on npm or something |
01:13:56
| <thlorenz> | defunctzombie: I'd never include jquery in my bundle for a website, for libs of that size CDN makes a lot of sense IMO |
01:14:10
| <thlorenz> | just pull it straight from the browser cache |
01:14:15
| <defunctzombie> | thlorenz: your site isn't using a CDN ? |
01:14:23
| <defunctzombie> | oh.. no I ship all the libs I can |
01:14:24
| <defunctzombie> | even jquery |
01:14:28
| <defunctzombie> | cause I fingerprint |
01:14:29
| <Raynos> | defuntzombie: jquery is on npm |
01:14:38
| <defunctzombie> | Raynos: which version? |
01:14:44
| <thlorenz> | Raynos: but not fully commonJS yet -- last I heard |
01:14:53
| <Raynos> | oh |
01:14:57
| <Raynos> | i think it does commonJS |
01:15:01
| <Raynos> | with a single module.exports |
01:15:03
| <defunctzombie> | there are like 400 jquery modules on npm |
01:15:40
| <Raynos> | https://npmjs.org/package/jquery |
01:15:42
| <thlorenz> | Raynos: ah, maybe it got updated, that'd be awesome |
01:16:03
| <Raynos> | i think you have to require("jquery/build/release.js") |
01:16:06
| <thlorenz> | good thing I used contrived modules for my API examples instead of jquery then :) |
01:16:15
| <thlorenz> | Raynos: well that just sucks |
01:16:18
| <Raynos> | buts its still only 1.8 |
01:16:27
| <Raynos> | you can just npm i jquery/jquery :D |
01:16:39
| <thlorenz> | also it's so big and on CDN, I'll always will pull it from there (at least for a website) |
01:16:44
| <Raynos> | jquery/jquery#2.0.3 |
01:16:54
| <Raynos> | i just dont use jquery |
01:16:56
| <Raynos> | because why would I |
01:17:27
| <defunctzombie> | I don't pull shit from public CDNs |
01:17:31
| <thlorenz> | Raynos: I don't use it for my own stuff, but we have to support IE8 or so and I really don't wanna learn all the things that are broken in it |
01:17:32
| <defunctzombie> | overhyped imho |
01:17:42
| <defunctzombie> | my pages load really fast from my own servers and CDNs |
01:17:45
| <thlorenz> | defunctzombie: makes your website load faster |
01:17:52
| <defunctzombie> | not really |
01:18:40
| <thlorenz> | defunctzombie: haven't timed it exactly, but if your bundle becomes like 500% bigger, that's gotta make some difference |
01:18:57
| <defunctzombie> | jquery doesn't make it 500% bigger |
01:19:02
| <defunctzombie> | my app is already large enough |
01:19:33
| <defunctzombie> | and with gzip these issues are even less |
01:19:47
| <Raynos> | thlorenz: you dont need to learn. you just hire monkeys :D |
01:19:51
| <spion> | ah, done. https://gist.github.com/spion/2a2804e43e4d33aae208#file-streams-promises-es6-js |
01:20:30
| <thlorenz> | Raynos: monkeys know IE8 ? |
01:21:15
| <thlorenz> | defunctzombie: I agree that gzip will make a huge difference, however I kinda trust the CDN jquery specific version link to be stable |
01:21:34
| <defunctzombie> | I dunno what the obsession is with the CDN honestly |
01:21:44
| <Raynos> | and this is how conde nast was compromised by a government CDN poisoning attack :D |
01:21:47
| <thlorenz> | so for me to get even a slight speed improvement without much a hastle and basically no risk is kind of a no brainer |
01:21:48
| <defunctzombie> | if my other JS is slow to load then the rest of my page is slow |
01:22:08
| <defunctzombie> | using a CDN yourself will net you the same improvements |
01:22:22
| <thlorenz> | not really cause I still gotta serve it |
01:22:40
| <thlorenz> | with public CDN there is a good chance the user already has jquery cached locally |
01:23:12
| <defunctzombie> | some sort of strange obsession with jquery hahaha |
01:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 12] |
01:24:05
| <thlorenz> | :) btw I'd laugh really hard if some movie company sues you for the ghost buster pic |
01:25:03
| <jesusabdullah> | substack: what's good? |
01:25:14
| <defunctzombie> | thlorenz: me too |
01:25:22
| <defunctzombie> | thlorenz: that will be some good publicity :D |
01:25:58
| <jesusabdullah> | substack: I'm in San Josie, I can get a ride up to SF but I'd have to take caltrain back or get a ride or somethin' |
01:26:01
| <thlorenz> | defunctzombie: yeah the head line will be: "There is only one zuul ..... that got sued" |
01:26:15
| * jcrugzz | quit (Ping timeout: 245 seconds) |
01:26:22
| <substack> | jesusabdullah: wah wah waaaaaah |
01:26:29
| <substack> | san jose is like that |
01:27:32
| <jesusabdullah> | substack: I can still come up, but here's my question: If shit goes down and I can't make it back, can I crash at your place? |
01:27:44
| <jesusabdullah> | substack: I don't plan to, I have a nice hotel room here, but as a plan Z |
01:28:07
| * DTrejo | quit (Remote host closed the connection) |
01:29:06
| <jesusabdullah> | awww substack walked away |
01:29:07
| <substack> | jesusabdullah: yep sure |
01:29:15
| <jesusabdullah> | sweeeeet |
01:29:55
| <jesusabdullah> | substack: I can be in the area in like 1.5, 2 hrs? |
01:30:47
| <substack> | jesusabdullah: want to meet at sudoroom? |
01:30:53
| <jesusabdullah> | substack: yeah that'd be fantastic |
01:30:55
| <substack> | 22nd and broadway |
01:30:57
| <jesusabdullah> | substack: bring your friends!! |
01:31:01
| <jesusabdullah> | substack: is there a sign |
01:31:02
| <substack> | just get off at 19th street station |
01:31:41
| <jesusabdullah> | substack: is there like an address #, a big ol' sign, anything like that? |
01:31:43
| <defunctzombie> | don't get mugged!! |
01:32:44
| * fallsemo | quit (Quit: Leaving.) |
01:33:43
| <jesusabdullah> | substack: cool see you there |
01:34:31
| <substack> | there is a sandwich board on 22nd |
01:34:33
| <substack> | just ring the bell |
01:38:08
| <substack> | leaving here by at least 18:30 |
01:40:30
| * dguttman | quit (Quit: dguttman) |
01:43:44
| * dguttman | joined |
01:44:23
| * shama | quit |
01:46:17
| * fronx | joined |
01:48:21
| * shama | joined |
01:51:01
| * fronx | quit (Ping timeout: 248 seconds) |
01:54:58
| * yorick | quit (Remote host closed the connection) |
02:04:36
| * fotoverite | joined |
02:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 18] |
02:30:42
| * tmcw_ | joined |
02:39:03
| * calvinfo | quit (Quit: Leaving.) |
02:48:00
| * fronx | joined |
02:52:08
| * dguttman | quit (Quit: dguttman) |
02:52:29
| * fronx | quit (Ping timeout: 246 seconds) |
03:01:25
| * calvinfo | joined |
03:06:30
| * kevinswiber | joined |
03:15:19
| * Maciek416 | quit (Read error: Connection reset by peer) |
03:15:47
| * Maciek416 | joined |
03:18:45
| * tmcw_ | quit (Remote host closed the connection) |
03:19:19
| * simcop2387 | quit (Excess Flood) |
03:22:19
| * simcop2387 | joined |
03:24:01
| * kevinswiber | quit (Remote host closed the connection) |
03:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 9] |
03:24:16
| * tmcw_ | joined |
03:27:15
| * kevinswiber | joined |
03:40:08
| * dguttman | joined |
03:41:24
| * tmcw_ | quit (Remote host closed the connection) |
03:43:25
| * thlorenz | quit (Remote host closed the connection) |
03:43:40
| * maksimlin | quit (Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131115110311]) |
03:43:43
| * tmcw_ | joined |
03:43:59
| * thlorenz | joined |
03:45:05
| * calvinfo | quit (Quit: Leaving.) |
03:45:10
| <jesusabdullah> | okay where the hell is everybody that isn't substack and marina |
03:45:33
| <jesusabdullah> | ogd_: sudo room naow |
03:45:45
| <jesusabdullah> | isaacs: sudo room naow |
03:46:33
| * fronx | joined |
03:46:35
| <chapel> | jesusabdullah: where were you interviewing? |
03:47:20
| <jesusabdullah> | chapel: this was with ubiquiti |
03:47:48
| <chapel> | not heard of them |
03:47:54
| <chapel> | you were near my neck of the woods |
03:48:19
| * thlorenz | quit (Ping timeout: 252 seconds) |
03:48:20
| * tmcw_ | quit (Ping timeout: 245 seconds) |
03:48:42
| <jesusabdullah> | yeah |
03:48:49
| <jesusabdullah> | they're cool, they're a wireless isp company |
03:48:59
| <jesusabdullah> | except they license the shit to local isps |
03:49:13
| <jesusabdullah> | it's cool stuff, they broadcast on wifi bands for multiple miles |
03:50:39
| * fronx | quit (Ping timeout: 240 seconds) |
03:59:02
| * dominictarr_ | joined |
03:59:57
| <dominictarr_> | isaacs, yo whats up? |
04:06:38
| * dguttman | quit (Quit: dguttman) |
04:12:08
| * tmcw_ | joined |
04:14:42
| * thlorenz | joined |
04:17:03
| * tmcw_ | quit (Ping timeout: 260 seconds) |
04:23:45
| * defunctzombie | changed nick to defunctzombie_zz |
04:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 21] |
04:35:20
| <timoxley> | juliangruber is there a solution for websocket reconnections with multilevel? |
04:35:51
| <timoxley> | I can't seem to even capture the "unexpected disconnection" error to ignore it |
04:35:53
| <timoxley> | cc dominictarr_ |
04:39:59
| * jcrugzz | joined |
04:41:49
| * tmcw_ | joined |
04:43:36
| * tmcw__ | joined |
04:43:37
| * tmcw_ | quit (Read error: Connection reset by peer) |
04:48:06
| * thlorenz | quit (Ping timeout: 245 seconds) |
04:48:19
| * tmcw__ | quit (Ping timeout: 260 seconds) |
05:08:59
| * jcrugzz | quit (Ping timeout: 252 seconds) |
05:16:37
| * shama | quit (Remote host closed the connection) |
05:17:28
| <timoxley> | juliangruber: nvm, opened an issue https://github.com/juliangruber/multilevel/issues/42 |
05:18:49
| * calvinfo | joined |
05:18:53
| * rvagg_ | joined |
05:18:58
| * calvinfo | quit (Client Quit) |
05:22:19
| * ircretary | quit (Ping timeout: 245 seconds) |
05:22:22
| * rch | quit (Ping timeout: 245 seconds) |
05:22:25
| * rvagg | quit (Ping timeout: 245 seconds) |
05:22:25
| * rvagg_ | changed nick to rvagg |
05:22:27
| * rch1 | joined |
05:22:28
| * farnsworth | quit (Ping timeout: 245 seconds) |
05:22:31
| * ircretary | joined |
05:22:48
| * farnsworth | joined |
05:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 34] |
05:33:32
| * Maciek416 | quit (Remote host closed the connection) |
05:42:29
| * tmcw_ | joined |
05:44:42
| * thlorenz | joined |
05:46:43
| * tmcw_ | quit (Ping timeout: 240 seconds) |
05:53:21
| * thlorenz | quit (Ping timeout: 252 seconds) |
06:04:53
| * dominictarr_ | quit (Ping timeout: 248 seconds) |
06:05:20
| * calvinfo | joined |
06:22:42
| * calvinfo | quit (Quit: Leaving.) |
06:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 17] |
06:24:22
| <jesusabdullah> | substack: can you think of a better name for this showDir option in ecstatic? https://github.com/leesei/node-ecstatic/blob/66b5b1da007758136dfda71882f60b55b06cc763/lib/ecstatic/showdir.js#L177 |
06:26:42
| * fotoverite | quit (Read error: Connection reset by peer) |
06:27:44
| <substack> | jesusabdullah: in apache it's called indexes |
06:27:50
| <substack> | but that's also a kind of lousy name |
06:28:08
| * fallsemo | joined |
06:40:54
| <jesusabdullah> | substack: yeeah |
06:42:16
| * kevinswiber | quit (Remote host closed the connection) |
06:42:28
| * tmcw_ | joined |
06:43:55
| * jcrugzz | joined |
06:46:36
| * fronx | joined |
06:46:44
| * tmcw_ | quit (Ping timeout: 240 seconds) |
06:48:45
| * jcrugzz | quit (Ping timeout: 245 seconds) |
06:49:22
| * fallsemo | quit (Quit: Leaving.) |
06:50:45
| * thlorenz | joined |
06:51:31
| * fronx | quit (Ping timeout: 260 seconds) |
06:52:05
| * dominictarr_ | joined |
06:56:46
| * calvinfo | joined |
07:03:45
| * thlorenz | quit (Ping timeout: 246 seconds) |
07:06:24
| * jcrugzz | joined |
07:20:46
| * anvaka_ | joined |
07:24:04
| <rowbit> | Hourly usage stats: [developer: 0, free: 27] |
07:39:52
| * calvinfo | quit (Quit: Leaving.) |
07:42:27
| * tmcw_ | joined |
07:44:17
| * calvinfo | joined |
07:46:50
| * tmcw_ | quit (Ping timeout: 246 seconds) |
07:51:37
| * calvinfo | part |
07:51:50
| * joliss | quit (Quit: joliss) |
07:52:57
| * joliss | joined |
08:00:27
| * thlorenz | joined |
08:03:09
| * mikolalysenko | quit (Ping timeout: 252 seconds) |
08:05:03
| <grncdr> | ehd: cool slides, I'm still super unclear on the plan to resolve undef'ed symbols though |
08:05:13
| <grncdr> | like, that sounds intractable |
08:05:46
| <grncdr> | also trainternet is awesome |
08:11:32
| * djcoin | joined |
08:12:09
| <ehd> | grncdr: let me make it more complicated first :D so let's say function definitions have uuids for IDs but also a name... because if you had a function in a text file, you could change the name and it would still be the same thing, right? also, i have an index of all the names. so when i'm in the editor and creating "fibonacciWebAPI" and I type `fib`, it |
08:12:09
| <ehd> | looks for fib in the index, finds it and saves its UUID & current version in fibonacciWebAPI's dependencies, just like npm install foobar --save would, but really fast |
08:13:57
| * thlorenz | quit (Ping timeout: 248 seconds) |
08:14:08
| <ehd> | also, there's currently one global namespace of all symbols. it makes sense to namespace by ownership though, and also to have indexes for npm and other sources so those can be pulled in as well |
08:18:04
| * paul_irish | quit (Quit: ZNC - http://znc.sourceforge.net) |
08:18:25
| * rannmann | quit (Read error: Connection reset by peer) |
08:18:41
| * rannmann | joined |
08:18:41
| * rannmann | quit (Changing host) |
08:18:41
| * rannmann | joined |
08:21:04
| * paul_irish | joined |
08:23:30
| * fronx | joined |
08:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 21] |
08:25:03
| <jden> | ehd: grncdr: this sounds really interesting - could you link the slides again? |
08:32:15
| <ehd> | jden: they're a bit shit without me blabbering along https://speakerdeck.com/ehd/virtualizing-dependency-resolution |
08:34:33
| <ehd> | what's really cool is using crdt to share function definitions between an editor and a compiler running in a browser. having live reload is just a side effect of this |
08:34:45
| <ehd> | compiler in a browser == the app |
08:35:02
| <grncdr> | ehd: yeah, I wonder what the right way to deal with global namespaces is? |
08:35:43
| <Raynos> | ehd: have you seen module-maker ? |
08:35:56
| <Raynos> | https://github.com/module-maker/module-maker |
08:36:01
| <Raynos> | I build a very similar idea to yours |
08:36:12
| <grncdr> | I feel like I might be misunderstanding… but I don't think that having functions saved into your deps because you typed their name is the way to go |
08:36:23
| <Raynos> | basically fuck ceremony. Write code. do everything in the browser, really low friction |
08:36:28
| <grncdr> | like, some simple auto-completion UI would probably go a long way towards usability |
08:36:38
| <ehd> | Raynos: fuck ceremony, exactly :D |
08:37:28
| <ehd> | grncdr: yup, i'll have to find out what exactly works best there |
08:39:33
| * fronx | quit (Remote host closed the connection) |
08:40:11
| * dominictarr_ | quit (Ping timeout: 245 seconds) |
08:42:27
| * tmcw_ | joined |
08:43:29
| * farnsworth | quit (Ping timeout: 252 seconds) |
08:47:00
| * tmcw_ | quit (Ping timeout: 246 seconds) |
08:48:55
| * farnsworth | joined |
08:49:39
| * mikolalysenko | joined |
08:49:45
| <ehd> | Raynos: there's a dockerize button in my editor which creates a tar file (Dockerfile setting up node on ubuntu + the bundled script) and posts it to dockerd => develop server side node code in same editor => no more deployment ceremony |
09:04:42
| * fent_ | joined |
09:05:23
| <grncdr> | oh I wasn't super clear on whether that was a current feature or planned |
09:05:35
| * ELLIOTTCABLE_ | joined |
09:05:53
| * owenb___ | joined |
09:06:16
| * guybrush_ | joined |
09:06:53
| * Ralt_ | joined |
09:10:03
| * mmckegg_ | joined |
09:10:25
| * thlorenz | joined |
09:10:34
| * tim_smart|away | joined |
09:12:16
| * mmckegg | quit (*.net *.split) |
09:12:16
| * fent | quit (*.net *.split) |
09:12:16
| * dlmanning | quit (*.net *.split) |
09:12:16
| * jergason | quit (*.net *.split) |
09:12:17
| * guybrush | quit (*.net *.split) |
09:12:17
| * owenb__ | quit (*.net *.split) |
09:12:17
| * ELLIOTTCABLE | quit (*.net *.split) |
09:12:17
| * tim_smart | quit (*.net *.split) |
09:12:17
| * Ralt | quit (*.net *.split) |
09:12:20
| * mmckegg_ | changed nick to mmckegg |
09:12:27
| * fent_ | changed nick to fent |
09:12:38
| * tim_smart|away | changed nick to tim_smart |
09:13:07
| * owenb___ | changed nick to owenb__ |
09:13:19
| * ELLIOTTCABLE_ | changed nick to ELLIOTTCABLE |
09:18:56
| * dlmanning | joined |
09:20:19
| * jergason | joined |
09:21:29
| * fronx | joined |
09:21:49
| * jcrugzz | quit (Ping timeout: 240 seconds) |
09:22:42
| * thlorenz | quit (Ping timeout: 246 seconds) |
09:24:04
| <rowbit> | Hourly usage stats: [developer: 0, free: 20] |
09:37:17
| * floby | joined |
09:40:10
| * Altreus | quit (Changing host) |
09:40:10
| * Altreus | joined |
09:42:11
| <jesusabdullah> | maan getting to san josie tomorrow's gonna be a Whole Thing |
09:42:15
| <jesusabdullah> | totally worth it tho |
09:42:27
| * tmcw_ | joined |
09:47:05
| * tmcw_ | quit (Ping timeout: 245 seconds) |
10:02:04
| * fronx | quit (Remote host closed the connection) |
10:06:22
| * fronx | joined |
10:08:05
| * mikolalysenko | quit (Ping timeout: 248 seconds) |
10:20:13
| * thlorenz | joined |
10:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 25] |
10:34:10
| * thlorenz | quit (Ping timeout: 265 seconds) |
10:34:12
| * mikolalysenko | joined |
10:39:13
| * mikolalysenko | quit (Ping timeout: 246 seconds) |
10:42:27
| * tmcw_ | joined |
10:47:13
| * tmcw_ | quit (Ping timeout: 265 seconds) |
11:13:09
| * Ralt_ | changed nick to Ralt |
11:16:36
| * creationix | quit (Ping timeout: 260 seconds) |
11:18:57
| * creationix | joined |
11:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 20] |
11:30:08
| * thlorenz | joined |
11:32:22
| * insertcoffee | joined |
11:42:26
| * tmcw_ | joined |
11:43:24
| * thlorenz | quit (Ping timeout: 246 seconds) |
11:46:54
| * tmcw_ | quit (Ping timeout: 246 seconds) |
11:52:55
| * fronx | quit (Read error: Connection reset by peer) |
12:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 37] |
12:26:20
| <insertcoffee> | is there a list somewhere of awesome tech blogs to read? |
12:32:16
| <Ralt> | I find HN/reddit better for this kind of stuff |
12:32:27
| <Ralt> | than a list of blogs |
12:32:41
| <Ralt> | insertcoffee: ^ |
12:35:42
| * mikolalysenko | joined |
12:37:26
| <insertcoffee> | thanks Ralt, I am heading overseas, want to offline some RSS for the flight and while AFK |
12:38:41
| <Ralt> | ah.. |
12:40:02
| * thlorenz | joined |
12:40:40
| * mikolalysenko | quit (Ping timeout: 246 seconds) |
12:42:26
| * tmcw_ | joined |
12:44:45
| <insertcoffee> | plus Ralt, I never liked HN. I havn't owned a TV for ~8 years, its basically cable but with 100 channels of n00bs ranting about shit they have no clue about. |
12:46:45
| * tmcw_ | quit (Ping timeout: 246 seconds) |
12:51:36
| <Ralt> | insertcoffee: nah, HN can be interesting. I filter out a lot of stuff though |
12:51:48
| * mmckegg | quit (Quit: ZNC - http://znc.in) |
12:52:12
| * tmcw_ | joined |
12:53:01
| <insertcoffee> | ^HN^twitter |
12:53:24
| * thlorenz | quit (Ping timeout: 246 seconds) |
12:54:00
| * tmcw__ | joined |
12:54:03
| * tmcw_ | quit (Read error: Connection reset by peer) |
12:54:27
| * anvaka_ | quit (Remote host closed the connection) |
12:58:24
| * tmcw__ | quit (Ping timeout: 252 seconds) |
13:01:29
| * yorick | joined |
13:04:15
| * floby | quit (Read error: Connection reset by peer) |
13:04:29
| * floby | joined |
13:12:21
| * jibay_ | quit (Remote host closed the connection) |
13:24:04
| <rowbit> | Hourly usage stats: [developer: 2, free: 34] |
13:36:29
| * mikolalysenko | joined |
13:41:15
| * mikolalysenko | quit (Ping timeout: 245 seconds) |
13:42:26
| * tmcw_ | joined |
13:47:47
| * tmcw_ | quit (Ping timeout: 272 seconds) |
13:49:58
| * thlorenz | joined |
13:50:31
| * fallsemo | joined |
13:59:13
| * tilgovi | joined |
14:00:15
| * kevino80 | joined |
14:03:18
| * thlorenz | quit (Ping timeout: 240 seconds) |
14:15:23
| * thlorenz | joined |
14:18:18
| * fallsemo | quit (Quit: Leaving.) |
14:18:58
| * Maciek416 | joined |
14:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 34] |
14:33:27
| * dguttman | joined |
14:34:00
| * jcrugzz | joined |
14:37:15
| * mikolalysenko | joined |
14:40:47
| * thlorenz | quit (Remote host closed the connection) |
14:42:21
| * mikolalysenko | quit (Ping timeout: 252 seconds) |
14:43:45
| * defunctzombie_zz | changed nick to defunctzombie |
14:46:03
| * tmcw_ | joined |
15:03:08
| * fotoverite | joined |
15:04:25
| * fallsemo | joined |
15:07:04
| * fallsemo | quit (Client Quit) |
15:10:09
| * anoemi | joined |
15:12:17
| * kevinswiber | joined |
15:15:17
| * anoemi | quit (Quit: anoemi) |
15:15:48
| * tmcw_ | quit (Remote host closed the connection) |
15:20:51
| * tilgovi | quit (Ping timeout: 252 seconds) |
15:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 43] |
15:24:05
| * thlorenz | joined |
15:30:04
| * fallsemo | joined |
15:30:39
| * fallsemo | quit (Client Quit) |
15:31:09
| * dominictarr_ | joined |
15:34:30
| * tilgovi | joined |
15:34:40
| * DTrejo | joined |
15:35:33
| * mikolalysenko | joined |
15:36:05
| * dominictarr_ | quit (Ping timeout: 272 seconds) |
15:41:35
| * dominictarr_ | joined |
15:42:01
| * thlorenz_ | joined |
15:43:38
| * tmcw_ | joined |
15:44:27
| * fallsemo | joined |
15:44:27
| * fallsemo | quit (Client Quit) |
15:44:59
| * mikolalysenko | quit (Ping timeout: 260 seconds) |
15:50:18
| * kenperkins | joined |
15:50:33
| * thlorenz_ | quit (Ping timeout: 252 seconds) |
15:52:27
| * Maciek416_ | joined |
15:52:46
| * Maciek416 | quit (Read error: Connection reset by peer) |
15:53:02
| * kenperkins | quit (Read error: Connection reset by peer) |
15:53:26
| * kenperkins_ | joined |
15:53:28
| * kenperkins_ | quit (Client Quit) |
15:53:32
| * Maciek416_ | changed nick to Maciek416 |
15:55:58
| * DTrejo | quit |
15:56:53
| * tilgovi | quit (Remote host closed the connection) |
15:59:30
| <ehd> | dominictarr_: any idea why recent reconnect + shoe don't work for crdt? |
16:03:56
| <dominictarr_> | uh, is there an issue about this? |
16:04:17
| <dominictarr_> | ehd, ^ |
16:04:31
| <dominictarr_> | this is something that needs a testcase |
16:05:55
| * slaskis | joined |
16:06:12
| * jcrugzz | quit (Quit: Reconnecting) |
16:07:51
| * mikolalysenko | joined |
16:08:15
| * AvianFlu | joined |
16:08:57
| * jcrugzz | joined |
16:09:38
| * kevino80 | quit (Remote host closed the connection) |
16:09:40
| * ednapiranha | joined |
16:09:55
| * shama | joined |
16:11:11
| * kevino80 | joined |
16:13:54
| <ehd> | dominictarr_: there was a gh issue somewhere, digging it up |
16:15:02
| <ehd> | https://github.com/dominictarr/crdt/issues/28 this one i think? |
16:17:11
| <dominictarr_> | <click> |
16:18:09
| <dominictarr_> | ehd, do you have code that is currently not working? |
16:18:26
| * timoxley | quit (Remote host closed the connection) |
16:19:48
| <ehd> | dominictarr_: had an issue were crdt changes didn't replicate between node and browser, so i removed it. i'll create a minimal example when i'm back home in an hour or so |
16:24:04
| <rowbit> | Hourly usage stats: [developer: 0, free: 49] |
16:26:00
| <dominictarr_> | ehd, yes please. |
16:30:24
| * DTrejo | joined |
16:31:55
| <dominictarr_> | ehd, I think there is a problem with newest shoe. |
16:32:04
| <dominictarr_> | I think I must have been very busy when this issue came up |
16:32:16
| <dominictarr_> | I have a working example right here using old version of shoe |
16:32:21
| <dominictarr_> | try [email protected] |
16:40:55
| * Maciek416 | quit (Remote host closed the connection) |
16:41:08
| * slaskis | quit (Quit: slaskis) |
16:47:06
| * thlorenz_ | joined |
16:51:42
| <dominictarr_> | Raynos, ping |
16:52:36
| * Maciek416 | joined |
16:54:47
| * fronx | joined |
16:55:08
| * fallsemo | joined |
17:00:23
| * thlorenz_ | quit (Ping timeout: 240 seconds) |
17:06:10
| * kevinswiber | quit (Remote host closed the connection) |
17:07:25
| * AvianFlu_ | joined |
17:08:09
| * AvianFlu | quit (Disconnected by services) |
17:08:12
| * AvianFlu_ | changed nick to AvianFlu |
17:08:22
| * slaskis | joined |
17:18:43
| * dominictarr_ | quit (Ping timeout: 265 seconds) |
17:19:28
| * rch1 | changed nick to rch |
17:19:35
| * rch | quit (Changing host) |
17:19:35
| * rch | joined |
17:20:16
| * fronx | quit (Remote host closed the connection) |
17:24:00
| * fronx | joined |
17:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 26] |
17:25:29
| * kevino80 | quit (Remote host closed the connection) |
17:27:00
| * thlorenz_ | joined |
17:27:08
| * floby | part |
17:29:28
| * djcoin | quit (Quit: WeeChat 0.4.1) |
17:40:51
| * thlorenz_ | quit (Ping timeout: 272 seconds) |
17:55:09
| <substack> | Domenic_: https://twitter.com/jcoglan/status/408254077135384577 |
17:55:19
| <substack> | I really hate tone policing |
17:55:23
| <substack> | please make this go away |
17:56:38
| <yorick> | substack: I really liked your shoe laces :D how did you even get them in? |
17:57:33
| <yorick> | (although the shoes might be in need of replacement) |
17:57:36
| <substack> | yorick: just by threading them like ordinary laces? |
17:57:38
| <yorick> | ohh, you cut them, well that's cheating |
17:58:13
| <yorick> | ordinary laces have two ends, and you wouldn't be able to fit the connector through the shoe holes |
17:58:36
| <yorick> | (extra props for attaching the connectors afterwards :D) |
18:10:48
| * tmcw_ | quit (Remote host closed the connection) |
18:13:24
| * slaskis | quit (Quit: slaskis) |
18:14:40
| * kevinswiber | joined |
18:16:26
| <substack> | Domenic_: a much better approach when tone arguments come up is to ignore the tone and address the substance of the complaints |
18:17:10
| <Domenic_> | substack: I don't think you can throw away all calls for constructive discourse by labeling them "tone policing." |
18:18:02
| <pkrumins> | man i never argue |
18:18:06
| <pkrumins> | arguing is stupid |
18:18:22
| <insertcoffee> | this just in: "Smarter People Have More Sex, Do More Drugs And Stay Up Later Because It�s The Smarter Thing To Do" http://elitedaily.com/news/world/smarter-people-sex-drugs-stay-later-smarter-thing/ |
18:18:30
| <insertcoffee> | lol |
18:18:41
| <substack> | Domenic_: in this case it's pretty aligned with the power dynamics of it |
18:18:59
| <substack> | members of tc39 don't understand the extreme privledge of their position |
18:19:03
| <Domenic_> | substack: I don't see that at all. An implementer complained on Twitter instead of opening an issue in the issue tracker. |
18:19:18
| * kevino80 | joined |
18:19:19
| <substack> | and how they can just shut down the complaints of everybody else for whatever made up reason they want, like tone arguments |
18:19:21
| <Domenic_> | I'm not sure where TC39 came into this, it's Promises/A+ that's the "standards organization" in question. |
18:19:39
| <substack> | Domenic_: that's the same kind of legalistic argument that caused such a mess with ben |
18:19:46
| <substack> | didn't submit a pull request properly |
18:19:46
| <Domenic_> | Aaaand I'm out |
18:19:47
| <substack> | don't do that |
18:19:51
| <Domenic_> | bye |
18:19:51
| * slaskis | joined |
18:20:25
| <substack> | Domenic_: you should like jcoglan to the issue tracker |
18:20:41
| <substack> | *link |
18:20:50
| <substack> | that would be a productive way to handle this kind of thing |
18:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 23] |
18:27:11
| <Raynos> | dominictarr_: pong |
18:27:36
| <Raynos> | ehd: I want docker integration for running node tests from a browser |
18:27:50
| <Raynos> | dominictarr_: remind me to help fix reconnect at some point. |
18:28:15
| <ehd> | Raynos: it's rather simple, just tar up code and Dockerfile, post it to dockerd/build and run it |
18:28:32
| <Raynos> | ehd: is that a module somewhere? :D |
18:28:34
| * tmcw_ | joined |
18:28:38
| <Raynos> | dockerize({ ... }) |
18:28:44
| <ehd> | haha, wait |
18:30:23
| <ehd> | https://gist.github.com/ehd/2e98ae6373da6183f63d <- this is really shitty, but it worked to build the image! i ran it from the cli though, but shouldn't be hard to use docker's run endpoint |
18:30:51
| <ehd> | (also i couldn't figure out how to use isaac's probably much better tar package) |
18:31:30
| <ehd> | *i ran the docker image from the cli; the tar creation happens in a browser |
18:34:35
| * mikolalysenko | quit (Ping timeout: 245 seconds) |
18:35:21
| * slaskis | quit (Quit: slaskis) |
18:36:46
| * thlorenz_ | joined |
18:38:12
| * fronx | quit (Remote host closed the connection) |
18:38:34
| <ogd_> | ehd: heres an example of tar https://github.com/maxogden/dir-tar-stream |
18:39:47
| <ehd> | ogd_: thank you, i remember i looked at it when you sent it to me before, but i still couldn't figure it out because i wasn't reading via fstream but i just wanted this add(filename, buffe) interface |
18:39:59
| <ogd_> | ehd: yea fstream is a bad api |
18:40:00
| * mikolalysenko | joined |
18:42:30
| <ogd_> | ehd: require('tar') works with really huge data though which is nice |
18:42:53
| <ogd_> | ehd: most of the other ones ive tried have issues when the data gets above ~100mb |
18:45:58
| * tilgovi | joined |
18:47:20
| <ehd> | ogd_: have you tried browserifying tar and creating tars in a browser? |
18:49:55
| * thlorenz_ | quit (Ping timeout: 246 seconds) |
18:54:01
| * calvinfo | joined |
18:54:47
| * AvianFlu | quit (Remote host closed the connection) |
18:58:15
| <ogd_> | ehd: nope |
18:59:53
| <jesusabdullah> | substack: successfully made it to SJC |
19:02:03
| <substack> | rawk |
19:02:03
| * AvianFlu | joined |
19:02:15
| <substack> | jesusabdullah: with adequate time? |
19:05:24
| <jesusabdullah> | substack: indeed! |
19:08:43
| * fronx | joined |
19:10:49
| <ogd_> | anyone know a module for parsing a sql CREATE TABLE statement to get the schema back as an object? |
19:10:54
| * slaskis | joined |
19:11:23
| <mikolalysenko> | ogd_: what about this? https://npmjs.org/package/sql-parser |
19:11:44
| <mikolalysenko> | though I guess it only does select statements... |
19:11:53
| <mikolalysenko> | maybe they should call it sql-select-parser |
19:14:27
| * jcrugzz | quit (Ping timeout: 240 seconds) |
19:14:38
| * fronx | quit (Ping timeout: 240 seconds) |
19:16:00
| <ogd_> | mikolalysenko: sqljs seems to support it but has a horrible api that I cant figure out |
19:17:29
| <substack> | yep https://github.com/langpavel/node-sqljs/blob/master/grammar/13-01-14-create-table.pegjs |
19:19:11
| <ogd_> | im trying to parse this with it |
19:19:13
| <ogd_> | CREATE TABLE "bees" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" VARCHAR(50) NOT NULL, "products" VARCHAR(255), "effect" VARCHAR(50), "branch_id" INTEGER NOT NULL, "mom_id" INTEGER, "dad_id" INTEGER, "notes" VARCHAR(255)); |
19:19:24
| <ogd_> | but i get errors, whereas the ones in the test suite work (but are simpler) |
19:20:25
| <mikolalysenko> | would be nice if there was some way to parse sql with streams |
19:20:39
| <mikolalysenko> | could certainly be useful on big database dumps |
19:20:49
| <ogd_> | mikolalysenko: https://github.com/brianloveswords/streamsql is a nice start |
19:21:01
| <ogd_> | also https://github.com/felixge/faster-than-c |
19:21:15
| <ogd_> | mikolalysenko: im working now on a sql importer for dat |
19:21:19
| <ogd_> | mikolalysenko: for big database dumps |
19:21:42
| <substack> | ogd_: oh man that api is soooo bad |
19:21:50
| <substack> | new sqljs.ParseOptions >_< |
19:22:08
| <ogd_> | yea |
19:22:46
| <ogd_> | i really just need column names for now |
19:22:53
| <ogd_> | maybe theres a sql query for that? i forget |
19:23:08
| <Raynos> | ogd_: whats the point of https://github.com/maxogden/binary-split/blob/master/index.js#L8 ? |
19:23:28
| <ogd_> | Raynos: if you dont use 'new' |
19:23:37
| * slaskis | quit (Quit: slaskis) |
19:24:04
| <rowbit> | Hourly usage stats: [developer: 0, free: 38] |
19:24:27
| <substack> | ogd_: this seemed to work |
19:24:27
| <substack> | > var sqljs = require('sqljs'); sqljs.parse('create table beep (id integer, boop text)', 'STATEMENTS', new sqljs.ParseOptions) |
19:24:45
| <substack> | ogd_: PLEASE send a pull req to give this thing a sweet api |
19:24:54
| <substack> | seems really powerful, just not packaged up very well! |
19:25:08
| <ogd_> | substack: can you get it to parse the string i posted above? |
19:26:36
| <substack> | Expected ";", ALTER, CALL, CREATE, DROP, INSERT, SELECT, SET or USE but "C" found. |
19:27:10
| <substack> | on the first char :/ |
19:27:18
| <ogd_> | ah |
19:28:56
| <substack> | it doesn't like the quotes around the column names |
19:29:17
| <ogd_> | yea i just figured that out too |
19:29:38
| <ogd_> | i cna probably just remove all doubles quotes |
19:29:50
| <substack> | what if a column name has metachars? |
19:30:07
| <Raynos> | ogd_: but you return a through instance so there is no point in new. its just a funciton that returns a stream |
19:31:20
| <ogd_> | Raynos: oh yea good point |
19:31:32
| <ogd_> | Raynos: i think i used to not do that |
19:32:06
| <Raynos> | Ok cool :) |
19:32:18
| <substack> | ogd_: it's easy to fix |
19:32:32
| <substack> | one sec, generating a patch file |
19:33:42
| * calvinfo | quit (Quit: Leaving.) |
19:36:28
| <ogd_> | heres what i have working so far https://gist.github.com/maxogden/7794088 |
19:36:33
| * calvinfo | joined |
19:36:36
| <ogd_> | gotta switch to a indoor cafe, its cold out today |
19:38:38
| <substack> | ogd_: you in oaktowne? |
19:39:52
| <Raynos> | is there a guide on working with buffers efficiently ? |
19:40:10
| <Raynos> | like does buffer[buffer.length] = binaryChar a bad thing because it deopts ? |
19:42:10
| * rwaldron | joined |
19:43:19
| <grncdr> | ogd_: regarding a query to get table schema, they exist but are DB specific |
19:43:19
| * jcrugzz | joined |
19:44:20
| <grncdr> | it's something i've had in the back of my mind to write for a while, because i wanted to do a sql lib that reflected tables like SQLAlchemy does in python land |
19:44:24
| <grncdr> | but yeah, it's a pain |
19:44:57
| <grncdr> | oh, from your gist you're just after sqlite? |
19:45:09
| * mikolalysenko | quit (Ping timeout: 250 seconds) |
19:46:42
| * calvinfo | quit (Quit: Leaving.) |
19:46:48
| * thlorenz_ | joined |
19:47:03
| * calvinfo | joined |
19:48:29
| <grncdr> | PRAGMA table_info(table_name); |
19:48:34
| <grncdr> | ogd_: ^ |
19:49:10
| <grncdr> | also, bamberg is neat |
19:49:15
| <grncdr> | I ate so much food for lunch |
19:49:47
| <grncdr> | because I thought it was dinner, the table next to us kept staring at our food because it was kind of ridiculous sized |
19:51:35
| * mikolalysenko | joined |
19:56:07
| * tim_smart | quit (Quit: Bye) |
19:56:31
| <substack> | ogd_: your sql now parses in my patch :D |
19:56:42
| * tim_smart | joined |
19:57:50
| * joliss | quit (Quit: joliss) |
19:59:17
| <ogd_> | substack: just got to xolo |
19:59:25
| <ogd_> | substack: but im leaving in an hour for a meeting in SF |
20:00:09
| <ogd_> | substack: if youre hacking later lemme know though, ill probably come back to east bay at 4ish |
20:00:28
| * slaskis | joined |
20:00:50
| * thlorenz_ | quit (Ping timeout: 264 seconds) |
20:01:27
| <grncdr> | ogd_: in case it wasn't clear, PRAGMA(tablename) is a valid query that returns schema info for a table |
20:01:42
| <grncdr> | no need to parse create statements |
20:01:49
| <ogd_> | grncdr: oh cool |
20:03:02
| * insertcoffee | quit (Read error: Operation timed out) |
20:04:59
| <grncdr> | brianloveswords: have you had any complaints about streamsql requiring users to install the backend driver manually? |
20:05:14
| <brianloveswords> | grncdr: not yet! |
20:05:22
| <grncdr> | I was doing that with any-db but I never really liked it, so I used peerDependencies |
20:05:28
| <grncdr> | but I don't really like that either :P |
20:05:55
| <ogd_> | hmm db.query("PRAGMA table_info(bees)") returns { insertId: 0, affectedRows: 0, sql: 'PRAGMA table_info(bees)' } |
20:05:59
| <ogd_> | same with PRAGMA bees |
20:06:08
| <grncdr> | that's… odd |
20:06:13
| <grncdr> | oh |
20:06:18
| <grncdr> | that's the return value |
20:06:22
| <grncdr> | you need to pass a callback? |
20:06:28
| <grncdr> | the return value is a query object |
20:06:42
| <ogd_> | grncdr: yea in the cb it is that |
20:06:46
| <grncdr> | hm |
20:06:59
| <grncdr> | the bees table exists? |
20:07:04
| <ogd_> | yep |
20:07:54
| <grncdr> | hm, it's working here just fine… let me check what versions of things I'm using |
20:08:00
| <ogd_> | brianloveswords: did you see the gist above? https://gist.github.com/maxogden/7794088 |
20:08:10
| <grncdr> | [email protected] |
20:08:42
| <ogd_> | i have [email protected] |
20:09:07
| <grncdr> | hm, that's unlikely to be the issue then, still it's weird |
20:09:11
| <brianloveswords> | Hmmm |
20:09:17
| * tim_smart | quit (Quit: Bye) |
20:09:35
| <grncdr> | is streamsql intermediating the result set? maybe try it with plain require('sqlite3') ? |
20:09:58
| <grncdr> | (or any-db, so .query works in a sane manner.. :P) |
20:10:12
| * fronx | joined |
20:10:25
| * tim_smart | joined |
20:11:13
| <grncdr> | sorry, that was a dig on sqlite3, not streamsql |
20:11:26
| <brianloveswords> | ogd: db.connection.all or db.connection.run will let you use the native ones. |
20:11:45
| <brianloveswords> | grncdr: yeah, they have a weird API :/ |
20:12:05
| <grncdr> | that's what any-db is for! :D |
20:13:37
| <brianloveswords> | grncdr: might look into replacing my driver implementation with that in the future! |
20:13:53
| <grncdr> | you'll get pg for free |
20:14:16
| <ogd_> | works with .all but not with .run |
20:14:29
| * fronx | quit (Ping timeout: 240 seconds) |
20:14:33
| <grncdr> | it's basically the same API as the existing mysql driver, so you'd have to do the same adapting into a readable stream that you do there |
20:14:37
| <brianloveswords> | ogd_: yeah, that's the issue, sqlite3 doesn't return results with `run` for some silly reason. |
20:14:57
| <ogd_> | what is the diff supposed to be between run and all? |
20:14:59
| * tim_smart | quit (Quit: Bye) |
20:15:27
| <ogd_> | "Runs the SQL query with the specified parameters and calls the callback afterwards." vs "Runs the SQL query with the specified parameters and calls the callback with all result rows afterwards" |
20:15:28
| <grncdr> | run is meant for side-effecty queries |
20:15:31
| <grncdr> | updates and inserts |
20:15:33
| <brianloveswords> | ogd_: with `run` you get metadata about what you inserted. |
20:15:35
| <brianloveswords> | Yeah |
20:15:46
| <brianloveswords> | `all` you get rows back. |
20:15:55
| * tim_smart | joined |
20:15:56
| <brianloveswords> | mysql is sane enough to have one api that lets you get both :) |
20:16:32
| <grncdr> | fwiw, I don't think it's the fault of the sqlite3 module, because it's mimicing the API of sqlite3 the library |
20:16:40
| <grncdr> | but it *is* super annoying |
20:17:56
| <brianloveswords> | ogd_: yeah, so my library is making a bad choice in using run for the statement you gave it, I need to fix that. |
20:18:02
| <brianloveswords> | MY BADDDD |
20:18:02
| <LOUDBOT> | CURRENT STATUS: FULL OF HATE |
20:19:13
| <ogd_> | is there a better way to get table names? |
20:19:23
| <ogd_> | cause i still have to parse sql with SELECT sql FROM sqlite_master WHERE type='table';" |
20:19:38
| <ogd_> | http://stream1.gifsoup.com/view3/1424727/oprah-s-bee-give-away-o.gif |
20:20:22
| <brianloveswords> | ogd_: https://i.cloudup.com/6o1OfLrnfQ.png |
20:20:40
| <grncdr> | what columns are in that table? |
20:20:49
| <grncdr> | (sqlite_master) |
20:21:01
| <brianloveswords> | Dunno if that works with sqlite thoooo |
20:21:07
| <brianloveswords> | Lemme try it |
20:21:07
| <ogd_> | there are 'branches', and 'bees' and 'CREATE TABLE sqlite_sequence(name,seq)' |
20:21:19
| <grncdr> | I mean, surely one of them is just the table name |
20:21:46
| <grncdr> | so, PRAGMA table_info(sqlite_master) |
20:21:52
| <grncdr> | reflection is fun! |
20:22:38
| <ogd_> | grncdr: that doesnt return 'bees' or 'branches' |
20:22:46
| <ogd_> | grncdr: just weird internal table names |
20:22:52
| <ogd_> | err column names |
20:23:11
| <substack> | ogd_: pow https://github.com/langpavel/node-sqljs/pull/3 |
20:23:14
| <substack> | TIS THE SEASON |
20:23:15
| <LOUDBOT> | THAT IS UNACCEPTABLE |
20:23:34
| <ogd_> | woot |
20:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 24] |
20:25:23
| <ogd_> | brianloveswords: i dunno how to execute 'show tables' from JS |
20:25:41
| <brianloveswords> | ogd_: won't work anyway, it seems to be mysql specific :( |
20:25:45
| <substack> | brianloveswords: which db? |
20:26:01
| <substack> | *ogd |
20:26:14
| <ogd_> | on the sqlite bees db i'm working with |
20:26:15
| <grncdr> | ogd_: the column name is sqlite_master.name |
20:26:29
| <ogd_> | grncdr: im tryng to get table names now |
20:26:32
| <grncdr> | select name from sqlite_master hwere type = 'table'; |
20:26:32
| <ogd_> | grncdr: without parsing sql |
20:26:50
| <grncdr> | s/hwere/where |
20:26:52
| <grncdr> | ;) |
20:26:58
| <ogd_> | ahh that worked |
20:27:00
| <ogd_> | kewl |
20:27:04
| <brianloveswords> | SICKKKkkk |
20:27:08
| <ogd_> | i forgot all the sql i used to know (wasnt much) |
20:27:08
| <grncdr> | I'm putting this in a module soon |
20:27:29
| <ogd_> | now i need to to have an optional automatically denormalize a table |
20:27:32
| <grncdr> | because seriously, sql databases are awesome except when they're different from eachother |
20:27:52
| <grncdr> | which is way too often :( |
20:27:58
| <grncdr> | ooh |
20:28:09
| <grncdr> | auto-denormalization would be cool |
20:28:35
| <grncdr> | I'd bet you can pry out foreign keys from sqlite_master without a lot of effort |
20:28:58
| <brianloveswords> | Oh yeah, denormalization would be cool! |
20:30:52
| <grncdr> | first I need to figure out how to create a foreign key in sqlite again... |
20:31:11
| <ogd_> | lol |
20:34:38
| <grncdr> | crap, you might be back to parsing CREATE statements |
20:34:56
| <grncdr> | doesn't look like foreign keys are included in table_info |
20:35:26
| <ogd_> | in the create statement it just says "branch_id" INTEGER NOT NULL |
20:37:09
| <ogd_> | shouldnt it say 'FOREIGN' somewhere or am i making that up |
20:37:30
| <grncdr> | it shoul |
20:37:31
| <grncdr> | *should |
20:37:43
| <grncdr> | which means you don't have actual foreign keys |
20:37:45
| <ogd_> | ah |
20:37:50
| * grncdr | waggles his finger |
20:38:08
| <grncdr> | so you'll have to parse table/column names and resolve them by convention I guess ;) |
20:38:44
| <grncdr> | also I found this: PRAGMA foreign_key_list(tablename) |
20:39:01
| <grncdr> | which works if there are foreign keys exist |
20:39:58
| <brianloveswords> | Foreign key by convention rather than actual constraint! |
20:40:26
| <ogd_> | someone more knowledgable than me should make a sql version of https://github.com/maxogden/csv-spectrum |
20:40:30
| <grncdr> | your exclamation point could mean so many things... |
20:41:47
| <grncdr> | I'm not sure what you mean, since that repo is about testing parsers? |
20:42:11
| <brianloveswords> | grncdr: oh, I was just saying "this is what they did" |
20:42:16
| <brianloveswords> | I was not making a value judgement. |
20:44:28
| <ogd_> | grncdr: a repo of a bunch of different sql databases in one place that have all sorts of different weird conventions and formats |
20:47:38
| * kevino80 | quit (Remote host closed the connection) |
20:51:51
| <grncdr> | hm, that could be useful |
20:53:30
| * jcrugzz | quit (Ping timeout: 240 seconds) |
20:53:51
| <grncdr> | is using const worth it yet? |
20:54:02
| <grncdr> | like what does it actually do in V8? |
20:54:50
| <grncdr> | brianloveswords: ^^ I'm reading streamsql and seeing so much const |
20:55:55
| <brianloveswords> | grncdr: const is not currently worth it, except as indication to someone reading the code that you do not intend for that variable to change. |
20:56:13
| <brianloveswords> | In ES6, it will be block scoped and throw on reassignment. |
20:56:39
| * thlorenz_ | joined |
20:56:54
| <brianloveswords> | grncdr: but since right now, it's pretty much the same as var only will not "take" reassignment (i.e., it fails silently) |
20:57:04
| <grncdr> | ah, that's still worth it from a readability perspective I guess |
20:57:12
| <grncdr> | will it throw if you "use strict" ? |
20:57:27
| <brianloveswords> | haha, yeah, but not in the way you expect |
20:57:32
| <grncdr> | like the Object.freeze stuff? |
20:57:36
| <brianloveswords> | As in, it throws immediately and says "DON'T USE CONST" |
20:57:47
| <grncdr> | :| |
20:57:50
| <brianloveswords> | Yeah, super lame. |
20:58:18
| <grncdr> | ah well, one day ES6 will arrive and we'll all be happy forever ;) |
20:58:48
| <grncdr> | also, this is pretty superficial, but I dig your python alignment |
20:59:00
| <grncdr> | are you using vim perchance? |
20:59:19
| <brianloveswords> | grncdr: my python alignment? |
20:59:34
| <brianloveswords> | grncdr: I use emacs! |
20:59:38
| <grncdr> | sorry, I mean the way you line up arguments with the opening brace |
20:59:43
| <brianloveswords> | Ahhhhh |
21:00:00
| <grncdr> | er, paren |
21:00:16
| <grncdr> | but yeah, I see that a lot in Python, but not so much in JS land |
21:00:45
| <brianloveswords> | Ahh yeah, I actually wrote a lot of python in my past days before I started working on node. |
21:00:47
| <ogd_> | wait what? |
21:01:15
| <grncdr> | ogd_: https://github.com/brianloveswords/streamsql/blob/master/lib/drivers/prototype.js#L402 |
21:01:19
| <grncdr> | that's a pretty good example |
21:01:25
| <grncdr> | or line 412 below it |
21:01:34
| <ogd_> | ahh |
21:01:46
| <ogd_> | yea i dig it |
21:02:09
| <grncdr> | I need to find a better JS auto-indent for vim |
21:02:12
| <grncdr> | mine is so messed up |
21:02:56
| <grncdr> | it does weird crap like indenting further if you don't use semi-colons at the end of a line, nested functions go all wonky |
21:03:23
| <brianloveswords> | Oh that's weird! |
21:04:09
| <grncdr> | yeah, I don't know what I did, but it's really been annoying |
21:04:35
| <grncdr> | every once in a while I go on a vim plugin binge, and then a month later I'm all like "why doesn't my shit work?" |
21:04:45
| <grncdr> | "I should try some new plugins" |
21:04:49
| <grncdr> | vicious cycle |
21:06:58
| <brianloveswords> | haha that happens to me every once in a while with emacs. |
21:07:16
| <brianloveswords> | I'll feel like my config is stagnant, I go buckwild and then all my shit breaks. |
21:07:41
| <brianloveswords> | Classic tinkerers dilemma |
21:08:34
| <grncdr> | :D |
21:10:00
| <grncdr> | yay, for reference github.com/pangloss/vim-javascript seems to work a lot better |
21:10:26
| * thlorenz_ | quit (Ping timeout: 264 seconds) |
21:11:12
| <tmcw_> | y, still not great. wish that there was some js indentation that correctly tabbed out , continuations |
21:16:02
| <grncdr> | not sure what you mean by "tabbed out" |
21:21:14
| * mikolalysenko | quit (Ping timeout: 264 seconds) |
21:24:04
| <rowbit> | Hourly usage stats: [developer: 1, free: 26] |
21:25:54
| * mikolalysenko | joined |
21:29:45
| * fronx | joined |
21:31:00
| * jcrugzz | joined |
21:39:39
| * kevino80 | joined |
21:43:06
| * joliss | joined |
21:44:18
| <taterbase> | substack: is there a way to get testing tests to rerun? Without a git push? |
21:44:26
| <taterbase> | s/testing/testling/ |
21:48:02
| <pkrumins> | hit 'send a test hook' |
21:48:28
| <pkrumins> | in repo hook settings, where you typed git.testling.com |
21:49:10
| <taterbase> | pkrumins: thanks |
21:51:11
| * supershabam | joined |
21:58:25
| <jesusabdullah> | substack: https://medium.com/cool-code-pal/cf72b588b1b if you haven't read this you totally should it's great |
21:58:45
| <brianloveswords> | jennschiffer is A+++++ |
21:58:51
| <rowbit> | /!\ ATTENTION: (default-local) [email protected] successfully signed up for developer browserling plan ($20). Cash money! /!\ |
21:58:51
| <rowbit> | /!\ ATTENTION: (default-local) paid account successfully upgraded /!\ |
22:00:30
| <jesusabdullah> | brianloveswords: inorite? seriously the best twitter account I've seen in months |
22:00:42
| <jesusabdullah> | Until Now. Though. |
22:00:48
| <brianloveswords> | haha jesusabdullah, we hung out a few weeks ago! |
22:01:02
| <brianloveswords> | SHE'S A REAL HUMAN BEINGGG |
22:01:02
| <LOUDBOT> | I AM OFFENDED THAT YOU WOULD THINK I'M CAPABLE OF SUCH A THING |
22:01:49
| * fallsemo | quit (Quit: Leaving.) |
22:02:01
| <jesusabdullah> | brianloveswords: I believe you! But I didn't know she existed until I stumbled across her twitter SO |
22:02:11
| <jesusabdullah> | brianloveswords: though I'm p. sure we hung out on meatspaces for a while |
22:02:25
| <brianloveswords> | haha definitely highly possible |
22:04:23
| * fallsemo | joined |
22:05:32
| * mikolalysenko | quit (Ping timeout: 240 seconds) |
22:06:08
| <guybrush_> | so benchmark.js doesnt work with browserify because its shimming require() https://github.com/bestiejs/benchmark.js/blob/master/benchmark.js#L651-L656 , should browserify support that or should modules-authors just not do it? |
22:06:35
| * thlorenz_ | joined |
22:07:06
| * mikolalysenko | joined |
22:08:32
| * feross | joined |
22:16:10
| <spion> | turns out, promises and streams can work pretty well together. https://github.com/spion/promise-streams has new example that implements a links -> streaming HTML parsers (via trumpet) -> download each image -> file pipeline |
22:16:11
| <rowbit> | substack, pkrumins: A developer is waiting in the queue for explorer/9.0 |
22:16:14
| * timoxley | joined |
22:18:08
| <creationix> | I wonder if there is a way to make this actually useful in real programs. Maybe add an api to trace a subset of a program? https://a248.e.akamai.net/camo.github.com/22c3d5f4eaa0f64fcdc76785589bdf889381eef0/687474703a2f2f6372656174696f6e69782e636f6d2f6576656e74732e737667 |
22:19:10
| <spion> | creationix, the number of ms is total time? |
22:19:50
| * thlorenz_ | quit (Ping timeout: 240 seconds) |
22:20:47
| <creationix> | the left ms is time between event source creation and when the event started (so time between setTimeout call and it's callback) |
22:20:54
| <creationix> | the right ms is the time spent processing the callback |
22:21:24
| <spion> | so its X ms + Y ms |
22:21:25
| <spion> | :) |
22:21:40
| <spion> | - confused me, thought its a range |
22:21:51
| <creationix> | that's why the left time is so large on the initial listen |
22:22:03
| <creationix> | that's how long it took me to start the node server, switch tabs and type a curl command to test it |
22:22:23
| <spion> | not fast enough! |
22:22:24
| <spion> | haha. |
22:22:43
| <creationix> | I should update with a diagram showing two requests, that would be more interesting I think |
22:22:46
| <spion> | anyway, yeah. source filtering, but also time filtering/sorting? |
22:24:03
| <creationix> | one idea I had was to make aything with > 10ms on the right show up bright red |
22:24:04
| <rowbit> | Hourly usage stats: [developer: 7, free: 32] |
22:24:12
| <creationix> | the right number is CPU blocking time |
22:24:18
| <creationix> | the left is input and io wait time |
22:24:26
| <spion> | great, or even flameish colors |
22:24:57
| <spion> | picking one between green-yellow-red :) |
22:26:45
| <creationix> | spion, also the entire tool is under 100 lines, feel free to play with the output |
22:32:08
| <creationix> | spion, ok, updated with a more interesting example. This server accepted two requests, the first served a file from disk using "serve" the second served a 404 with the same. https://gist.github.com/creationix/7796338 |
22:35:10
| * ednapiranha | quit (Remote host closed the connection) |
22:41:10
| * fronx | quit (Remote host closed the connection) |
22:45:05
| * fronx | joined |
22:49:36
| <substack> | jesusabdullah: yes, saw it |
22:59:55
| * kevinswiber | quit (Remote host closed the connection) |
23:05:33
| * ednapiranha | joined |
23:06:23
| * taterbase | changed nick to larryellison |
23:06:31
| * thlorenz | quit (Remote host closed the connection) |
23:06:34
| * larryellison | changed nick to taterbase |
23:08:27
| * ralphtheninja | joined |
23:12:15
| * slaskis | quit (Quit: slaskis) |
23:13:49
| * ednapiranha | quit (Ping timeout: 246 seconds) |
23:14:20
| <spion> | creationix, ah, so using new Error to get line numbers |
23:14:34
| <spion> | that can be... slow. |
23:14:39
| * ralphtheninja | quit (Quit: leaving) |
23:15:14
| * DTrejo | quit (Remote host closed the connection) |
23:15:40
| * DTrejo | joined |
23:16:29
| * thlorenz | joined |
23:19:04
| * AvianFlu | quit (Ping timeout: 246 seconds) |
23:20:00
| * DTrejo | quit (Ping timeout: 245 seconds) |
23:20:28
| * feross | quit (Quit: feross) |
23:20:54
| * feross | joined |
23:24:03
| <rowbit> | Daily usage stats: [developer: 8, free: 105] |
23:24:03
| <rowbit> | Hourly usage stats: [developer: 0, free: 47] |
23:25:26
| <grncdr> | ogd_: old news now, but here's a thing I made: https://github.com/grncdr/node-db-reflect |
23:25:35
| * tilgovi | quit (Ping timeout: 260 seconds) |
23:25:41
| <grncdr> | it's not on npm yet, need to add support for other DB's first |
23:26:39
| * jcrugzz | quit (Ping timeout: 272 seconds) |
23:29:35
| * thlorenz | quit (Ping timeout: 240 seconds) |
23:30:04
| * jcrugzz | joined |
23:34:35
| * kevino80 | quit (Ping timeout: 240 seconds) |
23:51:37
| * DTrejo | joined |