00:15:48 | * | fowl quit (Ping timeout: 248 seconds) |
00:21:21 | * | q66 quit (Quit: Quit) |
01:20:18 | * | fowl joined #nimrod |
01:28:15 | * | fowl quit (Read error: Connection reset by peer) |
01:30:17 | * | fowl joined #nimrod |
01:48:22 | * | fowl quit (Quit: Leaving) |
02:13:09 | * | XAMPP-8 quit (Ping timeout: 248 seconds) |
02:52:21 | * | Anaphaxeton is now known as Steve_Unemployme |
03:13:05 | * | comex quit (*.net *.split) |
03:13:07 | * | silven quit (*.net *.split) |
03:13:07 | * | Roin quit (*.net *.split) |
03:13:10 | * | mal`` quit (*.net *.split) |
03:13:11 | * | apotheon quit (*.net *.split) |
03:13:11 | * | Steve_Unemployme quit (*.net *.split) |
03:13:12 | * | Amrykid quit (*.net *.split) |
03:13:12 | * | Araq quit (*.net *.split) |
03:13:12 | * | dom96 quit (*.net *.split) |
03:13:12 | * | reactormonk quit (*.net *.split) |
03:26:36 | * | Anaphaxeton joined #nimrod |
04:25:34 | * | reactormonk joined #nimrod |
04:25:47 | * | apotheon joined #nimrod |
04:26:00 | * | Amrykid joined #nimrod |
04:26:00 | * | Araq joined #nimrod |
04:26:00 | * | dom96 joined #nimrod |
04:26:10 | * | comex joined #nimrod |
04:26:41 | * | silven joined #nimrod |
04:26:41 | * | Roin joined #nimrod |
04:27:39 | * | mal`` joined #nimrod |
07:14:38 | * | gour joined #nimrod |
08:20:24 | * | Araq_ joined #nimrod |
08:24:01 | * | Araq_ quit (Client Quit) |
10:52:38 | * | gour quit (Disconnected by services) |
10:52:40 | * | gour_ joined #nimrod |
12:04:48 | * | Araq_ joined #nimrod |
12:06:07 | Araq_ | gour_: check this out, it looks interesting and easy to wrap: http://otk.sourceforge.net/ |
12:28:29 | Araq_ | see you later |
12:28:32 | * | Araq_ quit (Quit: ChatZilla 0.9.89 [Firefox 18.0.2/20130201065344]) |
13:21:27 | gour_ | Araq: thanks...well, if there are no qt/wx for nimrod, (maybe) gtk2/3 are good-enough |
13:42:19 | * | gour_ is now known as gour |
13:57:20 | * | q66 joined #nimrod |
14:03:06 | * | Boscop quit (Ping timeout: 276 seconds) |
14:37:04 | * | Anaphaxeton quit (Quit: Αποχώρησε) |
15:04:58 | * | Anaphaxeton joined #nimrod |
15:55:07 | * | zahary_ quit (Ping timeout: 244 seconds) |
15:59:47 | * | zahary joined #nimrod |
16:08:02 | * | FreeArtMan joined #nimrod |
16:48:50 | * | _ponce quit (Remote host closed the connection) |
16:49:07 | * | _ponce joined #nimrod |
17:56:07 | gour | Anaphaxeton: nice post - http://calhoun137.blogspot.com/2013/02/the-difference-between-great-programmer.html - for you |
17:56:27 | Anaphaxeton | hi gour |
17:56:29 | Anaphaxeton | and thanks |
18:00:44 | reactormonk | Araq, yeah, yeah, you want to excuse your single-letter variables :-P |
18:06:25 | gour | lol |
18:06:53 | reactormonk | gour, let's see on how to release nimrod-mode to marmalade |
18:07:47 | gour | i was too occupied the whole day and still haven't installed nimrod-mode...hopefully later |
18:11:24 | reactormonk | gour, http://marmalade-repo.org/packages/nimrod-mode/0.1.1 |
18:11:44 | reactormonk | gour, you need to have 'nimrod' in your path iirc |
18:13:25 | gour | cool...i recently returned back to emacs from vim, but haven't used marmelade yet |
18:13:28 | reactormonk | gour, or you can give it a path (defcustom nimrod-command) |
18:13:50 | gour | i'll put it in the path |
18:13:57 | reactormonk | emacs 24? |
18:14:01 | reactormonk | http://sprunge.us/jOTX |
18:15:36 | gour | yes, 24.2.1 (sid) |
18:16:44 | reactormonk | copy the above to your init.el |
18:20:03 | gour | reactormonk: ok, but harder work is to, once again, evaluate and choose the language for our project from the {ada,nimrod,ocaml} set :-) |
18:22:08 | Araq | reactormonk: which 1 letter variable causes trouble? |
18:27:06 | reactormonk | Araq, just trolling |
18:27:20 | Araq | alright |
18:57:25 | * | Anaphaxeton quit (Quit: Αποχώρησε) |
18:59:14 | * | XAMPP quit (Ping timeout: 272 seconds) |
19:08:45 | reactormonk | Araq, got me a few pointers on how to implement repr in JS? |
19:09:06 | Araq | copy the other repr implementation? |
19:09:12 | reactormonk | from? |
19:10:24 | Araq | lib/system/repr.nim |
19:10:58 | Araq | but I don't get your problem tbh |
19:11:13 | reactormonk | context? |
19:11:24 | Araq | you can use an 'asm' statement and implement it in JS |
19:11:37 | Araq | you can easily iterate over every field of an object in JS |
19:11:40 | reactormonk | ... duh. |
19:12:07 | Araq | what do you need it for? debugging I suppose? |
19:12:16 | reactormonk | Yes. |
19:12:45 | reactormonk | well, I could just use a JSON lib :-) |
19:14:53 | Araq | well the native repr implementation is a bit complex because it has to handle cycles |
19:15:13 | reactormonk | Hm, right |
19:16:06 | * | shevy quit (Ping timeout: 244 seconds) |
19:16:12 | gour | reactormonk: any idea http://pastebin.com/hSx4w8Wi ? |
19:16:15 | reactormonk | What's the difference between r"" and """ """ btw? |
19:16:27 | reactormonk | gour, uh, my fault. Install auto-complete |
19:18:46 | reactormonk | Interesting. My Package-Requres header crashed marmalade |
19:20:37 | Araq | reactormonk: """ """ can span multiple lines |
19:20:52 | reactormonk | the one is raw string the other? |
19:21:50 | Araq | both are raw string literals |
19:23:38 | Araq | so zahary ... tried the m&s GC for idetools? |
19:29:45 | * | shevy joined #nimrod |
19:30:03 | reactormonk | gour, should work now. |
19:33:51 | reactormonk | (aka update the package) |
19:34:10 | reactormonk | Araq, apparently my algorithm doesn't do what it should :-( |
19:34:30 | reactormonk | Let's write some tests... |
19:58:12 | * | gradha joined #nimrod |
19:58:14 | * | XAMPP joined #nimrod |
20:03:48 | * | Zerathul joined #nimrod |
20:07:30 | * | Zerathul_ joined #nimrod |
20:09:02 | * | Zerathul quit (Ping timeout: 256 seconds) |
20:09:10 | * | Zerathul_ is now known as Zerathul |
20:20:01 | * | Zerathul_ joined #nimrod |
20:20:02 | gour | reactormonk: is it possible to uninstall package as well? |
20:20:57 | * | Zerathul quit (Ping timeout: 256 seconds) |
20:21:11 | * | Zerathul_ is now known as Zerathul |
20:22:55 | reactormonk | gour, should be |
20:23:41 | gour | reactormonk: now i've installed it and loaded one example *.nim file, but not syntax high. ? |
20:24:29 | gour | *no |
20:25:03 | reactormonk | gour, yep, because it fails to load. |
20:25:16 | reactormonk | gour, did you do package-list-packages and update it? |
20:25:36 | gour | reactormonk: i've installed 0.1.2 |
20:25:58 | reactormonk | gour, did you require nimrod-mode? |
20:26:18 | gour | nope...only that is required? |
20:27:07 | reactormonk | shouldn't be. |
20:27:47 | gour | good. it works |
20:27:54 | reactormonk | \o/ |
20:29:11 | reactormonk | ⚀⚁⚂⚃⚄⚅ wierd things in unicode... |
20:29:20 | gour | so, nimrod is, somehow on par with ada & ocaml in terms of 'major' mode...of course, not the same level, but something |
20:30:34 | reactormonk | The code completion should work - it's not fast yet because I didn't implement the nimrod serve part. |
20:31:36 | reactormonk | Araq, shouldn't the code "1 |" where | is the cursor return something? |
20:32:10 | reactormonk | gour, if you don't find something, I'm open to suggestions. |
20:33:17 | gour | reactormonk: ok. np |
20:33:36 | gour | any ex-ada user here (besides Araq)? |
20:36:50 | reactormonk | gour, want an uncompromized opinion? ^^ |
20:37:14 | gour | reactormonk: any one is welcome |
20:54:02 | * | Anaphaxeton joined #nimrod |
20:55:27 | gour | reactormonk: what do you think aobut http://batsov.com/articles/2012/02/19/package-management-in-emacs-the-good-the-bad-and-the-ugly/ and el-get? |
20:58:48 | reactormonk | gour, interesting. |
21:06:28 | * | gradha quit (Quit: bbl, have youtube videos to watch) |
21:10:35 | * | Anaphaxeton quit (Remote host closed the connection) |
21:15:18 | * | Anaphaxeton joined #nimrod |
21:19:50 | gour | reactormonk: how should code completion in the nimrod-mode work? i'm typing http://nimrod-code.org/, but nothing completes? |
21:20:52 | gour | *demo from homepage |
21:22:25 | * | Anaphaxeton quit (Remote host closed the connection) |
21:22:55 | reactormonk | gour, "foobar".<tab> works here |
21:23:16 | reactormonk | you need to type the dot |
21:23:21 | gour | ahh |
21:23:38 | reactormonk | I could hack around it if you wish so |
21:23:55 | reactormonk | But that would be annoying because you can also use tab to indent stuff |
21:25:30 | gour | i see the logic to type ., but still, that demo does not work here...can you provide real-world example? |
21:27:09 | reactormonk | gour, well, take the example from the homepage and go behind split and type . and <tab> |
21:27:40 | reactormonk | you could go browse around in aporia, but that one is slow (<1s) because I didn't implement nimrod serve yet |
21:28:49 | gour | it does not work here |
21:28:59 | * | rking quit (Quit: WeeChat 0.4.0-rc1) |
21:30:39 | reactormonk | argh. |
21:33:08 | gour | indentation works, afaict |
21:33:40 | reactormonk | gour, any error messages? |
21:33:46 | gour | nope |
21:33:59 | reactormonk | contents of the buffer *nimrod-idetools-suggest* ? |
21:35:18 | gour | no such buffer |
21:36:31 | reactormonk | ou |
21:37:58 | reactormonk | go to a completion point ("foobar".) and invoke M-x ac-complete-nimrod-completions |
21:39:28 | reactormonk | RET |
21:41:35 | gour | i get: Wrote /tmp/nimrod-suggest8520Anr/t.nim but there is no /tmp/nimrod-suggest*/ folder |
21:42:04 | gour | /tmp/nimrod-idetools-stderr is also empty |
21:42:23 | reactormonk | well, the tmpfolder is destroyed after use |
21:42:38 | gour | i see |
21:43:03 | reactormonk | t.nim? not tmp.nim ? |
21:43:20 | gour | t.nim is the name of my nimrod source file |
21:43:27 | reactormonk | ... do you use nimrod off git? |
21:44:15 | gour | yep |
21:44:55 | gour | Nimrod Compiler Version 0.9.1 (2013-02-07) [Linux: amd64] |
21:47:25 | reactormonk | echo '"foobar".' > foo.nim && nimrod idetools --suggest --track:foo.nim,1,9 foo.nim |
21:47:39 | reactormonk | should give you a shitload of output |
21:49:05 | gour | SIGSEGV: Illegal storage access. (Attempt to read from nil?) |
21:49:20 | reactormonk | there we go |
21:50:13 | gour | who is the culprit? |
21:50:27 | reactormonk | lemme recompile nimrod and see |
21:50:33 | gour | ok |
21:51:26 | reactormonk | still works here *scratches head* |
21:51:48 | reactormonk | git pull && ./koch boot -d:release -d:withUpdate -d:useGnuReadline # could you recompile for me? |
21:51:50 | dom96 | gour: Do you get a stack trace? |
21:52:04 | gour | dom96: nope |
21:52:47 | dom96 | just execute ./koch boot |
21:53:07 | dom96 | My guess is you just did ./build.sh without doing ./koch boot? |
21:53:48 | gour | no, i followed github instrucitons |
21:53:53 | gour | ahh...typos |
21:54:03 | gour | rebuilt and tried...same result |
21:54:29 | dom96 | you should now get a stack trace |
21:54:43 | gour | i don't |
21:54:50 | dom96 | unless you did what reactormonk suggested |
21:55:11 | gour | i did what reactormonk asked me to do |
21:55:31 | gour | and :release probably does not generate stack |
21:55:38 | reactormonk | git pull && ./koch boot -d:withUpdate -d:useGnuReadline # could you recompile for me? |
21:55:45 | reactormonk | now you have a stacktrace :-) |
21:55:45 | dom96 | yes. |
21:56:00 | dom96 | That's why I suggested you do it without -d:release :) |
21:58:14 | gour | dom96: you like traces? here is the one - http://pastebin.com/wx5aj2DJ |
21:58:29 | gour | maybe Araq will stop wathing youtube now :-D |
21:58:34 | gour | *watching |
22:00:10 | reactormonk | gour, git checkout 3ad9b2ea6bb4260d57973d9618871acae80d0ed6 ? |
22:00:26 | Araq | gour: let me guess ... mac OS X? |
22:00:37 | gour | Araq: no, debian sid |
22:00:54 | gour | x86_64 |
22:01:12 | dom96 | gour: what's your gcc version? |
22:01:14 | Araq | interesting, did 'koch boot' work? |
22:02:28 | gour | gcc version 4.7.2 (Debian 4.7.2-5) |
22:02:51 | gour | Araq: i got no errors by following github steps |
22:02:59 | dom96 | hrm, that's weird. |
22:03:11 | Araq | well apparently it's a bug plus an installation problem |
22:04:56 | Araq | gour: rename lib/system.nim to lib/system.backup.nim please |
22:05:05 | gour | reactormonk: here is the checkout-paste: http://pastebin.com/bVscZNKY |
22:05:11 | Araq | and execute the idetools command again |
22:05:21 | gour | Araq: which version should i use? |
22:05:24 | gour | latest pull |
22:06:10 | Araq | I think so |
22:06:54 | Araq | ah no worries, it crashes on my machine too ;-) |
22:07:28 | reactormonk | Araq, what's your checkout? |
22:07:59 | Araq | the latest obviously |
22:08:10 | reactormonk | Araq, ... gimme sha |
22:10:09 | gour | it seems to be the same - http://pastebin.com/UwiCxtbf |
22:10:38 | Araq | apparently idetools doesn't load system.nim anymore |
22:10:51 | Araq | blame zahary ;-) |
22:11:44 | dom96 | huh, it works for me. |
22:12:03 | gour | i hope something is more clear to you 'cause i'm finished (aka tired) for today |
22:12:04 | reactormonk | how is nimrod serve supposed to work btw? |
22:12:25 | reactormonk | Araq, then why does it work here? :-( |
22:14:36 | Araq | reactormonk: I don't know yet; commit 3ad9b2ea6bb4260d57973d9618871acae80d0ed6 |
22:14:58 | reactormonk | Araq, same here |
22:16:33 | Araq | reactormonk: 32 or 64 bit machine? |
22:16:38 | Araq | dom96: same question |
22:16:42 | reactormonk | 64 |
22:16:55 | dom96 | 64 |
22:17:02 | reactormonk | gour, thx for finding the bug :-) |
22:17:08 | Araq | hrm |
22:17:23 | Araq | how come it works for 2 and fails for 2? |
22:17:33 | Araq | all using 64bit linux ... strange |
22:19:41 | gour | i'll bet at home tomorrow, not going anywhere...so can possibly help...now --> sleep |
22:19:58 | Araq | alright, good night |
22:20:08 | gour | 'night |
22:20:12 | * | gour quit (Quit: WeeChat 0.4.0) |
22:21:44 | reactormonk | sha1sum nimrod |
22:21:47 | reactormonk | 28dd18af41b468ce44c45667720094a15b865521 nimrod |
22:21:54 | reactormonk | I compiled with gnureadline |
22:22:12 | reactormonk | ./build.sh && ./koch boot -d:release -d:withUpdate -d:useGnuReadline && echo '"foobar".' > /tmp/foo.nim && nimrod idetools --suggest --track:/tmp/foo.nim,1,9 /tmp/foo.nim |
22:22:33 | reactormonk | ehh wait. not gonna help |
22:22:45 | reactormonk | anyway, let's abuse the cluster I have access to |
22:24:32 | reactormonk | Araq, couldn't you, like store the downloads somewhere else outside the git repo and include a shaX sum in the repo? |
22:24:44 | Araq | nimbuild? |
22:24:58 | reactormonk | e.g. |
22:25:30 | Araq | no worries, I can reproduce it and have some idea what causes it |
22:25:50 | Araq | but I'm working on something else and don't want to be distracted |
22:25:59 | reactormonk | oke |
22:29:51 | reactormonk | Araq, works on new clone |
22:43:03 | reactormonk | aaaand unittest doesn't work for the js target |
22:47:04 | Araq | reactormonk: use 'doAssert' instead ;-) |
22:47:14 | reactormonk | Araq, nah, I'll hack it |
22:47:23 | reactormonk | Araq, defined() what for JS output? |
22:47:33 | reactormonk | ECMAScript |
22:49:17 | Araq | yes |
22:51:26 | reactormonk | oh, there's elif |
22:54:48 | * | FreeArtMan quit (Ping timeout: 276 seconds) |
23:08:18 | reactormonk | what's `bind` inside a template? |
23:11:03 | Araq | look it up |
23:15:29 | reactormonk | why is 'quit' defined in JS? O.o |
23:23:04 | reactormonk | Hint: operation successful (7326 lines compiled; 0.096 sec total; 8.819MB) [SuccessX] |
23:23:10 | reactormonk | echo $? |
23:23:17 | reactormonk | #%&!!*% |
23:23:22 | reactormonk | => 1 |
23:23:28 | reactormonk | ... WTF? |
23:24:00 | reactormonk | WTF does nimrod js return 1 when the compilation is successful? |
23:25:33 | Araq | dunno |
23:25:38 | Araq | bug I guess |
23:27:37 | reactormonk | Sucks. I care about the exit status :-( |
23:28:12 | reactormonk | not easy to reproduce |
23:30:20 | reactormonk | let's reduce |
23:31:13 | Araq | do you use 'nimrod i' ? |
23:31:15 | reactormonk | Araq, oh, I import a module more than once |
23:33:10 | reactormonk | nopw |
23:33:24 | reactormonk | check(positionToGeometry(makeTile(1000,1000,500,500), makeRect(0,0,1000,1000)) == makeRect(500,500,500,500)) triggers it... let's see |
23:39:01 | Araq | there is a bug with 'compiles' |
23:40:02 | Araq | edit compiler/nimrod.nim please |
23:40:11 | Araq | line 80: replace with: |
23:40:47 | Araq | quit(int8(msgs.gErrorCounter > 0)) |
23:41:20 | reactormonk | \o/ |
23:42:35 | reactormonk | huh. SyntaxError from the JS side |
23:42:44 | reactormonk | checkpoint_28605(cstrToNimstr("tests.nim(5,38): Check failed: makeRect(500, 500, 500, 500) == " |
23:42:46 | reactormonk | "makeRect(500, 500, 500, 500)")); |
23:44:46 | reactormonk | Looks like a multiline problem. Does C allow this? |
23:46:22 | reactormonk | http://sprunge.us/OQWj produces http://sprunge.us/DeLQ |
23:47:08 | Araq | lol |
23:47:36 | Araq | yeah C does allow this and some compilers have a max line restriction ... |
23:47:45 | Araq | so the JS codegen does that as well ... XD |
23:47:59 | reactormonk | o/*X_o |
23:48:17 | reactormonk | :-( |
23:48:53 | Araq | fix it |
23:48:59 | reactormonk | where? |
23:50:12 | Araq | ecmasgen.nim, replace makeCString with strutils.escape |
23:50:30 | Araq | if strutils.escape does the right thing ;-) |
23:50:42 | reactormonk | yep, I found makeCString so far |
23:51:13 | reactormonk | msgs.nim:proc makeCString*(s: string): PRope = |
23:51:25 | reactormonk | ... or I could just redefine it? |
23:52:18 | reactormonk | proc makeCString = strutils.escape # won't work I Assume |