<<08-02-2013>>

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:07Araq_gour_: check this out, it looks interesting and easy to wrap: http://otk.sourceforge.net/
12:28:29Araq_see you later
12:28:32*Araq_ quit (Quit: ChatZilla 0.9.89 [Firefox 18.0.2/20130201065344])
13:21:27gour_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:07gourAnaphaxeton: nice post - http://calhoun137.blogspot.com/2013/02/the-difference-between-great-programmer.html - for you
17:56:27Anaphaxetonhi gour
17:56:29Anaphaxetonand thanks
18:00:44reactormonkAraq, yeah, yeah, you want to excuse your single-letter variables :-P
18:06:25gourlol
18:06:53reactormonkgour, let's see on how to release nimrod-mode to marmalade
18:07:47gouri was too occupied the whole day and still haven't installed nimrod-mode...hopefully later
18:11:24reactormonkgour, http://marmalade-repo.org/packages/nimrod-mode/0.1.1
18:11:44reactormonkgour, you need to have 'nimrod' in your path iirc
18:13:25gourcool...i recently returned back to emacs from vim, but haven't used marmelade yet
18:13:28reactormonkgour, or you can give it a path (defcustom nimrod-command)
18:13:50gouri'll put it in the path
18:13:57reactormonkemacs 24?
18:14:01reactormonk http://sprunge.us/jOTX
18:15:36gouryes, 24.2.1 (sid)
18:16:44reactormonkcopy the above to your init.el
18:20:03gourreactormonk: ok, but harder work is to, once again, evaluate and choose the language for our project from the {ada,nimrod,ocaml} set :-)
18:22:08Araqreactormonk: which 1 letter variable causes trouble?
18:27:06reactormonkAraq, just trolling
18:27:20Araqalright
18:57:25*Anaphaxeton quit (Quit: Αποχώρησε)
18:59:14*XAMPP quit (Ping timeout: 272 seconds)
19:08:45reactormonkAraq, got me a few pointers on how to implement repr in JS?
19:09:06Araqcopy the other repr implementation?
19:09:12reactormonkfrom?
19:10:24Araqlib/system/repr.nim
19:10:58Araqbut I don't get your problem tbh
19:11:13reactormonkcontext?
19:11:24Araqyou can use an 'asm' statement and implement it in JS
19:11:37Araqyou can easily iterate over every field of an object in JS
19:11:40reactormonk... duh.
19:12:07Araqwhat do you need it for? debugging I suppose?
19:12:16reactormonkYes.
19:12:45reactormonkwell, I could just use a JSON lib :-)
19:14:53Araqwell the native repr implementation is a bit complex because it has to handle cycles
19:15:13reactormonkHm, right
19:16:06*shevy quit (Ping timeout: 244 seconds)
19:16:12gourreactormonk: any idea http://pastebin.com/hSx4w8Wi ?
19:16:15reactormonkWhat's the difference between r"" and """ """ btw?
19:16:27reactormonkgour, uh, my fault. Install auto-complete
19:18:46reactormonkInteresting. My Package-Requres header crashed marmalade
19:20:37Araqreactormonk: """ """ can span multiple lines
19:20:52reactormonkthe one is raw string the other?
19:21:50Araqboth are raw string literals
19:23:38Araqso zahary ... tried the m&s GC for idetools?
19:29:45*shevy joined #nimrod
19:30:03reactormonkgour, should work now.
19:33:51reactormonk(aka update the package)
19:34:10reactormonkAraq, apparently my algorithm doesn't do what it should :-(
19:34:30reactormonkLet'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:02gourreactormonk: 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:55reactormonkgour, should be
20:23:41gourreactormonk: now i've installed it and loaded one example *.nim file, but not syntax high. ?
20:24:29gour*no
20:25:03reactormonkgour, yep, because it fails to load.
20:25:16reactormonkgour, did you do package-list-packages and update it?
20:25:36gourreactormonk: i've installed 0.1.2
20:25:58reactormonkgour, did you require nimrod-mode?
20:26:18gournope...only that is required?
20:27:07reactormonkshouldn't be.
20:27:47gourgood. it works
20:27:54reactormonk\o/
20:29:11reactormonk⚀⚁⚂⚃⚄⚅ wierd things in unicode...
20:29:20gourso, nimrod is, somehow on par with ada & ocaml in terms of 'major' mode...of course, not the same level, but something
20:30:34reactormonkThe code completion should work - it's not fast yet because I didn't implement the nimrod serve part.
20:31:36reactormonkAraq, shouldn't the code "1 |" where | is the cursor return something?
20:32:10reactormonkgour, if you don't find something, I'm open to suggestions.
20:33:17gourreactormonk: ok. np
20:33:36gourany ex-ada user here (besides Araq)?
20:36:50reactormonkgour, want an uncompromized opinion? ^^
20:37:14gourreactormonk: any one is welcome
20:54:02*Anaphaxeton joined #nimrod
20:55:27gourreactormonk: 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:48reactormonkgour, 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:50gourreactormonk: how should code completion in the nimrod-mode work? i'm typing http://nimrod-code.org/, but nothing completes?
21:20:52gour*demo from homepage
21:22:25*Anaphaxeton quit (Remote host closed the connection)
21:22:55reactormonkgour, "foobar".<tab> works here
21:23:16reactormonkyou need to type the dot
21:23:21gourahh
21:23:38reactormonkI could hack around it if you wish so
21:23:55reactormonkBut that would be annoying because you can also use tab to indent stuff
21:25:30gouri see the logic to type ., but still, that demo does not work here...can you provide real-world example?
21:27:09reactormonkgour, well, take the example from the homepage and go behind split and type . and <tab>
21:27:40reactormonkyou could go browse around in aporia, but that one is slow (<1s) because I didn't implement nimrod serve yet
21:28:49gourit does not work here
21:28:59*rking quit (Quit: WeeChat 0.4.0-rc1)
21:30:39reactormonkargh.
21:33:08gourindentation works, afaict
21:33:40reactormonkgour, any error messages?
21:33:46gournope
21:33:59reactormonkcontents of the buffer *nimrod-idetools-suggest* ?
21:35:18gourno such buffer
21:36:31reactormonkou
21:37:58reactormonkgo to a completion point ("foobar".) and invoke M-x ac-complete-nimrod-completions
21:39:28reactormonkRET
21:41:35gouri get: Wrote /tmp/nimrod-suggest8520Anr/t.nim but there is no /tmp/nimrod-suggest*/ folder
21:42:04gour/tmp/nimrod-idetools-stderr is also empty
21:42:23reactormonkwell, the tmpfolder is destroyed after use
21:42:38gouri see
21:43:03reactormonkt.nim? not tmp.nim ?
21:43:20gourt.nim is the name of my nimrod source file
21:43:27reactormonk... do you use nimrod off git?
21:44:15gouryep
21:44:55gourNimrod Compiler Version 0.9.1 (2013-02-07) [Linux: amd64]
21:47:25reactormonkecho '"foobar".' > foo.nim && nimrod idetools --suggest --track:foo.nim,1,9 foo.nim
21:47:39reactormonkshould give you a shitload of output
21:49:05gourSIGSEGV: Illegal storage access. (Attempt to read from nil?)
21:49:20reactormonkthere we go
21:50:13gourwho is the culprit?
21:50:27reactormonklemme recompile nimrod and see
21:50:33gourok
21:51:26reactormonkstill works here *scratches head*
21:51:48reactormonkgit pull && ./koch boot -d:release -d:withUpdate -d:useGnuReadline # could you recompile for me?
21:51:50dom96gour: Do you get a stack trace?
21:52:04gourdom96: nope
21:52:47dom96just execute ./koch boot
21:53:07dom96My guess is you just did ./build.sh without doing ./koch boot?
21:53:48gourno, i followed github instrucitons
21:53:53gourahh...typos
21:54:03gourrebuilt and tried...same result
21:54:29dom96you should now get a stack trace
21:54:43gouri don't
21:54:50dom96unless you did what reactormonk suggested
21:55:11gouri did what reactormonk asked me to do
21:55:31gourand :release probably does not generate stack
21:55:38reactormonkgit pull && ./koch boot -d:withUpdate -d:useGnuReadline # could you recompile for me?
21:55:45reactormonknow you have a stacktrace :-)
21:55:45dom96yes.
21:56:00dom96That's why I suggested you do it without -d:release :)
21:58:14gourdom96: you like traces? here is the one - http://pastebin.com/wx5aj2DJ
21:58:29gourmaybe Araq will stop wathing youtube now :-D
21:58:34gour*watching
22:00:10reactormonkgour, git checkout 3ad9b2ea6bb4260d57973d9618871acae80d0ed6 ?
22:00:26Araqgour: let me guess ... mac OS X?
22:00:37gourAraq: no, debian sid
22:00:54gourx86_64
22:01:12dom96gour: what's your gcc version?
22:01:14Araqinteresting, did 'koch boot' work?
22:02:28gourgcc version 4.7.2 (Debian 4.7.2-5)
22:02:51gourAraq: i got no errors by following github steps
22:02:59dom96hrm, that's weird.
22:03:11Araqwell apparently it's a bug plus an installation problem
22:04:56Araqgour: rename lib/system.nim to lib/system.backup.nim please
22:05:05gourreactormonk: here is the checkout-paste: http://pastebin.com/bVscZNKY
22:05:11Araqand execute the idetools command again
22:05:21gourAraq: which version should i use?
22:05:24gourlatest pull
22:06:10AraqI think so
22:06:54Araqah no worries, it crashes on my machine too ;-)
22:07:28reactormonkAraq, what's your checkout?
22:07:59Araqthe latest obviously
22:08:10reactormonkAraq, ... gimme sha
22:10:09gourit seems to be the same - http://pastebin.com/UwiCxtbf
22:10:38Araqapparently idetools doesn't load system.nim anymore
22:10:51Araqblame zahary ;-)
22:11:44dom96huh, it works for me.
22:12:03gouri hope something is more clear to you 'cause i'm finished (aka tired) for today
22:12:04reactormonkhow is nimrod serve supposed to work btw?
22:12:25reactormonkAraq, then why does it work here? :-(
22:14:36Araqreactormonk: I don't know yet; commit 3ad9b2ea6bb4260d57973d9618871acae80d0ed6
22:14:58reactormonkAraq, same here
22:16:33Araqreactormonk: 32 or 64 bit machine?
22:16:38Araqdom96: same question
22:16:42reactormonk64
22:16:55dom9664
22:17:02reactormonkgour, thx for finding the bug :-)
22:17:08Araqhrm
22:17:23Araqhow come it works for 2 and fails for 2?
22:17:33Araqall using 64bit linux ... strange
22:19:41gouri'll bet at home tomorrow, not going anywhere...so can possibly help...now --> sleep
22:19:58Araqalright, good night
22:20:08gour'night
22:20:12*gour quit (Quit: WeeChat 0.4.0)
22:21:44reactormonksha1sum nimrod
22:21:47reactormonk28dd18af41b468ce44c45667720094a15b865521 nimrod
22:21:54reactormonkI compiled with gnureadline
22:22:12reactormonk./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:33reactormonkehh wait. not gonna help
22:22:45reactormonkanyway, let's abuse the cluster I have access to
22:24:32reactormonkAraq, couldn't you, like store the downloads somewhere else outside the git repo and include a shaX sum in the repo?
22:24:44Araqnimbuild?
22:24:58reactormonke.g.
22:25:30Araqno worries, I can reproduce it and have some idea what causes it
22:25:50Araqbut I'm working on something else and don't want to be distracted
22:25:59reactormonkoke
22:29:51reactormonkAraq, works on new clone
22:43:03reactormonkaaaand unittest doesn't work for the js target
22:47:04Araqreactormonk: use 'doAssert' instead ;-)
22:47:14reactormonkAraq, nah, I'll hack it
22:47:23reactormonkAraq, defined() what for JS output?
22:47:33reactormonkECMAScript
22:49:17Araqyes
22:51:26reactormonkoh, there's elif
22:54:48*FreeArtMan quit (Ping timeout: 276 seconds)
23:08:18reactormonkwhat's `bind` inside a template?
23:11:03Araqlook it up
23:15:29reactormonkwhy is 'quit' defined in JS? O.o
23:23:04reactormonkHint: operation successful (7326 lines compiled; 0.096 sec total; 8.819MB) [SuccessX]
23:23:10reactormonkecho $?
23:23:17reactormonk#%&!!*%
23:23:22reactormonk=> 1
23:23:28reactormonk... WTF?
23:24:00reactormonkWTF does nimrod js return 1 when the compilation is successful?
23:25:33Araqdunno
23:25:38Araqbug I guess
23:27:37reactormonkSucks. I care about the exit status :-(
23:28:12reactormonknot easy to reproduce
23:30:20reactormonklet's reduce
23:31:13Araqdo you use 'nimrod i' ?
23:31:15reactormonkAraq, oh, I import a module more than once
23:33:10reactormonknopw
23:33:24reactormonkcheck(positionToGeometry(makeTile(1000,1000,500,500), makeRect(0,0,1000,1000)) == makeRect(500,500,500,500)) triggers it... let's see
23:39:01Araqthere is a bug with 'compiles'
23:40:02Araqedit compiler/nimrod.nim please
23:40:11Araqline 80: replace with:
23:40:47Araqquit(int8(msgs.gErrorCounter > 0))
23:41:20reactormonk\o/
23:42:35reactormonkhuh. SyntaxError from the JS side
23:42:44reactormonk checkpoint_28605(cstrToNimstr("tests.nim(5,38): Check failed: makeRect(500, 500, 500, 500) == "
23:42:46reactormonk "makeRect(500, 500, 500, 500)"));
23:44:46reactormonkLooks like a multiline problem. Does C allow this?
23:46:22reactormonk http://sprunge.us/OQWj produces http://sprunge.us/DeLQ
23:47:08Araqlol
23:47:36Araqyeah C does allow this and some compilers have a max line restriction ...
23:47:45Araqso the JS codegen does that as well ... XD
23:47:59reactormonko/*X_o
23:48:17reactormonk:-(
23:48:53Araqfix it
23:48:59reactormonkwhere?
23:50:12Araqecmasgen.nim, replace makeCString with strutils.escape
23:50:30Araqif strutils.escape does the right thing ;-)
23:50:42reactormonkyep, I found makeCString so far
23:51:13reactormonkmsgs.nim:proc makeCString*(s: string): PRope =
23:51:25reactormonk... or I could just redefine it?
23:52:18reactormonkproc makeCString = strutils.escape # won't work I Assume