00:27:52  * jmar777joined
00:50:46  * bnoordhuisjoined
00:52:34  * iamdustanjoined
00:53:51  * abraxasjoined
00:55:31  * bnoordhuisquit (Ping timeout: 268 seconds)
00:58:51  * abraxasquit (Ping timeout: 272 seconds)
01:19:23  * jmar777quit (Remote host closed the connection)
01:19:59  * jmar777joined
01:38:14  * abraxasjoined
01:42:48  * c4milojoined
01:47:26  * c4miloquit (Ping timeout: 240 seconds)
01:48:14  * jmar777quit (Remote host closed the connection)
02:17:31  * jmar777joined
02:22:30  * paulfryzelquit (Remote host closed the connection)
02:25:36  * abraxasquit (Remote host closed the connection)
02:54:29  * abraxasjoined
03:10:53  * iamdustanquit (Ping timeout: 265 seconds)
03:11:04  * seventhquit (Remote host closed the connection)
03:24:54  * jmar777quit (Remote host closed the connection)
03:31:11  * c4milojoined
03:34:10  * jmar777joined
03:34:29  * abraxasquit (Remote host closed the connection)
03:35:26  * c4miloquit (Ping timeout: 240 seconds)
04:15:34  * jmar777quit (Remote host closed the connection)
04:16:11  * jmar777joined
04:20:53  * jmar777quit (Ping timeout: 272 seconds)
04:22:12  * c4milojoined
04:26:23  * abraxasjoined
04:46:30  * [[zzz]]joined
04:50:23  * [[zz]]quit (Ping timeout: 272 seconds)
05:14:47  * jaseemabidjoined
05:14:56  * jaseemabidquit (Max SendQ exceeded)
05:15:47  * jaseemabidjoined
05:46:42  * jazz264joined
05:49:33  * jaseemabidquit (Ping timeout: 272 seconds)
06:26:59  * Lithuanianjoined
06:54:48  * spolujoined
06:59:09  * [[zzz]]changed nick to [[zz]]
07:56:41  * Net147joined
08:03:08  * c4miloquit (Remote host closed the connection)
08:32:57  * Alex_Gaynorquit (Read error: Connection reset by peer)
08:34:16  * Alex_Gaynorjoined
08:43:09  * stampho_changed nick to stampho
09:09:57  * jazz264quit (Ping timeout: 248 seconds)
09:14:05  * abraxasquit (Remote host closed the connection)
09:14:50  * c4milojoined
09:19:11  * c4miloquit (Ping timeout: 245 seconds)
09:28:25  * abraxasjoined
09:52:22  * jazz264joined
10:18:29  * muellijoined
11:03:03  * c4milojoined
11:07:26  * c4miloquit (Ping timeout: 240 seconds)
11:18:08  * bnoordhuisjoined
11:23:29  * solublejoined
12:10:14  * juanjosanchezjoined
12:10:43  * abraxasquit (Remote host closed the connection)
12:21:44  * juanjosanchezquit (*.net *.split)
12:21:45  * muelliquit (*.net *.split)
12:21:45  * spoluquit (*.net *.split)
12:21:45  * [[zz]]quit (*.net *.split)
12:21:47  * rblackwequit (*.net *.split)
12:22:39  * abraxasjoined
12:23:19  * abraxasquit (Remote host closed the connection)
12:23:45  * rblackwejoined
12:26:01  * muellijoined
12:26:11  * spolujoined
12:26:16  * juanjosanchezjoined
12:27:13  * [[zz]]joined
12:31:12  * jmar777joined
12:39:02  * Net147quit (Quit: HydraIRC -> http://www.hydrairc.com <- Go on, try it!)
12:39:20  * jmar777quit (Remote host closed the connection)
12:43:50  * solublequit (Remote host closed the connection)
12:49:18  * jmar777joined
12:51:26  * c4milojoined
12:53:13  * spoluquit (Ping timeout: 244 seconds)
12:56:25  * c4miloquit (Ping timeout: 272 seconds)
12:58:22  * jmar777quit (Remote host closed the connection)
12:58:58  * jmar777joined
13:03:02  * jmar777quit (Ping timeout: 240 seconds)
13:20:49  * juanjosanchezquit (Ping timeout: 246 seconds)
13:25:05  * jmar777joined
13:36:38  * bnoordhuisquit (Ping timeout: 240 seconds)
13:41:29  * jazz264quit (Ping timeout: 246 seconds)
13:47:36  * bnoordhuisjoined
14:15:58  * spolujoined
14:25:56  * jazz264joined
14:39:37  * c4milojoined
14:39:40  * bnoordhuisquit (Ping timeout: 244 seconds)
14:42:30  * bnoordhuisjoined
14:44:27  * c4miloquit (Ping timeout: 260 seconds)
14:51:43  * Lithuanianquit (Ping timeout: 268 seconds)
14:52:25  * Lithuanianjoined
14:59:26  * Lithuanianquit (Ping timeout: 265 seconds)
15:00:03  * Lithuanianjoined
15:09:50  * c4milojoined
15:12:34  * juanjosanchezjoined
15:14:25  * c4miloquit (Ping timeout: 265 seconds)
15:20:23  * juanjosanchezquit (Ping timeout: 260 seconds)
15:27:13  * iamdustanjoined
15:28:14  * c4milojoined
15:39:39  * jmar777quit (Remote host closed the connection)
15:51:01  * decoderquit (Quit: No Ping reply in 180 seconds.)
15:51:07  * decoder_joined
16:01:02  * Lithuanianquit (Ping timeout: 240 seconds)
16:01:37  * jmar777joined
16:03:35  <isaacbw>sure is quiet in here
16:04:04  <isaacbw>for the moment, at least
16:04:11  <bnoordhuis>we're contemplating our sins
16:04:56  * Lithuanianjoined
16:06:04  * paulfryzeljoined
16:07:22  * bnoordhuisquit (Quit: leaving)
16:13:50  * Lithuanianquit (Ping timeout: 240 seconds)
16:14:46  * Lithuanianjoined
16:16:00  * bnoordhuisjoined
16:18:43  * jazz264quit (Ping timeout: 260 seconds)
16:22:41  * spoluquit (Quit: Leaving)
16:23:16  * spolujoined
16:23:48  * c4miloquit (Remote host closed the connection)
16:25:24  * abraxasjoined
16:26:19  * c4milojoined
16:27:02  * RT|Chatzillaquit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2009081014])
16:28:09  * Venemo_joined
16:28:11  <Venemo_>hi
16:28:40  <Venemo_>does V8 use UTF-16 in v8::String?
16:29:16  * c4miloquit (Remote host closed the connection)
16:29:55  * abraxasquit (Ping timeout: 260 seconds)
16:30:31  * iamdustanquit (Ping timeout: 246 seconds)
16:34:23  <bnoordhuis>Venemo_: it might, it depends.
16:34:53  <Venemo_>bnoordhuis: what does it depend on?
16:35:29  <bnoordhuis>Venemo_: on how you create the string. there's String::NewFromOneByte(), String::NewFromUtf8(), etc.
16:37:37  <Venemo_>bnoordhuis: I somehow always assumed that NewFromUtf8 actually performs conversion to UTF-16
16:38:29  <Venemo_>what is default encoding for strings that come from JavaScript?
16:40:14  <bnoordhuis>Venemo_: i assume you don't mean the internally used encoding?
16:40:49  <bnoordhuis>Venemo_: because you (embedder you) decode it with String::Utf8Value, String::AsciiValue, etc.
16:42:42  <Venemo_>bnoordhuis: yes, but if I use an external string resource, what encoding should that be in?
16:43:39  * Venemo_N9joined
16:44:46  <bnoordhuis>Venemo_: depends on the kind of external string you're creating :) there's an ascii one, two byte, etc.
16:45:14  <Venemo_>bnoordhuis: also, what encoding does String::Write use and what encoding does String::Value use
16:45:55  <Venemo_>maybe I'm looking at the wrong place but the docs for v8::ExternalStringResource doesn't really talk about encoding: http://bespin.cz/~ondras/html/classv8_1_1String_1_1ExternalStringResource.html
16:46:29  <bnoordhuis>Venemo_: two byte for both
16:46:31  <Venemo_>it talks about two-byte characters, but that could be UTF-16 or UCS-2
16:46:43  <bnoordhuis>yeah, it's utf-16
16:48:06  <Venemo_>I see
16:48:35  <Venemo_>and what encoding does it use internally?
16:48:49  <bnoordhuis>the answer to that question is 'it depends' :)
16:49:15  <bnoordhuis>it's not something you should not have to worry about
16:49:23  <bnoordhuis>err, minus one not
16:49:26  <Venemo_>:D
16:54:06  * ctrutajoined
16:54:23  * jmar777quit (Read error: Connection reset by peer)
16:54:48  * jmar777joined
16:56:01  * c4milojoined
16:56:21  <Venemo_>bnoordhuis: ok, I'm not worrying, but you got me wondering, what does it depend on?
16:58:04  <bnoordhuis>Venemo_: the internal representation, you mean? a number of things. in general, v8 will try to pick the most efficient one
17:00:25  <Venemo_>bnoordhuis: ah, that sounds quite smart
17:00:58  <Venemo_>bnoordhuis: if I use an external string resource (let's say the UTF-16 one), will V8 be able to use that without having to internally convert between encodings?
17:01:42  <Venemo_N9>I hope that is the case
17:01:56  * Venemo_quit (Quit: Communi 1.2.1)
17:02:05  <bnoordhuis>Venemo_: not 100% sure if it will _never_ convert but in general, it shouldn't, no
17:02:11  <bnoordhuis>Venemo_N9: ^
17:02:44  <Venemo_N9>I see
17:02:48  <Venemo_N9>okay
17:08:48  <Venemo_N9>bnoordhuis, so if I want zero-copy string passing between native code and js, is v8::ExternalStringResource the correct way to go?
17:09:27  <bnoordhuis>Venemo_N9: yes. that said, what kind of strings are we talking here and with what frequency are they created?
17:10:03  <bnoordhuis>Venemo_N9: if they're short strings, then stop worrying and learn to love String::FromNewOneByte() and friends
17:11:12  <Venemo_N9>bnoordhuis, I'm creating a node.js module that interacts with LMDB, a key-value store
17:11:43  <Venemo_N9>bnoordhuis, so all those things depend on the users of the module
17:11:57  <bnoordhuis>node.js. i've heard of that
17:12:17  <Venemo_N9>:)
17:12:43  <bnoordhuis>are your keys and values really strings or are they binary data?
17:14:37  <Venemo_N9>they could be anything on the native side. in my module, I expose an API to use integer and string keys, and number/string/bool/binary values
17:14:56  <Venemo_N9>binaries use node::Buffer
17:15:13  <bnoordhuis>okay, cool. that's what you usually want to use
17:15:22  <bnoordhuis>if only because those are fastest to send out over the network
17:15:34  <Venemo_N9>strings use v8::ExternalStringResource
17:15:49  <Venemo_N9>and I don't mind copying the rest :)
17:15:54  <bnoordhuis>strings effectively need to be decoded to buffers
17:16:00  <bnoordhuis>(in node, that is)
17:16:14  <Venemo_N9>yes, they are for different purposes
17:16:57  <Venemo_N9>although now that we have typed arrays, I'm not so sure node::Buffer is still the right choice
17:17:18  <bnoordhuis>you can use typed arrays but they do have some performance overhead compared to buffers
17:17:25  <bnoordhuis>that's why node hasn't changed yet
17:19:32  <bnoordhuis>i guess that should read 'switched'
17:26:15  <Venemo_N9>mhm
17:35:10  * Lethalmanquit (Remote host closed the connection)
18:03:22  * iamdustanjoined
18:21:02  * bnoordhuisquit (Ping timeout: 240 seconds)
18:26:13  * abraxasjoined
18:30:39  * abraxasquit (Ping timeout: 252 seconds)
18:41:57  * ctrutaquit (Read error: Operation timed out)
18:42:15  * bnoordhuisjoined
18:49:26  * iamdustanquit (Ping timeout: 240 seconds)
18:52:43  * bnoordhuisquit (Ping timeout: 260 seconds)
18:58:54  * iamdustanjoined
19:01:25  * jmar777_joined
19:05:27  * jmar777quit (Ping timeout: 265 seconds)
19:06:54  * Lethalmanjoined
19:31:50  * spoluquit (Ping timeout: 240 seconds)
19:58:43  * bnoordhuisjoined
20:03:55  * bnoordhuisquit (Ping timeout: 272 seconds)
20:05:46  * c4miloquit (Remote host closed the connection)
20:18:36  * iamdustanquit (Ping timeout: 244 seconds)
20:22:39  * bnoordhuisjoined
20:27:04  * abraxasjoined
20:30:02  * Lethalman_joined
20:30:18  * c4milojoined
20:31:26  * abraxasquit (Ping timeout: 240 seconds)
20:33:31  * Lethalmanquit (Ping timeout: 260 seconds)
20:45:05  * Lithuanianquit (Ping timeout: 272 seconds)
20:45:33  * Lithuanianjoined
20:46:57  * Venemo_N9quit (Ping timeout: 252 seconds)
21:18:28  * jmar777_quit (Remote host closed the connection)
21:19:06  * jmar777joined
21:23:21  * jmar777quit (Ping timeout: 252 seconds)
21:26:00  * iamdustanjoined
21:45:07  * Lithuanianquit (Quit: Connection reset by beer)
21:46:40  * Lithuanianjoined
21:49:33  * Lethalman_quit (Read error: Connection reset by peer)
21:57:27  * Venemo_joined
22:27:55  * abraxasjoined
22:32:25  * abraxasquit (Ping timeout: 246 seconds)
22:41:12  * seventhjoined
22:44:47  * RT|Chatzillajoined
22:56:00  * Lithuanianquit (Quit: Connection reset by beer)
23:38:33  * bnoordhuisquit (Ping timeout: 252 seconds)
23:46:01  * jmar777joined