00:00:02  * alanhoffjoined
00:00:03  <rud>rvagg: all done
00:00:37  <kenansulayman>rud Please upload the yielded logs
00:00:50  <rvagg>rud: so thsi is freebsd right? we have to be specific
00:01:05  <rvagg>edit deps/leveldb/leveldb.gyp and find the block for "linux"
00:01:18  <rud>rvagg: FreeBSD 9.1-STABLE
00:01:30  <rvagg>rud: duplicate that whole block and rename "linux" to "freebsd"
00:01:39  <rvagg>then try `node-gyp rebuild` and see how it goes
00:03:38  <rud>ok, duplicated code as advised, here is output http://pastebin.com/igdPG7GL
00:04:04  <kenansulayman>rvagg It's not leveldb which is failing. its snappy
00:04:33  <kenansulayman>rud go to deps/snappy/snappy.gyp and rename the said linux block to freebsd
00:04:51  <rvagg>sorry, on a conference call, can't really pay attention here for a bit
00:05:02  <rud>rvagg: no prob
00:05:39  <kenansulayman>rud At it?
00:05:46  <rud>kenansulayman: yes
00:05:50  <kenansulayman>k
00:05:55  <rud>i'm guessing duplicate the linux code ?
00:06:23  <kenansulayman>pretty much yes; rud http://data.sly.mn/text/2q0m120R2b11/contents
00:06:49  <rud>oh, on top too no ?
00:06:58  <rud>in conditions array ?
00:07:12  <kenansulayman>doesn't do much but you can do that
00:07:17  <rud>k
00:07:26  <kenansulayman>same style ['OS=="freebsd"', {'os_include': 'freebsd'}]
00:07:27  <kenansulayman>:)
00:08:44  <rud>http://pastebin.com/ZJsjwNyb
00:08:49  <rud>:/
00:09:47  <kenansulayman>your .gyp file is malformed
00:10:08  <rud>oh, ok, sorry
00:10:10  <rud>will fix
00:10:18  <kenansulayman>just use this file: http://data.sly.mn/text/0N08152r0d0o
00:10:19  <rud>gotcha
00:10:29  <kenansulayman>works?
00:10:39  <rud>sec sec :)
00:10:49  <kenansulayman>because of
00:10:51  <kenansulayman>ägotcha ;)
00:12:44  <rud>(starting from scratch, slow connection)
00:12:49  <kenansulayman>k
00:17:45  <rud>ok: http://pastebin.com/fqb4w014 source: https://github.com/kelexel/node-leveldown/blob/master/deps/snappy/snappy.gyp
00:18:01  <kenansulayman>uhm
00:18:06  <kenansulayman>did you npm i ?
00:18:19  <kenansulayman>(npm install)
00:18:19  <rud>hrrr
00:18:20  <rud>:)
00:18:53  <rud>http://pastebin.com/qmJbvdNJ
00:20:49  <kenansulayman>Try this as a replacement for leveldb.gyp: http://data.sly.mn/text/0z0w0Z1S2S0h
00:21:01  <kenansulayman>https://s3.amazonaws.com/f.cl.ly/items/360F2n3e0b361A2M2b2b/Text%202013.09.02%2002%3A20%3A36.txt ***
00:22:46  <rud>http://pastebin.com/zjj4Xj2Q
00:22:53  <rud>(used second url)
00:22:55  <rvagg>that line with: , '-Wno-unused-but-set-variable'
00:22:56  <rvagg>needs to go
00:23:40  <rvagg>rud: that's cause you're using the hyper-leveldb branch, use master
00:24:01  <rvagg>rud: the hyper-leveldb branch requires a submodule checkout to the hyperleveldb repo, too complicated for the purposes of getting thi sright
00:24:19  <rud>ok, i'll checkout to master
00:24:45  <kenansulayman>rvagg Still a good sign it got this fae
00:24:59  <kenansulayman>s/e/r/
00:25:08  <rud>rvagg: i cloned node-leveldown, and i'm already on the master branch (as far as i can tell)
00:25:32  <kenansulayman>rud It said leveldb-hyper
00:25:48  <rud>i used your file kenansulayman :)
00:26:00  <rud>maybe you were on the other branch ?
00:26:01  <kenansulayman>Eww yes sorry. I'm on level-hyper
00:26:32  <rud>removing -Wno-unused-but-set-variable from original leveldb.gyp
00:27:19  <rud>http://pastebin.com/jxnfutZz
00:28:31  <rvagg>ugh
00:28:33  <rvagg>ok, hang on
00:29:02  <rvagg>rud: go in to deps/leveldb/leveldb-1.11.0
00:29:16  <rvagg>run this: ./build_detect_platform freebsd ./
00:29:35  <rvagg>then put the contents of the file 'freebsd' on a pastie somewhere
00:29:42  <rvagg>and we'll go with that
00:30:32  <rud>http://pastebin.com/iMnPPbCt
00:38:06  <rvagg>hang on a mo, pushing a new branch with some changes to try
00:38:19  <rud>sure
00:38:58  <rud>i'm so desperate i'm reading about installing a debian-based jail under freebsd ;)
00:39:27  <rvagg>rud: go in to deps/snappy/snappy-1.1.0
00:39:29  <rvagg>run ./configure
00:39:35  <rvagg>then give me a pastie of what config.h has
00:39:44  <rud>k
00:39:47  <rvagg>the full config.h, and I'll use that as a base
00:41:32  <rud>http://pastebin.com/bZ6FKC9B
00:42:20  <rvagg>excellent
00:44:55  <rvagg>rud: `git fetch origin; git checkout freebsd`
00:45:06  <rvagg>then run `node-gyp rebuild` again and lets see the output of that
00:47:30  <rud>seems to work
00:47:33  <rud>pasting full log
00:48:37  <rud>off i've reached pastebin.com daily paste limit …
00:48:47  <rvagg>gist.github.com?
00:49:07  <rud>http://pastie.org/8290025
00:49:13  <rud>ah yeah i always forget :)
00:49:37  <rud>(i started from a freshly cloned repo)
00:49:59  <rud>is there a test-suite i could/should run ?
00:50:41  <rvagg>npm test
00:51:05  <rud>all tests pass
00:51:07  <rud>:)
00:51:10  <rvagg>noice!
00:51:11  <kenansulayman>congrats
00:51:45  <rud>you might be able to add freebsd to the supported platforms ;)
00:52:04  <rud>hmm anything else you want me to test ?
00:52:50  <rvagg>rud: yeah, pull the latest 'freebsd' branch and `node-gyp rebuild`
00:52:59  <rvagg>I want to see if we can get rid of some or all of those compile warnings
00:53:15  <rvagg>... just to help my OCD about compile warnings
00:53:19  <rud>sure
00:53:30  <rvagg>let me know what warnings still show up, or if it fails to compile
00:53:38  <rvagg>no need for a full pastie if it's simple
00:53:44  <rud>gyp info ok
00:53:47  <rud>log coming in
00:54:02  <rud>https://gist.github.com/kelexel/3f0909818c87fe4bf61d
00:54:56  <rvagg>hm, my flag didn't work
00:55:31  <kenansulayman>rvagg These error messages are pretty common for the bsd compiler
00:55:55  <kenansulayman>rud What gcc version are you on?
00:56:00  <rvagg>rud: pull 'freebsd' branch and try again
00:56:06  <kenansulayman>Or so ;)
00:56:07  <rud>gcc version 4.2.1 20070831 patched [FreeBSD]
00:56:09  <rud>ok
00:56:15  <rvagg>rud: actually, hang on a mo
00:56:23  <rud>rvagg: kk
00:56:57  <rvagg>rud: ok, try the latest now
00:57:59  <rud>https://gist.github.com/kelexel/3f0909818c87fe4bf61d
00:58:15  <kenansulayman>That looks nice
00:58:34  <rud>much better indeed
00:59:50  <rvagg>rud: one more! pull latest and try again
00:59:58  <rud>k
01:01:05  <rud>https://gist.github.com/kelexel/3f0909818c87fe4bf61d :)
01:02:14  <rvagg>oooooo... that feels like this: http://xkcd.com/888/
01:02:29  <rud>:D
01:02:29  <kenansulayman>haha
01:02:53  <rud>and of course, the tests are passing :)
01:03:09  <rvagg>cheers!
01:03:14  <rud>;)
01:03:16  <kenansulayman>cheers indeed
01:04:17  * st_lukejoined
01:04:34  <rud>kook, so now, how should i test in my app, just move my compiled node-leveldown to my project's node_modules/ folder, right ?
01:04:46  <rud>since it's on a separate branch
01:04:59  <rvagg>rud: hang on a mo, publishing a new version just for you
01:05:03  <rud>and i have no clue how to specify an alternative branch in my app's packages.json :)
01:05:09  <rud><3
01:05:54  <rvagg>just reinstall `level` or `leveldown` if you're using it directly and it should be good to go
01:05:54  * kenansul_joined
01:05:54  <levelbot>[npm] leveldown@0.8.2 <http://npm.im/leveldown>: A Node.js LevelDB binding, primary backend for LevelUP (@rvagg)
01:06:46  <kenansul_>Could you cherry-pick the commits into leveldown-hyper? (basho)
01:07:18  * jcrugzzjoined
01:07:25  <levelbot>[npm] leveldown-hyper@0.8.2 <http://npm.im/leveldown-hyper>: A Node.js LevelDB binding, primary backend for LevelUP (HyperDex fork) (@rvagg)
01:08:16  * kenansulaymanquit (Ping timeout: 264 seconds)
01:08:25  <levelbot>[npm] hyperlevel@0.15.1 <http://npm.im/hyperlevel>: A Hyper-LevelDB wrapper (a convenience package bundling LevelUP & LevelDOWN-hyper) (@kenansulayman)
01:08:36  * kenansul_changed nick to kenansulayman
01:08:50  <rvagg>kenansul_: you shouldn't need to republish hyperlevel if you're using "~0.8.0", it'll be picked up automatically when installed
01:08:52  <levelbot>[npm] leveldown-basho@0.8.2 <http://npm.im/leveldown-basho>: A Node.js LevelDB (Basho fork) binding, primary backend for LevelUP (@rvagg)
01:09:13  <kenansulayman>rvagg ok, wasn't aware of that, mom
01:09:17  <rvagg>~ basically means "this version of later if available"
01:09:22  <rud>woohoo leveldown@0.8.2 node_modules/leveldown
01:09:52  <levelbot>[npm] hyperlevel@0.15.0-2 <http://npm.im/hyperlevel>: A Hyper-LevelDB wrapper (a convenience package bundling LevelUP & LevelDOWN-hyper) (@kenansulayman)
01:10:14  <kenansulayman>for the sake of version consistency
01:15:24  <kenansulayman>http://imgs.xkcd.com/comics/new_car.png haha
01:15:48  <rud>it's all good, my app now runs fine on my prod box :)
01:15:54  <rud>many thanks rvagg !
01:24:49  <kenansulayman>gn people
01:27:05  * kenansulaymanquit (Quit: ≈ and thus my mac took a subtle yet profound nap ≈)
01:39:28  <rvagg>'night
01:46:15  * st_lukequit (Remote host closed the connection)
01:58:14  * alanhoffquit (Ping timeout: 256 seconds)
02:01:50  * i_m_caquit (Ping timeout: 240 seconds)
02:03:21  <levelbot>[npm] cran@0.1.0 <http://npm.im/cran>: JavaScript job scheduler with a friendly web ui. (@ozanturgut)
02:17:51  <levelbot>[npm] cran@0.1.0 <http://npm.im/cran>: JavaScript job scheduler with a friendly web ui. (@ozanturgut)
02:19:21  <levelbot>[npm] cran@0.1.0 <http://npm.im/cran>: JavaScript job scheduler with a friendly web ui. (@ozanturgut)
02:22:47  * alanhoffjoined
03:17:24  <levelbot>[npm] valuepack-core@0.3.13 <http://npm.im/valuepack-core>: Core utils and configurations for valuepack, not at all useful by itself. (@thlorenz)
04:09:29  * i_m_cajoined
04:25:35  * thlorenzquit (Remote host closed the connection)
04:34:36  * mikealquit (Quit: Leaving.)
04:35:21  * mikealjoined
04:59:08  * esundahlquit (Remote host closed the connection)
05:12:50  * mcollinaquit (Remote host closed the connection)
05:30:17  * esundahljoined
05:38:23  * st_lukejoined
05:38:29  * esundahlquit (Ping timeout: 256 seconds)
05:56:51  * st_lukequit (Remote host closed the connection)
06:18:21  * Acconutjoined
06:21:32  * Acconutquit (Client Quit)
06:21:48  * Acconutjoined
06:25:27  * Acconutquit (Client Quit)
06:28:42  * esundahljoined
06:38:24  * mcollinajoined
06:50:13  * mcollinaquit (Remote host closed the connection)
07:03:57  * mcollinajoined
07:20:21  * dominictarrjoined
07:32:39  * mcollinaquit (Remote host closed the connection)
07:39:51  * esundahlquit (Remote host closed the connection)
07:53:24  * fb55joined
07:56:14  * i_m_caquit (Ping timeout: 240 seconds)
08:01:29  * mcollinajoined
08:10:14  * jcrugzzquit (Ping timeout: 240 seconds)
08:16:37  * mcollinaquit (Read error: Connection reset by peer)
08:17:08  * mcollina_joined
08:24:02  * mcollina_quit (Remote host closed the connection)
08:27:36  * kenansulaymanjoined
08:36:48  * jcrugzzjoined
08:37:18  <kenansulayman>rvagg Isn't 10485760 as mapSize a bit too small?
08:37:48  <kenansulayman>(lmdb)
08:39:21  * timoxleyjoined
08:40:50  * dominictarrquit (Quit: dominictarr)
08:45:01  * jcrugzzquit (Ping timeout: 245 seconds)
08:52:38  * mcollinajoined
09:06:29  * dominictarrjoined
09:10:26  * kenansulaymanquit (Remote host closed the connection)
09:20:26  * rudquit (Quit: rud)
09:32:56  * mcollinaquit (Ping timeout: 245 seconds)
09:40:01  * chrisdickinsonquit (Quit: ZNC - http://znc.sourceforge.net)
09:55:46  * kenansulaymanjoined
09:58:24  * chrisdickinsonjoined
10:00:41  * chrisdickinsonquit (Client Quit)
10:07:24  * chrisdickinsonjoined
10:09:48  * chrisdickinsonquit (Remote host closed the connection)
10:13:04  <rvagg>yep, but that's the default that lmdb ships with so I'm going with that
10:14:11  * st_lukejoined
10:14:57  * chrisdickinsonjoined
10:20:22  * chrisdickinsonquit (Quit: ZNC - http://znc.in)
10:21:38  * chrisdickinsonjoined
10:44:19  <kenansulayman>rvagg oh ok
10:48:23  * st_lukequit (Remote host closed the connection)
10:51:01  * fb55quit (Remote host closed the connection)
10:52:11  * fb55joined
11:17:01  * fb55quit (Remote host closed the connection)
11:21:51  <levelbot>[npm] lev@1.1.2 <http://npm.im/lev>: commandline and REPL access for leveldb (@hij1nx)
11:30:54  * alanhoffquit (Ping timeout: 240 seconds)
11:34:51  * timoxleyquit (Remote host closed the connection)
11:38:08  <kenansulayman>hij1nx Thanks for lev :)
11:43:23  <kenansulayman>hij1nx Though it crashes if you type tree
11:44:10  <kenansulayman>hij1nx It's not worth an issue. So here it goes: http://data.sly.mn/3v3U3c32391Z
11:52:22  <levelbot>[npm] lev@1.1.2 <http://npm.im/lev>: commandline and REPL access for leveldb (@hij1nx)
12:16:09  * mcollinajoined
12:18:45  * timoxleyjoined
12:18:53  * mcollinaquit (Read error: Connection reset by peer)
12:23:03  * timoxleyquit (Ping timeout: 245 seconds)
13:01:51  <levelbot>[npm] lev@1.1.2-1 <http://npm.im/lev>: commandline and REPL access for leveldb (@hij1nx)
13:15:09  * mcollinajoined
13:22:26  * timoxleyjoined
13:23:28  <hij1nx>kenansulayman: this was fixed pretty immediately
13:23:32  <hij1nx>fixed now.
13:23:44  * mcollinaquit (Ping timeout: 256 seconds)
13:24:31  <kenansulayman>hij1nx ty
13:43:03  * deathmtnjoined
13:46:23  * deathmtnquit (Remote host closed the connection)
14:27:05  * timoxleyquit (Remote host closed the connection)
14:29:45  * esundahljoined
14:40:30  * thlorenzjoined
14:49:50  <levelbot>[npm] level-writestream@0.1.1 <http://npm.im/level-writestream>: LevelUP Write Stream compatible with streams2 (@pgte)
15:13:08  * i_m_cajoined
15:15:46  * jcrugzzjoined
15:27:27  * thlorenzquit (Remote host closed the connection)
15:32:09  * thlorenzjoined
15:54:21  <levelbot>[npm] cs558-db@1.0.0 <http://npm.im/cs558-db>: CS558 Database Module. (@amdurgin)
16:17:56  * rudjoined
16:17:56  * rudquit (Changing host)
16:17:56  * rudjoined
16:21:24  <thlorenz>kenansulayman: have you profiled nodejs apps with node-inspector and chrome before?
16:21:57  <thlorenz>I'm trying to get that going but see not profiling tab when opening to the debug port in chrome
16:22:27  <thlorenz>I'm doing: node --prof --prof_auto --prof_browser_mode --debug heapdump.js
16:26:02  * mcollinajoined
16:27:37  <thlorenz>ah, looks like node-inspector doesn't show that - going with heapdump then
16:29:02  * esundahl_joined
16:32:05  * esundahlquit (Ping timeout: 245 seconds)
17:10:12  * dominictarrquit (Quit: dominictarr)
17:21:19  * werlejoined
17:30:56  <kenansulayman>thlorenz Yes I have
17:31:16  <thlorenz>did you get the profiles tab to show up?
17:31:26  <thlorenz>in my case I only got console and sources
17:31:31  <kenansulayman>You should start node with --debug-brk .. which is all I usually do
17:31:39  <kenansulayman>You mean memory profiling?
17:31:42  <thlorenz>yep
17:31:52  <kenansulayman>"See issue #146. Profiler is not implemented yet."
17:31:59  * dominictarrjoined
17:32:08  <thlorenz>ah - shoot I saw that too after I asked :(
17:32:26  <thlorenz>using heap dump then - I guess all I care for is retained memory right?
17:32:53  <kenansulayman>https://github.com/c4milo/node-webkit-agent
17:33:03  * jcrugzzquit (Ping timeout: 245 seconds)
17:35:06  <thlorenz>kenansulayman: thanks will look into it
17:35:15  <kenansulayman>Doesn't work for me tho
17:35:35  <thlorenz>ah well, heapdump is fine then (just gotta learn to interpret it properly)
17:35:35  <kenansulayman>I used to take advantage of the v8 logs
17:36:09  <thlorenz>you read those directly?
17:36:47  <thlorenz>kenansulayman: so in a heapdump I guess I won't worry about builtins and GC Roots right?
17:36:47  <kenansulayman>no
17:36:59  <kenansulayman>uhm there's a compiler flag
17:37:03  <kenansulayman>then there's a parser
17:37:13  <kenansulayman>it's quite a time since I did that
17:37:30  <kenansulayman>thlorenz http://stackoverflow.com/questions/1911015/how-to-debug-node-js-applications/16512303#16512303
17:37:32  <thlorenz>ah ok - maybe way more than I can handle right now - I need to get this finished before lxjs :)
17:38:19  <thlorenz>I got a log file even without installing the profiler (I think that's obsolete)
17:38:44  <kenansulayman>uhm the log file is native
17:39:00  <kenansulayman>the profiler is just eating the cookies and pooping a nice overview
17:39:23  <thlorenz>ah, ok, thanks
17:39:26  <kenansulayman>:D
17:39:28  <kenansulayman>sure
17:39:55  <thlorenz>will look into this more later - right now my main problem is memory, so I'm gonna look into how to interpret these heapdumps ;)
17:43:21  <kenansulayman>Sure ;)
17:43:35  <kenansulayman>Du you want to profile native code or js code?
17:50:40  * Acconutjoined
17:50:45  * werlequit (Ping timeout: 240 seconds)
17:52:37  * Acconutquit (Client Quit)
18:06:12  * esundahl_quit (Remote host closed the connection)
18:32:46  * mcollinaquit (Read error: Connection reset by peer)
18:33:20  * mcollinajoined
18:35:23  * dominictarrquit (Quit: dominictarr)
18:39:32  * st_lukejoined
18:42:52  * mcollinaquit (Read error: Connection reset by peer)
18:49:18  * mcollinajoined
18:51:59  * thlorenzquit (Remote host closed the connection)
19:07:06  * dominictarrjoined
19:12:52  * Acconutjoined
19:15:52  * Acconutquit (Client Quit)
19:15:59  * mcollinaquit (Remote host closed the connection)
19:21:25  * julianduquejoined
19:21:26  * julianduquequit (Changing host)
19:21:26  * julianduquejoined
19:22:16  <rescrv>dominictarr, mbalho: your thread about slow perf lead me to dig. So far I hit: https://github.com/rescrv/HyperLevelDB/commit/f6fa561a775c7006c38126dc7ca963975ce8248b
19:22:55  <rescrv>16% end-to-end perf improvement from a small set of changes to the memtable
19:23:18  <mbalho>rescrv: whoa nice
19:23:57  <dominictarr>rescrv: nice! is the number the first 4 bytes?
19:24:12  <rescrv>dominictarr: it's the first 8 bytes for the bytewiise comparator
19:24:21  <rescrv>you need to override KeyNum on custom comparators
19:24:21  <dominictarr>aha, cool
19:26:09  <kenansulayman>^^ rvagg ^^
19:46:40  * mcollinajoined
19:51:16  * mcollinaquit (Ping timeout: 245 seconds)
20:01:12  * Acconutjoined
20:09:34  * Acconutquit (Ping timeout: 246 seconds)
20:13:37  * Acconutjoined
20:20:14  * Acconutquit (Ping timeout: 240 seconds)
20:21:43  * Acconutjoined
20:29:32  * thlorenzjoined
20:29:32  * Acconutquit (Read error: Connection reset by peer)
20:30:19  * Acconutjoined
20:30:31  * Acconutquit (Client Quit)
20:30:42  * i_m_caquit (Ping timeout: 264 seconds)
20:43:51  <levelbot>[npm] meatspace-leveldb@0.0.7 <http://npm.im/meatspace-leveldb>: Decentralized micro[b]logging with leveldb (@ednapiranha)
20:47:06  * mcollinajoined
20:50:48  * jcrugzzjoined
20:51:50  * mcollinaquit (Ping timeout: 264 seconds)
20:59:21  <levelbot>[npm] meatspace-leveldb@0.0.7 <http://npm.im/meatspace-leveldb>: Decentralized micro[b]logging with leveldb (@ednapiranha)
21:20:27  * mcollinajoined
21:39:33  * Acconutjoined
21:41:18  * Acconutquit (Client Quit)
22:06:17  * i_m_cajoined
22:11:18  * i_m_caquit (Ping timeout: 256 seconds)
22:47:56  * dominictarrquit (Quit: dominictarr)
22:49:31  * st_lukequit (Remote host closed the connection)
23:08:27  * werlejoined
23:46:17  * timoxleyjoined
23:48:24  * thlorenzquit (Remote host closed the connection)
23:52:31  * dropdrivequit (Ping timeout: 245 seconds)
23:55:14  * dropdrivejoined
23:55:50  * werlequit (Ping timeout: 245 seconds)