| 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:11 | FromGitter | <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:02 | dom96 | endragor: 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:01 | FromGitter | <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:00 | corecode | i 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:31 | FromGitter | <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:50 | FromGitter | <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:39 | planhths | is proc quote() from macros deprecated? |
| 19:28:04 | * | yglukhov quit (Ping timeout: 268 seconds) |
| 19:30:52 | * | gangstacat joined #nim |
| 19:31:53 | Araq | planhths: no, but it needs some love |
| 19:34:20 | planhths | ok 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:17 | PMunch | Hi, I was playing around with the {.this: self.} pragma the other day and I have some questions. |
| 21:01:22 | Araq | shoot |
| 21:01:31 | PMunch | In 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:05 | PMunch | And the second question, is it intentional that {.this: self.} only works for the first argument? |
| 21:02:39 | Araq | yes and yes. |
| 21:02:45 | Araq | that was easy. :-) |
| 21:02:58 | PMunch | Haha |
| 21:03:15 | PMunch | Why does it only work for the first argument though? Seems like an arbitrary limitation |
| 21:03:27 | Araq | initially we had more flexible rewrite rules via 'using' and the results were not pretty, IMO |
| 21:04:01 | Araq | you could nest multiple 'using' statements, for example |
| 21:04:27 | PMunch | Wait, what would that do? |
| 21:04:37 | Araq | using x |
| 21:04:39 | Araq | using y |
| 21:04:55 | Araq | echo a + b # e.g. echo x.a + y.b |
| 21:05:07 | PMunch | But what would happen with collision? |
| 21:05:22 | Araq | y is innermost and so preferred |
| 21:05:29 | PMunch | Right |
| 21:05:44 | Araq | it only worked for proc calls though, not for field accesses |
| 21:05:52 | PMunch | Aah |
| 21:05:53 | Araq | and even more strangely |
| 21:05:58 | Araq | echo x |
| 21:06:02 | Araq | was rewritten to |
| 21:06:05 | Araq | echo this, x |
| 21:06:31 | Araq | unusable IMO, so it was redesigned to be more like C# |
| 21:06:34 | Araq | :-) |
| 21:06:38 | PMunch | So that is were that comment comes from in the {.this: self.} documentation :P |
| 21:06:52 | Araq | yes. |
| 21:07:05 | Araq | features are better when they are tested. |
| 21:08:05 | PMunch | But back to the {.this: self.} thing. I don't see how that would be too confusing |
| 21:08:05 | Araq | the "has to be first arg" limitation is mostly for ease of implementation though, iirc |
| 21:08:11 | PMunch | Ah, okay |
| 21:09:28 | PMunch | Because 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:52 | Araq | hmm but what if I have |
| 21:14:58 | Araq | proc foo(this: Foo) = x.bar() # bar takes this at second position |
| 21:15:42 | Araq | and then I have bar overloaded with some having 'this' as parameter name |
| 21:15:53 | Araq | and some without. |
| 21:16:27 | Araq | how should that work? take only routines into consideration with 'this' as second parameter, I guess. |
| 21:19:30 | PMunch | Huh, I don't quite follow you |
| 21:20:44 | PMunch | Oh wait, so bar silently takes this as a parameter in that call? |
| 21:20:55 | Araq | that's what you want, right? |
| 21:21:23 | PMunch | No I want to be able to do: proc foo(something: Foo, this: Bar) |
| 21:21:56 | Araq | but 'this' still only injected as first parameter? |
| 21:22:03 | PMunch | In my previous example it would be render(renderer: Renderer, this: MyObject) |
| 21:23:17 | PMunch | So 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:20 | Araq | seminst.nim, proc rawHandleSelf |
| 21:28:53 | Araq | you could try to hack it into the compiler. No promises I'll merge a PR though. |
| 21:31:55 | PMunch | Okay, I'll look into it |
| 21:36:43 | Araq | if params.len > 1: |
| 21:36:45 | Araq | let arg = params[1].sym |
| 21:36:53 | Araq | you need to replace this with a search loop |
| 21:36:59 | Araq | and 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:18 | PMunch | Hmm, Araq when pulling the devel branch I get an error from idents.nim that the this: self pragma is invalid.. |
| 22:31:34 | Araq | I've heard that one before |
| 22:31:44 | PMunch | compiler/idents.nim(76, 7) Error: invalid pragma: this: self |
| 22:31:50 | Araq | what does 'nim -v' say? |
| 22:32:08 | PMunch | This is when compiling nim |
| 22:32:16 | PMunch | sh bootstrap.sh |
| 22:32:39 | PMunch | Oh wow, I've got a horribly dated version of nim on my machine :P |
| 22:36:28 | federico3 | where is the best place to pass -d:nimDebugDlOpen while building Nim itself? (see #4849) |
| 22:40:53 | PMunch | Araq, got any ideas on the idents.nim error? |
| 22:45:51 | Araq | .this requires 0.14 |
| 22:46:07 | Araq | no Nim 0.14, no way to build devel |
| 22:46:18 | Araq | except to build via csources |
| 22:46:23 | PMunch | I've got 0.15.0 now |
| 22:46:29 | Araq | but then you need to get your outdated nim out of the path |
| 22:47:35 | PMunch | Hmm, it might still be stuck |
| 22:48:50 | PMunch | Strange |
| 22:49:03 | PMunch | Downloaded the .zip from Github and it seems to work.. |
| 22:49:08 | PMunch | I must be doing something wrong |
| 22:49:29 | Araq | would be interesting to know what |
| 22:49:39 | Araq | xe had the same problem yesterday |
| 22:54:23 | PMunch | Aah |
| 22:54:48 | PMunch | In the bootstrap.sh file. It only pulls csources when the .git folder doesn't exist |
| 22:55:04 | PMunch | You should probably have an else statement with a pull there |
| 22:55:12 | PMunch | So 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:37 | Araq | I wouldn't accept bootstrap.sh anymore as a PR :-) |
| 23:07:52 | Araq | afaik nowhere we tell you to use bootstrap.sh |
| 23:10:36 | * | yglukhov quit (Ping timeout: 260 seconds) |
| 23:12:30 | PMunch | Wait, 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:00 | Araq | seriously? it's documented everywhere |
| 23:54:05 | Araq | http://nim-lang.org/download.html |
| 23:54:25 | Araq | section "Bleeding edge installation from GitHub" |
| 23:54:51 | Araq | or here: https://github.com/nim-lang/nim#compiling |