<< 07-03-2016 >>

00:02:23*krux02 quit (Quit: Verlassend)
00:02:49fUD_Should I be doing 'nim e install_nimble.nims' from a git checkout of Nim to install nimble? (after I've built nim itself)?
00:02:57*fUD_ is now known as fUD
00:03:46fUDI am getting, Code/Nim/nimble0/src/nimblepkg/nimscriptsupport.nim(8, 11) Error: cannot open 'compiler/ast'
00:04:36def-fUD: if it doesn't work, you can try the instructions from the nimble repo
00:04:38fUDDoes that mean I've missed a config for library loading?
00:04:54def-no, that means nimble can't find the compiler
00:05:05def-ah, you might have to add the compiler directory to $PATH
00:05:17fUDdef-: I thought I had, but I'll double check.
00:05:38fUDdef-: it's at the end as, /Users/billsb/.nim/nim/bin
00:05:51def-and `which nim` points to the correct one?
00:05:57fUDI'll check
00:05:59def-wait, did you install it or just clone the repo?
00:06:07def-because installing it is broken afaik
00:06:55fUDdef-: I cloned the repo then built it, then ran ./koch install ~/.nim
00:07:22fUDdef-: And added the bin path under that dir to the path
00:07:35def-fUD: yeah, that's broken unfortunately
00:07:59def-fUD: you're supposed to just ./koch boot -d:release and use that directory
00:08:21def-as explained here: https://github.com/nim-lang/nim#compiling
00:08:22fUDdef-: as a parameter to koch boot?
00:08:28def-"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."
00:08:49fUDdef-: I was tired on Friday, I guess I missed that small point :)
00:09:13fUDdef-: I'll try now. Cheers.
00:12:04fUDdef-: I don't actually know what 'add it to your path instead' means. Add the path of the checkout?
00:12:13def-it depends on your shell, bash?
00:12:29fUDzsh
00:13:05def-then in ~/.zshrc add: export PATH="/foo/bar/Nim/bin:$PATH"
00:13:35fUDSorry to be daft, but that's my checkout dir?
00:15:51def-ah
00:15:56def-checkoutdir/bin
00:16:09fUDok. thanks.
00:16:24fUDok, nimble builds perfectly now.
00:17:06def-i should probably try to fix koch install tonight, working with all these installation issues right now anyway
00:18:19fUD:)
00:30:39*mahasamoot joined #nim
00:31:18*PMunch quit (Ping timeout: 276 seconds)
00:34:44gorgonzolapastacan't I combine readLine(File, Line) and readLine(File)?
00:40:42*gokr quit (Quit: Leaving.)
00:46:43def-gorgonzolapasta: combine how?
01:00:17*girvo_ joined #nim
01:05:51*[CBR]Unspoken quit (Ping timeout: 264 seconds)
01:07:09*zepolen joined #nim
01:10:42*rektide quit (Ping timeout: 260 seconds)
01:10:43*zepolen quit (Remote host closed the connection)
01:16:37*rektide joined #nim
01:20:55*[CBR]Unspoken joined #nim
01:35:42*yglukhov joined #nim
01:40:19*yglukhov quit (Ping timeout: 248 seconds)
01:42:07*francisl joined #nim
02:02:03*fUD quit (Quit: leaving)
02:02:38*nande quit (Read error: Connection reset by peer)
02:15:17*francisl quit (Quit: francisl)
02:25:13*darkf joined #nim
02:26:26*brson quit (Quit: leaving)
02:28:51gorgonzolapastashould this work or should it not? http://paste.gorgonzolapasta.eu/hB8/ or does it work?
02:34:16*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
02:34:33*Kingsquee joined #nim
02:45:27*pregressive joined #nim
02:54:07gorgonzolapastaor should this happen? SIGSEGV: Illegal storage access. (Attempt to read from nil?)
02:55:32dom96gorgonzolapasta: what line does that happen on?
03:10:35gorgonzolapastathe one with the while loop
03:11:16gorgonzolapastathat's what makes me wonder, because there it should have already once read the file?
03:13:36dom96gorgonzolapasta: you need to initialise `line` I think
03:13:41dom96try `let line = ""`
03:13:44dom96good night
03:37:25*yglukhov joined #nim
03:38:01*mahasamoot quit (Ping timeout: 240 seconds)
03:41:05*Demos quit (Read error: Connection reset by peer)
03:41:55*yglukhov quit (Ping timeout: 248 seconds)
03:45:50*desophos quit (Read error: Connection reset by peer)
03:54:24*pregressive quit ()
04:35:36*girvo_ quit (Quit: leaving)
05:38:46*yglukhov joined #nim
05:42:59*yglukhov quit (Ping timeout: 248 seconds)
05:50:20*vendethiel joined #nim
05:51:45*endragor joined #nim
05:53:25*endragor_ joined #nim
05:53:47*endragor_ quit (Remote host closed the connection)
05:54:18*endragor_ joined #nim
05:57:03*endragor quit (Ping timeout: 240 seconds)
05:59:31*bjz joined #nim
06:08:47*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
06:14:10*vendethiel quit (Ping timeout: 250 seconds)
06:25:30*bjz joined #nim
06:29:06*bjz_ joined #nim
06:31:33*bjz quit (Ping timeout: 240 seconds)
06:33:42*alexsystemf quit (Quit: Connection closed for inactivity)
07:03:28*digitalbum joined #nim
07:03:36*digitalbum left #nim (#nim)
07:09:49*Varriount quit (Disconnected by services)
07:09:49*Varriount_ joined #nim
07:25:09*vendethiel joined #nim
07:30:58*bjz joined #nim
07:32:19*bjz_ quit (Ping timeout: 248 seconds)
07:40:16*yglukhov joined #nim
07:44:35*yglukhov quit (Ping timeout: 248 seconds)
07:48:06*vendethiel quit (Ping timeout: 276 seconds)
07:52:39*silven quit (Quit: No Ping reply in 180 seconds.)
07:54:04*silven joined #nim
07:58:25*zepolen joined #nim
08:07:43*GangstaCat quit (Ping timeout: 252 seconds)
08:13:32*GangstaCat joined #nim
08:19:48*bozaloshtsh quit (Remote host closed the connection)
08:27:45*yglukhov joined #nim
08:34:51*gokr joined #nim
08:38:19*zepolen quit (Remote host closed the connection)
08:39:14*Trustable joined #nim
08:43:56*cheatfate_ joined #nim
08:44:01*yglukhov quit (Ping timeout: 240 seconds)
08:44:19*cheatfate_ is now known as cheatfat
08:44:31*cheatfate quit (Read error: Connection reset by peer)
08:44:56*cheatfat is now known as cheatfate
08:57:59*Demon_Fox quit (Quit: Leaving)
08:58:14*zepolen joined #nim
08:59:20*zepolen quit (Remote host closed the connection)
08:59:30*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
09:00:00*zepolen joined #nim
09:00:00*Kingsquee joined #nim
09:00:06*lenstr quit (Quit: ZNC - http://znc.sourceforge.net)
09:00:17*zepolen quit (Client Quit)
09:04:07*emery left #nim ("Leaving")
09:25:33*toaoMgeorge quit (Ping timeout: 240 seconds)
09:26:04*toaoMgeorge joined #nim
09:30:05*arnetheduck joined #nim
09:50:58*Senketsu quit (Quit: Leaving)
10:07:57*gokr quit (Quit: Leaving.)
10:07:57*gokr1 joined #nim
10:11:06*lxdong joined #nim
10:23:01*girvo quit (Ping timeout: 252 seconds)
10:24:45*MyMind joined #nim
10:25:33*Sembei quit (Ping timeout: 240 seconds)
10:49:43*girvo joined #nim
10:59:15*Arrrr joined #nim
10:59:15*Arrrr quit (Changing host)
10:59:15*Arrrr joined #nim
11:02:56ArrrrAraq: i found a weird bug that, unless it is only me, looks like shit. It is related to iterators and (i assume) garbage collector.
11:03:12ArrrrI have a test of 200~ lines
11:06:01*PMunch joined #nim
11:07:46AraqArrrr: ok, report it please.
11:08:02Araqand compile with -d:useSysAssert -d:useGcAssert to learn more about the bug
11:08:56ArrrrI was about to paste a pastebin, but ok
11:15:20*Arrrr quit (Quit: WeeChat 1.4)
11:15:35*vangroan joined #nim
11:18:06*matkuki joined #nim
11:21:07matkukiwhat is the correct way to cast 'array[1, PyModuleDef]' into a 'ptr PyModuleDef' ?
11:22:08*exebook joined #nim
11:22:25flyxmatkuki: not, since it is not garbage collected?
11:22:33flyxah wait
11:22:33flyxptr
11:22:36*yglukhov joined #nim
11:22:38matkukiyes
11:23:26flyxprobably (ptr PyModuleDef)(addr(v[0])
11:23:39flyxunsure if it needs a cast
11:24:01matkukilet me try...
11:26:19matkukithat's it, thanks! forgot the [0] index in the addr
11:27:56matkukiflyx: does this pointer translate into a C array pointer 'PyModuleDef*' ?
11:29:11matkukii mean 'ptr PyModuleDef' == 'PyModuleDef*' ?
11:30:20flyxyeah, it should
11:30:27matkukiok, thanks
11:30:27*flyx has not done much C interop
11:31:00flyxin C, arrays and pointers are two different things, unless you sneeze near an array, then it becomes a pointer
11:31:20matkukihaha
11:33:43*sorakun joined #nim
11:41:15*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
11:43:38PMunchThink I found another bug in the Json module
11:44:09PMunchIf you try to create an empty array by using "var arr = %[]" it gives an empty object instead
11:56:23*niv quit (Ping timeout: 244 seconds)
12:01:12PMunchhttps://github.com/nim-lang/Nim/issues/3950
12:01:19PMunchThere, filed an error on it
12:03:25dom96PMunch: yeah, looks like a bug. You can also just do newJArray().
12:05:24PMunchOh yea, newJArray() is even better than parseJson("[]")
12:06:56PMunchUpdated the bug report to reflect that the newJ* method works as well
12:28:58*emery joined #nim
12:33:33*toaoMgeorge quit (Ping timeout: 248 seconds)
12:34:36*toaoMgeorge joined #nim
12:45:07*PMunch quit (Quit: leaving)
12:45:57*Varriount joined #nim
12:47:40*Varriount_ quit (Ping timeout: 252 seconds)
13:04:18*niv joined #nim
13:06:40*Senketsu joined #nim
13:15:29*vangroan quit (Quit: Leaving)
13:30:39*endragor_ quit (Remote host closed the connection)
13:50:45arnetheduckhi.. does header imply importc?
13:50:55reactormonkarnetheduck, nope
13:51:04reactormonkactually... not sure
13:52:02arnetheduckstd lib seems to be mixed in this regard, can't really tell
13:52:16reactormonkit does.
13:52:36arnetheduckimportc seems to be used to renamed the imported symbol sometimes, but...
13:52:59reactormonkhttps://github.com/nim-lang/Nim/blob/devel/compiler/pragmas.nim#L681-L688
13:54:05arnetheduckreactormonk, ah, right.. well, it kind of makes sense, but the explicit importc's sprinkled here and there confused me ;)
13:54:22reactormonkarnetheduck, remove them, make a PR and see if travis complains.
13:54:54arnetheduckactually, I'm fixing another issue.. looks like munmap has different declarations in different parts of the std lib
13:55:30arnetheduckincidentally, one has importc and the other doesn't, though that's not the bug (return type is)
13:57:33*BitPuffin joined #nim
14:00:37reactormonkcheck the defines
14:00:39*OnwardEuler quit (Ping timeout: 268 seconds)
14:03:16arnetheduckreactormonk, defines?
14:03:41*Pisuke joined #nim
14:04:24*OnwardEuler joined #nim
14:06:19*MyMind quit (Ping timeout: 260 seconds)
14:10:12reactormonkarnetheduck, when defined() etc. basically checks so lowlevel stuff can be implemented differently for different systems.
14:14:38arnetheduckreactormonk, yeah. munmap always returns an int though, on posix: https://github.com/nim-lang/Nim/pull/3951
14:18:12*gokr1 quit (Ping timeout: 250 seconds)
14:19:56reactormonkarnetheduck, I'd forward the return type via {.discardable.} instead of discard - unless that breaks the typing.
14:21:27arnetheduckdunno, the one in posix.nim is not {,discardable.}... seems like good practice to keep them the same (since I guess importing posix in system would be a nono)
14:22:34arnetheduckreactormonk, I
14:22:44arnetheduck'm fine either way though as long as their types are the same
14:31:56*pregressive joined #nim
14:33:17cheatfateis there any tool which i can run on 3VM's so when i save my file all 3VMs start to compile and give me results?
14:33:35cheatfate3VMs = 3 virtual machines
14:33:51reactormonkcheatfate, cssh if you're cheap, ansible if you want something more steady
14:34:16pigmejyou can use fabric also which is even simpler
14:34:33reactormonksimpler than cssh?
14:34:35pigmejbut cssh may be good enough as reactormonk mentioned
14:34:45pigmejwell nothing could be simpler than cssh ;d
14:34:51cheatfateok i will take a look
14:35:20pigmejprobalby you could also do similar multiplexing in tmux
14:35:50reactormonkyeah. But nothing beats cssh in terms of simplicity.
14:35:56pigmejsure :)
14:36:21reactormonkPlus 20 terminals give you an instant geekgasm.
14:44:27*pregressive quit (Remote host closed the connection)
14:52:46*lxdong quit (Ping timeout: 252 seconds)
14:54:29*matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822])
14:59:46*emery left #nim ("Leaving")
15:01:12*toaoMgeorge quit (Read error: Connection reset by peer)
15:01:42*toaoMgeorge joined #nim
15:24:00*someplace is now known as mloc
15:27:48*mloc quit (Quit: poof)
15:28:05*Mloc joined #nim
15:33:54*pregressive joined #nim
15:46:33*arnetheduck quit (Ping timeout: 240 seconds)
15:46:58*arnetheduck joined #nim
15:55:05*arnetheduck quit (Ping timeout: 244 seconds)
16:11:09*arnetheduck joined #nim
16:16:42*arnetheduck quit (Remote host closed the connection)
16:16:55*saml joined #nim
16:26:50*desophos joined #nim
16:30:15*PMunch joined #nim
16:34:33*krux02 joined #nim
16:35:12krux02can anyone compile this code? https://gist.github.com/krux02/af47abcef511a26939e0
16:39:27krux02yesterday I created this code and the generated c code didn't compile, today I extracted only the non-compiling part, but the error is now differenrt, I get a segmentation fault during compilation
16:47:16*Jesin joined #nim
16:51:12*PMunch quit (Quit: leaving)
16:51:13*jaco60 joined #nim
16:54:23reactormonkkrux02, ./koch temp c <your code> for a debug build of the compiler
16:55:41krux02reactormonk: thank you
17:04:07krux02 reactormonk: I did as you proposed, I am not sure if it helps me
17:04:23krux02reactormonk: since I do not really understant the compiler architecture
17:04:25reactormonkkrux02, probably not, but it may help you find the error.
17:04:31krux02https://gist.github.com/krux02/af47abcef511a26939e0
17:04:36krux02I put the output there
17:05:47reactormonkkrux02, http://nim-lang.org/docs/intern.html interesting parts: debugging / archidecture
17:06:41reactormonkI'd put a debug or two in to see which code exactly triggers.
17:23:57*yglukhov quit (Ping timeout: 244 seconds)
17:24:11*Demon_Fox joined #nim
17:24:54Araqproc `$`(v : Vec3f) = $(array[3, float32](v))
17:25:00Araqkrux02: give it a return type?
17:28:18krux02Araq: ok, that definitel is a bug on my side
17:28:34Araqwell the compiler shouldn't crash of course
17:28:59krux02I agree
17:29:03Araqand I think that's a showstopper bug, even.
17:42:17krux02honestly, I would really like if short I can leave out the type for single expression procedures, but I have no idea if that would cause any trouble anywhere else in the compilation model
17:46:19*wuehlmaus quit (Read error: Connection reset by peer)
17:46:46krux02Araq: I updated the gist now https://gist.github.com/krux02/af47abcef511a26939e0
17:47:41krux02now I have the bug again, where the compiler just creates c code that doesn't compile
17:48:40*brson joined #nim
17:51:47*zepolen joined #nim
17:54:09*gokr joined #nim
17:57:05*sarlalian quit (Quit: ZNC 1.6.1 - http://znc.in)
18:01:59*Arrrr joined #nim
18:01:59*Arrrr quit (Changing host)
18:01:59*Arrrr joined #nim
18:03:24*bozaloshtsh joined #nim
18:03:25*matkuki joined #nim
18:04:46ArrrrI'm sorry but it is quite the opposite. I have a bug that, when generating garbage, it gets solved. What the hell http://pastebin.com/sd7iJaZa
18:07:25matkukiCan someone look at this? https://bpaste.net/show/83168ea437e9
18:08:07matkukii'm porting a python3 embedding example, is the Nim code equivalent?
18:08:44matkukithe code compiles, but i'm getting a segfault in line 101
18:10:56*ochkoffein joined #nim
18:18:40matkukii'm guessing it's somewhere in the PyModuleDef initialization...
18:19:43*ochkoffein quit (Quit: -----------------------------------------------)
18:20:36*yglukhov joined #nim
18:25:01*yglukhov quit (Ping timeout: 248 seconds)
18:26:41krux02Araq: I have here some code snippets that do not compile. I would really like if it would be possible in the future. https://gist.github.com/krux02/fb62c7861bf8a8f6d85b
18:30:33def-krux02: about top level defer: top level code is a special case and sometimes has bad performance, better use a proc anyway
18:31:57def-krux02: postfix cast is probably problematic because it would not be clear whether [float64] might be an array
18:33:15krux02def-: most of the thinks I defer at top level are propably irrelevant anyway, like file closing at program exit (get's done by the os anyway), but I still like to write it in scrips for consistency
18:33:26krux02and in scripts I do not care that much for performance
18:34:08def-krux02: you know that "assignment using if branch" works with simple constructs, like "o" & "dd"?
18:34:43*matkuki quit (Ping timeout: 244 seconds)
18:34:51krux02def-: it also works with writeng "odd" directly, but that's not the point
18:35:43krux02it's more about that there are a lot of cases wher I have to create an object as a local variable, call some setters on it, and then never change it again
18:36:46krux02I know workarounds for all of the cases
18:37:04krux02but they are all workarounds and don't fell natural
18:37:45*matkuki joined #nim
18:38:49*lobo joined #nim
18:39:12*lobo is now known as Guest56604
18:39:50*Guest56604 quit (Client Quit)
18:44:46*BitPuffin quit (Read error: Connection reset by peer)
18:49:50*vendethiel joined #nim
18:52:10*Matthias247 joined #nim
18:52:11*yglukhov joined #nim
18:55:24matkukithe segfault happens somewhere in the python dynamic library, could a function signature be off?
18:58:40*wuehlmaus joined #nim
19:02:44*mahasamoot joined #nim
19:02:59*toaoMgeorge quit (Ping timeout: 248 seconds)
19:04:09*ics quit (Quit: Connection closed for inactivity)
19:06:03*LeNsTR joined #nim
19:07:19bozaloshtshkrux02: assignment with if is possible if you keep it all on one line
19:08:56bozaloshtshwhoops, didn't read everything
19:10:51*yglukhov_ joined #nim
19:10:52*yglukhov quit (Read error: Connection reset by peer)
19:14:04*yglukhov_ quit (Read error: Connection reset by peer)
19:14:38*yglukhov joined #nim
19:15:35*Demon_Fox quit (Quit: Leaving)
19:17:45*yglukhov quit (Read error: Connection reset by peer)
19:18:09*yglukhov joined #nim
19:20:23*yglukhov_ joined #nim
19:20:23*yglukhov quit (Read error: Connection reset by peer)
19:23:42*yglukhov joined #nim
19:23:43*yglukhov_ quit (Read error: Connection reset by peer)
19:26:08*yglukhov_ joined #nim
19:26:09*yglukhov quit (Read error: Connection reset by peer)
19:28:29*yglukhov_ quit (Read error: Connection reset by peer)
19:36:16*yglukhov joined #nim
19:39:14*yglukhov quit (Read error: Connection reset by peer)
19:42:22*yglukhov joined #nim
19:46:06*kulelu88 joined #nim
19:49:54*matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822])
19:53:23*yglukhov quit (Remote host closed the connection)
20:07:48*krux02 quit (Ping timeout: 276 seconds)
20:21:43*Matthias247 quit (Read error: Connection reset by peer)
20:23:05*Matthias247 joined #nim
20:35:37*LeNsTR is now known as lenstr
20:44:49*Arrrr quit (Quit: WeeChat 1.4)
20:48:41*yglukhov joined #nim
20:52:49*yglukhov quit (Ping timeout: 240 seconds)
20:56:01*krux02 joined #nim
20:59:29*boopsiesisaway is now known as boopsies
21:11:01*yglukhov joined #nim
21:12:41*matkuki joined #nim
21:13:27*alexsystemf joined #nim
21:19:24*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:27:15*irrequietus joined #nim
21:40:12*bjz joined #nim
21:42:29*bjz quit (Read error: Connection reset by peer)
21:45:00VarriountAraq: You there?
21:45:13Araqhi
21:52:25*yglukhov quit (Remote host closed the connection)
22:07:40*matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822])
22:08:08gmpreussner_he's just checking on you to make sure you're not lazy :)
22:11:06Araqno, we are talking privately.
22:31:54*desophos_ joined #nim
22:33:57*desophos quit (Ping timeout: 244 seconds)
22:34:58*desophos_ quit (Remote host closed the connection)
22:40:25*gokr quit (Read error: Connection reset by peer)
22:52:34*vendethiel quit (Ping timeout: 250 seconds)
22:52:53*yglukhov joined #nim
22:56:52*Trustable quit (Remote host closed the connection)
22:58:06*yglukhov quit (Ping timeout: 276 seconds)
23:02:07*boopsies is now known as boopsiesisaway
23:05:48*pregressive quit (Remote host closed the connection)
23:21:34*desophos joined #nim
23:23:42*alexsystemf quit (Quit: Connection closed for inactivity)
23:25:34*desophos quit (Ping timeout: 244 seconds)
23:27:28*desophos joined #nim
23:31:36*desophos quit (Remote host closed the connection)
23:34:43*irrequietus quit ()
23:50:28*Matthias247 quit (Read error: Connection reset by peer)
23:50:29*krux02 quit (Remote host closed the connection)
23:51:27*desophos joined #nim