03:07:47  <syntaks>hrm
03:07:54  <syntaks>is there an issue with storing integers as values in leveldb?
03:07:59  <syntaks>e.g.: key:20
03:54:09  <substack>syntaks: you'll need to worry about how those integers sort if you do range queries
03:54:25  <substack>111 comes before 2 in lexicographic (string) order
03:54:46  <substack>but you can use https://www.npmjs.com/package/lexicographic-integer or https://www.npmjs.com/package/bytewise to get around that issue
04:01:51  <syntaks>ahh
04:01:55  <syntaks>i'm coding in c++
04:02:07  <syntaks>i'm using integers for age and so forth
04:02:11  <syntaks>as such:
04:02:13  <syntaks>syntaks:40
04:02:30  <syntaks>right now to get around it i just used atoi() but hopefully that doesn't cause a problem
04:02:33  <syntaks>about to test now
04:03:21  <syntaks>i'm sure there has to be a better way though
04:04:40  <syntaks>i really hate this method
04:04:49  <syntaks>i don't trust consistency
04:13:35  <syntaks>yeah that's just causing problems that it doesn't need to :)
04:23:12  <syntaks>yeah definitely causing some issues hrm
05:27:15  <syntaks>just spent 2 hours reading and searching
05:27:26  <syntaks>i can't believe i can't find a single use case where numbers are stored
07:17:51  * bonswouarjoined
09:34:13  * binocarlosjoined
10:00:39  * paxos2kquit (*.net *.split)
10:00:39  * chiltsquit (*.net *.split)
10:00:40  * dlitzquit (*.net *.split)
10:00:46  * dlitzjoined
10:00:53  * chiltsjoined
10:00:58  * paxos^offjoined
10:01:14  * paxos^offchanged nick to paxos2k
10:03:56  * binocarlos2joined
10:04:37  * binocarlos2quit (Client Quit)
10:04:56  * binocarlos2joined
10:07:07  * binocarlosquit (Ping timeout: 240 seconds)
11:42:53  <mafintosh>ralphtheninja: https://github.com/Level/leveldown/issues/207
12:37:09  <syntaks>mornin folks
13:33:33  * null_radixquit (Excess Flood)
13:35:46  * null_radixjoined
13:42:14  <ralphtheninja>syntaks: you can have custom comparators as well
13:42:28  <syntaks>mornin ralph =)
13:43:00  <syntaks>well i'm taking an int as an argument to the function
13:43:10  <syntaks>then using: leveldb::Slice namount((char*)&amount, sizeof(int));
13:43:36  <syntaks>yet the put operation seems to fail
13:50:19  <ralphtheninja>mafintosh: yo
13:50:48  <ralphtheninja>mafintosh: if you start from 2.4.0 and walk your way backwards in versions, when does it start to work again?
13:51:47  <ralphtheninja>mafintosh: can you prebuild for any 2.x.y version of io.js?
13:52:06  <ralphtheninja>or is 1.8.4 the last version that works?
13:57:14  <ralphtheninja>mafintosh: I suspect the compiler you are using doesn't support `enum class Foo {}` .. commented in the thread
14:29:50  <syntaks>hrm
14:29:58  <syntaks>this db just won't store a number
14:30:03  <syntaks>it's vexxed i swear
14:36:00  * AustinMathernejoined
14:36:00  * binocarlos2quit (Ping timeout: 265 seconds)
14:36:37  * jerrysvjoined
14:40:17  <ralphtheninja>mafintosh: https://github.com/mafintosh/prebuild/pull/7
14:43:19  * AustinMathernequit (Remote host closed the connection)
14:43:40  * AustinMathernejoined
14:46:08  * jjmalinajoined
14:57:29  <syntaks>i wish there were better docs for c++
15:02:08  * mafintoshquit (Remote host closed the connection)
15:02:08  * ryanjquit (Remote host closed the connection)
15:08:09  <syntaks>eh
15:08:13  <syntaks>switching back to vedis
15:08:24  <syntaks>the one thing that worked for vedis, doesn't work for leveldb
15:08:26  <syntaks>and vice versa :)
15:08:32  <syntaks>it's a shame
15:08:42  <syntaks>i hate mixing libs like that just for 1 purpose
15:09:01  <ralphtheninja>in node land you would just use a module and be done with it :)
15:09:08  <syntaks>yeah i know :(
15:09:24  <syntaks>you'd think they'd have better docs for c/c++
15:09:36  <syntaks>python it's simple put('key', '12345');
15:09:41  <syntaks>sigh
15:09:49  <syntaks>i just can't afford to waste another day on this
15:17:39  * bonswouarquit (Read error: Connection reset by peer)
15:32:53  <ralphtheninja>syntaks: if you want to put a number as a string you have to convert it to a string first, how do you handle that?
15:34:32  <syntaks>from int to string?
15:34:54  <syntaks>stoi()
15:34:56  <syntaks>erm
15:34:57  <syntaks>no
15:34:59  <syntaks>sorry
15:35:10  <syntaks>to_string()
15:36:35  <ralphtheninja>can you show me a piece of code? :)
15:36:44  <ralphtheninja>a gist or whatever
15:36:53  <syntaks>sure hang on
15:37:29  <syntaks>http://www.cplusplus.com/reference/string/to_string/
15:44:58  <ralphtheninja>syntaks: ok .. and what does your code look like?
15:45:05  <syntaks>oh
15:45:11  <syntaks>i thought you wanted to know about it in c++ lol!
15:45:19  <syntaks>i 86'd the code
15:45:34  <syntaks>spent too much time
16:13:23  * eugenewarequit (Read error: Connection reset by peer)
16:13:23  * karissaquit (Remote host closed the connection)
16:13:23  * parshapquit (Remote host closed the connection)
16:13:25  * wangbusquit (Remote host closed the connection)
16:25:54  * mafintoshjoined
16:29:03  * parshapjoined
16:41:43  <mafintosh>ralphtheninja: hey - my irc client was down
16:41:53  * eugenewarejoined
16:41:58  <mafintosh>ralphtheninja: trying to get it to work now
16:51:51  * karissajoined
16:53:41  * ryanjjoined
16:55:10  * wangbusjoined
16:59:52  <ralphtheninja>mafintosh: I suspected you had some irc issues :)
17:00:23  <mafintosh>ralphtheninja: did you see my comment on your PR?
17:00:48  <mafintosh>ralphtheninja: man we are *so* close now to complete coverage - only missing one stupid version on win x64]
17:11:04  <ralphtheninja>mafintosh: yes I saw it
17:11:39  <ralphtheninja>mafintosh: don't really care as long as it works :)
17:18:22  <mafintosh>cool
17:39:28  * null_radixquit (Excess Flood)
17:40:46  * null_radixjoined
18:12:02  * jjmalinaquit (Quit: Textual IRC Client: www.textualapp.com)
19:36:02  <mafintosh>ralphtheninja: https://github.com/Level/leveldown/issues/201 - where should the docs be added? just the readme? :)
20:01:37  <ralphtheninja>mafintosh: sure!
20:02:01  <ralphtheninja>wiki is cool, but I think it's better to have everything contained within the module
20:22:57  <mafintosh>ralphtheninja: i guess the prebuild docs are gonna be pretty simple now
20:39:39  * commandolinequit (Ping timeout: 244 seconds)
20:41:30  * commandolinejoined
20:42:11  <ralphtheninja>mafintosh: lol yep
20:42:57  <ralphtheninja>mafintosh: I can add something on top of it later
20:43:17  <ralphtheninja>I think the most important thing with this is to explain to other projects how leveldown has solved the prebuild problem
20:43:33  <ralphtheninja>leveldown is sort of a model project for native modules
21:53:29  * jjmalinajoined
21:59:08  * jerrysvquit (Remote host closed the connection)
22:15:04  * hij1nxquit (Quit: leaving)
22:19:05  * hij1nxjoined
22:19:44  * hij1nxquit (Client Quit)
22:19:56  * hij1nxjoined
22:42:02  * jjmalinaquit (Ping timeout: 256 seconds)
23:36:14  <ralphtheninja>mafintosh: I'm working on prebuild so it can download from something else than github
23:37:17  <ralphtheninja>mafintosh: just wondering how advanced it should be and if we should re-use the "binary" property in package.json or create something for prebuild only
23:37:18  <mafintosh>ralphtheninja: cool! i was considering adding a simple url template syntax for that. like prebuild --download https://example.com/{arch}/{abi} ...
23:37:47  <ralphtheninja>mafintosh: agree, I thought about that too
23:38:17  <ralphtheninja>mafintosh: it would probably be the easiest, just support a few different {placeholders}
23:38:32  <mafintosh>ralphtheninja: yea i agree
23:38:44  <ralphtheninja>mafintosh: so wanna skip "binary": { "host": "http://whatever.com" } ?
23:39:20  <mafintosh>ralphtheninja: we could support it for compatibility with pre-gyp if its easy to add
23:39:30  <mafintosh>ralphtheninja: i do that with compiling as well
23:39:58  <mafintosh>but we should encourage people to just use the url template syntax in examples etc
23:40:12  <ralphtheninja>mafintosh: right, but should we support all the different features? "remote_path", "package_name" etc or just "host" ?
23:40:35  <ralphtheninja>good call
23:40:50  <mafintosh>ralphtheninja: hmm if its easy - sure
23:40:56  <ralphtheninja>I'll write something and we can chat later
23:41:00  <mafintosh>otherwise i'm fine with not supporting it