00:04:14 | * | brson quit (Quit: leaving) |
00:04:32 | EXetoC | isn't it added to the page? |
00:04:44 | * | brson joined #nimrod |
00:04:52 | treeform_ | console.log() works int he browser |
00:04:56 | treeform_ | and that's what it calls |
00:05:03 | treeform_ | it should work i just have not tried |
00:08:11 | treeform_ | filwit: i just tried it in the browser: http://andrelytics.com:9001/hw.html and it works |
00:08:21 | treeform_ | compiled nim code in the browser |
00:08:26 | treeform_ | through emcc |
00:08:28 | filwit | echo() transforms into console.log() ? |
00:08:43 | filwit | nice |
00:09:31 | treeform_ | yes |
00:09:53 | treeform_ | http://andrelytics.com:9001/hw.js |
00:12:20 | willwillson | any way to reset password for forum? |
00:16:03 | EXetoC | willwillson: no |
00:16:15 | willwillson | ok, thanks |
00:28:49 | treeform_ | filwit: did you mange to get your thing working? |
00:30:00 | filwit | treeform_: was on the phone (just got off) but it looks like emscripten is still building... |
00:30:09 | filwit | 86% done |
00:30:28 | filwit | building from AUR source, so yeah... |
00:31:06 | filwit | treeform_: btw, did you build the JS code with -d:release? |
00:31:14 | treeform_ | no |
00:31:28 | filwit | you should, it will probably remove a lot of the generated JS code |
00:33:25 | filwit | plus you could always minimize it to get the filesize down as well |
00:40:51 | treeform_ | filwit: did not looks like -d:release had any effect |
00:41:10 | treeform_ | minimizing js did ... but only from .5 to .3 Megs |
00:41:23 | * | brson quit (Ping timeout: 240 seconds) |
00:42:42 | * | brson joined #nimrod |
00:43:46 | filwit | treeform_: odd that -d:release didn't do anything... that removes a lot of executable size (not stack-frame info, dead-code elimination, etc) |
00:44:00 | treeform_ | its just an echo |
00:44:06 | treeform_ | there isn't much dead code to kill |
00:44:13 | treeform_ | its all emcc stuff i think |
00:44:23 | filwit | treeform_: good point. emscripten just finished though, let me getting something working |
00:45:44 | * | Jehan_ quit (Quit: Leaving) |
00:47:02 | EXetoC | you might stumble upon a codegen bug on a raised exception |
00:49:36 | treeform_ | what does tinyc do in the nimrod source code? |
00:49:40 | treeform_ | i though it used gcc? |
00:49:50 | filwit | it's used for the REPL i think |
00:50:20 | EXetoC | it can use vc too at least |
00:50:26 | filwit | and clang |
00:50:37 | filwit | and Icc as well i think |
00:51:55 | filwit | hrm, i keep getting: emcc: cannot find library "../Nim/Nim/lib" |
00:52:19 | filwit | from line 8 in your instructions (-l/z/nimrod/Nimrod/lib) |
00:52:37 | filwit | treeform_ ^ |
00:52:54 | treeform_ | hmm i used fixed paths some place i think |
00:53:03 | filwit | just tried that, didn't help |
00:53:31 | treeform_ | just compiled it normally |
00:53:39 | treeform_ | with nimrod and gcc |
00:53:45 | treeform_ | and steal the paths it uses |
00:53:47 | treeform_ | thats what I did |
00:53:55 | filwit | ah, okay, one sec |
00:54:06 | treeform_ | i basically just gook gcc and write emcc and it worked |
00:55:39 | * | dom96 quit (Excess Flood) |
00:57:33 | * | dom96 joined #nimrod |
01:01:52 | filwit | hmm... all the commands gave me warnings... did they for you? They didn't give errors, so I assumed they where working... but i don't see any JS file... |
01:03:20 | * | treeform_ quit (Remote host closed the connection) |
01:05:57 | filwit | WARNING root: emcc: cannot find library "dl" |
01:06:01 | filwit | treeform_ ^ |
01:06:57 | filwit | happens when i try to link... i assume that's why it doesn't gen a JS file... maybe I should just install EMCC from the binary (instead of from git AUR) |
01:09:38 | bogen | dl is the dynamic linker library. |
01:10:00 | bogen | is is unlikely that a js program can load shared objects |
01:10:18 | bogen | you can't use the same link command |
01:11:44 | * | q66 quit (Quit: Leaving) |
01:13:41 | filwit | bogen: yeah I figured, It was just in the warning... i now see that emcc is building a executable tho |
01:14:30 | filwit | not a js file... but an executable.. |
01:14:53 | filwit | oh, duh... nevermind i'm just doing something stupid |
01:17:37 | filwit | treeform_: cool it worked :) but I didnt' need the -D MAP_ANONYMOUS thing (i'm guessing that's and bug with the branch you're using) |
01:21:28 | filwit | treeform_: also, what might make the filesize less is to add -O2 to the emcc lines (i'm about to try it) |
01:24:51 | filwit | treeform_: yep, without -O2 filesize is ~775k, with it's ~225k |
01:25:05 | filwit | 275k* |
01:25:13 | filwit | (non minimized) |
01:26:21 | filwit | err... scratch that.. it didn't work, and built some other file.. |
01:26:32 | filwit | still 700+k |
01:39:56 | * | Demos_ joined #nimrod |
01:40:47 | * | Demos quit (Ping timeout: 255 seconds) |
01:54:29 | * | Fr4n quit (Ping timeout: 276 seconds) |
01:57:21 | * | Fr4n joined #nimrod |
02:00:08 | filwit | still 700+k |
02:00:51 | Varriount | filwit: Why the worry over exe sizes? |
02:06:08 | filwit | Varriount: i'm not, just attempting to lower it |
02:08:03 | * | Fr4n quit (Ping timeout: 267 seconds) |
02:08:06 | * | Jesin joined #nimrod |
02:19:38 | * | francisl joined #nimrod |
02:22:22 | * | willwillson quit (Ping timeout: 272 seconds) |
02:30:45 | bogen | for an ecmascript file 700+ k is a lot, especially when you using slow web connections. |
02:30:52 | * | Fr4n joined #nimrod |
02:31:13 | bogen | so filesize does matter for is this case |
02:31:39 | bogen | s/for is/in/ |
02:40:52 | * | brson quit (Quit: leaving) |
02:44:53 | * | fowl joined #nimrod |
02:48:16 | filwit | um... 'inf' was renamed? |
02:49:28 | * | vendethiel- joined #nimrod |
02:49:41 | Varriount | filwit: Not that I know of. |
02:50:04 | filwit | well i get this: Error: undeclared identifier: 'inf' |
02:50:33 | filwit | just rebuilt (bigbreak)... |
02:50:42 | * | vendethiel quit (Ping timeout: 245 seconds) |
02:51:45 | * | treeform2 joined #nimrod |
02:52:03 | treeform2 | filwit: got your thing working now? |
02:52:27 | filwit | treeform2: having problems building it... `inf` no longer seems to be a valid symbol |
02:52:39 | filwit | maybe it's a bug with the bigbreak branch tho, i'll try devel |
02:52:57 | treeform2 | i was using master |
02:53:03 | treeform2 | does the simple hello world works? |
02:53:07 | filwit | yes |
02:53:54 | filwit | btw, you don't have to do --genScript (and I didnt' have to do MAP-D _ANONYMOUS) |
02:54:13 | filwit | -D MAP_ANONYMOUS** |
02:54:37 | filwit | also, you should probably add -O2 or -O3 to your emcc lines |
02:54:40 | treeform2 | http://ishtar.aff2aw.com:9001/p/nimrod-emcc |
02:54:56 | treeform2 | yes -D MAP_ANONYMOUS instead of #define later |
02:55:02 | treeform2 | the lower -d did not work |
02:55:12 | filwit | no, i didn't have to do that at all (it's probably a bug with master) |
02:55:25 | treeform2 | yes i am using master |
02:57:01 | filwit | there, i fixed the instructions a bit |
02:58:51 | filwit | god I can't try devel right now cause of the Nim rename... |
03:01:34 | Varriount | filwit: Huh? |
03:01:52 | * | fowl quit (Ping timeout: 240 seconds) |
03:01:55 | * | fowlmouth joined #nimrod |
03:02:58 | filwit | Varriount: well trying to switch from bigbreak to devel has issues (because of the name change), so I'm just going to reclone Nim into a nim-devel folder |
03:04:40 | * | Francisco joined #nimrod |
03:04:45 | * | Fr4n quit (Ping timeout: 264 seconds) |
03:04:50 | * | Francisco quit (Changing host) |
03:04:50 | * | Francisco joined #nimrod |
03:06:58 | filwit | yeah devel has `inf` defined... bigbreak does not.. i wonder if that was renamed or if it's a bug |
03:07:54 | * | xenagi joined #nimrod |
03:14:26 | filwit | treeform2: cool, it works (and completes in 4.369s vs 2.329s normal) |
03:14:26 | * | flaviu quit (Ping timeout: 276 seconds) |
03:14:52 | filwit | treeform2: now i need to compare a regular Nim JS backend |
03:15:40 | filwit | treeform2: plus i need to render the output to verify that it's actually working correctly |
03:16:30 | treeform2 | cool let me know how that goes |
03:18:04 | * | darkf_ joined #nimrod |
03:21:01 | * | darkf quit (Ping timeout: 272 seconds) |
03:22:46 | * | darkf_ is now known as darkf |
03:32:58 | * | darkf_ joined #nimrod |
03:35:21 | * | Fran__ joined #nimrod |
03:35:32 | * | darkf quit (Ping timeout: 255 seconds) |
03:38:06 | * | Francisco quit (Ping timeout: 252 seconds) |
03:39:01 | * | darkf joined #nimrod |
03:41:07 | * | NimBot_ joined #nimrod |
03:41:12 | filwit | treeform2: http://www.scottlogic.com/blog/2014/03/12/native-code-emscripten-webgl-simmer-gently.html |
03:41:52 | filwit | treeform2: unfortunately it looks like the Nim JS backend is missing timing features, so I'll need to remake those (use Emscriptens) in order to compare performance |
03:41:55 | * | darkf_ quit (Ping timeout: 272 seconds) |
03:42:11 | * | darkf_ joined #nimrod |
03:42:52 | * | NimBot quit (Ping timeout: 252 seconds) |
03:45:05 | * | darkf quit (Ping timeout: 272 seconds) |
03:47:36 | * | darkf_ is now known as darkf |
03:47:52 | * | johnsoft quit (Ping timeout: 240 seconds) |
03:48:19 | * | johnsoft joined #nimrod |
03:56:06 | * | Francisco joined #nimrod |
03:59:02 | * | Fran__ quit (Ping timeout: 245 seconds) |
04:08:50 | * | francisl quit (Ping timeout: 255 seconds) |
04:12:33 | * | Francisco quit (Ping timeout: 264 seconds) |
04:13:08 | * | Francisco joined #nimrod |
04:36:35 | * | Fran__ joined #nimrod |
04:39:22 | * | Francisco quit (Ping timeout: 245 seconds) |
04:52:09 | * | xenagi quit (Read error: Connection reset by peer) |
04:53:53 | * | Fran__ quit (Ping timeout: 276 seconds) |
04:57:55 | * | Fran__ joined #nimrod |
04:58:05 | filwit | treeform2: well i got it rendering to the canvas, but the image isn't correct. So I'm trying to figure out if that the way i'm drawing to the canvas, reading from Emscripten values, or how Emscripten in executing the code. |
04:58:30 | * | adrusi quit (Quit: adrusi) |
05:00:02 | treeform2 | do you ahve a pic? |
05:03:09 | filwit | treeform2: i'll upload it, one sec |
05:05:15 | filwit | treeform2: http://reign-studios.net/philipwitte/nimrod/emcc-raytracer/main.htm |
05:05:31 | filwit | you can find all the source in the parent dir as well |
05:05:44 | filwit | (including the makefile with build commands) |
05:06:09 | filwit | note: might take a second to render, and it logs the time |
05:07:16 | filwit | final output should look like this: https://github.com/zezba9000/RayTraceBenchmark/blob/master/ReferenceImage.jpg |
05:08:07 | filwit | the fact that there's no color and things are spaced odd makes me thing i'm reading from the data wrong (i hope that's it) |
05:09:22 | * | Jesin quit (Ping timeout: 240 seconds) |
05:11:21 | * | Jesin joined #nimrod |
05:13:02 | * | Jesin quit (Max SendQ exceeded) |
05:13:06 | * | treeform2 quit (Remote host closed the connection) |
05:13:38 | * | Jesin joined #nimrod |
05:13:59 | * | Fran__ quit (Ping timeout: 272 seconds) |
05:14:14 | filwit | oh duh... i'm retarded... the incoming image is RGB, not RGBA.. |
05:14:48 | * | Fr4n joined #nimrod |
05:14:50 | * | Fr4n quit (Changing host) |
05:14:50 | * | Fr4n joined #nimrod |
05:25:33 | * | Fr4n quit (Ping timeout: 246 seconds) |
05:26:00 | * | Skrylar quit (Ping timeout: 268 seconds) |
05:35:35 | * | Skrylar joined #nimrod |
05:43:46 | * | Demos_ quit (Read error: Connection reset by peer) |
05:44:33 | * | Ven joined #nimrod |
05:50:51 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
06:02:57 | * | BlaXpirit joined #nimrod |
06:11:51 | * | filwit quit (Quit: Leaving) |
06:13:52 | * | fowlmouth quit (Ping timeout: 240 seconds) |
06:27:22 | * | nande quit (Remote host closed the connection) |
07:10:44 | * | kunev joined #nimrod |
07:37:03 | NimBot | Araq/Nimrod devel 24afab2 Araq [+0 ±1 -0]: Threads work again |
07:58:33 | * | bjz quit (Ping timeout: 260 seconds) |
08:01:26 | * | Trustable joined #nimrod |
08:03:23 | NimBot | Araq/Nimrod devel 46bbae4 Araq [+0 ±1 -0]: fixes #1366 |
08:03:23 | NimBot | Araq/Nimrod devel ff55c48 Araq [+0 ±2 -0]: mostly fixes #1339 |
08:03:23 | NimBot | Araq/Nimrod devel c73142d Araq [+0 ±1 -0]: fixes #1067 |
08:05:20 | * | Fr4n joined #nimrod |
08:20:37 | * | bjz joined #nimrod |
08:23:50 | * | Fr4n quit (Ping timeout: 276 seconds) |
08:30:13 | * | Fr4n joined #nimrod |
08:47:28 | * | Fr4n quit (Quit: Leaving) |
08:49:36 | * | kuzy000_ joined #nimrod |
08:59:33 | * | kunev quit (Quit: ядкова шашма!) |
09:04:22 | * | DiffuseStorm left #nimrod ("Leaving") |
09:05:50 | * | BlaXpirit quit (Quit: Quit Konversation) |
09:07:31 | * | BlaXpirit joined #nimrod |
09:07:53 | * | kunev joined #nimrod |
09:12:17 | * | untitaker quit (Ping timeout: 260 seconds) |
09:18:15 | * | untitaker joined #nimrod |
10:13:19 | * | francisl joined #nimrod |
10:15:17 | * | bjz quit (Quit: Textual IRC Client: www.textualapp.com) |
10:17:42 | * | francisl quit (Ping timeout: 245 seconds) |
10:54:43 | * | Jesin quit (Ping timeout: 272 seconds) |
10:59:42 | * | Jesin joined #nimrod |
11:05:29 | * | Jesin quit (Ping timeout: 272 seconds) |
11:06:03 | * | Jesin joined #nimrod |
11:08:53 | * | Jesin quit (Excess Flood) |
11:10:25 | * | Jesin joined #nimrod |
11:12:19 | * | xcombelle joined #nimrod |
11:12:48 | * | Jesin quit (Max SendQ exceeded) |
11:16:43 | * | Jesin joined #nimrod |
11:36:03 | * | noam_ is now known as noam |
11:54:39 | * | darkf_ joined #nimrod |
11:57:57 | * | darkf quit (Ping timeout: 260 seconds) |
12:13:04 | * | willwillson joined #nimrod |
12:19:10 | EXetoC | Araq: what comment changes exactly? should I be able to comment out a proc argument for example? |
12:26:13 | * | francisl joined #nimrod |
12:30:45 | * | francisl quit (Client Quit) |
12:40:39 | * | darkf_ is now known as darkf |
12:52:11 | EXetoC | will "discard o.find x, y, z" be the equivalent of "discard o.find(x, y, z)" at some point? |
13:00:24 | EXetoC | I assume it will, because it's barely worth using that syntax otherwise |
13:13:23 | * | bjz joined #nimrod |
13:42:49 | * | darkf quit (Quit: Leaving) |
13:55:41 | * | saml joined #nimrod |
14:04:38 | * | francisl joined #nimrod |
14:12:21 | * | Matthias247 joined #nimrod |
14:18:00 | * | Matthias247 quit (Read error: Connection reset by peer) |
14:20:19 | * | adrusi joined #nimrod |
14:45:37 | * | Varriount_ joined #nimrod |
14:47:18 | * | Varriount quit (Ping timeout: 246 seconds) |
14:48:09 | * | bogen quit (Quit: Leaving.) |
15:08:03 | * | Jesin quit (Ping timeout: 272 seconds) |
15:08:09 | francisl | I do I use the flag -p for the compiler ? e.g. nimrod c -p ~/Downloads/jester -r index.nim => failed with (command line(1, 1) Error: argument for command line option expected: '-p') |
15:08:41 | francisl | but nimrod c --path=~/Downloads/jester -r index.nim => work fine |
15:09:19 | * | Jesin joined #nimrod |
15:10:48 | dom96 | there is no -p flag |
15:11:21 | francisl | the compiler help says otherwise |
15:12:34 | francisl | I have version 0.9.4 |
15:12:41 | francisl | Options: |
15:12:42 | francisl | -p, --path:PATH add path to search paths |
15:12:49 | * | Jesin quit (Max SendQ exceeded) |
15:13:56 | willwillson | -p:~/Downloads/jester ? |
15:14:52 | * | Jesin joined #nimrod |
15:17:00 | francisl | ok, thanks, that work |
15:17:50 | francisl | ins’t -p: a weird convention ? I think it’s first unix command I see using this convention |
15:19:22 | * | Jesin quit (Max SendQ exceeded) |
15:20:13 | * | Jesin joined #nimrod |
15:22:35 | willwillson | it confused me as well at first.. not obvious that the single letter flag needs a colon :D |
15:22:58 | * | Jesin quit (Max SendQ exceeded) |
15:24:32 | * | Jesin joined #nimrod |
15:26:39 | francisl | it’s definately doens’t follow the rule of least surprise and I’ll probably not the last one asking this question |
15:30:22 | * | Jesin quit (Ping timeout: 240 seconds) |
15:38:08 | * | adrusi quit (Quit: adrusi) |
15:41:32 | * | Jesin joined #nimrod |
15:42:04 | * | kunev quit (Quit: leaving) |
15:43:45 | * | xcombelle quit (Remote host closed the connection) |
15:54:16 | * | adrusi joined #nimrod |
16:09:34 | * | nande joined #nimrod |
16:10:24 | * | adrusi quit (Quit: adrusi) |
16:18:05 | * | adrusi joined #nimrod |
16:42:24 | Skrylar | francisl: i don't think Araq is a linux user |
16:42:40 | Skrylar | --foo:bar is common in windows commands, Mono's getopt allows both : and = |
16:42:51 | Skrylar | i don't know that nimrod has a getopt yet |
16:43:08 | * | willwillson quit (Ping timeout: 252 seconds) |
16:53:39 | * | adrusi quit (Ping timeout: 246 seconds) |
16:59:21 | * | Jesin quit (Ping timeout: 264 seconds) |
17:02:17 | francisl | Skrylar: I’m a mac user, but the same apply |
17:04:32 | * | q66 joined #nimrod |
17:05:42 | francisl | I don’t know what kind of community nimrod is targeting, but a windows standard on linux/mac/unix will confuse many. getopt would be nice |
17:18:05 | EXetoC | Skrylar: there's a getopt module |
17:21:41 | * | zahary_ joined #nimrod |
17:26:55 | * | Jesin joined #nimrod |
17:31:11 | * | nande quit (Read error: Connection reset by peer) |
17:32:05 | * | adrusi joined #nimrod |
17:37:19 | * | brson joined #nimrod |
17:38:37 | Araq | francisl: I'm a linux user but -p foo requires the option parser to know about which options have an argument |
17:38:53 | Araq | -p:foo is nicer because it can be parsed without symbol lookups |
17:39:50 | * | adrusi quit (Quit: adrusi) |
17:46:03 | * | enquora joined #nimrod |
17:47:23 | * | treeform2 joined #nimrod |
17:49:05 | * | Matthias247 joined #nimrod |
17:52:22 | * | Jesin quit (Ping timeout: 245 seconds) |
17:55:50 | * | Jesin joined #nimrod |
17:57:38 | * | Jesin quit (Max SendQ exceeded) |
17:57:55 | * | adrusi joined #nimrod |
17:58:24 | * | Jesin joined #nimrod |
18:16:53 | francisl | Araq: you are surely right, but it break the rule of least surprise nonetheless. which lead to small anoyance for future nimrod developer. |
18:17:09 | francisl | I can propose to update the help file |
18:17:51 | francisl | just to add the information that single dash parameter need to use : |
18:18:16 | * | treeform2 quit (Remote host closed the connection) |
18:19:02 | Araq | francisl: dunno if people will read this. better patch the option parser instead |
18:19:22 | Araq | it uses some deprecated module anyway |
18:19:50 | Araq | however, it's not easy to change, there is lots of subtle stuff |
18:20:01 | * | Matthias247 quit (Read error: Connection reset by peer) |
18:21:17 | NimBot | Araq/Nimrod devel 1791ab6 Araq [+0 ±2 -0]: fixes #665 |
18:21:17 | NimBot | Araq/Nimrod devel 63548f0 Araq [+0 ±1 -0]: manual merge of #1526 |
18:21:18 | francisl | maybe the ROI don’t worth it for the moment |
18:21:29 | Araq | indeed |
18:22:23 | Araq | but ok, let me patch the help output |
18:35:32 | * | silven quit (Remote host closed the connection) |
18:37:07 | * | Trustable quit (Quit: Leaving) |
18:37:21 | * | willwillson joined #nimrod |
18:38:49 | * | silven joined #nimrod |
18:58:06 | * | adrusi quit (Quit: adrusi) |
19:06:54 | * | Jesin quit (Quit: Leaving) |
19:34:12 | Araq | ping Varriount_ |
19:37:08 | * | flaviu joined #nimrod |
19:40:14 | * | johnsoft quit (Ping timeout: 252 seconds) |
19:40:15 | * | saml quit (Ping timeout: 252 seconds) |
19:40:17 | * | adrusi joined #nimrod |
19:40:39 | * | saml joined #nimrod |
19:40:46 | * | johnsoft joined #nimrod |
19:43:15 | * | flaviu quit (Remote host closed the connection) |
19:53:50 | EXetoC | C macros for epic inlineiness!!!11 |
19:54:27 | EXetoC | so what libs be needing? I'll work on msgpack again, because people have been asking about that |
19:58:48 | Araq | EXetoC: this is fine, but we also need a "release manager" |
19:59:46 | Araq | aka a core developer |
20:00:15 | Araq | there is plenty of things you can do to help us even the compiler's source code scares you |
20:01:34 | EXetoC | is that an attempt at directing me towards simpler things? :p |
20:01:43 | EXetoC | I'll consider it |
20:03:42 | Araq | not simpler, different :P |
20:08:31 | * | Ven joined #nimrod |
20:08:33 | * | Ven quit (Client Quit) |
20:13:49 | * | q66[lap] quit (Read error: Connection reset by peer) |
20:14:21 | * | q66[lap] joined #nimrod |
20:41:12 | * | filwit joined #nimrod |
20:42:10 | filwit | treeform's not around eh? :\ |
20:42:52 | filwit | Araq: did you see the Nim -> EMCC ray-tracer: http://reign-studios.net/philipwitte/nimrod/emcc-raytracer/main.htm |
20:43:26 | filwit | Araq: the output (which is incorrect) is complete different if I compile with --gc:none |
20:44:22 | filwit | Araq: it also runs much faster, but the output is incorrect in both situations, so I'm not sure if that's accurate |
20:46:12 | filwit | Araq: either way, I'm pretty impressed with the performance overall (better than I was expecting), so if/when Nim eventually targets EMCC correctly that will be pretty awesome (considering they also have a built-in SDL/GL -> WebGL framework which should make porting my stuff over easy). |
20:46:41 | Araq | filwit: the js codegen seems to be quite unusable ... :-/ |
20:46:59 | Araq | I'll add some note to its docs |
20:47:12 | filwit | Araq: I haven't tried the JS codegen yet (because Times is unsupported there) |
20:47:24 | Araq | hu? |
20:47:28 | * | Matthias247 joined #nimrod |
20:47:40 | Araq | what do you mean then by "the output is incorrect"? |
20:47:43 | filwit | Araq: I meant tried the Raytracer with the JS codegen. I've only tried it with EMCC |
20:48:09 | Araq | yes. so emcc is broken? |
20:48:13 | filwit | Araq: the output is supposed to look like this: https://github.com/zezba9000/RayTraceBenchmark/blob/master/ReferenceImage.jpg |
20:49:10 | filwit | Araq: i'm not sure exactly what part of the whole process is messing things up, but note that if I compile the Nim code with --gc:none the output is completely different than with regular GC |
20:49:46 | dom96 | hey filwit |
20:49:54 | dom96 | got the forum design yet? I'm curious to see it |
20:50:00 | filwit | (only on the EMCC version of course, Native runs just great with --gc:none and doesn't even give any performance boost... yay for a great GC :)) |
20:50:28 | filwit | hey dom96: still working on it, sorry (which is why i'm here tho)... got a bit distracted last night. |
20:50:36 | dom96 | np |
20:53:17 | filwit | Araq: what happened to `inf` in bigbreak btw? |
20:53:34 | filwit | er.. wait.. you probably just made that capital huh... didn't try that. |
20:55:42 | Araq | filwit: it's now Inf? dunno |
20:56:15 | filwit | Araq: yeah it's Inf now apparently... which I don't like (just for the record) |
20:56:55 | EXetoC | it's not sort of like a constant? |
20:57:13 | EXetoC | indeed it is |
20:58:31 | filwit | yeah... which I usually make PascalCase, so I guess i'm being inconsistent with the dislike for that... but I've always thought of 'inf' more like 'nil' |
20:59:18 | filwit | or 'void'... you know, more of a "built-in endpoint" |
20:59:22 | dom96 | is the convention for constants PascalCase? |
20:59:34 | filwit | i dunno |
20:59:42 | filwit | i don't think so |
21:00:11 | EXetoC | the endpoint to a black hole |
21:00:57 | EXetoC | that doesn't make sense |
21:02:48 | filwit | well ultimately I think constants should be camelCase but be highlighted differently in the syntax... which is really the only reason I have been using PascalCase ones (so that my syntax highlighter colors them differently) |
21:03:12 | filwit | but i'm not sure I even like my choice in that right now, so yeah.. |
21:04:16 | Skrylar | dom96: i seem to recall that araq said constants should be fullcaps |
21:04:23 | Skrylar | at least he said this to me once |
21:04:38 | Skrylar | also nitpick: i hate when people use 'void' as a type |
21:04:54 | EXetoC | didn't he say he disliked it because it's like yelling? |
21:05:11 | filwit | yeah ALLCAPS is horrible for anything IMO |
21:05:13 | Skrylar | i donno. but its normal for constants to be fullcaps in many languages |
21:05:17 | EXetoC | but to me it's just another style used for distinction |
21:05:20 | Araq | constants are mostly PascalCase except when they are not |
21:05:42 | Araq | I consider ALLCAPS an artifact of the C preprocessor |
21:05:47 | Araq | and thus barbaric |
21:05:52 | Araq | but |
21:05:59 | EXetoC | I don't care where it comes from |
21:06:00 | Skrylar | Ruby uses allcaps as well from what I recall, and $ for globals |
21:06:05 | Araq | they can be acceptable in wrappers |
21:06:11 | Skrylar | Lisp has +constants+ and *globals* |
21:06:30 | filwit | Araq: which would you prefer for constants Pascal or camelCase ? (i'll got through the compiler and fix any odd-man-outs and make a PR if you want) |
21:06:35 | Skrylar | some people don't like the line noise but i think "$foo" is very obviously a global scope versus "foo" which could come from anywhere |
21:07:34 | EXetoC | now they might clash with types, but the partial sensitivity doesn't change anything in that regard because of the change to the type name style |
21:08:45 | EXetoC | might be rare though, and you can always append or prepend 'const' |
21:12:35 | Araq | EXetoC: it IS very rare |
21:12:53 | Araq | in fact ... I can't even think of an example where this happens |
21:13:08 | * | io2 joined #nimrod |
21:13:22 | Araq | Skrylar: $global is fine but also annoying when you have to use the global very often |
21:15:44 | * | kuzy000_ quit (Ping timeout: 255 seconds) |
21:15:46 | filwit | i can't think of any reason using $constant would be a good thing... |
21:19:31 | dom96 | I still would like to allow PascalCase only for types. |
21:21:21 | filwit | dom96: i agree... if you're talking about a 'standard' (not an actual parser rule) |
21:22:15 | EXetoC | how many people are going to diverge from that anyway? |
21:22:34 | filwit | dom96: but i like lower-case "core" types (int, float, etc.. even string) and don't think there would be any reason to limit others from choosing what they like best (in their own code) |
21:22:50 | EXetoC | and aren't these lenient rules a way to allow people to easily use their own style? |
21:23:04 | EXetoC | has our position on this changed? |
21:25:04 | filwit | EXetoC: exactly. I'm completely for partial case-sensitivity (because it fixes all issues with symbol conflict) but I still love that Nim allows you to be pretty free with writing to your preference. |
21:25:14 | EXetoC | and then there's code generated with tools such as c2nim |
21:27:26 | EXetoC | and then you have primitive types, though you can always such rules to be overriden |
21:33:20 | * | Matthias247 quit (Read error: Connection reset by peer) |
21:39:51 | * | filwit quit (Quit: Leaving) |
21:49:35 | * | bjz quit (Ping timeout: 272 seconds) |
21:52:24 | * | saml quit (Quit: Leaving) |
22:10:25 | * | io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist) |
22:11:56 | * | nande joined #nimrod |
22:19:46 | * | bjz joined #nimrod |
22:35:07 | * | francisl quit (Quit: francisl) |
22:41:22 | * | adrusi quit (Ping timeout: 252 seconds) |
22:47:02 | * | Trixar_za quit (K-Lined) |
22:49:21 | * | flaviu joined #nimrod |
22:50:02 | * | Trixar_za joined #nimrod |
22:50:22 | * | BlaXpirit quit (Ping timeout: 240 seconds) |
22:57:28 | * | Fr4n joined #nimrod |
22:59:34 | * | enquora quit (Quit: enquora) |
23:11:53 | * | darkf joined #nimrod |
23:17:38 | * | Demos joined #nimrod |
23:17:58 | Demos | does babel work with bigbreak? |
23:17:58 | * | Demos is now known as Guest97271 |
23:18:27 | * | Guest97271 quit (Client Quit) |
23:18:34 | * | Demos_ joined #nimrod |
23:18:58 | Araq | Demos_: no idea |
23:19:19 | Demos_ | I got an error when trying to compile base64 from the stdlib, I kinda doubt it does |
23:19:42 | Araq | base64 should work with bigbreak though |
23:19:51 | Araq | I remember fixing it |
23:20:07 | Demos_ | I just bootstrapped today |
23:20:38 | Araq | well then fix it and make a PR |
23:20:46 | Demos_ | k |
23:25:34 | * | adrusi joined #nimrod |
23:26:41 | Demos_ | hm the latest compiler from devel can not compile bigbreak, which is annoying |
23:33:31 | Araq | why not? |
23:33:53 | Demos_ | invalid pragma: depricated |
23:34:10 | Araq | ah |
23:34:12 | Araq | well |
23:34:25 | Araq | I guess I should port this back |
23:39:22 | * | Francisco joined #nimrod |
23:41:58 | * | Fr4n quit (Ping timeout: 263 seconds) |
23:43:12 | * | bjz quit (Ping timeout: 245 seconds) |