<< 02-03-2015 >>

00:07:21Araqfilwit: you can compile aporia with -d:noSingleInstance to be able to run multiple aporia instances
00:08:33filwitAraq: i don't think that's the problem.. more likely the error message is just wrong. The problem is nimsuggest does shutdown correctly when aporia crashes unexpectedly.
00:09:25filwitAraq: the solution is the properly handle the exception. and until then we can just manually kill the nimsuggest process, then reopening aporia works fine
00:09:56*brson quit (Ping timeout: 246 seconds)
00:10:22dom96filwit: You didn't change 'singleInstancePort' in the config by any chance did you?
00:10:32*reem quit (Remote host closed the connection)
00:10:34*brson joined #nim
00:10:44dom96it would be odd if nimsuggest kept the port that Aporia created open
00:11:02filwitdom96: nope. only style changes in my PR (except for changing the mimetype to Nim)
00:11:30*awesomo4000 left #nim (#nim)
00:11:31dom96filwit: no, check /your/ config.
00:11:36dom96Edit -> Raw Preferences
00:11:44*awesomo4000 joined #nim
00:11:44filwitk, one sec
00:12:19filwitsingleInstance = true
00:12:22*reem joined #nim
00:12:30dom96singleInstancePort?
00:12:52filwitsingleInstancePort = 55679
00:13:03dom96in that case I don't get it
00:13:17*pafmaf joined #nim
00:13:44flaviuWhy not write ~/.aporia/nimsuggest_pid?
00:14:12flaviuThat way you can kill a stray nimsuggest on startup.
00:14:12dom96flaviu: because I can't tell the running instance to open files that way
00:14:32dom96oh
00:14:42filwitwell the key is the error message.. it says "an instance of aporia is already running" so whatever is triggering that is what needs to be fixed I guess... though to be honest Aporia should just not crash to begin with (have better exception handling) so that nimsuggest isn't left open in the background
00:14:54dom96because suggest is still experimental...
00:14:58Araqdom96, filwit I can confirm nimsuggest doesn't work at all here. it doesn't even start nimsuggest.exe
00:15:15filwitdom96: well i know that, I'm not complaining.. i'm just saying that's the way forward
00:15:21*BlaXpirit quit (Quit: Quit Konversation)
00:16:11dom96Araq: debug output?
00:16:16filwitAraq: thanks for the confirmation.. though my Aporia definitely starts nimsuggest (i can see the process open in my taskmanager)
00:16:44dom96filwit: I was talking to flaviu
00:17:09filwiti see, okay
00:17:47flaviudom96: There are always going to be bugs. Might as well keep them in mind when thinking about UI issues.
00:18:12Araqdom96: there is none
00:18:31dom96Araq: you forgot to enable suggest?
00:18:48Araqno, but let me look at my nim.cfg
00:19:21dom96didn't compile in debug mode?
00:19:26filwitVarriount: ps, they pulled my colors into Aporia.. you should test them out at some point :) I added about 15 of them (all my favorites from StudiosStyles.com + Gokr's blog + Github colors)
00:19:51filwit+ Nim website colors
00:21:00*reem quit (Remote host closed the connection)
00:21:46*reem joined #nim
00:22:11*awesomo4000 quit (Quit: awesomo4000)
00:23:11*davidterry joined #nim
00:24:08*reem quit (Remote host closed the connection)
00:25:22*TEttinger joined #nim
00:27:45*davidterry quit (Ping timeout: 252 seconds)
00:27:58dom96filwit: Araq: Works for me on Windows.
00:28:17*davidterry joined #nim
00:28:34filwitdom96: hmm... okay i'll try again in a sec, but first please pull this fix: https://github.com/nim-lang/Aporia/pull/74
00:30:12dom96filwit: oncept?
00:30:39filwitdom96: no, all keywords now are case-sensitive.. so they don't need the whole (c|C) start
00:31:22*reem joined #nim
00:31:23filwitdom96: check the line again, it's: c_?(o|O)_?(n|N)_?(c|C)_?(e|E)_?(p|P)_?(t|T)
00:31:30*reem quit (Remote host closed the connection)
00:31:50dom96filwit: oh, missed the C.
00:32:03*reem joined #nim
00:32:18filwityeah i added that on Araq's request (will replace 'generic' in the future apparently)
00:33:05filwitnote that all keywords/types are now correctly semi-case-sensitive, only accept a single '_', and cannot have trailing underscores
00:33:41*reem quit (Remote host closed the connection)
00:34:30*brson quit (Quit: leaving)
00:34:36filwitdom96: also, if you ever hack on this in the future, pay attention to the order in which all the <context> blocks appear. It will break things if you reorder them.
00:34:47*dashed joined #nim
00:35:37Araqfilwit: don't write that here, add a comment in the XML
00:35:49filwitdom96: mainly, the "type-decl" context must appear before the "keywords" context
00:35:55filwitAraq: good point, will do
00:36:10Araqfilwit: btw did you merge master into new-suggest?
00:36:18filwitdom96: please hold off on that PR until I add the comments
00:36:21Araqcause that's what I did and why it fails
00:36:43dom96indeed
00:36:45*brson joined #nim
00:36:46dom96just did the same
00:36:48filwitAraq: no I didn't, but I will.. should I then make another PR against new-suggest
00:36:53filwit?
00:37:23filwiti was thinking you would do the other way around (merge new-suggest into master when ready)
00:37:35dom96I have no idea what breaks it
00:37:45filwiti'll take a look
00:37:56filwitlet me add comments to that PR fist
00:38:42*TEttinger quit (Ping timeout: 246 seconds)
00:38:50*reem joined #nim
00:40:55*TEttinger joined #nim
00:54:20filwitdom96: i added the order comments to the PR, please review and pull when you can.
00:55:02Araqfilwit: I make suggest work on new-suggest
00:55:17filwitAraq: how did you fix it?
00:55:27Araqrenamed Nimrod to Nim
00:55:56filwityou mean the Nim.exe or something you changed in Aporia?
00:56:21filwiti don't even have a "nimrod" on my machine anymore, so maybe that's why it instantly fails for me
00:56:40AraqI changed it everywhere in aporia
00:58:20filwitokay, well this probably ties into the merge conflicts with new-suggest and my code changes then (i changed the mimetype and .lang file from nimrod -> nim, and had to change one place in aporia.nim to make that work)
00:59:06filwitfirst, please pull the latest PR i made, then push your changes to new-suggest so I can pull them and attempt to merge with master
00:59:46Araqwell too late, I already pushed it to new-suggest
00:59:54*brson quit (Quit: leaving)
01:10:23filwitno worries, that's a different branch anyways.
01:15:52filwitdom96, Araq: i'll play around with merging new-suggest and master tonight, but I can't make another PR till you guys merge the existing one.. I'm guess you both are heading to bed soon, so I'll probably just talk to you tomorrow about it.
01:23:02Araqyeah, good night
01:25:31*brson joined #nim
01:41:28*pregressive quit (Remote host closed the connection)
01:42:57*fizzbooze quit (Ping timeout: 250 seconds)
01:54:46*darkf joined #nim
02:00:27*pafmaf quit (Quit: This computer has gone to sleep)
02:02:20*Jessin joined #nim
02:03:47*Jesin quit (Read error: Connection reset by peer)
02:05:34*Jehan_ quit (Quit: Leaving)
02:07:01*Jessin quit (Ping timeout: 264 seconds)
02:07:53*BitPuffin quit (Ping timeout: 256 seconds)
02:16:56*davidterry quit (Remote host closed the connection)
02:21:46*Jessin joined #nim
02:23:21*reem quit (Remote host closed the connection)
02:26:51*fizzbooze joined #nim
02:29:01*reem joined #nim
02:39:06*randomwalk joined #nim
02:55:40*brson quit (Quit: leaving)
02:58:23*chemist69_ joined #nim
03:01:23*chemist69 quit (Ping timeout: 250 seconds)
03:13:26*reem quit (Remote host closed the connection)
03:14:08*dashed quit (Quit: Connection closed for inactivity)
03:37:28*reem joined #nim
03:44:03*filwit quit (Quit: Leaving)
04:03:23*randomwalk quit (Quit: Page closed)
04:20:16Shoozzahttp://eev.ee/blog/2015/02/28/sylph-the-programming-language-i-want/
04:33:28*grumbly joined #nim
04:33:55*grumbly quit (Client Quit)
04:34:15*gibson joined #nim
04:34:51gibsonIs anyone successfully using the emerald module? It breaks for me using nim from master or devel branches.
04:35:11gibsonComplains of an unexpected 'defer' keyword
04:51:52*reem quit (Remote host closed the connection)
04:57:33*randomwalk joined #nim
04:58:33randomwalkHi, is there a windows binary download somewhere for c2nim? I'm trying to figure out how to translate a C struct.
05:00:35*pregressive joined #nim
05:02:25*gibson quit (Ping timeout: 246 seconds)
05:04:47*reem joined #nim
05:05:10randomwalkOk, I'll try building with MinGW...
05:12:46*akiradeveloper joined #nim
05:13:15randomwalkWell, that worked. :) It's so nice when stuff just works. Thx Araq
05:13:20akiradeveloperis it possible to create a seq that contains non-uniformly typed objects?
05:13:45akiradeveloperIn you know Java, like List[Object]
05:17:24*davidterry joined #nim
05:21:49*davidterry quit (Ping timeout: 252 seconds)
05:22:12cazovthe docs seem to indicate sequences can't be heterogeneous since they're intended(?) to be growable arrays. http://nim-lang.org/manual.html#array-and-sequence-types . the way java handles that is that all objects are like refs descended from the Object class so maybe you could do something similar? i'm not super familiar with the language yet, though, so i'm probably missing something
05:25:51akiradevelopersounds correct
05:26:46akiradeveloperMessagePack's array is heterogeneous so it can't be converted to Nim seq without some restriction
05:32:29*pregressive quit (Remote host closed the connection)
05:38:34*pregressive joined #nim
05:40:28randomwalkAnyone familiar with the libcurl module? I used c2nim to translate the getinmemory.c example: http://pastebin.com/hV2QhTbb
05:40:39randomwalkhowever I'm getting a compiler error:
05:41:12randomwalkError: type mismatch: got (pointer) but expected 'cstring'
05:41:28randomwalkfor the line: mem.memory = realloc(mem.memory, mem.size + realsize + 1)
05:42:20randomwalkThe example just issues a GET request and reads it into heap memory, nothing fancy.
05:42:58randomwalkThat's all I'm trying to do as well. (Otherwise libcurl just prints it to stdout.)
05:44:45randomwalkThe wrapper libcurl.nim says: Twrite_callback* = proc (buffer: cstring, size: int, nitems: int, outstream: pointer): int{.cdecl.}
05:45:30randomwalkWhereas c2nim says: proc WriteMemoryCallback*(contents: pointer; size: csize; nmemb: csize; userp: pointer): csize = ...
05:46:06randomwalkand if I change that first parameter type from pointer to cstring I still get the same error
05:46:50randomwalkIdeas? Excessive thx thx thx guru/sifu/sensei
05:51:35*elbow_jason quit (Quit: Leaving)
06:08:36*NimBot joined #nim
06:15:50*fizzbooze quit (Ping timeout: 272 seconds)
06:16:15*fizzbooze joined #nim
06:18:18*akiradeveloper quit (Quit: Page closed)
06:28:26*pregressive quit (Remote host closed the connection)
06:35:03*reem quit (Remote host closed the connection)
06:36:19*reem joined #nim
06:58:29*bjz joined #nim
07:10:16*Demos quit (Read error: Connection reset by peer)
07:20:46*fizzbooze quit (Ping timeout: 250 seconds)
07:22:18*nulpunkt left #nim (#nim)
07:37:11*dumdum joined #nim
07:42:45*Jehan_ joined #nim
07:45:44*chemist69_ quit (Quit: WeeChat 1.1.1)
07:45:54*chemist69 joined #nim
08:03:34*davidterry joined #nim
08:05:00*reem quit (Remote host closed the connection)
08:08:05*davidterry quit (Ping timeout: 246 seconds)
08:09:07*reem joined #nim
08:10:44*Jehan_ quit (Quit: Leaving)
08:18:12*Trustable joined #nim
08:23:29*zahary joined #nim
08:25:50*reem quit (Remote host closed the connection)
08:27:28*reem joined #nim
08:43:44*reem quit (Remote host closed the connection)
08:43:49*pafmaf joined #nim
08:47:29*reem joined #nim
08:49:32*pafmaf quit (Quit: This computer has gone to sleep)
08:53:51*sillesta joined #nim
08:55:59*kniteli quit (Quit: Leaving)
08:56:14*randomwalk quit (Quit: Page closed)
09:04:58*banister joined #nim
09:12:19*dumdum quit (Ping timeout: 256 seconds)
09:14:26*tumult joined #nim
09:17:46*reem quit (Remote host closed the connection)
09:19:14*reem joined #nim
09:19:23*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:25:24*dumdum joined #nim
09:29:21*pregressive joined #nim
09:30:01*BlaXpirit joined #nim
09:32:12*banister joined #nim
09:33:29*pregressive quit (Ping timeout: 246 seconds)
09:35:46*banister quit (Client Quit)
09:58:06*reem quit (Remote host closed the connection)
09:58:43*reem joined #nim
09:59:26*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
09:59:45*bjz joined #nim
10:08:40*pafmaf joined #nim
10:13:22*pafmaf quit (Client Quit)
10:16:37*banister joined #nim
10:16:43*banister quit (Max SendQ exceeded)
10:18:43*pafmaf joined #nim
10:23:14*akiradeveloper joined #nim
10:23:55akiradeveloperI am looking for a type like my Iterable in stdlib https://rawgit.com/akiradeveloper/msgpack-nim/master/msgpack.html#Iterable I don't like to define this by myself.
10:28:23*reem quit (Remote host closed the connection)
10:29:15*reem joined #nim
10:29:36*epichero quit (Remote host closed the connection)
10:40:09*dumdum quit (Ping timeout: 256 seconds)
10:41:32*reem quit (Remote host closed the connection)
10:42:41*akiradeveloper quit (Remote host closed the connection)
10:45:27*reem joined #nim
10:49:21*pafmaf quit (Quit: This computer has gone to sleep)
10:58:51*reem quit (Remote host closed the connection)
11:04:48*Tennis joined #nim
11:04:48*Tennis quit (Changing host)
11:04:48*Tennis joined #nim
11:18:38*dumdum joined #nim
11:28:58tmkuhey, I'm having trouble installing one particular package, libtcod-nim (https://github.com/Vladar4/libtcod-nim)
11:29:17tmkuit installs a-ok through nimble, but when I want to actually import it, I get Error: cannot open 'libtcod-nim
11:30:04*akiradeveloper joined #nim
11:32:55dumdumtmku: try: `import libtcod`
11:34:23tmkudumdum: it worked!
11:34:44tmkuso I guess the 'srcDir' param in .nimble file dictates the actual import name?
11:35:29Araqno, "import" works with *module* names
11:36:27dumdumsrcDir contains libtcod.nim which is what gets 'imported'
11:37:28tmkuah, I see. Thanks.
11:42:21*akiradeveloper quit (Remote host closed the connection)
11:43:27*akiradeveloper joined #nim
12:07:34*akiradeveloper quit (Remote host closed the connection)
12:12:46*BlaXpirit quit (Quit: Quit Konversation)
12:13:05*BlaXpirit joined #nim
12:13:14*BlaXpirit quit (Client Quit)
12:13:28*BlaXpirit joined #nim
12:19:39*5EXAAMQHM joined #nim
12:25:01*5EXAAMQHM quit (Ping timeout: 264 seconds)
12:37:50*johnsoft quit (Read error: Connection reset by peer)
12:38:58*banister joined #nim
12:39:02*banister quit (Max SendQ exceeded)
12:42:13*akiradeveloper joined #nim
12:43:07*kashyap_ joined #nim
12:43:34kashyap_Hi, how often is the windows installer updated? Does it contain the latest from master?
12:44:15*dumdum quit (Ping timeout: 256 seconds)
12:45:39*BlaXpirit quit (Read error: Connection reset by peer)
12:45:42federico3hm - it just came to my mind that Nim could be a killer language for smartphones
12:46:22*BlaXpirit joined #nim
12:48:55Araqkashyap_: not often, it's still the 10.2 release
12:49:18*akiradeveloper quit ()
12:49:19kashyap_oh okay
12:50:06AraqVarriount is working on making the autobuild build releases but he's busy so any help would be really appreciated
12:53:34*johnsoft joined #nim
13:01:26kashyap_Araq for starters, perhaps, we can make sure that one can download the latest master zip file from the download page
13:01:54kashyap_Please do let me know if I can help with that ...
13:02:15Araqlatest "devel" is much more useful
13:02:26kashyap_sure
13:05:57kashyap_btw, there is an update with my kernel project - I moved from the idea of building xv6 from ground up in Nim to replacing C files in the working kernel with Nim - this way I always have a working kernel - right now I have an xv6 that has one C file replaced with Nim that boots:)
13:10:55Araqer .... I guess that's good? :-)
13:13:05*a5i joined #nim
13:16:26kashyap_yes :)
13:19:54Araqkashyap_: do you use our "tagged" pointers?
13:20:37kashyap_not yet - but I intend to - for segregating kernel/user right
13:20:59Araqright, I'm very interested in how these work out for kernel dev
13:21:20kashyap_in the first pass, I'll try to translate from the existing C code with very little modification
13:21:58Araqlast time I checked Linux's sources have pointer annotations like these too
13:23:07kashyap_hmm ... the address ranges for user and kernel are different in Linux ... I did not know about annotations though .. it's not something the compiler checks for right
13:23:44kashyap_I have not looked at linux source in a while actually
13:24:14kashyap_gotta go for now
13:28:31*kashyap_ quit (Ping timeout: 246 seconds)
13:28:51tumultAraq: congratulations on your new job at 3DICC and the commercial backing for Nim, as well as the progress on the improved c2nim! Exciting times for Nim :)
13:30:17Araqtumult: thanks. looks like I'll speak at OSCON 2015 about Nim.
13:34:02tumultWow great! Secondary congratulation are in order then. Fingers crossed for The GCoC too, I had a look at the nim projects for it and they are all really well chosen. I think 2015 will definitely be a good year for you guys :)
13:49:29*zahary1 joined #nim
13:49:38*zahary quit (Ping timeout: 246 seconds)
13:50:19Araqyeah, surely looks like a good year. I'm wondering if I'll ever have holidays though
13:51:13zahary1how long until they announce the selected projects for GSoC btw?
13:51:33def-zahary1: 5 hours
13:51:52*johnsoft quit (Ping timeout: 240 seconds)
13:52:00zahary1oh :)
13:52:32*johnsoft joined #nim
13:55:29dom96exciting!
13:55:48*BitPuffin joined #nim
13:56:06def-nimcache only works when compiling the same binary repeatedly?
13:56:10*BitPuffin quit (Remote host closed the connection)
13:56:34def-as soon as you compile another binary, everything is regenerated, even with --deadcodeelim:off
13:57:31Araqno, it's worse. sometimes it's wrongly cached
13:57:46Araqwhen you switch between 'nim cpp' and 'nim c'
13:58:20dom96def-: what's the performance of Jester with your asynchttpserver optimisations?
13:59:33*reem joined #nim
14:00:01def-dom96: oh right, i didn't look at jester at all yet
14:00:41dom96it creates a Request object too IIRC
14:00:46dom96That's probably its major slowdown.
14:00:56*melvanis quit (Quit: Page closed)
14:02:22def-dom96: from 5700 to 7300 requests/second
14:02:34dom96ahh
14:02:53def-master branch, right?
14:02:57def-not new-async?
14:02:58dom96yeah
14:03:46Araqdef-: "deterministic C code generation" will help with that. on our roadmap.
14:04:30*reem quit (Ping timeout: 272 seconds)
14:10:26*BitPuffin joined #nim
14:11:48AraqMaxdamantus: I'll merge your PR if you also implement 'tuple(int, int)' (nkPureTupleTy). Deal? ;-)
14:16:43*Pisuke joined #nim
14:18:00*MyMind quit (Ping timeout: 264 seconds)
14:19:49*mpthrapp_ joined #nim
14:44:45*aidanh quit (Ping timeout: 265 seconds)
14:45:52*aidanh joined #nim
14:46:05*BlaXpirit_ joined #nim
14:48:50*BlaXpirit quit (Ping timeout: 250 seconds)
14:51:23*awesomo4000 joined #nim
15:05:47*saml joined #nim
15:09:05*mpthrapp_ quit (Ping timeout: 246 seconds)
15:11:46*mpthrapp_ joined #nim
15:15:55*darkf quit (Quit: Leaving)
15:38:01*NimBot joined #nim
15:50:08*jfchevrette joined #nim
15:50:54*sillesta quit (Remote host closed the connection)
15:55:33*jholland joined #nim
15:58:55*a5i quit (Quit: Connection closed for inactivity)
16:13:09*TEttinger quit (Ping timeout: 245 seconds)
16:17:25*superfunc joined #nim
16:17:26*chemist69 quit (Quit: WeeChat 1.1.1)
16:17:44*chemist69 joined #nim
16:19:50*dumdum joined #nim
16:27:00*dtscode quit (Ping timeout: 272 seconds)
16:31:11*dtscode joined #nim
16:35:11*brson joined #nim
16:51:19*gmpreussner|work joined #nim
16:54:02fowlcurry macro using getType(), doesnt compile though :/ https://gist.github.com/fowlmouth/9b9010397ad5fe4b9872
17:05:31*Jessin quit (Quit: Leaving)
17:07:30*a5i joined #nim
17:07:52*gsingh93 joined #nim
17:10:13*superfunc quit (Quit: Lost terminal)
17:13:55*tumult quit (Ping timeout: 246 seconds)
17:15:22*Jesin joined #nim
17:15:47fowli dont know why it doesnt compile
17:20:59*whitenoise_ joined #nim
17:25:17*whitenoise_ left #nim (#nim)
17:37:54*batok joined #nim
17:43:06*nickles joined #nim
17:44:27nicklesIs there any "shortcut" array assignment, like e.g. ary: array[4, string] = ""?
17:44:37*Tennis quit (Quit: Leaving)
17:51:51fowllet arr = ["hello", "there"]
17:53:48BlaXpirit_for seq there is http://nim-lang.org/sequtils.html#newSeqWith.t,int,expr
17:59:39*quasinoxen joined #nim
18:03:54*Demos joined #nim
18:04:34*Jehan_ joined #nim
18:09:35*batok quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
18:13:01*Angry joined #nim
18:16:09dom96def-: 44 minutes :O
18:17:22*silven quit (Quit: No Ping reply in 180 seconds.)
18:18:48*silven joined #nim
18:18:51nickles@fowl: I'd like to initialize the whole array to one value...
18:21:36*panzone joined #nim
18:22:26*batok joined #nim
18:26:00def-nickles: i don't think we have something like that in the stdlib, but it's reasonably easy to write yourself
18:26:45def-https://gist.github.com/def-/713852c50f2e217ea166
18:29:50*fizzbooze joined #nim
18:32:20nickles@def: Thanks, but it would be nice to have it as a language feature, especially as all input would be known...
18:34:41def-i don't see why the language needs any feature for this
18:35:55*BlaXpirit joined #nim
18:40:02BlaXpiritget hyped
18:44:01nickles@def: I didn't say "need", but "it would be nice". The possibility to initialize values like this would allow for easier initialization, even more so as static[T] still seems to be under development.
18:46:50fowlcurry() works now https://gist.github.com/fowlmouth/9b9010397ad5fe4b9872
18:48:20def-fowl: awesome. now we're missing a {.lazy.} macro and the functional programmers will all come
18:48:42def-Haskell programmers*
18:49:11*fizzbooze quit (Ping timeout: 256 seconds)
18:50:02fowlall this does is possibly create a closure
18:52:38BlaXpiritMarch 2, 2015, 7 p.m. UTC.
18:52:58*Matthias247 joined #nim
18:53:01BlaXpiritwhere is it
18:54:16BlaXpiritnow it says Accepted Orgs Announced On: March 02 at 19:00 UTC
18:54:40BlaXpiritoh right... it's 5 minutes yet
18:55:28Araqfowl: you can only access the type, not take it over to some generated AST
18:55:49Araqat least that really shouldn't be possible since it's unsound
18:56:02fowlAraq, i'm changing it back to ast
18:56:21Araqyeah and this way you make the compiler check your generated types
18:57:17fowlyea
18:59:00def-"[Nim Programming Language] Your organization application has been rejected."
18:59:30Araqdamn
18:59:41*batok quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
18:59:50Araqwhere is our voucher?
19:00:09def-Only 137 organizations accepted compared to 190 last year, it seems
19:00:26Araqbut this time we had a voucher
19:00:33BlaXpiritD:
19:00:58dom96well damn
19:01:52*aleron joined #nim
19:02:19dom96def-: Is there a rejection meeting?
19:02:31def-yes, on Friday on IRC
19:02:43dom96can you attend?
19:02:47def-for the first 50 orgs queuing up
19:02:50def-I guess so
19:03:23Araqdid Julia get accepted?
19:03:24def-They didn't accept many programming languages at all this year, it seems.
19:03:25def-No
19:03:29def-Mozilla also didn't get accepted
19:03:33dom96As long as you queue up with the bot then you'll be fine.
19:03:39dom96I managed to be the first in the queue last year.
19:03:43dom96interesting
19:03:45*kniteli joined #nim
19:03:47def-i can only find 3 languages that were accepted: Haskell, Ruby, Scala
19:04:56def-Hm, no. a few more too.
19:04:56*shalabh joined #nim
19:05:01dom96that's odd
19:05:09fowlgoogle must hate science
19:05:13fowlor summer
19:05:14dom96Would think that Mozilla would get in.
19:05:31def-Python and Clojure also made it in
19:06:10Araqdom96: Mozilla's proposal was not that polished, IMHO
19:06:28shalabhthis sucks
19:06:29*elbow joined #nim
19:06:29*elbow quit (Client Quit)
19:06:30Araqhi shalabh. you didn't help. ;-)
19:06:31*elbow_ joined #nim
19:06:34shalabhsorry guys
19:06:35onionhammerlol
19:06:52shalabhdo they have any reasons in the rejection notice?
19:07:00def-shalabh: not yet, will ask on friday
19:07:21Araqwe'll only get some random remark about "the competition was better"
19:07:26shalabhok
19:07:27fowllol
19:07:59shalabhPython is no surprise. We use a lot of it.
19:08:03*gsingh93 quit (Quit: WeeChat 1.1.1)
19:08:08shalabhIt's much bigger than Nim. So is clojure.
19:08:25awesomo4000is there a python2nim program
19:08:27def-shalabh: so are the other 3 programming languages that were accepted: Haskell, Ruby, Scala
19:09:02a5iWait accepted into what?
19:09:07onionhammergoogle soc
19:09:16shalabhI was looking for rust but couldn't find it in the approved list. Maybe it's under Mozilla but couldn't find it either.
19:09:24reactormonkshalabh, I've once been talking to a google recruiter and he told me Java is still bigger than python
19:09:26shalabha5i:GSOC 2015
19:09:44shalabhreactormonk: probably true.
19:10:06a5iThere are certain languages u can code over there?
19:10:18reactormonka5i, java, c++, python.
19:10:25onionhammerGo
19:10:27onionhammer;P
19:10:30reactormonkshalabh, Java is just not my kind of language :-)
19:10:30a5iwhat about Ruby?
19:10:35reactormonka5i, nope.
19:10:38a5iD:
19:10:44a5iI thought it was approved..
19:10:45shalabhmaybe there's a lot emerging languages that apply and they can't accept them all.
19:10:48*aleron quit (Quit: leaving)
19:10:53shalabhreactormonk:mine neither
19:11:07shalabhruby is in
19:11:08def-shalabh: or any of them. Julia and D were rejected as well
19:11:13shalabhruby-on-rails too
19:11:18a5ireactormonk: Ruby is, and rails
19:11:37a5iWas Rust approved?
19:11:41def-no
19:11:47a5iawe :(
19:11:54def-But I think Rust didn't really try
19:12:15a5iProbably because they would break code on a good idea if it were used
19:12:46fowlpeople who play with rust get tetanus
19:12:57*gsingh93 joined #nim
19:12:59a5iI really like Rust
19:13:08def-Well, at least I can work on the gsoc ideas that I made from my personal todo list again :P
19:13:21shalabhmozilla might be special "Rust/Servo usually do GSoC under the banner of Mozilla, so the deadline doesn't really apply." from https://www.reddit.com/r/rust/comments/2vy5n3/rust_in_gsoc_2015
19:13:28a5iWhy would they get tetanus :/
19:13:46fowla5i, only if they aren't careful
19:14:07dom96It isn't even fair that Github got accepted... https://github.com/github/gsoc
19:14:46shalabhgithub is very relevant to open source dev these days
19:14:57Demosbut is github open source?
19:15:15*dumdum quit (Ping timeout: 256 seconds)
19:15:17dom96github has enough money to fund these things themselves
19:15:26shalabhsome github projects are
19:16:12shalabhhttps://wiki.mozilla.org/Community:SummerOfCode15
19:16:37shalabhlooks like mozilla has some special status
19:16:51shalabhmaybe they're invited, or something. given their weight.
19:17:49shalabhbut if D and Julia didn't get in, oh well.
19:17:51Jehan_I suspect that critical mass of a project is a major factor.
19:18:29AraqJehan_: der Teufel scheißt immer auf den größten Haufen ;-)
19:19:05Jehan_I remember reading last year that Mercurial had to piggy-back their GSOC project on Python's application because they didn't get in, either, and they're a well-established, widely used piece of software.
19:19:14shalabhinteresting
19:20:01*panzone quit (Quit: Leaving...)
19:21:22shalabhbut they accepted julia last year, hmm.
19:21:38def-shalabh: number of accepted oranizations went down from 190 to 137
19:21:50dom96Have you guys seen the ideas page for haskell? https://ghc.haskell.org/trac/summer-of-code/report/1
19:22:01dom96Isn't that literally an issue tracker?
19:22:50*kblake joined #nim
19:23:25shalabhdef-:yes I noticed.
19:23:34*aleron joined #nim
19:24:23MaxdamantusAraq: I guess I could do that.
19:24:29aleronAre proc arguments always const in the body of the proc?
19:26:01Jehan_aleron: Do you mean that you cannot assign to them? That's always the case (except for `var` arguments, but they have other semantics, anyway).
19:26:48Jehan_If you want to assign to a procedure argument, you can use: proc foo(x: int) = var x = x; …
19:26:55*nickles quit (Quit: Page closed)
19:27:05aleronyes, cannot assign. Right after I encountered the error I found the relevant section of the Nim for C Programmers page
19:27:25aleronI'm trying to modify an array passed in as an argument fwiw
19:27:34def-then you should just pass it as var
19:27:44Jehan_In that case, you want to use a `var` parameter.
19:28:06*batok joined #nim
19:28:14Jehan_non-var parameters are basically treated as immutable objects (modulo aliasing).
19:28:15aleronahh
19:29:01*dumdum joined #nim
19:29:45aleronThat worked. Much appreciated.
19:30:12aleronI didn't see anything on this topic in the nim-lang tut1 or nim-by-example.github.io
19:30:14*fizzbooze joined #nim
19:30:22aleronSo I was really confused
19:31:31dumdumIf I have SDL2 WindowPtr, RendererPtr, SurfacePtr objs, how would one write a varargs cleanup function: proc cleanup(win, renderer, surface) which dispatches to destroy of each in Nim
19:31:37*Maxdamantus wonders if it would've made more sense to have the `tuple[]` and `tuple()` syntax the other way around—so [] is for anonymous ones.
19:32:07dumdumI am learning SDL through this tut: http://www.willusher.io/sdl2%20tutorials/2014/08/01/postscript-1-easy-cleanup/
19:33:15Araqaleron: we know the tutorial still miss lots of stuff. PRs are always welcome
19:33:50AraqMaxdamantus: why?
19:34:37MaxdamantusAraq: because the (..) part resembles proc parameter lists.
19:35:15AraqMaxdamantus: the way I see it: named tuples were a mistake and it's good the unnamed get the nicer syntax now
19:35:40MaxdamantusOkay, that kind of works too.
19:36:09Jehan_New feature?
19:36:39AraqJehan_: not really. but we have no syntax for type((1, 2))
19:36:39MaxdamantusWould it actually be a problem to write it without the `tuple` keyword?
19:36:52MaxdamantusMoreso than the current expression syntax for tuples.
19:36:55Maxdamantusecho ()
19:38:37MaxdamantusI think it would be less problematic than that.
19:39:01AraqJehan_: tuple[] requires names and this bites us for these reasons: https://github.com/Araq/Nim/issues/2176 where people came up with proc asKeyVal[T](x: T): auto = cast[seq[tuple[key: char, val: int]]](x)
19:39:22Araqsince the stdlib is not consistent in its tuple field naming
19:39:52*batok quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
19:40:01AraqI tried to "fix" that by ignoring tuple names in the type equality relation but that caused more trouble
19:41:09AraqMaxdamantus: hrm that could work
19:41:34Araqso type((1, 2, 'x') == (int, int, char)
19:41:46MaxdamantusYes.
19:41:58Maxdamantusmissed a bracket
19:42:02Araqyes
19:51:29*johnsoft quit (Ping timeout: 250 seconds)
19:52:25*johnsoft joined #nim
19:53:48*reem joined #nim
19:55:10shalabhsorry about gsoc guys, but lets try again next year.
19:55:24shalabhon the plus side we now have some well defined projects for anyone who wants to work for free
19:55:29shalabhttyl
19:55:36*shalabh quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
19:59:10*shodan45 joined #nim
20:02:48*mpthrapp_ quit (Remote host closed the connection)
20:03:09*mpthrapp_ joined #nim
20:07:55*BitPuffin quit (Ping timeout: 255 seconds)
20:08:56*fizzbooze quit (Ping timeout: 256 seconds)
20:17:44aleronIs there a way, when iterating over a string with for, to get the index of the current character?
20:18:08aleronother than a counter
20:18:27Jehan_for i, ch in str: ...
20:18:55Jehan_If a for loop has two variables, then it will implicitly use the pairs() iterator.
20:19:07Jehan_Which for strings returns (index, character) for each iteration.
20:19:12aleronI see. Thank you
20:23:49*Angry quit (Ping timeout: 264 seconds)
20:27:23flaviuHave you seen http://lihaoyi.github.io/Ammonite/#Ammonite-Ops ?
20:27:32*BitPuffin joined #nim
20:28:09flaviuThe api design is ... interesting.
20:28:21flaviuSomething like that might have a place in Nim.
20:28:29Jehan_flaviu: Yeah, I have.
20:29:02*aleron quit (Quit: leaving)
20:30:56Jehan_Scala is still one of my favorite languages. If only it weren't tied to the JVM ecosystem … :)
20:33:29gokrPersonally I haven't looked closer at Scala - given similar reasons - but I know several Smalltalkers like it.
20:33:41gokrit would be interesting to hear you compare it with Nim.
20:33:50gokrAnd sorry guys for GSoC.
20:35:13Jehan_gokr: I'm not sure they are really comparable. Scala and Nim aim to fill different niches and make very different design choices.
20:35:27*Maxdamantus wonders if it would be bad to rename the current `tuple` type syntax to `struct`, then just make tuples anonymous and remove compatibility between the two.
20:35:38Jehan_You could write one up, but it'd be like comparing apple juice and beer. :)
20:35:43*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:35:54gokrI skimmed the list of the approved orgs, no "niche languages" that I could see. Only "known" ones like Ruby, Clojure, Scala and Python.
20:36:03Maxdamantusand probably just disallow empty structs to disambiguate the `()` expression.
20:36:04gokrJehan_: Yeah, I know.
20:36:22*fizzbooze joined #nim
20:37:30Jehan_gokr: That said, somewhat relevant for Nim, I do miss some of the nicer OO features that Scala has in Nim. But I also understand why Araq chose to go a different way (or at least I think I do).
20:38:31Jehan_I've always been a multi-paradigm person. Rather than wanting OO or functional or logic or imperative programming, my answer generally boils down to "all of the above, please". :)
20:38:35*reem quit (Remote host closed the connection)
20:39:34Jehan_The thing that has always been fascinated me about Smalltalk (and which carries over to Scala to some extent) is the extremely nice integration of object-oriented programming and higher order functions in the language.
20:39:50gokryeah
20:39:51Maxdamantusbut then there'd probably be too much overlap between object/struct.
20:40:15gokrMaxdamantus: I think Araq has some thoughts in that area too, although I am unsure.
20:41:01reactormonkJehan_, nim doesn't really have the inheritance stuff, which can get ugly. But with the unified call syntax, you can get close enough
20:41:32Jehan_reactormonk: Well, methods and "object of" do get you inheritance, but that's not really what I primarily want.
20:41:54reactormonkJehan_, I tend to treat objects as pure data holders usually, so nim is just fine
20:42:15Jehan_For me, it's secondary to being able to encapsulate data and associated behavior logically.
20:42:21gokrI think I know what you mean - the fact that Smalltalk was designed with blocks from the beginning - through all control structures - makes a very strong "whole".
20:42:42Jehan_Note that I don't always want it, but I do like having the option.
20:42:44reactormonkI usually don't encapusalte too much - pretty sure someone wants to hack my code at some point.
20:42:49Jehan_gokr: Yeah.
20:43:04gokrreactormonk: That's slightly funny way to put it "treat objects as pure data holders". Then you are not doing OO, sorry.
20:43:25fowldata>objects
20:43:28reactormonkgokr, there's at least ten different definitions of OO
20:43:47gokrWell, very very few of them claim that objects are "pure data holders", I can assure you.
20:43:58reactormonkbut there's a few ;-)
20:44:04Jehan_reactormonk: There are also at least ten different definitions of functional programming. :)
20:44:18reactormonkJehan_, most of them talk about immutable data structures.
20:44:29Maxdamantusbut only one correct one.
20:44:31Jehan_Human-made languages, alas, tend to be less precise than programming languages.
20:44:34gokrBut ok, I am a hard core Smalltalker - so I tend to disagree with *everyone* about what OO is - not just you ;)
20:44:41*reem joined #nim
20:44:56reactormonkgokr, oh yeah. I'd never claim Java or C++ to be OO
20:45:23Jehan_reactormonk: You can identify core elements of OO like that, too (and it's not like immutability is a particularly strict requirement).
20:45:32Jehan_For functional programming, that is.
20:45:34reactormonkJehan_, hm. right.
20:45:39reactormonkfirst-class functions then.
20:45:40MaxdamantusI think I saw some weird use of the term "functional" in the nim manual.
20:45:46reactormonkMaxdamantus, fix it then
20:45:54*batok joined #nim
20:46:03MaxdamantusFP isn't necessarily about first-class functions.
20:46:15reactormonkhow can you go FP without first-class functions?
20:46:19MaxdamantusThat's generally related to HOP.
20:46:25gokrBut looking at Nim I think most of the basic mechanisms are there for reasonable OO. Especially since Araq fixed the super calls :)
20:46:32*kblake left #nim (#nim)
20:46:40Maxdamantusreactormonk: using the S and K combinators.
20:46:55reactormonkMaxdamantus, I'm not familiar with that terminology.
20:46:56Maxdamantuser, no, those still use first-class functions.
20:47:02gokrAnd since we (3DICC) are die hard Smalltalkers - we sure intend to do a fair bit of OO in Nim :)
20:47:24*bpr joined #nim
20:47:24awesomo4000what’s OO
20:47:32MaxdamantusYou don't need first-class functions for FP. You just need to avoid side effects of calling functions.
20:47:41gokr"object orientation"
20:48:12awesomo4000what’s that mean
20:48:43gokrawesomo4000: http://en.wikipedia.org/wiki/Object-oriented_programming
20:48:53bprBy my definition of FP, you need first class functions. If you really think the name FUNCTIONal means something, then yes, passing fns as arguments, returningthem, that makes an FP. Not immutability.
20:49:09Maxdamantusbpr: no, that's higher-order progarmming.
20:49:24Maxdamantusbpr: functional programming refers to functions relating to the concept of "function" in mathematics.
20:49:41Maxdamantusbpr: which is something that transforms values, nothing else.
20:50:06bpr<Maxdamantus> You don't really get to tell me what my definition of FP is, do you? :-)
20:50:25MaxdamantusI get to tell you that your use of the term FP is wrong.
20:50:44Jehan_Interesting discussion on the fossil ML about making it more scalable and addressing Ben Pollack's issues.
20:50:47bprYou can tell me that, but why should I believe you are correct?
20:50:48Jehan_Oops, wrong window.
20:50:52MaxdamantusIf I used the term "elephant" to refer to a monkey, you can point that out too.
20:50:53awesomo4000FP is a marketing term. It’s nebulous, like “cloud”. Pick the features you find useful.
20:51:17reactormonkawesomo4000, except haskell. Haskell is FP. ;-)
20:51:37Maxdamantushttp://commons.wikimedia.org/wiki/File:Function_machine2.svg
20:51:53bprHaskell is one FPL. OCaml another. Scheme a third.
20:52:07Maxdamantusbpr: nevertheless, there is a term that denotes exactly what you're describing: higher-order programming.
20:52:19awesomo4000Haskell is an example of a FP. Even then, you can use imperative programming in Haskell.
20:52:46Maxdamantusbpr: which is usually implicit in FP, but it's very common/useful outside of it and there's no actual dependency on it in FP.
20:52:52awesomo4000passing functions around … that’s useful. i like map. i like reduce. i like folds.
20:53:08Jehan_I find it interesting how pattern matching is considered an FP concept by many even though it had its origins in Prolog.
20:53:22*zsatz joined #nim
20:54:39gokrJehan_: Yeah, IMHO the canonical functional language is Lisp.
20:54:55Jehan_gokr: Not sure if there's a "canonical" one.
20:55:20gokrWell, I may use the word wrongly given I am not a native english speaker - but its the one I think of - when people say functional.
20:55:28zsatzTotal beginner question here. Got the zip, puts the contents in ~/bin/nim-0.10.2/, ran the build and it said "SUCCESS," added ~/bin/nim-0.10.2/bin to my path, but I get "Error: cannot 'importc' variable at compile time" when I try to run "nim i". Is this a common?
20:55:37MaxdamantusI don't think Lisp is particularly encouraging of FP.
20:55:40gokrAnd it surely (?) predates all other mentioned.
20:56:19Maxdamantusafaik, definitions are usually a form of mutation.
20:56:20Jehan_gokr: Yeah, but historical precedent does not necessarily relate to how good an example something is.
20:56:26gokrtrue
20:56:43Jehan_I'd argue that it's often the later versions that are better (because of trial and error).
20:57:13fowlzsatz, yes nim i is limited
20:57:15Jehan_Maxdamantus: Well, setq alone was pretty commonplace in the original LISP.
20:57:26gokrFor a modern reference I guess Haskell is the one I would think of then :)
20:57:45zsatzfowl: OK. Thanks.
20:58:02bpr<Jehan_> If purity is your deciding factor of how functional a language is, thenSML and OCaml are out too.
20:58:09Jehan_zsatz: "nim i" has only a limited VM available and cannot access some low-level functionality (because that would require compiling to C rather than interpreting it via the internal VM).
20:58:23Jehan_bpr: It isn't for me.
20:58:45zsatzJehan_: OK, that makes sense. Thanks for the insight.
20:58:57bprNot sure I understand. SML is not for you, or the definition of FPL as being "pure"?
20:58:58reactormonkzsatz, usually a better idea to go for nim -r c test.nim
20:59:11MaxdamantusSML isn't pure.
20:59:20Maxdamantusit has variable assignment.
20:59:24awesomo4000nothing that can do “print” is pure.
20:59:28Jehan_I was just saying that LISP doesn't score highly for this particular criterion, but had also pointed out earlier that I don't necessarily consider immutability to be a defining characteristic of FP.
20:59:34bprOf course it's not pure. Who ever said that?
20:59:45MaxdamantusAh, nvm.
20:59:52reactormonkbut but but I need my virgins pure
21:00:19onionhammerAraq that websocketmem prog seems to behave better on windows, at least memory wise, but still slowly creeping up. I'll let it run longer
21:00:32onionhammerstill working on getting a smaller subset to reproduce this thoug
21:00:39bpr<jehan_> Ack! Anyways, Nim is an FPL to me despite it's many impurities.
21:01:04awesomo4000i find it interesting that the boundary of purity is cpu instructions and memory reads and writes.
21:01:24Jehan_Purity is more of a philosophical concept, anyway.
21:01:29awesomo4000those are both side effects, right ?
21:01:44bprExceptions are also impure.
21:02:03Jehan_After all, any Turing-complete "purely functional" language can completely emulate an imperative language with all the side effects in the world.
21:02:04MaxdamantusDepends how you model them.
21:02:43MaxdamantusExceptions can be pure.
21:03:09MaxdamantusIt would usually require things like enforcement of evaluation order.
21:04:08bpr<jehan_> I suppose that's true, but how do you write an efficient purely functional union find? It's the 'efficient' part that takes you out of the philosophical equivalent.
21:05:24gokrJehan_: Sidenote (can't resist) - do you use Fossil?
21:05:54Jehan_bpr: You can always emulate mutable operations with an overhead of at most O(log(n)).
21:06:39Jehan_Of course, in practice, the constant factor is rather large, but that makes it hard to say something is inefficient in any precise sense of the term.
21:07:05Jehan_gokr: I'm a VCS junkie. If there's an (open source) VCS, I've probably used it at some point in my life.
21:07:17gokrJehan_: Hehe, I used to be that too.
21:07:22Jehan_And yes, that includes PRCS and tla.
21:07:28gokrYou haven't used Monticello though :)
21:07:39gokrtla, hehe, masochistic.
21:07:52Jehan_gokr: True, though I know enough about it to be dangerous if you let me near it.
21:08:01gokrI really liked Darcs.
21:08:14bprBTW, sorry about the GSOC results. I bet the feedback will be as useful as the feedback from last year. You know, there's A+ and not A+ :-(
21:08:21Jehan_gokr: At the time, tla was one of the best options around.
21:08:42gokryeah, I remember tla - though I can't say I "used" it - mostly played.
21:08:46Jehan_Remember, that was before Git/Mercurial/etc. and while Darcs had really, really bad performance issues.
21:08:52gokryup
21:09:22batokI am looking for examples using relational databases. Is there anything available ?
21:09:24Jehan_gokr: I used it for both thesis work and personal projects at the time.
21:09:38reactormonkbatok, do_* stuff?
21:09:46Jehan_gokr: To this day, I wish that Canonical hadn't all but abandoned Bzr, too.
21:10:12reactormonkJehan_, gotta join the great git unification now
21:10:16gokrYeah, I know one company that stuck to Bzr, not sure if they still do. A Perl place.
21:10:45Jehan_reactormonk: Interestingly enough, Git is the VCS I'm using the least at the moment.
21:11:14batokreactormonk this is my first day using nim. I don't know what you mean by do_* ( sorry )
21:11:21*gokr moving SCM discus to nim-offtopic...
21:11:23reactormonkbatok, do_sqlite
21:11:31reactormonke.g.
21:11:45Jehan_There's nim-offtopic?
21:12:16reactormonkbatok, http://nim-lang.org/db_sqlite.html
21:12:27batoktks reactormonk
21:15:19*Menche joined #nim
21:15:46*zsatz quit (Ping timeout: 246 seconds)
21:28:54*Jesin quit (Remote host closed the connection)
21:34:37*reem quit (Remote host closed the connection)
21:36:08*awesomo4000 quit (Quit: awesomo4000)
21:38:14*reem joined #nim
21:38:57*Jesin joined #nim
21:39:57*batok quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
21:45:36*awesomo4000 joined #nim
21:52:47*dumdum quit (Ping timeout: 256 seconds)
21:52:49*Menche quit (Quit: Leaving)
21:55:27*Menche joined #nim
21:55:33*jfchevrette quit (Quit: Textual IRC Client: www.textualapp.com)
21:57:15*mpthrapp_ quit (Remote host closed the connection)
21:59:49*BlaXpirit quit (Quit: Quit Konversation)
22:02:59ldleworkDid Nim get into gsoc?
22:03:02def-no
22:03:17*reem quit (Remote host closed the connection)
22:04:24gokrdef-: Sorry man.
22:04:47*bpr quit (Quit: Page closed)
22:13:36*sillesta joined #nim
22:26:59*batok joined #nim
22:28:54*lloydde joined #nim
22:29:00*reem joined #nim
22:29:31lloyddeI'm new to nim, I compiled from source and then try to run the tests but they fail on:
22:29:51lloydde /home/user/Nim/tests/testament/tester.nim(15, 21) Error: cannot open 'compiler/nodejs'
22:30:06lloyddedo I need to install the package manager and get that package or something?
22:31:30Araqlloydde: you need a compiler/ dir next to tests/
22:33:15*Mandar joined #nim
22:33:26lloydde$ ls -l compiler/ tests/ | grep -B 1 total
22:33:26lloyddecompiler/:
22:33:26lloyddetotal 11442
22:33:28lloydde--
22:33:30lloyddetests/:
22:33:32lloyddetotal 110
22:35:29Araqtester.nim.cfg contains:
22:35:31Araqpath = "$nim" # For compiler/nodejs
22:40:34*batok quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
22:44:10*reem quit (Remote host closed the connection)
22:54:52lloyddesorry I don't follow. I tried exporting various values for nim in bash. I tried editing ~/bin/nim/config/nim.cfg adding a line path="$lib/compiler". I'm at a loss.
23:01:01*gsingh93 quit (Ping timeout: 264 seconds)
23:01:53*dumdum joined #nim
23:02:37Araqso where do you have your tests/ directory?
23:05:26reactormonklloydde, how did you compile from source? via the git repo?
23:22:47*Pisuke quit (Quit: WeeChat 1.2-dev)
23:25:50*sillesta quit (Ping timeout: 252 seconds)
23:26:19*gsingh93 joined #nim
23:29:58lloyddeAraq , reactormonk clean ubuntu 14.04 vm https://gist.github.com/lloydde/727f0470605eb2016bf8
23:30:38Araqlloydde: don't do ./koch install /home/user/bin
23:31:08Araqwhy do people install this thing? I'll never get it.
23:31:35lloydde"koch install [dir] may then be used to install Nim, or you can simply add it to your PATH."
23:31:53dom96Araq: Any ideas if we could make this safer? https://github.com/Araq/Nim/pull/2244/files#diff-e7d29941cb2ca6bf4e0f5c627239bc7bR545
23:31:57*dumdum quit (Ping timeout: 256 seconds)
23:31:57*untitaker quit (Ping timeout: 245 seconds)
23:33:59gokrlloydde: We should probably... add a comment that its MUCH better to not install :) Just add bin/nim to your path
23:34:58lloyddeI'm submit the doc pull when I get this working. The text at https://github.com/nim-lang/csources is also stale and I'll send a pull for that.
23:35:21gokrlloydde: Btw, see my article...
23:35:25Maxdamantusadding it as a symlink to an existing directory in the path seems to work well.
23:35:50gokrlloydde: http://goran.krampe.se/category/nim/ (especially the one called "Bootstrapping Nim(rod)"
23:36:06gokrMaxdamantus: yeah, I do that.
23:36:21gokrMaxdamantus: Then its easy to switch around between devel and master etc
23:36:34lloyddethnx gokr
23:37:00AraqMaxdamantus: no it doesn't work well.
23:37:12Araqit fails randomly for various people and OSes
23:37:27AraqI already updated the page
23:37:31Araqit now says
23:37:36Araq"koch install [dir] may then be used to install Nim, but lots of things don't work then so don't do that. Add it to your PATH instead."
23:37:51gokrAraq: Maxdamantus meant symlinking works well.
23:38:07Araqgokr: yes. it doesn't.
23:38:07gokrNot the install.
23:38:21AraqI know, but symlinking really doesn't work well
23:38:23*untitaker joined #nim
23:38:31gokrOnly symlinking in the nim compiler?
23:38:49gokrThat's what I do.
23:38:58Araqtoo many people reported problems with symlinking to say "it works well"
23:39:14Araqit might work well for *you* ;-)
23:39:23gokrBut "koch install" does much more.
23:39:41Araq"koch install" is worse :P
23:39:47MaxdamantusWell, I was right in it seeming to work well.
23:39:50gokrOk, oh well.
23:40:04gokrWorks fine for me so far though :)
23:40:35gokrBut then you might want to be even more detailed in that text.
23:40:53dom96Araq: please also review 2244, it adds some things to strtabs.
23:40:56Araqwe used to suggest symlinking btw. we don't anymore
23:41:20Araqdom96: later ok?
23:41:30gokrChange to: "Add it to you PATH instead, and don't just symlink - it has been reported to sometimes cause issues."
23:42:09AraqI think it's fine to simply not say anything about it
23:42:24Jehan_An alternative is to create a shell script that does: exec /path/to/nim "$@"
23:42:28Jehan_For what that's worth.
23:42:41Araqif it works for you, great, but it's not officially recommended
23:43:22Araqalternatively we could figure out how to set '$nim' properly
23:43:30Araqbut I guess I already know
23:43:47dom96Araq: fine
23:43:56*sillesta joined #nim
23:43:57Araqcompiler/ needs to move to lib/
23:44:27flaviuI've never not symlinked nim.
23:44:39*reem joined #nim
23:45:57*shodan45 quit (Quit: Konversation terminated!)
23:46:26flaviuMaybe symlinking only fails on windows?
23:46:53Araqflaviu: no, it used to fail on macs
23:47:13Araqand on BSDs iirc
23:47:55*flaviu quit (Remote host closed the connection)
23:48:09*flaviu joined #nim
23:48:33Jehan_Yeah, but that was because of a bug.
23:49:28*batok joined #nim
23:49:28*reem quit (Ping timeout: 265 seconds)
23:49:29*Matthias247 quit (Read error: Connection reset by peer)
23:49:31*dapz joined #nim
23:49:53Jehan_Didn't run realpath() on the result.
23:50:41Araqoh really? ok
23:51:59Jehan_Been running a symlinked nim on OS X since forever.
23:52:07Jehan_Well, ever since that bug got fixed.
23:52:21*awesomo4000 quit (Quit: awesomo4000)
23:52:56*awesomo4000 joined #nim
23:53:18flaviuNice to hear it was just a bug.
23:53:40*dapz quit (Client Quit)
23:55:45Jehan_changeset: [public] 2113
23:55:45Jehan_id: 9a9a3c46a8aee82803d9a4bfd12c571d0baac449
23:55:45Jehan_author: Dominik Picheta <[email protected]>
23:55:45Jehan_date: Sat, 22 Jun 2013 00:15:07 +0100 (20 months ago)
23:55:45Jehan_Symlinks are now expanded in os.getAppFilename on Mac OS X.
23:55:45Jehan_M lib/pure/os.nim
23:55:47*Demon_Fox joined #nim
23:56:42Araqbut it might still be wrong for BSD :P
23:58:50Jehan_Oh, sure.
23:59:04Jehan_But I'm not firing up a VM right now to find out. :)
23:59:18Jehan_Anyhow, good night!
23:59:20*Jehan_ quit (Quit: Leaving)
23:59:28dom96oh look it's my name