00:00:01  * ircretaryquit (Remote host closed the connection)
00:00:05  <gozala>but if you have a special case you could ask isPending(promise)
00:00:09  * ircretaryjoined
00:00:38  <gozala>and if it’s not then read it somehow
00:01:30  <creationix>I hate how complicated that is
00:01:36  <creationix>not sure what else you can do though
00:01:41  <creationix>usually I just have zalgo
00:01:52  <gozala>creationix: well I like spawn
00:02:05  <gozala>because this decision is lifted
00:02:17  <creationix>yep, I've been experimenting with coroutines for years
00:02:27  <creationix>that's why I ported node to lua and started porting it to spidermonkey
00:05:44  <Raynos>creationix: have you seen libuv.js ?
00:05:53  <Raynos>it would be nice if there was a libuv.v8 & libuv.monkey
00:06:10  <gozala>creationix: I guess this will take care of that pending non pending case though https://gist.github.com/Gozala/11160381
00:06:25  * thlorenzjoined
00:06:29  <creationix>Raynos: yep
00:06:50  <gozala>creationix: Raynos I would have added that to Operator but than it would make them fantasy land promises :)
00:07:13  <gozala>and I get enough haters without that :)
00:07:24  <Raynos>gozala: valueOf is dangerous
00:07:31  <Raynos>although i guess not
00:07:46  <Raynos>does Object(p) invoke p.valueOf() ?
00:07:48  <gozala>Raynos: well that’s how Operator in my case allows you to unbox
00:08:14  <gozala>but yeah other ppl also mentioned they don’t like to use valueOf for that
00:08:20  <gozala>so I may just rename it
00:08:48  <Raynos>it means you can do Promise(string) + Promise(string) :D
00:10:01  <gozala>Raynos: yeah I don’t know what the good name for such method though
00:10:14  <gozala>clojure has deref
00:10:28  <gozala>I think in many cases it’s called unbox
00:10:36  <Raynos>.readFromFuture()
00:10:47  <Raynos>either gives value
00:10:50  <gozala>Raynos: it’s not from future that’s a point
00:10:56  <Raynos>or throw new Error("Its not the future yet")
00:11:25  <gozala>Raynos: https://github.com/Gozala/channel/blob/master/channel.js#L47-L52
00:11:48  <gozala>take.result() ?
00:12:11  <gozala>or maybe resultOf()
00:12:27  <Raynos>https://github.com/Gozala/channel/commit/8a0ea88406990b28626e4985e4b075d3a159b340
00:12:28  <Raynos>XD
00:12:31  <Raynos>I have commit access
00:12:40  <Raynos>let me force push that sha away :D
00:13:36  <gozala>I don’t think read is a correct term neither fuisture
00:13:40  <gozala>future is
00:14:01  * ednapiranhajoined
00:14:13  <Raynos>nothing happened
00:14:17  <jjjohnny>fucking retarded that window.onmessage is called when you window.postMessage
00:14:21  <Raynos>i never committed anything on master :D
00:15:18  <jjjohnny>sry not sry
00:17:41  <Raynos>gozala: its kind of a joke :)
00:18:08  <jjjohnny>docs: targetOrigin
00:18:15  <jjjohnny>TARGET ... ORIGIN
00:18:16  <LOUDBOT>JERRY BRUCKHEIMER'S PRINCE OF PERSIA
00:18:28  <jjjohnny>YES
00:18:58  * brianloveswordsquit (Quit: Computer has gone to sleep.)
00:19:34  * mikolalysenkojoined
00:20:36  <jjjohnny>when I say retarded, I mean retarding, cuz of its affect on me
00:21:55  * brianloveswordsjoined
00:26:20  * thlorenzquit (Remote host closed the connection)
00:27:56  * thlorenzjoined
00:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 17]
00:29:25  * thlorenzquit (Remote host closed the connection)
00:29:40  * thlorenzjoined
00:45:58  <jjjohnny>lol http://itex.com
00:48:19  <jjjohnny>its different from bitcoin cuz it uses a centralized fake currency, uuhhh we mean cuz its a barter system A BARTER SYSTM LOOK THIS WAY
00:58:09  <substack>linden dollars
01:03:05  * ferossquit (Quit: feross)
01:11:07  <defunctzombie>ogd: ping
01:11:17  <ogd>defunctzombie: yo
01:11:24  <defunctzombie>ogd: http://gothamist.com/2014/04/21/cat_cafe_popping_up_in_nyc_this_wee.php
01:11:30  <defunctzombie>http://sfist.com/2014/01/22/breaking_cat_cafe_coming_to_san_fra.php
01:11:43  <ogd>is it ACTUALLy happening!??
01:11:52  <defunctzombie>the one in NYC is for a few days this week
01:12:13  <defunctzombie>this was me when I found out -> http://i1.kym-cdn.com/photos/images/newsfeed/000/641/298/448.jpg
01:12:15  <ogd>i need a hard date for when its opening
01:23:29  * phated_quit (Remote host closed the connection)
01:27:57  * ednapiranhaquit (Remote host closed the connection)
01:29:09  <rowbit1>Hourly usage stats: [developer: 1, free: 24]
01:30:43  * addisonjquit (Quit: Connection closed for inactivity)
01:36:12  * jxsonjoined
01:38:19  * jxson_quit (Read error: Operation timed out)
01:40:18  * jxsonquit (Ping timeout: 240 seconds)
01:40:41  * jxsonjoined
01:43:00  * jxsonquit (Remote host closed the connection)
01:43:08  * pfrazequit (Ping timeout: 252 seconds)
01:48:04  * prettyrobotsjoined
01:48:36  <prettyrobots>When I log with Winston using the JSON format, how do turn the JSON strings in a log file into something readable?
01:48:50  <jesusabdullah>you don't
01:48:51  <prettyrobots>Is there a Winston log reader?
01:48:58  <jesusabdullah>yeah no I think you're hosed
01:49:03  <jesusabdullah>bunyan comes with a log reader
01:49:04  <prettyrobots>jesusabdullah: Okay.
01:49:15  <prettyrobots>I'm not hosed. I'm starting out.
01:49:27  <prettyrobots>Trying to find a path for logging.
01:50:25  <prettyrobots>jesusabdullah: What is your logging strategy?
01:51:03  <jesusabdullah>prettyrobots: I've been bouncing around a lot
01:51:12  <jesusabdullah>prettyrobots: for cli stuff I tend to roll with npmlog
01:51:23  <jesusabdullah>prettyrobots: for server stuff I've been using bunyan at work and it, well, works
01:51:36  <jesusabdullah>prettyrobots: then pipe the json into logstash
01:51:57  <jesusabdullah>prettyrobots: I've also played with hand rolling my logging libraries but I think I'm done with that now :)
01:52:54  <prettyrobots>Is Logstash going to know what to do with Winston JSON?
01:53:15  <prettyrobots>Or do I really need to switch to Bunyan?
01:53:46  * phatedjoined
01:54:17  <prettyrobots>If anyone else has any thoughts on logging...
02:04:34  <substack>I just use console.log
02:04:39  <substack>and redirect to a file
02:05:42  * ednapiranhajoined
02:06:58  * thealphanerdquit (Quit: thealphanerd)
02:07:37  <substack>prettyrobots: if you want to pull out json fragments from messy log data you could use https://github.com/substack/json-scrape
02:08:01  <substack>that way you don't need to centrally coordinate a logging scheme, you can just print to stdout with whatever noise you want
02:10:40  * ferossjoined
02:12:28  * rxgxjoined
02:16:25  <Raynos>prettyrobots: using winston in production
02:16:38  <Raynos>bunyan is a better choice probably though
02:22:31  * fotoveritequit (Quit: fotoverite)
02:29:04  * contraha_joined
02:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 28]
02:36:06  * thlorenzquit (Remote host closed the connection)
02:36:39  * thlorenzjoined
02:40:50  * thlorenzquit (Ping timeout: 240 seconds)
02:40:50  * mikolalysenkoquit (Ping timeout: 240 seconds)
02:48:44  * fotoveritejoined
02:51:52  * ednapiranhaquit (Quit: Leaving...)
02:53:02  * ferossquit (Quit: feross)
02:53:37  <kanzure>substack: is watchify({transform:[]}) supposed to work?
02:59:54  * ferossjoined
03:07:41  * defunctzombiechanged nick to defunctzombie_zz
03:09:42  * ferossquit (Quit: feross)
03:11:54  <kanzure>marcello4d: oh, perhaps i mean to ask you that question?
03:12:28  * i_m_cajoined
03:17:14  * ferossjoined
03:19:53  * thealphanerdjoined
03:22:25  * contraha_quit (Quit: Sleeping)
03:22:52  * mikolalysenkojoined
03:22:55  <jjjohnny>prettyrobots: if ur trying to read ugly json output i do the vim thing: highlight the single line, !json
03:23:49  <prettyrobots>Are you suggesting a vim command?
03:23:53  <prettyrobots>What will it do?
03:23:58  <prettyrobots>Okay. I can find out for myself.
03:24:42  <prettyrobots>Okay...
03:24:49  <prettyrobots>So, what is `json`? A shell utility?
03:25:20  * i_m_caquit (Ping timeout: 265 seconds)
03:25:49  * ferossquit (Quit: feross)
03:25:58  <jjjohnny>prettyrobots: npm install -g json-tool
03:26:09  <prettyrobots>Gotcha.
03:26:16  <jjjohnny>thats the json cli
03:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 26]
03:54:35  * mikolalysenkoquit (Ping timeout: 252 seconds)
04:12:53  <rowbit1>substack, pkrumins: These encoders are STILL down: 50.56.27.70(dev-ie6-1), 50.57.171.229(dev-ie6-2), 184.106.99.27(dev-ie7-3)
04:16:56  * addisonjjoined
04:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 16]
04:30:08  * contraha_joined
04:31:16  * brianloveswordsquit (Quit: Computer has gone to sleep.)
04:42:29  * gozalaquit (Quit: Connection closed for inactivity)
04:50:32  * kumavisquit (Ping timeout: 255 seconds)
04:52:01  * dguttmanquit (Quit: dguttman)
04:52:34  * kumavisjoined
04:57:12  * jxsonjoined
05:00:34  * phatedquit (Remote host closed the connection)
05:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 36]
05:37:20  * owen1quit (Quit: WeeChat 0.4.2)
05:39:31  * shamaquit
05:42:47  * oren1joined
05:42:53  * oren1changed nick to owen1
05:53:32  * dstokesquit (Ping timeout: 255 seconds)
05:54:26  * rvaggquit (Ping timeout: 240 seconds)
05:54:42  * rook2pawnquit (Ping timeout: 240 seconds)
05:55:01  * rook2pawnjoined
05:59:32  * dstokesjoined
05:59:50  * rvaggjoined
06:13:47  * kumavisquit (Ping timeout: 255 seconds)
06:19:33  * terinjokesquit (Ping timeout: 250 seconds)
06:20:54  * terinjokesjoined
06:24:05  * fotoveritequit (Quit: fotoverite)
06:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 60]
06:30:06  * jxsonquit (Remote host closed the connection)
06:37:45  * Maciek416quit (Remote host closed the connection)
06:48:23  * dominic_joined
06:50:56  * phatedjoined
06:52:17  * rakmjoined
06:57:35  * phatedquit (Remote host closed the connection)
07:01:58  * contraha_quit (Ping timeout: 240 seconds)
07:03:23  * contraha_joined
07:11:13  * rakmpart
07:13:13  * djcoinjoined
07:24:21  * contraha_quit (Read error: Connection reset by peer)
07:24:58  * contraha_joined
07:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 80]
07:29:13  * peutetrejoined
07:33:29  * dominic_quit (Ping timeout: 252 seconds)
07:57:14  * ins0mniajoined
08:00:42  * addisonjquit (Quit: Connection closed for inactivity)
08:08:11  * phatedjoined
08:13:02  * phatedquit (Ping timeout: 255 seconds)
08:26:23  * Maciek416joined
08:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 55]
08:30:42  * Maciek416quit (Ping timeout: 240 seconds)
08:42:15  * thealphanerdquit (Quit: thealphanerd)
08:58:53  * sveisveijoined
09:20:01  * rxgxquit (Quit: Connection closed for inactivity)
09:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 40]
10:03:06  * meschquit (Quit: Connection closed for inactivity)
10:12:54  <rowbit1>substack, pkrumins: These encoders are STILL down: 50.56.27.70(dev-ie6-1), 50.57.171.229(dev-ie6-2), 184.106.99.27(dev-ie7-3)
10:15:21  * Maciek416joined
10:19:54  * Maciek416quit (Ping timeout: 240 seconds)
10:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 50]
10:43:09  * yorickjoined
11:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 54]
11:52:04  * dominic_joined
11:52:30  <dominic_>jjjohnny: +1 to goathub
11:52:55  <dominic_>that can be the decentralized version of github
12:00:30  * fotoveritejoined
12:04:08  * Maciek416joined
12:07:12  * thlorenzjoined
12:09:17  * Maciek416quit (Ping timeout: 264 seconds)
12:10:45  * taterbasequit (Quit: Connection closed for inactivity)
12:12:43  * thlorenzquit (Remote host closed the connection)
12:20:48  * dominic_quit (Ping timeout: 252 seconds)
12:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 64]
12:35:53  * thlorenzjoined
12:42:12  * dominic_joined
12:46:58  * dominic_quit (Ping timeout: 265 seconds)
12:55:33  * mikolalysenkojoined
12:56:49  * brianloveswordsjoined
12:59:10  * ednapiranhajoined
13:06:41  * mikolalysenkoquit (Ping timeout: 276 seconds)
13:13:55  * dominic_joined
13:14:04  <dominic_>substack: http://protodome.bandcamp.com/album/chipfunk
13:15:56  * naneaujoined
13:17:11  * peutetre_joined
13:18:22  * peutetrequit (Ping timeout: 252 seconds)
13:18:22  * peutetre_changed nick to peutetre
13:19:03  * mikolalysenkojoined
13:24:50  * peutetre_joined
13:26:29  <dominic_>I want a mp3 player that has fancy visualizations etc, and flashing lights etc but just runs in the terminal
13:27:18  * peutetrequit (Ping timeout: 240 seconds)
13:27:18  * peutetre_changed nick to peutetre
13:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 57]
13:31:59  * thlorenzquit (Remote host closed the connection)
13:41:59  * mikolalysenkoquit (Ping timeout: 255 seconds)
13:47:05  * mikolalysenkojoined
13:53:02  * Maciek416joined
13:57:53  * Maciek416quit (Ping timeout: 264 seconds)
14:04:03  * kevino80joined
14:10:16  * thlorenzjoined
14:17:32  * mikolalysenkoquit (Ping timeout: 276 seconds)
14:23:44  * pfrazejoined
14:26:21  * mikolalysenkojoined
14:26:35  * dguttmanjoined
14:26:47  * dguttmanquit (Client Quit)
14:29:09  <rowbit1>Hourly usage stats: [developer: 0, free: 52]
14:32:49  * dguttmanjoined
14:34:05  * taterbasejoined
14:34:36  * mbrevoortjoined
14:37:46  * thlorenzquit (Remote host closed the connection)
14:43:16  <jesusabdullah>BREAKING: relative require paths BRITTLE and ERROR PRONE https://groups.google.com/forum/?hl=en?hl%3Den#!topic/nodejs/77PpwbWyIkE
14:49:19  * thlorenzjoined
15:03:37  * contraha_quit (Quit: Sleeping)
15:09:15  <dominic_>heh, well they are probably ARE brittle if you are nesting your shiz more than one dir deep
15:10:45  * Maciek416joined
15:25:42  * djcoinquit (Quit: WeeChat 0.4.2)
15:29:09  <rowbit1>Hourly usage stats: [developer: 3, free: 50]
15:40:39  * ednapiranhaquit (Remote host closed the connection)
15:46:14  * ferossjoined
15:52:43  * ednapiranhajoined
16:01:26  * addisonjjoined
16:02:36  <rowbit1>/!\ ATTENTION: (default-local) [email protected] successfully signed up for team_2 browserling plan ($30). Cash money! /!\
16:02:36  <rowbit1>/!\ ATTENTION: (default-local) paid account successfully upgraded /!\
16:02:49  * ferossquit (Quit: feross)
16:05:21  <mikolalysenko>any big chunk of code is brittle
16:05:24  <marcello4d>kanzure: context?
16:08:32  <jjjohnny>code brittle
16:09:35  <jjjohnny>just add peanut butter
16:09:53  <jjjohnny>fixed, issue closed
16:10:02  * ferossjoined
16:10:40  * ferossquit (Client Quit)
16:12:54  <rowbit1>substack, pkrumins: These encoders are STILL down: 50.56.27.70(dev-ie6-1), 50.57.171.229(dev-ie6-2), 184.106.99.27(dev-ie7-3)
16:29:09  <rowbit1>Hourly usage stats: [developer: 1, free: 55]
16:29:20  * sveisveiquit (Quit: Connection closed for inactivity)
16:29:58  * mbrevoortquit (Remote host closed the connection)
16:31:38  * mikolalysenkoquit (Ping timeout: 255 seconds)
16:32:49  <guybrush>haha that is kind of interesting :) http://lo-th.github.io/pi/source.html
16:34:50  <kanzure>marcello4d: gulp-watchify
16:35:01  <marcello4d>ah
16:35:16  <marcello4d>let me check, hah, haven't looked at transforms in a few weeks
16:35:55  <guybrush>though with that script2png im sure you dont get much better results than with gzip
16:36:39  <marcello4d>kanzure: I believe not, what you want is a setup function
16:36:51  <marcello4d>https://gist.github.com/marcello3d/31ee4dba5195aafe2847
16:37:38  <kanzure>marcello4d: any thoughts about speeding up my initial browserify builds? it's taking me about 14-16 sec on an ssd.
16:37:40  <marcello4d>that's from a modified version of https://github.com/marcello3d/gulp-boilerplate.js/blob/master/gulpfile.js I'm using
16:37:54  <kanzure>marcello4d: i'm using browserify for a frontend project, so i do lots of require("angular/angular") and require("underscore/whatever") everywhere
16:38:19  <marcello4d>that's a great question :)
16:38:31  <marcello4d>my solution has been to avoid monolithic libraries
16:38:37  <marcello4d>but it's still like 3-4 seconds for me
16:38:39  <kanzure>it seems like the intermediate state for browserify could be stored somewhere
16:38:49  <kanzure>but that feels morally wrong
16:38:52  <marcello4d>yea
16:39:17  <marcello4d>so I believe the big cost is parsing/finding 'require' in all the js files
16:39:33  <marcello4d>I'm not sure if requiring angular multiple times increases that cost or if it's smart about it
16:39:43  <kanzure>sure. in my case i'm absolutely certain that the majority of the time is spent on the other dependencies (about 1 MB of libraries).
16:40:00  <marcello4d>so what browserify probably needs is some kind of memory/file index cache
16:40:20  <marcello4d>does it take 14-16 seconds every time anything changes?
16:40:25  <kanzure>no
16:40:27  <marcello4d>or does watchify have some kind of caching
16:40:32  <kanzure>watchify caches
16:40:39  <marcello4d>that's good
16:40:48  <kanzure>one idea i had was to move all of my dependencies into a pre-build step
16:40:55  <kanzure>so that i would just require("../build/prebuild.js")
16:41:00  <marcello4d>how often do you restart watchify?
16:41:03  <kanzure>and prebuild.js is another browserify bundle that only changes when my dependencies change
16:41:22  <kanzure>however, i don't know how to reconcile (1) prebuild.js and (2) all of my require("angular/angular")s everywhere
16:41:34  <marcello4d>yea, that would work for sure, but it feels dirty
16:41:43  <kanzure>i restart it somewhat often, but not for good reasons.
16:41:52  <kanzure>i wouldn't really need watchify if the build didn't take forever.
16:42:00  <marcello4d>haha
16:42:37  <kanzure>at the moment i suspect that watchify is watching all of my dependencies too
16:42:45  <kanzure>which is not particularly interesting to me
16:45:10  <kanzure>so, which one would you say is better: storing intermediate state by browserify in a cache/file, or some pre-build step thta dumps the dependencies into a single file
16:45:40  * mikolalysenkojoined
16:47:15  <kanzure>maybe the "external requires" -r option solves this
16:48:38  * kevino80quit (Remote host closed the connection)
16:50:27  <yorick>kanzure: you're here too? you're just everywhere :D
16:53:37  * gozalajoined
16:59:41  * mikolalysenkoquit (Ping timeout: 264 seconds)
17:01:10  * kumavisjoined
17:05:38  * kumavisquit (Ping timeout: 252 seconds)
17:05:50  * kumavisjoined
17:06:13  <kanzure>marcello4d: the setup function doesn't seem to be called (from your gist) (console.log)
17:08:31  * mikolalysenkojoined
17:09:32  * kevino80joined
17:11:20  * shamajoined
17:11:58  * defunctzombie_zzchanged nick to defunctzombie
17:17:33  * phatedjoined
17:18:05  * thlorenzquit (Remote host closed the connection)
17:22:32  <kanzure>marcello4d: in fact, i don't see anything about "setup" in browserify/index.js watchify/index.js or gulp-watchify/index.js so i'm not sure why that would do anything?