<< 06-11-2016 >>

00:15:18*zaquest quit (Ping timeout: 250 seconds)
00:25:15*bjz joined #nim
00:29:14*zaquest joined #nim
01:00:34*couven92 quit (Read error: Connection reset by peer)
01:15:59*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
01:16:48*erwana[m] joined #nim
01:21:31*bjz joined #nim
01:22:37*bjz quit (Client Quit)
01:39:54*ARCADIVS joined #nim
01:43:52*bjz joined #nim
01:47:58*bjz quit (Client Quit)
01:49:44*der quit (Remote host closed the connection)
01:51:12*derlafff joined #nim
01:52:15*bjz joined #nim
02:06:45*dmi0 quit (Ping timeout: 260 seconds)
02:18:14*arnetheduck joined #nim
02:35:58*chemist69 quit (Ping timeout: 250 seconds)
02:36:49*dmi0 joined #nim
02:46:24*vlad1777d quit (Quit: Leaving)
02:49:12*chemist69 joined #nim
03:04:51*PMunch joined #nim
03:33:16*byte512 quit (Ping timeout: 260 seconds)
04:02:10*bjz_ joined #nim
04:02:43*bjz quit (Ping timeout: 252 seconds)
04:37:31*PMunch quit (Quit: leaving)
05:08:56*sarlalian quit (Ping timeout: 250 seconds)
05:14:28*sarlalian joined #nim
06:27:05*dddddd quit (Remote host closed the connection)
06:41:14*chemist69 quit (Ping timeout: 250 seconds)
06:47:32*chemist69 joined #nim
07:22:19*Pisuke quit (Quit: WeeChat 1.6-dev)
07:31:11FromGitter<endragor> @dom96 do you think it’s a good idea to make send() have SafeDisconn flag set by default? It looks like a good way to shoot yourself in the foot. If send() fails, you always want to deal with that in some way, I don’t see how you could ignore that and pretend it was successful.
08:01:02dom96endragor: a send is almost always accompanied by a recv, and recv will tell you that you were disconnected.
08:27:22*yglukhov joined #nim
08:36:34*yglukhov quit (Remote host closed the connection)
08:41:01FromGitter<gogolxdong> Does anyone know blockchain?
08:43:41*yglukhov joined #nim
08:51:20*desophos quit (Read error: Connection reset by peer)
08:54:09*gangstacat quit (Ping timeout: 260 seconds)
08:55:49*gangstacat joined #nim
08:57:00corecodei do
10:26:26*couven92 joined #nim
10:45:50*zaquest quit (Quit: Leaving)
10:48:05*zaquest joined #nim
10:53:04*yglukhov quit (Remote host closed the connection)
10:53:56*yglukhov joined #nim
11:41:23*elrood joined #nim
12:17:48*Matthias247 joined #nim
12:29:35*vlad1777d joined #nim
12:43:17*ARCADIVS quit (Quit: ARCADIVS)
13:02:42*planhths joined #nim
13:12:13*dddddd joined #nim
13:17:42*planhths quit (Ping timeout: 256 seconds)
13:21:35*yglukhov quit (Remote host closed the connection)
13:30:24*planhths joined #nim
13:33:24*yglukhov joined #nim
14:24:47*nsf joined #nim
14:28:02*yglukhov quit (Remote host closed the connection)
14:41:09*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
14:55:31FromGitter<ephja> how do I get a list of the dependency paths?
14:58:37*Senketsu_ quit (Ping timeout: 260 seconds)
15:01:47*planhths quit (Quit: Konversation terminated!)
15:05:50FromGitter<ephja> I'm looking at depends.nim now. I'm simply trying to create a script that performs some action when a dependency is added or modified
15:16:58*brechtm_ quit (Remote host closed the connection)
15:17:36*brechtm joined #nim
15:19:56*gangstacat quit (Ping timeout: 250 seconds)
15:22:07*Matthias247 quit (Read error: Connection reset by peer)
15:22:08*brechtm quit (Ping timeout: 260 seconds)
15:23:26*Matthias247 joined #nim
15:39:05*arnetheduck quit (Ping timeout: 265 seconds)
15:58:34*yglukhov joined #nim
15:58:58*user joined #nim
15:59:30*user quit (Remote host closed the connection)
15:59:40*user joined #nim
15:59:47*user quit (Remote host closed the connection)
16:00:29*flaviu joined #nim
16:16:39*Matthias247 quit (Read error: Connection reset by peer)
16:19:32*Matthias247 joined #nim
16:54:28*terry[m] joined #nim
18:09:21*ofelas quit (Ping timeout: 244 seconds)
18:26:05*yglukhov quit (Remote host closed the connection)
18:29:30*yglukhov joined #nim
18:29:58*yglukhov quit (Remote host closed the connection)
18:39:54*vendethiel joined #nim
18:54:41*confundus joined #nim
18:58:58*desophos joined #nim
19:02:20*libman joined #nim
19:02:44*Matthias247 quit (Quit: Matthias247)
19:16:04*yglukhov joined #nim
19:16:14*gangstacat joined #nim
19:19:07*planhths joined #nim
19:20:10*yglukhov quit (Ping timeout: 250 seconds)
19:21:31*gangstacat quit (Quit: Ĝis)
19:23:16*yglukhov joined #nim
19:23:39planhthsis proc quote() from macros deprecated?
19:28:04*yglukhov quit (Ping timeout: 268 seconds)
19:30:52*gangstacat joined #nim
19:31:53Araqplanhths: no, but it needs some love
19:34:20planhthsok thanks Araq, I was patching the oop macro from Nim by example and it throws "expr is deprecated" warnings
19:38:17*brson joined #nim
19:45:46*bjz joined #nim
19:46:39*planhths quit (Quit: Konversation terminated!)
19:47:08*planhths joined #nim
19:52:23*confundus quit (Quit: leaving)
19:56:19*NimBot joined #nim
20:04:44*foocraft joined #nim
20:18:34*Trustable joined #nim
20:19:30*yglukhov joined #nim
20:22:29*bjz_ joined #nim
20:22:57*bjz quit (Ping timeout: 268 seconds)
20:24:15*yglukhov quit (Ping timeout: 265 seconds)
20:24:33*dddddd quit (Remote host closed the connection)
20:24:44*flaviu quit (Ping timeout: 265 seconds)
20:39:25*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:45:29*bjz joined #nim
20:52:05*foocraft quit (Quit: Leaving)
20:52:06*Matthias247 joined #nim
20:56:10*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:57:18*PMunch joined #nim
21:00:17PMunchHi, I was playing around with the {.this: self.} pragma the other day and I have some questions.
21:01:22Araqshoot
21:01:31PMunchIn the manual it is noted that this: self will become the default, this will mean that an argument with the name self will be automatically "this"-ed right? But you can specify by using the {.this: argument.} pragma?
21:02:05PMunchAnd the second question, is it intentional that {.this: self.} only works for the first argument?
21:02:39Araqyes and yes.
21:02:45Araqthat was easy. :-)
21:02:58PMunchHaha
21:03:15PMunchWhy does it only work for the first argument though? Seems like an arbitrary limitation
21:03:27Araqinitially we had more flexible rewrite rules via 'using' and the results were not pretty, IMO
21:04:01Araqyou could nest multiple 'using' statements, for example
21:04:27PMunchWait, what would that do?
21:04:37Araqusing x
21:04:39Araqusing y
21:04:55Araqecho a + b # e.g. echo x.a + y.b
21:05:07PMunchBut what would happen with collision?
21:05:22Araqy is innermost and so preferred
21:05:29PMunchRight
21:05:44Araqit only worked for proc calls though, not for field accesses
21:05:52PMunchAah
21:05:53Araqand even more strangely
21:05:58Araqecho x
21:06:02Araqwas rewritten to
21:06:05Araqecho this, x
21:06:31Araqunusable IMO, so it was redesigned to be more like C#
21:06:34Araq:-)
21:06:38PMunchSo that is were that comment comes from in the {.this: self.} documentation :P
21:06:52Araqyes.
21:07:05Araqfeatures are better when they are tested.
21:08:05PMunchBut back to the {.this: self.} thing. I don't see how that would be too confusing
21:08:05Araqthe "has to be first arg" limitation is mostly for ease of implementation though, iirc
21:08:11PMunchAh, okay
21:09:28PMunchBecause I have a function render which takes a renderer and an object. Renderer is first so I can call it like renderer.render(object) but the function is only for the object so it made sense to make it "this".
21:13:52Araqhmm but what if I have
21:14:58Araqproc foo(this: Foo) = x.bar() # bar takes this at second position
21:15:42Araqand then I have bar overloaded with some having 'this' as parameter name
21:15:53Araqand some without.
21:16:27Araqhow should that work? take only routines into consideration with 'this' as second parameter, I guess.
21:19:30PMunchHuh, I don't quite follow you
21:20:44PMunchOh wait, so bar silently takes this as a parameter in that call?
21:20:55Araqthat's what you want, right?
21:21:23PMunchNo I want to be able to do: proc foo(something: Foo, this: Bar)
21:21:56Araqbut 'this' still only injected as first parameter?
21:22:03PMunchIn my previous example it would be render(renderer: Renderer, this: MyObject)
21:23:17PMunchSo that in my calls I could pull fields from MyObject and feed them to the functions that make up the rendering of the object.
21:28:20Araqseminst.nim, proc rawHandleSelf
21:28:53Araqyou could try to hack it into the compiler. No promises I'll merge a PR though.
21:31:55PMunchOkay, I'll look into it
21:36:43Araq if params.len > 1:
21:36:45Araq let arg = params[1].sym
21:36:53Araqyou need to replace this with a search loop
21:36:59Araqand that's it, I think.
21:49:02*bjz joined #nim
21:50:52*planhths quit (Quit: Konversation terminated!)
21:51:05*planhths joined #nim
21:54:27*libman quit (Remote host closed the connection)
21:54:34*[CBR]Unspoken quit (Read error: Connection reset by peer)
21:55:48*bjz quit (Read error: Connection reset by peer)
21:56:40*bjz joined #nim
22:01:26*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:09:25*planhths quit (Quit: Konversation terminated!)
22:11:20*[CBR]Unspoken joined #nim
22:13:20*Trustable quit (Remote host closed the connection)
22:31:18PMunchHmm, Araq when pulling the devel branch I get an error from idents.nim that the this: self pragma is invalid..
22:31:34AraqI've heard that one before
22:31:44PMunchcompiler/idents.nim(76, 7) Error: invalid pragma: this: self
22:31:50Araqwhat does 'nim -v' say?
22:32:08PMunchThis is when compiling nim
22:32:16PMunchsh bootstrap.sh
22:32:39PMunchOh wow, I've got a horribly dated version of nim on my machine :P
22:36:28federico3where is the best place to pass -d:nimDebugDlOpen while building Nim itself? (see #4849)
22:40:53PMunchAraq, got any ideas on the idents.nim error?
22:45:51Araq.this requires 0.14
22:46:07Araqno Nim 0.14, no way to build devel
22:46:18Araqexcept to build via csources
22:46:23PMunchI've got 0.15.0 now
22:46:29Araqbut then you need to get your outdated nim out of the path
22:47:35PMunchHmm, it might still be stuck
22:48:50PMunchStrange
22:49:03PMunchDownloaded the .zip from Github and it seems to work..
22:49:08PMunchI must be doing something wrong
22:49:29Araqwould be interesting to know what
22:49:39Araqxe had the same problem yesterday
22:54:23PMunchAah
22:54:48PMunchIn the bootstrap.sh file. It only pulls csources when the .git folder doesn't exist
22:55:04PMunchYou should probably have an else statement with a pull there
22:55:12PMunchSo that it will update
22:56:47*brechtm joined #nim
22:58:34*bjz joined #nim
23:00:02*elrood quit (Quit: Leaving)
23:00:23*bjz quit (Client Quit)
23:01:20*brechtm quit (Ping timeout: 265 seconds)
23:02:16*nsf quit (Quit: WeeChat 1.6)
23:02:55*vlad1777d quit (Quit: Leaving)
23:05:57*yglukhov joined #nim
23:07:37AraqI wouldn't accept bootstrap.sh anymore as a PR :-)
23:07:52Araqafaik nowhere we tell you to use bootstrap.sh
23:10:36*yglukhov quit (Ping timeout: 260 seconds)
23:12:30PMunchWait, how are you supposed to build it?
23:24:36*Dankrad quit (Ping timeout: 256 seconds)
23:53:56*Matthias247 quit (Read error: Connection reset by peer)
23:54:00Araqseriously? it's documented everywhere
23:54:05Araqhttp://nim-lang.org/download.html
23:54:25Araqsection "Bleeding edge installation from GitHub"
23:54:51Araqor here: https://github.com/nim-lang/nim#compiling