01:23:46 | * | q66 quit (Quit: Quit) |
06:50:24 | * | shevy quit (Ping timeout: 268 seconds) |
07:08:55 | fowl | trying to build nimrod from within a vm, if i do it from cmd i get errors about gcc not existing, if i do it from msys shell it tries to execute %CC%, %LINKER% etc |
07:09:10 | fowl | a windows vm i should say |
07:11:30 | Araq | well the .bat allows easy editiing |
07:11:59 | Araq | C% and %LINKER% are set in the .bat for you |
07:12:10 | Araq | but if it doesn't work, adapt them |
07:12:31 | fowl | i just had to put the mingw\bin on PATH >_> |
07:12:40 | Araq | oh and msys may not work |
07:12:47 | Araq | the .bat is for "cmd.exe" |
07:12:48 | fowl | the problem is msys emulates a unix shell |
07:12:53 | fowl | yea |
07:13:04 | Araq | well yeah the .sh is not built for msys |
07:23:09 | Araq | what does 'uname -a' say on msys? |
07:24:12 | fowl | MINGW32_NT-6.1 HERMES-PC 1.0.17(0.48/3/2) 2011-04-24 23:39 i686 Msys |
07:25:16 | fowl | setting all that up was tedious |
07:26:01 | fowl | not sure where to get opengl from, the site said it comes with your video card driver, im pretty sure the guest additions didnt include it though |
07:26:44 | * | Boscop quit (Disconnected by services) |
07:26:47 | * | Boscop joined #nimrod |
09:38:56 | * | q66 joined #nimrod |
10:46:02 | Araq | hi q66 |
10:46:09 | q66 | hi |
10:46:35 | Araq | do you feel like helping the bsd guy? |
10:46:42 | q66 | didn't get to my VM yet |
10:48:07 | Araq | well I'll answer him |
10:48:14 | Araq | I dunno what though :-) |
10:48:43 | Araq | "use a real OS :P " |
10:49:11 | q66 | that's not an answer |
10:49:14 | q66 | that's trolling attempt |
10:49:29 | Araq | oh freebsd 9 is actually quite new |
10:49:42 | Araq | I thought it was ancient |
10:49:52 | q66 | yeah 9.0 is latest "stable" |
10:49:58 | q66 | 9.1 is upcoming |
10:55:33 | Araq | well the code uses sysctl to determine the number of CPUs |
10:55:53 | Araq | and apparently his sys/sysctl.h header does not compile |
11:07:57 | Araq | ping zahary |
11:11:28 | zahary | pong Araq |
11:19:32 | Araq | brb |
11:42:20 | Araq | well, zahary, I've implemented arithop{|ops} * args |
11:42:31 | Araq | but it's quite useless :-) |
11:42:53 | Araq | x + y * z - x # produces: |
11:43:28 | Araq | optOps([-, +, *], [x, y, z, x]) |
11:44:11 | Araq | and now in the macro body you can try to get a binary tree back out of this ... |
11:44:37 | Araq | which is possible but mind puzzling |
11:45:53 | Araq | it's easier to just use callsite() and process the AST recursively |
12:00:31 | Araq | maybe it should produce [x, y, z, *, +, x, -] ? |
12:01:16 | Araq | (Reverse Polish notation) |
14:40:57 | * | Trix[a]r_za is now known as Trixar_za |
15:16:52 | Araq | ping zahary |
20:04:04 | reactormonk | Araq: anything else that would not require me to read an overly amount of code? :-) |
20:04:16 | Araq | hu? |
20:04:21 | Araq | hash for floats? |
20:11:55 | reactormonk | no thashes.nim? |
20:12:38 | Araq | it's tested implicitely via ttables I guess |
20:18:52 | reactormonk | done |
20:34:19 | Araq | reactormonk: thanks but test is not good enough |
20:34:31 | Araq | the compiler computes -0.0 at compile time |
20:34:42 | Araq | and could wrongly output it as +0.0 |
20:34:50 | Araq | (and I think it does ... :P ) |
20:36:03 | Araq | and here you go, no more unittest weirdnesses (I hope) |
20:36:23 | Araq | so your test should look like: |
20:36:29 | Araq | var dummy = 0.0 |
20:36:50 | Araq | check hash(dummy) == hash(-dummy) |
20:49:09 | reactormonk | oh |
20:50:24 | reactormonk | Araq: yep, +1 really helps. |
20:50:54 | Araq | yeah but I think it can trigger an INF :P |
20:50:55 | reactormonk | and yep, it doesn't fail with literals |
20:51:11 | Araq | yeah, outputting floating point is hard |
20:52:09 | Araq | I guess I can check whether 1.0 / +-0.0 is +INF or -INF to detect -0.0 |
20:53:49 | reactormonk | hum |
22:44:05 | reactormonk | Araq: nice |
22:45:33 | Araq | not my work ;-) |
23:05:22 | * | Trixar_za is now known as Trix[a]r_za |
23:21:18 | fowl | whats the new nil statement? just `discard`? |
23:22:18 | dom96 | yep |
23:25:39 | * | q66 quit (Quit: Quit) |
23:32:52 | Araq | it's really much more used in the compiler than I thought :-/ |
23:33:07 | Araq | so I didn't activate the deprecation warning |
23:33:55 | fowl | i still think you should have went with nihil or nuffin |
23:34:10 | Araq | no new keywords please |
23:35:06 | Araq | in fact, you can also use a comment instead: #nihil |
23:35:19 | Araq | but I'm not sure I like that |