<< 16-06-2019 >>

00:15:15*theelous3 joined #nim
00:30:27*Jjp137 quit (Ping timeout: 245 seconds)
00:49:28*theelous3 quit (Ping timeout: 244 seconds)
02:06:10*Jesin quit (Quit: Leaving)
02:11:05*Jesin joined #nim
03:19:12*envoyt quit (Ping timeout: 272 seconds)
03:35:07*laaron joined #nim
03:41:08FromDiscord_<treeform> I think its because threads that own the objects are responsible to free them, meanwhile other threads can read and write them?
03:43:17*dddddd quit (Remote host closed the connection)
03:58:16*envoyt joined #nim
04:13:09*laaron quit (Quit: ZNC 1.7.1 - https://znc.in)
04:13:28*laaron joined #nim
04:24:16*laaron quit (Quit: ZNC 1.7.1 - https://znc.in)
04:24:51*laaron joined #nim
04:36:42*deech joined #nim
04:48:03*laaron quit (Remote host closed the connection)
04:51:11*nsf joined #nim
04:51:13*laaron joined #nim
04:55:05*acidx_ is now known as acidx
04:55:34*acidx is now known as Guest43919
04:56:37*Guest43919 is now known as acidx
04:59:44*Jjp137 joined #nim
05:08:08*deech quit (Ping timeout: 272 seconds)
05:27:26*envoyt quit (Ping timeout: 244 seconds)
05:27:53*envoyt joined #nim
05:38:14*laaron quit (Remote host closed the connection)
05:45:46*laaron joined #nim
05:46:43*Perkol joined #nim
05:48:53*laaron quit (Remote host closed the connection)
05:51:34*laaron joined #nim
05:58:20*narimiran joined #nim
06:07:49*Perkol quit (Quit: Leaving)
06:15:50*Perkol joined #nim
06:22:26*devroomdog joined #nim
06:22:33*devroomdog left #nim ("Leaving")
06:27:08*laaron quit (Remote host closed the connection)
06:29:48*Perkol quit (Quit: Leaving)
06:33:54*solitudesf joined #nim
06:34:23*laaron joined #nim
06:39:23*Vladar joined #nim
06:40:32*solitudesf quit (Quit: Leaving)
06:52:41*envoyt quit (Ping timeout: 244 seconds)
06:56:26*dGtlc3 quit (Ping timeout: 272 seconds)
06:56:52*dGtlc3 joined #nim
07:00:00*gmpreussner quit (Quit: kthxbye)
07:01:53*laaron quit (Remote host closed the connection)
07:01:58*laaron- joined #nim
07:05:54FromDiscord_<Huuskes> is there anyway to get nimsuggest (in VSCode) to stop complaining about createThread being an undeclared identifier?
07:09:49*envoyt joined #nim
07:10:02*vlad1777d quit (Ping timeout: 245 seconds)
07:11:58leorizecreate a config file for your project with --threads:on
07:22:13AraqHuuskes: get your nim.cfg right so nimsuggest knows you compile with --threads.on ... oh I'm too late
07:43:18FromDiscord_<Huuskes> that did fix it
07:51:49*dwdv joined #nim
08:01:08*laaron- quit (Quit: ZNC 1.7.1 - https://znc.in)
08:03:27*laaron joined #nim
08:10:30*laaron quit (Remote host closed the connection)
08:12:28*laaron joined #nim
08:15:59*lf-araujo joined #nim
08:27:29*dddddd joined #nim
08:33:39*jjido joined #nim
08:33:47*Cthalupa quit (Ping timeout: 245 seconds)
08:36:03*Cthalupa joined #nim
08:51:35*laaron quit (Remote host closed the connection)
08:53:04*laaron joined #nim
08:58:47*nsf quit (Quit: WeeChat 2.4)
09:01:42*envoyt quit (Ping timeout: 268 seconds)
09:02:04*envoyt joined #nim
09:02:08*laaron quit (Remote host closed the connection)
09:04:17*laaron joined #nim
09:05:38*dddddd quit (Ping timeout: 272 seconds)
09:05:44*laaron quit (Client Quit)
09:06:03*laaron joined #nim
09:07:44*dddddd joined #nim
09:16:30*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:17:20*laaron quit (Remote host closed the connection)
09:18:47*jjido joined #nim
09:19:55*lf-araujo quit (Ping timeout: 248 seconds)
09:20:31*lf-araujo joined #nim
09:21:19*laaron joined #nim
09:22:09*couven92 joined #nim
09:22:58*arecaceae quit (Remote host closed the connection)
09:23:17*arecaceae joined #nim
09:30:18*vlad1777d joined #nim
09:31:44*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:35:38*neceve joined #nim
09:37:29*laaron quit (Remote host closed the connection)
09:40:40*laaron joined #nim
10:06:19*go|dfish quit (Ping timeout: 248 seconds)
10:08:37*laaron quit (Remote host closed the connection)
10:10:33*laaron joined #nim
10:12:21*go|dfish joined #nim
10:15:48*lf-araujo quit (Quit: lf-araujo)
10:16:02*lf-araujo joined #nim
10:16:34*solitudesf- joined #nim
10:16:47*solitudesf- quit (Remote host closed the connection)
10:17:08*solitudesf- joined #nim
10:29:52*vlad1777d quit (Ping timeout: 248 seconds)
10:32:29lqdev[m]I suppose I can also do something similar with --newruntime?
10:35:12*solitudesf- quit (Ping timeout: 248 seconds)
10:39:17*couven92 quit (Quit: Client Disconnecting)
10:42:43*vlad1777d joined #nim
10:44:24*rowrow joined #nim
10:49:01*rowrow quit (Ping timeout: 256 seconds)
10:49:37*vlad1777d quit (Ping timeout: 268 seconds)
10:49:41*laaron quit (Remote host closed the connection)
10:53:14*laaron joined #nim
10:56:38*Acid147 joined #nim
10:58:53*lf-araujo quit (Ping timeout: 258 seconds)
11:01:36*lf-araujo joined #nim
11:33:47*lf-araujo quit (Ping timeout: 248 seconds)
11:45:52*Cthalupa quit (Ping timeout: 272 seconds)
11:47:27*Cthalupa joined #nim
11:51:13*nsf joined #nim
12:02:08*AndChat|624225 joined #nim
12:04:12*laaron quit (Remote host closed the connection)
12:05:30*envoyt quit (Ping timeout: 272 seconds)
12:06:53*laaron joined #nim
12:10:46*laaron quit (Remote host closed the connection)
12:12:23*lf-araujo joined #nim
12:12:53*laaron joined #nim
12:32:44*lritter joined #nim
12:37:39*laaron quit (Remote host closed the connection)
12:40:45*laaron joined #nim
12:42:08*Vladar quit (Remote host closed the connection)
12:46:11*Vladar joined #nim
12:57:36*AndChat|624225 quit (Read error: Connection reset by peer)
12:57:58*envoyt joined #nim
13:05:19*laaron quit (Remote host closed the connection)
13:07:43*laaron joined #nim
13:09:05*solitudesf- joined #nim
13:15:50*jjido joined #nim
13:17:49*lf-araujo quit (Remote host closed the connection)
13:19:22nooniencan i pass a sequence as varargs? i've got `proc foo(a: string; b: varargs[string])` and i want to call it like such: `foo("a", "b", "c", someStringSeq...)`, is this possible?
13:23:26*bobby joined #nim
13:23:53*bobby quit (Remote host closed the connection)
13:24:56*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:30:10*PrimHelios_ joined #nim
13:30:53*PrimHelios quit (Ping timeout: 245 seconds)
13:36:04Zevvuse openArray
13:36:09Zevvhttps://nim-lang.github.io/Nim/manual.html#types-open-arrays
13:36:26noonienhow would that work?
13:36:36noonieni still want to be able to pass variadic parameters
13:38:04Zevvoh right
13:40:08ZevvI thought I could fix that with generics, but then I get ambigious calls
13:40:53Zevvoh wait
13:40:59Zevvyou can just pass as seq, did you even try that :)
13:41:00solitudesf-you can pass sequence instead of varargs, but you can pass varargs and sequence at the same time
13:41:08solitudesf-*cant pass at the same time
13:41:12solitudesf-i think
13:41:21noonienyeah, that's what i was trying to achieve
13:41:33Zevvhttp://ix.io/1LWq Just Works
13:41:53noonieni yes, but that is different from my example
13:41:59solitudesf-maybe you can have varargs strings and optional string sequence?
13:42:03noonieni'll probably do that though, thanks!
13:43:03Zevvoh right, I didn't even read your question properly. lazy sunday afternoon
13:43:23noonienbtw, the error i was getting for the above example is `Error: cannot convert seq[string] to varargs[string]`
13:43:39noonienwhich is a weird error considering seq[string] should work
13:48:38*bobby joined #nim
13:53:22nooniendoes nim still have term rewriting macros?
13:53:42noonieni can find how to turn them on/off in the manual, but that's about it as far as i can tell
13:54:08Zevvhttps://nim-lang.github.io/Nim/manual_experimental.html#term-rewriting-macros
13:54:22nooniengreat, thanks!
14:09:17*Tyresc joined #nim
14:10:40nooniencan im import a term rewriting macro from another file?
14:14:27Araqsure
14:16:26noonienso i can define the TRM in another file, and if i just import it, the macros applies to my current file as well?
14:17:15Araqyep
14:17:21noonienawesome!
14:19:58Araqyou can also do: import module except trMacroHere if it's buggy :P
14:20:22*PrimHelios joined #nim
14:21:15*PrimHelios_ quit (Ping timeout: 248 seconds)
14:21:33noonienoh, great
14:28:45*theelous3 joined #nim
14:39:25nooniencan i apply a TR to all the files used for compiling?
14:40:15*theelous3 quit (Ping timeout: 268 seconds)
14:41:34Araqno.
15:09:42lqdev[m]what's the Nim counterpart of `fseek`?
15:09:56*Kaivo joined #nim
15:15:04ZevvsetFilePos
15:15:20ZevvI hate that it is not called seek
15:15:38lqdev[m]yeah, it's kinda confusing
15:15:41Zevvwe have open(), we have close(), we have read() and we have write(), and then there is setFilePos()
15:15:48FromGitter<kaushalmodi> lqdev[m]: grepping `fseek` in Nim source shows a bunch of Nim proc importcing fseek from C, in `io.nim`
15:16:37lqdev[m]what does the return code of C `fseek` mean? I only know that if it's 0 then the seeking succeeded, but what about other values? `man 3 fseek` does not mention them.
15:16:52lqdev[m]ah
15:16:58lqdev[m]I didn't read till the end
15:17:19lqdev[m]`Otherwise, -1 is returned and errno is set to indicate the error.`
15:18:19lqdev[m]but they worded it pretty confusingly, I thought it referred to `ftell` and only `ftell`
15:19:00*laaron quit (Remote host closed the connection)
15:19:59*laaron joined #nim
15:30:03*Tyresc quit (Ping timeout: 248 seconds)
15:32:59*clyybber joined #nim
15:49:43*nsf quit (Quit: WeeChat 2.4)
15:49:56*laaron- joined #nim
15:53:32*laaron quit (Remote host closed the connection)
15:56:01*bobby quit (Quit: bye bye)
16:02:08lqdev[m]are `array`s always stack-allocated?
16:03:14Araqif you put them on the stack
16:03:49lqdev[m]I mean when using `var arr: array[4096, int16]`
16:03:55lqdev[m]so it should be on the stack
16:09:35Araqyes
16:10:54lqdev[m]is it possible to cast an array into a cstring? `cast[cstring](myArray)` doesn't work, returning this error: `expression cannot be cast to cstring=CString`
16:11:31lqdev[m]the array is an `array[4096, int16]`
16:13:15lqdev[m]nevermind, doing `cast[cstring](addr myArray)` worked
16:25:28*jjido joined #nim
16:25:52*clyybber quit (Quit: WeeChat 2.5)
16:27:04*theelous3 joined #nim
16:32:34FromGitter<NamPNQ> can anyone review my pr? https://github.com/nim-lang/Nim/pull/11500
16:33:43Araqdom96: ?
16:38:14dom96reviewed
16:50:14leorizeAraq: can you look at the changes to testament here? https://github.com/nim-lang/Nim/pull/11485
16:51:06*neceve quit (Remote host closed the connection)
16:53:13dom96It seems that when I have `import sdl2 except Point` the error messages do not add the module name, which still means they are confusing
16:56:04FromGitter<arnetheduck> @alehander42 I miss the ability to control what gets captured, and the syntax is not much of an improvement over just `proc` in terms of verbosity (except it's different so you have to look it up in the manual) which gives birth to those ugly `anyIt` solutions that mandate a fixed variable name which is less composable..
17:10:26*hoijui joined #nim
17:23:08*Trustable joined #nim
17:36:52*Trustable quit (Remote host closed the connection)
17:39:28*Jesin quit (Quit: Leaving)
17:39:32*abm joined #nim
17:47:15*Jesin joined #nim
18:06:32*lf-araujo joined #nim
18:12:03*lf-araujo quit (Ping timeout: 258 seconds)
18:16:05*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:18:53*jjido joined #nim
18:20:24*nsf joined #nim
18:30:01*Jesin quit (Quit: Leaving)
18:37:59*Jesin joined #nim
18:45:32*a_b_m joined #nim
18:49:10*abm quit (Ping timeout: 258 seconds)
18:54:46*Vladar quit (Remote host closed the connection)
18:54:51*abm joined #nim
18:55:11*Vladar joined #nim
18:57:32*a_b_m quit (Ping timeout: 245 seconds)
19:01:16*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:13:54*natrys joined #nim
19:15:32*jjido joined #nim
19:38:58*abm quit (Quit: Leaving)
19:40:56*jjido quit (Read error: Connection reset by peer)
19:52:48*nsf quit (Quit: WeeChat 2.4)
19:57:18*Tyresc joined #nim
20:12:07*abm joined #nim
20:37:43*abm quit (Quit: Leaving)
20:56:49*narimiran quit (Ping timeout: 258 seconds)
21:04:11*Vladar quit (Remote host closed the connection)
21:28:05*solitudesf- quit (Quit: Leaving)
21:28:27*solitudesf joined #nim
21:58:28*solitudesf quit (Ping timeout: 246 seconds)
22:06:22*nolanv joined #nim
22:07:07*dwdv quit (Ping timeout: 245 seconds)
22:25:59*PrimHelios quit (Quit: ZNC - https://znc.in)
22:28:19*PrimHelios joined #nim
22:55:33*NimBot joined #nim
22:59:37*natrys quit (Quit: natrys)
23:56:05*dGtlc3 quit (Read error: Connection reset by peer)
23:56:39*dGtlc3 joined #nim