<< 22-12-2015 >>

00:00:16*MedMeat joined #nim
00:00:44*MedMeat left #nim ("Leaving")
00:10:32*brson_ joined #nim
00:11:20*kulelu88 quit (Ping timeout: 260 seconds)
00:12:30*Jesin quit (Ping timeout: 260 seconds)
00:13:16*cyraxjoe quit (Quit: No Ping reply in 180 seconds.)
00:13:32*cyraxjoe joined #nim
00:13:37*Jesin joined #nim
00:13:40*brson quit (Ping timeout: 260 seconds)
00:17:06*tmm1 quit (Read error: Connection reset by peer)
00:20:37*Matthias247 quit (Read error: Connection reset by peer)
00:23:20*kulelu88 joined #nim
00:24:52*ephja quit (Ping timeout: 272 seconds)
00:29:12*tmm1 joined #nim
00:43:01*Demos quit (Read error: Connection reset by peer)
01:07:55*tmm1 quit (Ping timeout: 260 seconds)
01:10:59*krux02 joined #nim
01:11:22krux02hello people, is somebody online?
01:15:22Araq_hi krux02
01:18:13*tmm1 joined #nim
01:36:48*Varriount-Laptop joined #nim
01:36:57Varriount-Laptop>_>
01:36:59Varriount-Laptop<_<
01:37:04krux02hi
01:37:16krux02^_^
01:40:07Varriount-LaptopAraq_: Finals are over, I'm free! (For 3 weeks)
01:43:43*brson_ quit (Ping timeout: 260 seconds)
01:46:49krux02I am not Araq, but I am here
01:47:50*tmm1 quit (Ping timeout: 272 seconds)
01:49:49Varriount-Laptopkrux02: Well, yes, I know that.
01:50:21Varriount-LaptopI'm just letting him know so that he can yell at me for being gone so long.
01:53:06krux02do you know, if it is possible to get the value of a const in a typed macro expression
01:53:52krux02with getImpl I can get the expression tree that created the const, and if I want to I can wirite a recurive eval, but I thought, maybe there is something easier
01:55:23*brson joined #nim
01:55:27*Demon_Fox joined #nim
01:57:33*krux02 quit (Quit: Page closed)
01:59:27Araq_getImpl should return the reduced AST, I think
01:59:43*Varriount-Laptop waves at Araq_
02:08:39*vendethiel joined #nim
02:11:09*brson quit (Quit: leaving)
02:16:20*[CBR]Unspoken quit (Ping timeout: 265 seconds)
02:19:43*ulyssesdwolfe joined #nim
02:30:38*[CBR]Unspoken joined #nim
02:31:35*vendethiel quit (Ping timeout: 240 seconds)
02:41:07*ulyssesdwolfe quit (Ping timeout: 260 seconds)
02:50:25*kulelu88 left #nim ("Leaving")
03:51:37*ulyssesdwolfe joined #nim
04:17:43*pregressive joined #nim
04:19:00*tmm1 joined #nim
04:47:15*pregressive quit (Remote host closed the connection)
04:53:24*tmm1 quit (Ping timeout: 256 seconds)
04:58:04*tmm1 joined #nim
05:02:19*tmm1 quit (Read error: Connection reset by peer)
05:06:15*lyro quit (Ping timeout: 260 seconds)
05:06:54*lyro joined #nim
05:14:25*solidsnack joined #nim
06:14:32*darkf joined #nim
06:20:43*nande quit (Remote host closed the connection)
06:28:36*Varriount-Laptop quit (Ping timeout: 256 seconds)
06:58:26*bigfondue quit (Ping timeout: 240 seconds)
06:58:41*gunn quit (Quit: My Mac has gone to sleep. ZZZzzz…)
06:59:54*gunn joined #nim
07:00:20*bigfondue joined #nim
07:02:54*ephja joined #nim
07:12:57*sepisoad joined #nim
07:19:26*gunn quit (Ping timeout: 246 seconds)
07:29:35*sepisoad quit (Ping timeout: 264 seconds)
07:30:18*lokulin left #nim (#nim)
07:35:26*ulyssesdwolfe quit (Ping timeout: 240 seconds)
07:39:58*Demon_Fox quit (Quit: Leaving)
07:46:30*solidsnack quit (Quit: My Mac has gone to sleep. ZZZzzz…)
07:52:09*solidsnack joined #nim
07:53:35*BitPuffin|osx quit (Ping timeout: 240 seconds)
08:16:48*ulyssesdwolfe joined #nim
08:17:21*ulyssesdwolfe quit (Client Quit)
08:18:34*solidsnack is now known as randommmmm
08:18:53*randommmmm is now known as solidsnack
08:22:09*xiongxin joined #nim
08:22:13*solidsnack quit (Quit: Textual IRC Client: www.textualapp.com)
08:28:38*solidsna_ joined #nim
08:28:45*solidsna_ quit (Client Quit)
08:36:07*xiongxin quit (Quit: Page closed)
10:28:26*M-max quit (Remote host closed the connection)
10:28:26*M-Quora quit (Remote host closed the connection)
10:32:11*M-max joined #nim
10:48:00*pregressive joined #nim
10:58:07*CcxCZ quit (Ping timeout: 260 seconds)
11:08:02*M-Quora joined #nim
11:08:14*pregressive quit (Remote host closed the connection)
11:14:36*CcxCZ joined #nim
11:17:23*Matthias247 joined #nim
11:22:26*darkf quit (Read error: Connection reset by peer)
11:25:27*darkf joined #nim
12:36:05federico3dom96: I successfully rebuilt the reuseport commit against devel on a kernel 3.2 using rm nimcache -rf && cd csources && sh build.sh && cd .. && bin/nim c koch && ./koch boot -d:release
12:37:00dom96Did you build nimble successfully?
12:39:11federico3now yes
13:24:27*sepisoad joined #nim
13:33:36*sepisoad quit (Ping timeout: 256 seconds)
13:41:20*HakanD joined #nim
13:42:11*Amun_Ra quit (Ping timeout: 264 seconds)
13:48:18*matkuki joined #nim
13:49:16*Amun_Ra joined #nim
14:11:02*dohxis joined #nim
14:11:56dohxisEveryone is using Aporia IDE or a text editor? I cant get Aporia to work for me
14:12:50reactormonkdohxis, emacs here
14:17:20dohxisI will go for Atom I guess. Emacs has deep learning curve
14:23:54*HakanD quit (Quit: Be back later ...)
14:24:09reactormonkdohxis, spacemacs. Not sure if javascript or elisp is more wierd ^^
14:29:16*HakanD joined #nim
14:30:27*dohxis quit (Ping timeout: 252 seconds)
14:35:01*Jesin quit (Quit: Leaving)
14:59:34*pregressive joined #nim
15:07:13*Jesin joined #nim
15:13:35*dohxis joined #nim
15:13:52dohxisyou you tell me how to install nim-mode in spacemars. Tutorial is not really informative
15:27:45*sepisoad joined #nim
15:31:42*flyx is not using Aporia because it's GTK, but wonders if he can manage to put nimsuggest in another editor
15:46:35*Varriount-Laptop joined #nim
15:49:04*Demon_Fox joined #nim
15:51:18*Varriount-Laptop quit (Ping timeout: 256 seconds)
15:51:30*Varriount-Laptop joined #nim
15:55:42*dohxis quit (Ping timeout: 252 seconds)
15:56:16*Trustable joined #nim
16:13:04*sepisoad quit (Ping timeout: 245 seconds)
16:16:24*brson joined #nim
16:16:26*Varriount-Laptop quit (Ping timeout: 276 seconds)
16:16:27federico3dom96: vim
16:16:44federico3oops, I meant dohxis
16:18:10*pregressive quit (Remote host closed the connection)
16:19:25dom96federico3: hrm, how come it works on 3.2 then?
16:21:19*Varriount-Laptop joined #nim
16:23:50federico3dom96: how's Nim selecting the right socket.h to import from?
16:32:26*JStoker quit (Ping timeout: 240 seconds)
16:32:42*pregressive joined #nim
16:34:09*JStoker joined #nim
16:42:06*Matthias247 quit (Read error: Connection reset by peer)
16:44:09*boopisaway is now known as boop
16:49:41*Nedf joined #nim
16:49:53*Demon_Fox quit (Quit: Leaving)
16:51:13*matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 43.0.1/20151216175450])
16:51:15NedfHello I am trying to build a nimble package. I cerated a simple .nimble file with srcDir. Everything looks like working, but how to call procedures now? package.test() and test() looks like not working.
17:01:50dom96federico3: no idea
17:02:22dom96Nedf: Did you import the package?
17:02:58NedfYes. it looks like if I add * like test*() it works
17:03:43dom96yeah, you need to export the procedure
17:03:49dom96That's what the `*` does.
17:11:08*pregressive quit (Remote host closed the connection)
17:17:03*BitPuffin|osx joined #nim
17:19:30federico3dom96: it might have picked up the sys/socket.h from a newer kernel sources
17:20:50*HakanD quit (Quit: Be back later ...)
17:32:15*irrequietus joined #nim
17:32:18*pregressive joined #nim
17:48:42*zepolen joined #nim
17:58:28*Varriount-Laptop quit (Ping timeout: 276 seconds)
18:04:55*tmm1 joined #nim
18:19:16*Varriount-Laptop joined #nim
18:32:55*Varriount-Laptop quit (Ping timeout: 276 seconds)
18:52:12*darkf quit (Quit: Leaving)
18:52:58*vendethiel joined #nim
19:12:14Nedfhow to export variables?
19:13:34*HakanD joined #nim
19:13:49*pregressive quit (Remote host closed the connection)
19:17:25*irrequietus quit ()
19:25:39Araq_Nedf: var x*: int
19:35:21*tmm1_ joined #nim
19:38:10*tmm1 quit (Ping timeout: 272 seconds)
19:38:47*tmm1_ is now known as tmm1
19:44:46*tmm1 quit (Ping timeout: 240 seconds)
19:48:07*pregressive joined #nim
19:50:39*Jesin quit (Quit: Leaving)
19:52:20*Nedf quit (Quit: Page closed)
20:36:50flyxhow can I specify the type of an empty array constructor?
20:38:58ephjayou need to annotate the left-hand side
20:40:04flyxwell, strictly spoken, it is
20:40:16flyxI have code like this:
20:40:17flyxhttps://gist.github.com/flyx/708e1c5ea6687915a7ff
20:41:20flyxI want to be able to provide an empty array as parameter, but I can't figure out how
20:41:47*Varriount-Laptop joined #nim
20:50:14Araq_flyx: that's due to the template, it works with a proc
20:50:30Araq_for reasons that have to do with how substitutions work with templates
20:50:30flyxAraq_: I know, but it needs to be a template
20:50:48flyxI figured I can do "when arr.len > 0: ..."
20:51:05Araq_array[0, int]([])
20:55:36*Matthias247 joined #nim
21:00:28*Varriount-Laptop quit (Ping timeout: 276 seconds)
21:03:42*pregressive quit (Remote host closed the connection)
22:03:20*Jesin joined #nim
22:03:49*krux02 joined #nim
22:07:56*Salewski joined #nim
22:09:31*Siggma joined #nim
22:10:04SalewskiIn IRC log yesterday, Araq wrote: "when I need dyndisp, I use a closure. works much better anyway." No idea what that really means -- where can I read about that?
22:10:37ephjadynamic dispatch?
22:10:52SalewskiYes.
22:11:19SalewskiBut how can we replace that with a closure?
22:13:00SalewskiIs there an example somewhere?
22:17:59*HakanD quit (Quit: Be back later ...)
22:20:16*Salewski quit ()
22:23:55*vqrs quit (Ping timeout: 240 seconds)
22:26:45*vqrs joined #nim
22:32:43federico3any i3 user here? https://github.com/FedericoCeratto/nimi3status
22:39:30dom96federico3: wow, very cool
22:39:36dom96Add some screenshots to the readme.
22:39:59dom96also, your installation instructions seem to assume that nimble is already installed despite the fact that you show people how to install nim :)
22:40:59federico3oopsie, nimble is not in the nim package
22:41:50federico3also I have to pass nimble the url to the right github repo (as i'ts not listed in packages.json yet)
22:45:17dom96Just gotta `nimble init`, edit the .nimble file a bit, git add the .nimble file, push and then `nimble publish`.
22:45:39ephjaoooh, init :p
22:47:34federico3Error: unhandled exception: Unable to open file nimi3status.nimble for writing: No such file or directory [NimbleError]
22:49:09federico3it should check that the file is already there
22:51:47strcmp1yeah thats really cool
22:51:52federico3is nimble publish in nible v0.6.2 ?
22:52:18strcmp1but unfortunately i cant test, i dont use i3 and i guess like all tiled WMs it requires some learning to really test properly
22:55:22krux02I just had some issues with macros.sameType, is this a bug? http://forum.nim-lang.org/t/1888
22:55:45federico3dom96: that worked beautifully
22:56:43dom96federico3: cool. Araq_ wrote `publish` so props to him :)
22:57:23federico3maybe nimble should be released
22:57:38dom96and 'init' was written by another contributor whose name I can't remember.
22:59:40Araq_krux02: type of MyVec3[float] is typedesc[MyVec3[float]], so no bug here ;-)
23:00:05dom96federico3: Yeah. Once nimscript support lands
23:00:14dom96Which should be soon (in Valve time)
23:02:02*boop is now known as boopisaway
23:02:34strcmp1whats Valve time?
23:03:28strcmp1ha i see
23:03:31strcmp1https://developer.valvesoftware.com/wiki/Valve_Time#Valve_Time
23:03:36ephja:-)
23:08:15krux02Araq_: then how do I do the type test?
23:09:30Araq_skip the typedesc
23:09:46Araq_via n[1] or something
23:09:52*Siggma quit (Quit: need to run, bye)
23:13:23federico3dom96: thanks - nimble and screenshot added
23:14:09dom96federico3: Awesome. I shall tweet about it :)
23:16:11krux02Araq_: oh with an [1] it works, but it feels a bit awkward and random
23:16:37Araq_but it's not
23:16:44Araq_var x: int
23:16:48Araq_type(x) == int
23:16:56Araq_type(int) == typedesc[int]
23:17:20Araq_a variable has a type and a type has a metatype. or something.
23:18:02federico3nimble install is not compiling the binary tho
23:18:39federico3nimble init could ask the user for package version, extra files to be installed, compiler flags...
23:19:23ephjaor take arguments
23:20:55Araq_krux02: the real problem here is that 'sameType' is not 'isOfType' which would be easier to work with
23:20:56ephjaI think flags can only go in a cfg file
23:22:40dom96federico3: yep, that's on my todo.
23:22:51ephjasee the cfg for nim
23:24:28krux02Araq_: I cant find any 'isOfType' in the documentation
23:24:55Araq_well I said *would be*
23:25:04Araq_indicating it doesn't exist :P
23:26:32*Jesin quit (Quit: Leaving)
23:26:50krux02:-S
23:27:21federico3ok, now it builds and installs
23:28:27*Jesin joined #nim
23:29:07federico3bye
23:32:23Araq_er
23:32:37Araq_but how come if macros.sameType( getType(int), x.getType) works then? --> bug report please
23:42:43*Varriount-Laptop joined #nim
23:46:15*sepisoad joined #nim
23:48:38*sepisoad quit (Remote host closed the connection)
23:52:22*sepisoad joined #nim