00:14:54  * bnoordhuisjoined
00:19:42  * bnoordhuisquit (Ping timeout: 264 seconds)
00:40:23  * xan_quit (Read error: Operation timed out)
00:58:12  * c4miloquit (Remote host closed the connection)
00:58:57  * c4milojoined
01:03:52  * Jarvixjoined
01:06:42  * Jarvix_quit (Ping timeout: 264 seconds)
01:09:26  * c4miloquit (Remote host closed the connection)
01:28:54  * abraxasjoined
01:41:56  * c4milojoined
01:42:44  * c4miloquit (Remote host closed the connection)
01:52:16  * c4milojoined
02:29:05  * jmar777joined
03:02:00  * jmar777quit (Remote host closed the connection)
03:13:00  * Jarvix_joined
03:14:38  * Jarvixquit (Ping timeout: 264 seconds)
03:29:41  * carifjoined
03:35:02  * carifquit (Ping timeout: 264 seconds)
03:48:42  * carifjoined
04:02:20  * carifquit (Quit: Ex-Chat)
04:03:14  * carif_joined
04:26:13  * carif_quit (Quit: Ex-Chat)
05:30:46  * c4miloquit (Remote host closed the connection)
05:34:02  * hardbitjoined
05:53:07  * hardbitquit (Quit: hardbit)
06:24:28  * temp02joined
06:25:39  * temp01quit (Ping timeout: 260 seconds)
06:37:45  * temp02quit (Read error: Connection reset by peer)
06:37:57  * temp01joined
06:45:52  * [[zz]]joined
07:21:18  * Lethalmanjoined
07:27:33  * [[zz]]quit (Ping timeout: 256 seconds)
07:32:05  * M28joined
07:32:06  * M28_quit (Read error: Connection reset by peer)
07:52:30  * xan_joined
08:22:11  * muellijoined
08:41:58  * temp02joined
08:43:29  * temp01quit (Ping timeout: 256 seconds)
08:48:19  * abraxas_joined
08:49:56  * abraxasquit (Read error: Operation timed out)
08:50:53  * C-Manjoined
09:18:31  * temp02quit (Read error: Connection reset by peer)
09:20:28  * temp01joined
09:54:09  * Jarvixjoined
09:55:04  <Jarvix>Say I want to make my own StackTrace wrapper class around v8::StackTrace, with an instance variable v8::StackTrace. WHat handle should I use? Handle or Persistent?
09:57:57  * somsubhraquit (Remote host closed the connection)
10:09:46  * indutnyquit (Quit: IRCRelay - http://ircrelay.com)
10:41:39  * abraxas_quit (Remote host closed the connection)
10:48:33  * alippai1joined
10:48:54  <alippai1>hello, can somebody explain me, why the first one performs better for any `j`: http://jsperf.com/array-vs-uint8array-set
10:57:26  * bnoordhuisjoined
11:16:18  * iamdustanquit (Ping timeout: 264 seconds)
11:23:02  <Lethalman>alippai1, they don't seem to be equivalent code
11:25:35  <Lethalman>alippai1, in the first one you have an array of arrays, in the second one you are copying 1024 elements starting from the i*1024 element
11:25:35  <Lethalman>mh
11:26:23  <Lethalman>that's right sorry
11:26:52  <Lethalman>alippai1, however, in the second case I feel you're doing a copy
11:26:59  <Lethalman>alippai1, while in the first case you aren't
11:47:17  * M28_joined
11:47:17  * M28quit (Read error: Connection reset by peer)
11:58:53  * C-Manquit (Remote host closed the connection)
11:59:07  * C-Manjoined
12:15:11  * iamdustanjoined
12:31:50  * C-Manquit (Remote host closed the connection)
12:32:01  * C-Manjoined
12:32:22  * Karinuquit (Ping timeout: 256 seconds)
12:44:47  * Karinujoined
12:50:30  <alippai1>Lethalman: i see, thank you
13:00:14  * jmar777joined
13:02:48  * bnoordhuisquit (Ping timeout: 260 seconds)
13:24:59  * fb55_quit (Remote host closed the connection)
13:25:36  * fb55joined
13:30:06  * fb55quit (Ping timeout: 264 seconds)
13:33:11  * jmar777quit (Remote host closed the connection)
13:55:28  * jmar777joined
14:05:58  * onethfourquit (Quit: Leaving)
14:09:26  * bnoordhuisjoined
14:14:02  * bnoordhuisquit (Ping timeout: 264 seconds)
14:19:28  * temp01quit (Ping timeout: 256 seconds)
14:21:56  <aboudreault>Is creating a context so heavy? without the use of v8, my fcgi process is always at 200M of memory. If I create a v8 context for the isolate, it jumps to 1000M (4 threads are created by v8).
14:22:13  <aboudreault>I dispose my persistent context at the end of all fcgi request.
14:24:15  * trigenchanged nick to trigen|afk
14:38:14  * bnoordhuisjoined
14:40:10  * temp01joined
15:03:15  * Karinuquit (Read error: Operation timed out)
15:08:36  * c4milojoined
15:33:46  <Jarvix>How can I get an object description? When using ->ToString() on anything other than a String value (one where isString returns true) crashes. Is that correct behaviour?
15:35:45  <bnoordhuis>Jarvix: define 'crashes'?
15:36:18  <bnoordhuis>i ask because people tend to use that word in rather imprecise ways
15:36:51  <Jarvix>EXC_BAD_ACCESS in objects-inl.h:1959 (return READ_FIELD, in Object * FixedArray::get)
15:37:29  <Jarvix>It happens when executing the script "4.3" and executing ToString() on the Handle<Value> returned by Run()
15:38:20  <bnoordhuis>try a debug build
15:38:33  <bnoordhuis>also, make sure that return_value.IsEmpty() == false
15:38:35  <Jarvix>OK, lemme switch the libs
15:39:17  <Jarvix>I have if(val.IsEmpty()) return; (…) val.ToString(); so yes, did that
15:39:37  <Jarvix>I already have a full stack trace if you want
15:40:37  <bnoordhuis>sure, gist it
15:41:10  <Jarvix>sec, switched to the debug libs
15:45:54  <Jarvix>https://gist.github.com/Jarvix/6552404
15:48:37  <Jarvix>I looked at the ToString source and noticed that if(IsString) return internal string else do some magic. So I thought that i should get a "4.3" as result.
16:00:57  * bnoordhuisquit (Ping timeout: 256 seconds)
16:26:52  * bnoordhuisjoined
16:29:14  * Lethalmanquit (Remote host closed the connection)
16:34:25  <Jarvix>wb bnoordhuis
16:48:14  * bnoordhuisquit (Ping timeout: 240 seconds)
16:59:05  * RT|Chatzillaquit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2009081014])
17:54:19  <aboudreault>is it possible to create semi-dynamic property assessor?
17:57:07  <aboudreault>hmm... rather than an assessor, I'll do a simple function instead.
18:03:28  * muelliquit (Remote host closed the connection)
18:04:10  * Lethalmanjoined
18:20:17  * bnoordhuisjoined
18:20:30  <bnoordhuis>Jarvix: sorry, back now
18:20:33  <bnoordhuis>did you figure it out?
18:27:55  <Jarvix>well, half. It seems i don't manage my context correctly.
18:28:13  <Jarvix>when i do some calls, the context is not already entered.
18:28:36  <Jarvix>i find it quite annoying, those scopes based on C/C++ scopes...
18:29:12  <Jarvix>trying to write my own ObjC++ wrappers for easy use, but stuck with the HandleScope and context stuff.
18:29:45  <Jarvix>I changed my storage of the scope to Persistent, but how do i then call GetIsolate or Global() ?
18:31:09  <Jarvix>should i make a 'master' application HandleScope so I can return Handles from methods?
18:33:17  <bnoordhuis>i'm not sure what you're trying to do
18:33:25  <bnoordhuis>does your application have one v8::Context or many?
18:33:47  * jmar777quit (Read error: Connection reset by peer)
18:33:59  <Jarvix>well, one per L8Context, but in the end probably just one. (don't see when i will make multiple L8Contexts (yet))
18:34:18  * jmar777joined
18:35:47  <aboudreault>damn, wouldn't expect the use of v8 so heavy. there is a big differente in execution time.
18:37:13  <Jarvix>aboudreault: it is a JIT compiler plus runtime for a extremely dynamic language… you had wrong expectations
18:40:09  <bnoordhuis>Jarvix: you can get the context back with Local<Context>::New(isolate, persistent_context)
18:40:18  <aboudreault>You are right. I'm really happy of what I currently have. It's a big plus to have that scripting capabilities.
18:40:31  <bnoordhuis>Jarvix: and you can get the current isolate with Isolate::GetCurrent() or args.GetIsolate()
18:41:11  <bnoordhuis>or you can do as node currently does and store the isolate in a global var
18:41:50  <bnoordhuis>that's assuming you have only one isolate, of course
18:43:03  <Jarvix>Lets take Chrome as example, how many contexts and isolates does it have?
18:43:17  <Jarvix>Reviewing my setup: maybe i can do with just 1 context and simplify everything
18:44:35  <bnoordhuis>i've no idea - i don't work with or use chrome
18:47:28  <Jarvix>Ok. Well I am writing a game engine runs JS as game code. So i think a single context will work fine?
18:49:28  <bnoordhuis>sounds like it. you only need contexts when you want completely separate execution contexts
18:49:45  <Jarvix>alright then
18:50:33  <Jarvix>so i have 1 L8Runtime that has a Persistent context.
18:51:06  <Jarvix>ill just start to play with that before asking more, thanks
18:51:35  <bnoordhuis>one thing you can do is create a HandleScope + Context in your main() function, then start your game's event loop and take it from there
18:52:17  <bnoordhuis>the HandleScope won't go out of scope until your event loop returns so the context will stick around
18:52:40  <Jarvix>if i make a scope in main() and call a function to handle something, the scope is still active, right?
18:52:54  <bnoordhuis>yes
18:53:25  <Jarvix>ok
18:54:27  <Jarvix>So i can't have a class that has methods for loading code, accessing global JS variables, and also handling the scope? Bcause if i would make an instance of that class, the caller is not within the scope :s
19:41:09  * Karinujoined
19:48:55  <Jarvix>bnoordhuis: when i ->Compile code, do I need to call Run on it anyways, or is it then loaded in the context? Say I Compile 5 scripts and then call a JS function from C++. Never calling ->Run
19:57:49  * iamdustanquit (Ping timeout: 256 seconds)
20:08:23  <bnoordhuis>Jarvix: if you don't call Run(), that script code is never executed
20:09:48  <Jarvix>Ok, ill just compile+run each script, and after that, call the main() function (for example)
20:36:32  * C-Manquit (Quit: Connection reset by beer)
20:38:04  * jmar777quit (Remote host closed the connection)
20:50:23  * c4miloquit (Remote host closed the connection)
21:04:10  * jmar777joined
21:09:44  * Lethalmanquit (Ping timeout: 256 seconds)
21:13:25  <Jarvix>bnoordhuis: changed my design: now everything is executing in a contextscope :) and thus ToString works :)
21:33:59  * Lethalmanjoined
21:56:18  * Lethalmanquit (Ping timeout: 264 seconds)
22:34:01  * jmar777quit (Remote host closed the connection)
23:16:14  * bnoordhuisquit (Ping timeout: 240 seconds)
23:22:04  * RT|Chatzillajoined