00:40:05
| * xaq | quit (Read error: Connection reset by peer) |
00:40:26
| * xaq | joined |
00:44:11
| * mritz | quit (Quit: Computer has gone to sleep.) |
00:44:26
| * C-Man | quit (Quit: Connection reset by beer) |
00:50:30
| * joshthecoder | quit (Quit: Linkinus - http://linkinus.com) |
01:57:30
| * stampho | quit (*.net *.split) |
01:57:31
| * im0b | quit (*.net *.split) |
01:58:38
| * mritz | joined |
02:15:46
| * stampho | joined |
02:15:46
| * im0b | joined |
02:16:04
| * sanjoyd | quit (Changing host) |
02:16:04
| * sanjoyd | joined |
02:16:26
| * joshthecoder | joined |
04:43:48
| * [[zzz]] | joined |
04:46:31
| * [[zz]] | quit (Read error: Operation timed out) |
05:40:52
| * xaq | quit (Remote host closed the connection) |
06:53:17
| * joshthecoder | quit (Quit: Linkinus - http://linkinus.com) |
07:12:10
| * lamefun | joined |
07:12:19
| <lamefun> | why does v8 lack documentation? |
07:12:55
| <lamefun> | Where is API reference? |
07:28:18
| * rendar | joined |
08:17:02
| * [[zzz]] | changed nick to [[zz]] |
09:15:17
| * eoh | joined |
09:16:32
| * eoh| | quit (Ping timeout: 250 seconds) |
09:34:53
| * C-Man | joined |
09:40:45
| * mritz | quit (Quit: Computer has gone to sleep.) |
10:07:43
| * lamefun | quit (Quit: TODO: Put some wise philosophical statement here.) |
10:56:17
| * Net147 | joined |
11:07:25
| * eoh | quit (Read error: Connection reset by peer) |
11:07:40
| * eoh | joined |
11:11:22
| * fdmanana | joined |
11:20:24
| * Net147 | quit (Quit: I love my HydraIRC -> http://www.hydrairc.com <-) |
11:25:59
| * Orion- | joined |
11:26:07
| <Orion-> | hello people |
11:26:27
| <Orion-> | anyone care to explain how to get a NaN in V8 ? |
11:28:02
| <Orion-> | I'm trying,g to return an object instance in which a property may be a NaN |
11:29:29
| <Orion-> | WhaoOooO #v8 is not as fast as google claims it :)~ |
11:30:18
| <dmilith> | Orion-: how about isnan() ? |
11:31:12
| <Orion-> | well checking is not my primary concern here. First I'd like to make a Number that reports to be NaN in my javascript exported object |
11:31:46
| <dmilith> | maybe try NaN as a value? |
11:31:56
| <Orion-> | Doesn't compile |
11:32:12
| <Orion-> | It needs to be defined somewhere |
11:32:26
| <dmilith> | return v8::String::New("NaN"); |
11:32:27
| <Orion-> | And I can't see where |
11:32:41
| <dmilith> | try this one |
11:32:50
| <Orion-> | dmilith: that's what I did first but it's a String |
11:33:30
| <dmilith> | try switching to Number maybe |
11:34:08
| <Orion-> | You mean casting it to Number ? |
11:34:16
| <dmilith> | but theoretically there's nothing like NaN |
11:34:19
| <dmilith> | in Number |
11:35:17
| <dmilith> | a number value canot hold NaN string right? |
11:35:59
| <dmilith> | maybe it's just virtual call to object which contains number but also can hold a "NaN" string as a number? |
11:36:12
| <dmilith> | I don't know, that's how I'd do it |
11:36:34
| <dmilith> | and that's why isnan() will check for that value |
11:36:41
| <Orion-> | in javascript typeof NaN === 'number' |
11:36:48
| <dmilith> | yes |
11:36:57
| <dmilith> | that's what I'm saying. |
11:37:18
| <dmilith> | but in js it's something bit different |
11:37:25
| <dmilith> | I'm just looking on C++ side |
11:38:02
| <Orion-> | I think it will be very simple to someone who already did this once :) |
11:38:49
| <Orion-> | I did try the casting but it did not work |
11:39:24
| <dmilith> | casting isn't the case |
11:39:43
| <dmilith> | I think you should use v8 internal types for numbers |
11:40:18
| <Orion-> | and also v8::Value doesn't have a test for isnan() |
11:40:33
| <dmilith> | maybe this number boxing is reason why number operations are slow in node ;] |
11:41:12
| <dmilith> | IsNumber() |
11:41:17
| <dmilith> | look here: http://v8.googlecode.com/svn-history/r8701/branches/bleeding_edge/src/extensions/experimental/number-format.cc |
11:41:35
| <dmilith> | find this line: "return v8::String::New("NaN");" |
11:42:15
| <dmilith> | it boxes number value with whole v8 object container or sth like that (it's first time I see this ;P I'm really speculating) |
11:42:18
| <dmilith> | but it's logical |
11:44:09
| <Orion-> | It's just a String |
11:44:30
| <dmilith> | yes |
11:44:35
| <Orion-> | I mean it's not the *right* thing |
11:45:01
| <dmilith> | internally.. it's just a value for a object which isn't proper number |
11:45:02
| * Net147 | joined |
11:45:51
| <dmilith> | so object Number internally isn't holding number in such case, but still has type of number right? |
11:46:11
| <dmilith> | "Infinity" is internally a string too |
11:46:26
| <dmilith> | > 0/0 |
11:46:26
| <dmilith> | NaN |
11:46:52
| <dmilith> | in C it will throw an exception cause it cannot hold value of not a number |
11:47:10
| <dmilith> | in v8 it's just a value.. and it's string even in number. |
11:47:13
| <dmilith> | ;] |
11:47:14
| <dmilith> | fun |
11:48:58
| <dmilith> | Orion-: I suggest doing a math operations in your extension, after which just convert it to v8::Number |
11:49:09
| <dmilith> | and it will wrap NaN thing itself |
11:49:36
| <Orion-> | Like Number::New(0/0) ? |
11:49:38
| <dmilith> | I mean: in C++ you're supposed to operate on numbers as primitives |
11:49:41
| <dmilith> | yea |
11:49:52
| <Orion-> | mmm |
11:49:58
| <Orion-> | let me try |
11:49:58
| <dmilith> | in v8 level it's just a virtual thing, an object |
11:50:02
| <dmilith> | wrapped around your number |
11:50:37
| <dmilith> | (hope that some v8 guru wont kill me for any kind of herecy ;D) |
11:50:46
| <dmilith> | heresy* |
11:51:03
| <Orion-> | I got it |
11:51:08
| <Orion-> | Tadaaaaa |
11:51:14
| <Orion-> | It's weird |
11:51:19
| <Orion-> | look at this: |
11:51:21
| <Orion-> | Number::New(String::New("NaN")->NumberValue()) |
11:52:00
| <dmilith> | ;] |
11:52:10
| <dmilith> | hope I helped some way |
11:52:20
| <Orion-> | It really is Not a Number thought :) |
11:53:26
| <Orion-> | thanks for fiddling with me :) |
11:54:21
| <dmilith> | n/p |
11:54:29
| <Orion-> | I'm writing an RRD module for node |
11:54:41
| <dmilith> | it's interesting topic. I'm eager to see some comment about what I said. I might be wrong |
11:54:42
| <Orion-> | NaN is often seen in red world |
11:54:52
| <Orion-> | rrd |
11:54:57
| <Orion-> | s/red/rrd |
11:55:11
| <dmilith> | rrd sucks cause not supporting strings ;P |
11:55:47
| <Orion-> | rrd is great |
11:56:05
| <Orion-> | for what it is meant for |
11:56:33
| <dmilith> | anyway.. good luck, fighting with Your extension |
11:57:10
| <Orion-> | concerning 0/0, it doesn't compile |
11:57:26
| <Orion-> | which is no surprise to me |
11:58:05
| <Orion-> | well it compiles sorry but with the warning |
11:58:19
| <dmilith> | are You using clang? |
11:58:46
| <Orion-> | is node-waf using it ? |
11:58:58
| <dmilith> | node-waf is deprecated AFAIK |
11:59:08
| <dmilith> | they're using gyp since 0.8 IIRC |
11:59:21
| <Orion-> | don't know |
11:59:42
| <Orion-> | I'm fairly new to node native building stuff |
11:59:49
| <dmilith> | better check it out. http://blog.nodejs.org/2012/06/25/node-v0-8-0/ |
11:59:55
| <Orion-> | I just got into it this morning |
11:59:57
| <dmilith> | "BUILD SYSTEM" part |
12:00:33
| <Orion-> | google has lead me to tutorials using node-waf |
12:00:43
| <Orion-> | blame google ! :) |
12:00:55
| <dmilith> | yea, but I can learn something, dealing with your problem |
12:01:19
| <dmilith> | node-waf was/is used on node =< 0.6 |
12:01:25
| <dmilith> | in 0.8 it will work |
12:01:35
| <dmilith> | but probably not in new releases |
12:01:45
| <dmilith> | but it's better to ask isaacs |
12:02:36
| <Orion-> | I have node 0.8.1 and I'm using waf |
12:03:03
| <dmilith> | Orion-: did You see: https://github.com/alertedsnake/node-rrdtool ? |
12:03:39
| <Orion-> | Nop |
12:03:44
| <Orion-> | Let me check |
12:03:52
| <Orion-> | It's not native |
12:04:08
| <dmilith> | yes |
12:04:12
| <dmilith> | unfortunatelly |
12:04:21
| <Orion-> | It reminds me of javascript-rrd |
12:04:32
| <Orion-> | same binary file reading stuff |
12:04:38
| <dmilith> | yes |
12:04:55
| <dmilith> | it won't be as fast as in C when doing much math operations |
12:05:06
| <Orion-> | it will break if red updates it's binary formats |
12:05:16
| <Orion-> | rrd |
12:05:29
| <dmilith> | yup |
12:05:31
| <Orion-> | damn corrector |
12:05:45
| <dmilith> | turn it off in system preferences |
12:05:47
| <dmilith> | ;] |
12:05:50
| <Orion-> | :) |
12:06:18
| * joeandaverde | joined |
12:06:39
| <Orion-> | I have to go. Thanks and see you later. |
12:06:59
| <dmilith> | cu |
12:07:05
| * Orion- | quit (Quit: Orion-) |
12:07:17
| * hij1nx | joined |
12:24:29
| * stampho | quit (Ping timeout: 240 seconds) |
12:37:44
| * stampho | joined |
13:06:43
| * hij1nx | quit (Quit: hij1nx) |
13:09:52
| * joeandaverde | quit (Quit: joeandaverde) |
13:31:59
| * adalgiso | joined |
13:32:13
| * adalgiso | part |
13:57:57
| * Net147 | quit (Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC) |
14:18:23
| * fdmanana | quit (Quit: Leaving) |
14:27:32
| * xaq | joined |
14:50:03
| * mritz | joined |
14:56:51
| * mraleph | joined |
15:07:59
| * hij1nx | joined |
15:22:17
| * hij1nx | quit (Read error: No route to host) |
15:22:57
| * hij1nx | joined |
15:43:39
| * TheJH | joined |
15:50:53
| * hij1nx | quit (Quit: hij1nx) |
16:17:13
| * hij1nx | joined |
16:19:33
| * hij1nx | quit (Read error: Connection reset by peer) |
16:29:44
| * hij1nx | joined |
16:38:30
| * RT|Chatzilla | quit (Quit: ChatZilla 0.9.86.1 [Firefox 2.0.0.22pre/2009081014]) |
16:54:47
| * hij1nx__ | joined |
16:55:22
| * hij1nx | quit (Read error: Connection reset by peer) |
16:55:22
| * hij1nx__ | changed nick to hij1nx |
17:11:30
| * joshthecoder | joined |
17:18:08
| * hij1nx | quit (Quit: hij1nx) |
17:36:55
| * hij1nx | joined |
18:13:09
| * jroesslein | joined |
18:13:10
| * joshthecoder | quit (Read error: Connection reset by peer) |
18:31:28
| * hij1nx | quit (Quit: hij1nx) |
18:41:44
| * mritz | quit (Quit: Computer has gone to sleep.) |
18:45:31
| * joshthecoder | joined |
18:45:49
| * jroesslein | quit (Read error: Connection reset by peer) |
18:59:05
| * xan_ | quit (Quit: leaving) |
20:00:20
| * rerntzdb | joined |
20:01:48
| <rerntzdb> | is there a good way to interrupt a v8 instance while it is running javascript code? |
20:56:25
| * mritz | joined |
21:26:43
| * joshthecoder | quit (Quit: Leaving...) |
21:54:04
| * joeandaverde | joined |
21:57:26
| * joeandaverde | quit (Read error: No route to host) |
21:57:55
| * rendar | quit |
22:12:21
| * decoder | quit (Ping timeout: 264 seconds) |
22:14:52
| * TheJH | quit (Ping timeout: 255 seconds) |
22:23:09
| * decoder | joined |
22:32:31
| * mraleph | quit (Quit: Leaving) |
22:37:31
| * mritz | quit (Quit: Computer has gone to sleep.) |
22:47:26
| * joshthecoder | joined |
22:48:34
| * xaq | quit (Remote host closed the connection) |
23:10:25
| * CodeWar | joined |
23:11:12
| <CodeWar> | when running the V8 testsuite, do we reuse the same codecache after each subtest or use different chunks of memory and collect later |
23:12:04
| <CodeWar> | I m looking at compilation-cache.h is that the right placeholder for code that controls CodeCache memory allocation. Thanks |
23:49:18
| * CodeWar | quit (Quit: Leaving) |
23:50:33
| * RT|Chatzilla | joined |