00:05:12 | * | Wombah quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
00:10:43 | dom96 | hrm, I'm not sure if that's correct. |
00:11:01 | dom96 | Yeah, I don't think you can import relative to the main module. |
00:12:35 | dom96 | Well, I think Reimer is only talking about the module you are compiling. |
00:12:47 | dom96 | You can't import relative to the main module from a submodule. |
00:38:22 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
00:38:47 | * | skrylar joined #nim |
00:49:18 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
00:58:11 | * | v17d quit (Ping timeout: 255 seconds) |
01:02:09 | * | onionhammer quit (Quit: WeeChat 1.0.1) |
01:02:23 | * | onionhammer joined #nim |
01:14:17 | * | yglukhov joined #nim |
01:19:10 | * | yglukhov quit (Ping timeout: 276 seconds) |
01:30:42 | * | chemist69 quit (Ping timeout: 255 seconds) |
01:44:43 | * | chemist69 joined #nim |
01:53:21 | * | ludocode quit (Disconnected by services) |
01:53:22 | * | ludocode_ joined #nim |
02:11:35 | * | Jesin quit (Ping timeout: 240 seconds) |
02:16:10 | * | yglukhov joined #nim |
02:20:36 | * | yglukhov quit (Ping timeout: 260 seconds) |
03:19:22 | * | vendethiel joined #nim |
03:30:25 | subsetpark | I'm trying to do some very simple async code without using the whole {.async.} system |
03:30:49 | subsetpark | I have two calls that return Future[string]s from making asyncHttpClient requests |
03:31:22 | subsetpark | I then try to call procs that take strings on the result of waitFor() on each value |
03:31:40 | subsetpark | But that produces a massive async error chain with SslError at the bottom |
03:32:27 | subsetpark | Those same calls were working fine when it was a regular httpClient |
03:34:19 | subsetpark | Hm, and now it's just hanging at waitFor... what else do I have to do? |
03:42:58 | * | Serenitor joined #nim |
03:45:52 | Serenitor | can you canfirm that there's no partial module exporting? |
03:45:52 | Serenitor | like when I do |
03:45:53 | Serenitor | from strutils import split |
03:45:53 | Serenitor | export strutils |
03:45:53 | Serenitor | the place where that code is imported gets the entire strutils module... desired behavior would be split procs only |
03:46:10 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
03:50:41 | FromGitter | <ephja> "export strutils.split"? |
03:52:34 | FromGitter | <ephja> in other words, yes it's possible to export selectively |
03:54:12 | * | Jesin joined #nim |
04:08:22 | Serenitor | ah, right. thanks! though it won't work for me with "except" though.. |
04:08:39 | Serenitor | trying to do pretty much the exact same thing as shown in this example https://nim-lang.org/docs/macros.html#statements-export-statement |
04:10:23 | Serenitor | i am getting an ambiguous call error |
04:17:57 | * | yglukhov joined #nim |
04:19:40 | * | pilne joined #nim |
04:22:43 | * | yglukhov quit (Ping timeout: 268 seconds) |
04:25:37 | * | vendethiel quit (Ping timeout: 248 seconds) |
04:36:39 | Araq | subsetpark: use 'await' instead of 'waitFor' perhaps? |
04:40:34 | * | sz0 quit (Quit: Connection closed for inactivity) |
04:47:07 | * | salewski joined #nim |
04:48:46 | salewski | zacharycarter, you wrote: template bitCheck(a, b: untyped): bool = (a) and (1 shl (b)) |
04:49:54 | salewski | I think that is fine, I think I have used expressions like that too. Maybe a inline proc is sufficient. |
04:50:24 | salewski | zacharycarter, your wrote: but I'm not sure how to construct a bitset |
04:51:15 | salewski | I think in Nim we have not the term BITSET as in Oberon, only set. |
04:51:46 | Araq | template bitCheck(a, b: untyped): bool = (a and (1 shl b)) != 0 |
04:52:01 | Araq | no need to put the parameters in (), Nim is not C, Nim understands ASTs |
04:52:49 | salewski | I have not done much with this sets much, but I have an untested example in https://forum.nim-lang.org/t/3032 |
04:53:40 | salewski | Araq, you seems never sleeping... |
04:54:14 | Araq | different timezone, it's noon here :P |
04:55:02 | salewski | That "no need to put the parameters in ()" is important, it should be at prominent places. |
04:55:29 | salewski | I have seen a few templates with outer (), so I was in doubt sometimes... |
04:55:58 | Araq | well c2nim generates there cause it's stupid and so people can get the wrong idea |
04:57:33 | salewski | Araq, have you heard something about dom96 concerning our gintro install questions? |
04:58:06 | salewski | Of course it is not too urgent, but it would be good to know of current state. |
04:58:43 | salewski | Dom96 seems to live currently in a very diffeent time zone than I. |
04:59:00 | Araq | oh sorry, forgot to ask him. we talked yesterday |
04:59:13 | salewski | Thanks, bye. |
04:59:48 | * | salewski quit (Quit: WeeChat 1.4) |
05:00:12 | * | Vi- joined #nim |
05:26:46 | FromGitter | <zacharycarter> thanks Araq |
05:38:43 | * | Trustable joined #nim |
05:46:03 | * | pilne quit (Quit: Quitting!) |
05:59:43 | * | Vi- quit (Ping timeout: 260 seconds) |
06:01:31 | * | martinium joined #nim |
06:02:12 | * | martinium quit (Quit: WeeChat 1.9) |
06:02:44 | * | Serenitor quit (Read error: Connection reset by peer) |
06:16:03 | * | tankfeeder joined #nim |
06:19:46 | * | yglukhov joined #nim |
06:24:05 | * | yglukhov quit (Ping timeout: 240 seconds) |
06:45:54 | * | tankfeeder quit (Quit: Leaving) |
06:48:30 | * | Trustable quit (Remote host closed the connection) |
07:18:37 | FromGitter | <zacharycarter> and salewski |
07:21:31 | * | yglukhov joined #nim |
07:23:37 | FromGitter | <mratsim> I’m looking for example on how people used concepts/V-table to replace inheritance or implement interfaces. So far I’ve found that (RFC for IO, replacing streams): https://github.com/nim-lang/Nim/pull/5970. Does someone have other examples? |
07:25:35 | * | yglukhov quit (Ping timeout: 240 seconds) |
07:44:48 | * | chemist69 quit (Ping timeout: 240 seconds) |
07:47:27 | * | chemist69 joined #nim |
08:13:06 | * | FromGitter quit (Remote host closed the connection) |
08:13:06 | * | oprypin quit (Quit: Bye) |
08:13:21 | * | FromGitter joined #nim |
08:13:28 | * | oprypin joined #nim |
08:40:11 | * | yglukhov joined #nim |
08:41:56 | * | rokups joined #nim |
08:45:21 | * | yglukhov quit (Remote host closed the connection) |
08:52:49 | * | arnetheduck joined #nim |
08:55:19 | * | Tiberium joined #nim |
08:59:31 | FromGitter | <mratsim> Replying to myself. The documentation about VTable was released before the actual code :O |
09:07:33 | * | Arrrr joined #nim |
09:43:38 | * | Matthias247 joined #nim |
09:54:19 | * | v17d joined #nim |
09:55:08 | * | yglukhov joined #nim |
10:07:29 | * | yglukhov quit (Remote host closed the connection) |
10:10:58 | * | yglukhov joined #nim |
10:11:23 | * | yglukhov quit (Remote host closed the connection) |
10:15:58 | * | yglukhov joined #nim |
10:26:30 | * | nsf joined #nim |
10:34:38 | * | yglukhov quit (Remote host closed the connection) |
10:36:49 | * | planhths joined #nim |
10:40:33 | * | Sentreen quit (Ping timeout: 248 seconds) |
10:41:12 | * | couven92 joined #nim |
10:54:37 | * | Sentreen joined #nim |
11:00:43 | * | arnetheduck quit (Ping timeout: 260 seconds) |
11:05:36 | * | Snircle joined #nim |
11:09:06 | * | Arrrr quit (Quit: Leaving.) |
11:09:25 | * | skrylar joined #nim |
11:09:52 | skrylar | morning folks |
11:10:50 | couven92 | morning skrylar :) |
11:18:28 | * | yglukhov joined #nim |
11:19:04 | FromGitter | <mratsim> hey skrylar |
11:24:09 | federico3 | best way to convert an ipaddr between text and bytes? |
11:27:21 | federico3 | parseIpAddress provides a 4-byte array |
11:34:58 | skrylar | is that question rhetorical |
11:37:50 | * | yglukhov quit (Remote host closed the connection) |
11:42:15 | * | dddddd joined #nim |
11:42:27 | federico3 | nope |
11:45:08 | * | yglukhov joined #nim |
11:47:15 | skrylar | in that case, string to IP should possibly go to a tuple or an int. probably a 'distinct uint32', while going from that to a string is just a case of unpacking each byte, casting it to a string and concatting them with the dots |
11:48:21 | federico3 | I need a string of bytes |
11:48:39 | skrylar | (although there probably isn't a penalty to using a distinct array of four bytes instead of a uint32, either way as long as you are enlisting the type system to identify the IPs :/) |
11:57:26 | Tiberium | guys, as I think it isn't possible to make GUI for async application? |
11:57:50 | Tiberium | NiGui looks promising, but it's synchronous |
11:59:22 | Tiberium | I want both gui and async app written in Nim |
11:59:28 | Tiberium | I already have an async app |
12:00:54 | * | tankfeeder joined #nim |
12:06:02 | * | yglukhov quit (Remote host closed the connection) |
12:06:34 | * | yglukhov joined #nim |
12:09:35 | * | Sentreen quit (Ping timeout: 240 seconds) |
12:09:48 | * | tankfeeder_ joined #nim |
12:11:13 | * | yglukhov quit (Ping timeout: 248 seconds) |
12:17:59 | Tiberium | oh wait it seems I can do that with NiGui |
12:18:05 | Tiberium | but it requires modifying NiGui source code |
12:18:40 | * | yglukhov joined #nim |
12:20:10 | Tiberium | ah I'm noob |
12:20:11 | Tiberium | there's timers |
12:22:22 | * | Sentreen joined #nim |
12:28:42 | * | mosORadi joined #nim |
12:29:51 | Tiberium | or not.. |
12:30:07 | Araq | Tiberium: I have some async event loop for libui |
12:30:19 | Tiberium | Araq, really? |
12:30:52 | Araq | https://github.com/nim-lang/Nim/blob/devel/tools/downloader.nim#L123 |
12:31:19 | Araq | well ok, it's a "polling" loop but there is little else you can do with external UI libs |
12:31:25 | Araq | they all work this way |
12:34:36 | Tiberium | I'm trying to do the same with timers currently |
12:35:12 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
12:35:47 | Tiberium | yeah, it works too |
12:35:51 | Tiberium | every 50ms calling pool(1) |
12:35:56 | Tiberium | *poll |
12:38:27 | Tiberium | but I think this would affect my async app performance |
12:39:41 | Tiberium | Araq, thanks anyway! |
12:44:19 | Araq | it will affect performance but as I said, there is little you can do. maybe run the UI in a different thread |
12:45:39 | Tiberium | Araq, also, can I somehow export variable which is declared inside of "when" statement? |
12:47:57 | Araq | when x: var v*: int |
12:48:01 | Araq | where is the problem? |
12:48:08 | Araq | why wouldn't you? |
12:55:33 | Tiberium | ohh, because of recursive module import (e.g. module imports itself) nimsuggest just ate ALL my memory |
12:55:47 | Tiberium | need to be more careful while writing recursive imports :) |
12:57:15 | * | azur_kind joined #nim |
12:57:54 | * | tankfeeder_ quit (Quit: Leaving) |
13:10:19 | * | azur_kind quit (Read error: Connection reset by peer) |
13:23:48 | * | therubi joined #nim |
13:28:46 | * | salewski joined #nim |
13:29:52 | salewski | Again someone who tries very hard to avoid unqualified imports: |
13:29:58 | salewski | https://www.reddit.com/r/nim/comments/6lyjto/help_with_neo_library_importing/ |
13:30:16 | salewski | And makes his life difficult with that. |
13:30:54 | * | therubi quit (Read error: Connection reset by peer) |
13:31:02 | salewski | Maybe someone should add a section to FAQ about that. We had discussion in forum about it, |
13:31:42 | salewski | and most peole seems to agree that unqualified import is fine in Nim, but newcommers will nor see that discussion. |
13:32:39 | * | salewski quit (Client Quit) |
13:37:09 | FromGitter | <barcharcraz> yeah the key is that nim has types and overloading |
13:37:15 | FromGitter | <barcharcraz> so unqual is kinda what you want |
13:37:23 | FromGitter | <barcharcraz> and will never really result in "interesting" behavior |
13:37:43 | FromGitter | <barcharcraz> geez I have gotten in arguments about this so many times |
13:38:01 | FromGitter | <barcharcraz> see also: c++ programmers who hate using namespace ... in implementation files |
13:38:42 | FromGitter | <barcharcraz> but like idk, sometimes it's hard since nim *looks* so much like python yet has such different semantics |
13:40:48 | FromGitter | <barcharcraz> also I'd like to thank whoever is responsible for the recent nimsuggest improvments |
13:46:22 | Araq | I think that's me :-) |
13:46:50 | * | dddddd quit (Read error: Connection reset by peer) |
13:47:27 | FromGitter | <barcharcraz> thanks! makes it better than almost any (actually all that I've used) c++ ide tool |
13:49:10 | * | dddddd joined #nim |
13:52:04 | FromGitter | <barcharcraz> btw I suspect that that boot error with msvc is on microsoft. I should try with an older msvc, but it works when using clang as the frontent |
13:52:07 | FromGitter | <barcharcraz> *frontend |
13:52:15 | FromGitter | <barcharcraz> in msvc bug-for-bug compatibility mode |
13:52:25 | FromGitter | <barcharcraz> and telling nim that clang-cl is msvc |
13:53:17 | Tiberium | also, is it possible to statically link all dlls in one binary on windows and on linux? |
13:53:34 | Tiberium | .so files on linux (I'm asking about gtk3) and openssl dlls in windows |
13:53:38 | FromGitter | <mratsim> @salewski I’ll pass your word |
13:53:53 | FromGitter | <barcharcraz> it is. I forget if you need to override all dynlibs or if you can use a wildcard |
13:54:20 | FromGitter | <barcharcraz> keep in mind gtk and openssl are really hard to build on windows and you probably will need multiple builds since you can't static link multiple c++/c runtimes |
13:54:25 | Tiberium | nooo |
13:54:28 | FromGitter | <barcharcraz> (I'm working on it) |
13:54:32 | Tiberium | Nim has prebuilt openssl dlls |
13:54:35 | Tiberium | and gtk3 only for linux |
13:54:43 | FromGitter | <barcharcraz> trying to write recipies to build openssl and gtk in nim |
13:54:43 | Tiberium | my app uses gui framework which uses win32 on windows |
13:55:10 | FromGitter | <barcharcraz> so you use --overrideDynlib:xxx --link:xxx.lib |
13:55:48 | FromGitter | <barcharcraz> note that nim does not link in import libraries for dlls, so to see which dlls are loaded you need to read the C code (just grep for dlopen / LoadLibrary) |
13:55:56 | FromGitter | <barcharcraz> or just look at loaded dlls in a debugger |
13:56:16 | FromGitter | <barcharcraz> also msvcrt.dll will always be linked by gcc when building for the mingw targets |
13:56:18 | FromGitter | <barcharcraz> afaik |
13:56:35 | Tiberium | i can also use vcc on windows |
13:57:00 | Tiberium | but I think it would have even more dependencies :) |
13:57:02 | FromGitter | <barcharcraz> yeah vcc seems to only link to kernel32.dll by default (and you can't not link to kernel32, it's special) |
13:57:10 | FromGitter | <barcharcraz> I mean not really |
13:57:24 | FromGitter | <barcharcraz> in both cases you need a compiler, a linker, and the windows headers |
13:57:35 | Tiberium | yeah I have whole Visual Studio 2017 installed |
13:57:41 | Tiberium | with all headers needed |
13:57:45 | FromGitter | <barcharcraz> yeah that should work |
13:57:57 | Tiberium | also I tried intel compiler on windows and it works too (with nim) |
13:58:03 | FromGitter | <barcharcraz> anyway yeah use --link |
13:58:24 | FromGitter | <barcharcraz> heh I also use vcc (sorta, I use clang-cl since vcc can't actually boot nim right now) |
13:58:32 | Tiberium | really? |
13:58:34 | FromGitter | <barcharcraz> but I use the vs2017 headers and libs |
13:58:35 | Tiberium | I thought it can |
13:58:37 | FromGitter | <barcharcraz> yeah afaik |
13:58:43 | FromGitter | <barcharcraz> it broke a month or so ago |
13:58:48 | FromGitter | <barcharcraz> I think it's a msvc codegen bug |
13:59:05 | Araq | let's hope so. and when it works again, let's add it to appveyor testing |
13:59:09 | FromGitter | <barcharcraz> you get an overload resolution error on the second stage |
13:59:11 | Araq | so that it doesn't break again |
13:59:13 | FromGitter | <barcharcraz> yeah |
13:59:31 | FromGitter | <barcharcraz> sidenote: vccexe does not know how to find vs2017 |
13:59:31 | Araq | in fact |
13:59:39 | FromGitter | <barcharcraz> also --platform:amd64 is a strange arg |
13:59:42 | Araq | now I remember. |
13:59:56 | Tiberium | platform? |
14:00:01 | Tiberium | hmm I used --cpu all the time |
14:00:06 | Araq | in theory an overly smart C compiler can optimize the stack roots away |
14:00:16 | Araq | clang can also be overly aggressive about it |
14:00:22 | FromGitter | <barcharcraz> nono that's an argument for msvc that's in the default config |
14:00:34 | FromGitter | <barcharcraz> perhaps it does something for really old msvcs |
14:00:41 | Araq | looked quite simple to patch Nim but I forgot the details |
14:00:53 | Araq | ping arneduck |
14:05:17 | * | planhths quit (Quit: Konversation terminated!) |
14:05:55 | FromGitter | <barcharcraz> you work mostly on windows right araq? |
14:08:33 | Araq | no, 50-50 |
14:08:45 | Araq | (windows, osx) |
14:10:01 | FromGitter | <mratsim> @Araq are vtref and vtptr planned soon, or is what in the manual just a spec/teaser for now? |
14:10:23 | Araq | soon, zahary is working on it |
14:10:50 | * | def-pri-pub joined #nim |
14:11:05 | Araq | I hope a first implementation arrives the upcoming month |
14:15:11 | FromGitter | <mratsim> Cool, I’ll use inheritance/method for now but will switch ASAP. I hope the migration will just be sprinkling vtref instead of methods |
14:22:25 | * | v17d quit (Ping timeout: 248 seconds) |
14:23:34 | * | yglukhov quit (Remote host closed the connection) |
14:24:18 | * | yglukhov joined #nim |
14:24:45 | * | yglukhov quit (Remote host closed the connection) |
14:25:53 | * | yglukhov joined #nim |
14:28:30 | * | yglukhov quit (Remote host closed the connection) |
14:33:08 | * | johnny_b left #nim (#nim) |
14:34:18 | * | azur_kind joined #nim |
14:38:30 | * | mosORadi quit (Quit: Connection closed for inactivity) |
14:38:31 | * | pilne joined #nim |
14:39:32 | FromGitter | <barcharcraz> vtbl is such a cool feature |
14:39:59 | FromGitter | <barcharcraz> I was sad when I heard methods were going away but tbh vtable is a really good implementation of ... vtables |
14:40:10 | FromGitter | <barcharcraz> makes the actual layout explicit too which is sweet |
14:44:46 | FromGitter | <mratsim> I would love to have 2 examples one using inheritance/methods, one using VTable so we can compare ergonomics and performance. Maybe a game ;). |
14:58:01 | * | Tiberium quit (Remote host closed the connection) |
14:58:32 | * | Arrrr joined #nim |
14:58:32 | * | Arrrr quit (Changing host) |
14:58:32 | * | Arrrr joined #nim |
15:03:07 | * | rauss joined #nim |
15:03:15 | * | rauss quit (Client Quit) |
15:09:35 | * | Sentreen quit (Ping timeout: 240 seconds) |
15:11:31 | * | Jesin quit (Quit: Leaving) |
15:14:36 | * | arnetheduck joined #nim |
15:15:42 | * | Jesin joined #nim |
15:17:00 | FromGitter | <zacharycarter> o/ |
15:19:31 | * | Vladar joined #nim |
15:21:26 | * | Vi- joined #nim |
15:22:30 | * | Sentreen joined #nim |
15:23:40 | FromGitter | <TiberiumN> hmm, I have a simple project where all files located inside src subdir. ⏎ trying to do "nim c src/vkbot.nim" stores executable not in current folder, but in src folder |
15:24:21 | FromGitter | <TiberiumN> I want to store resulting executable in current folder, not in src subdir |
15:27:40 | * | chemist69 quit (Ping timeout: 255 seconds) |
15:30:04 | * | chemist69 joined #nim |
15:32:45 | * | nsf quit (Quit: WeeChat 1.7.1) |
15:43:05 | Arrrr | --out:./project.exe |
15:48:59 | * | Jesin quit (Quit: Leaving) |
15:52:33 | * | arnetheduck quit (Ping timeout: 248 seconds) |
16:03:07 | FromGitter | <mratsim> You might also want to specify a nimcache dir with: --nimcache:nimcache |
16:08:46 | * | planhths joined #nim |
16:12:06 | * | niv quit (Remote host closed the connection) |
16:15:57 | * | niv joined #nim |
16:16:16 | * | niv quit (Remote host closed the connection) |
16:16:31 | * | niv joined #nim |
16:20:16 | * | niv quit (Remote host closed the connection) |
16:20:33 | * | niv joined #nim |
16:22:24 | * | murych joined #nim |
16:33:25 | * | murych quit (Quit: Leaving) |
16:34:34 | * | vendethiel joined #nim |
16:36:33 | * | yglukhov joined #nim |
16:45:10 | * | azur_kind quit (Remote host closed the connection) |
16:48:56 | * | surma joined #nim |
16:50:55 | surma | Hey everyone. I must me missing something obvious, but I can’t figure out how to make my proc work: ``proc find*[T](dll: var DoublyLinkedList[T], pred: proc (t: T): bool): Option[T] = ...`` – I want add a proc to lists.DoublyLinkedList that returns the first item that matches a predicate. But however I invoke this function, the compiler complains. It seems to not get the anonymous proc. |
16:51:10 | surma | Currently I am invoking it like this: ``item = dll.find[Entry](proc(entry: Entry): bool = entry.enabled)`` |
16:51:22 | surma | I tried the ``do`` notation as well, but no luck |
16:52:01 | surma | The error is: ``Error: type mismatch: got (DoublyLinkedList[helpers_test.Entry])`` (my proc is listed as alternatives, but i just doesn’t seem to be matched) |
16:54:39 | Araq | dll.find(proc (entry: Entry): bool = entry.enabled) |
16:54:51 | Araq | find[Entry](dll, proc (entry: Entry): bool = entry.enabled) |
16:56:19 | FromGitter | <mratsim> You might also want to use `->` from Nim future to have nicer syntax |
16:57:06 | surma | Araq: Your second suggestion seems to work. The first, however, does not. Compiler complains about ``template/generic instantiation from here`` and ends up saying ``but expected one of: iterator items...`` |
16:57:29 | Araq | surma: depends on what 'dll' is |
16:57:31 | FromGitter | <mratsim> @surma: here is the proper syntax: https://github.com/vegansk/nimfp/blob/master/src/fp/list.nim#L247 |
16:57:40 | FromGitter | <barcharcraz> find needs items and `==` to work |
16:57:42 | surma | Araq: A lists.DoublyLinkedList |
16:58:14 | FromGitter | <mratsim> You need to adapt the body to your own data structure |
17:01:34 | surma | mratsim: Oh?! I have not seen that syntax in the manual. I guess future things are not documented there yet? |
17:02:04 | Araq | it's not new syntax, it's just a macro :P |
17:02:22 | FromGitter | <mratsim> It’s documented there: https://nim-lang.org/docs/future.html |
17:03:56 | surma | lol. I really need to make use of the whole macro/templating stuff. Thanks, I’ll throw that in |
17:04:00 | surma | Oooh list comprehension! Nice :D |
17:05:02 | * | nsf joined #nim |
17:15:45 | * | couven92 quit (Ping timeout: 248 seconds) |
17:19:37 | * | Sentreen quit (Ping timeout: 246 seconds) |
17:33:33 | * | Sentreen joined #nim |
17:40:57 | * | Sentreen quit (Ping timeout: 240 seconds) |
17:48:27 | * | v17d joined #nim |
17:49:50 | * | handlex joined #nim |
17:50:55 | * | Arrrr quit (Quit: Leaving.) |
17:51:36 | * | dddddd quit (Remote host closed the connection) |
17:54:19 | * | Sentreen joined #nim |
17:56:11 | subsetpark | surma: be sure to check out mapIt and filteredByIt before you commit to the lc[] syntax; I have found it much more idiomatic and concise |
17:57:22 | subsetpark | Though list comprehensions can easily draw from multiple sources, which I don't know a better way to do |
17:57:58 | * | handlex quit (Quit: handlex) |
18:00:30 | * | Sentreen quit (Ping timeout: 240 seconds) |
18:02:28 | subsetpark | zahary: I am getting a new error in vim every time I open a .nim file; I think it's related to zah/nim.vim (tongue twister!) Have you heard of anything new? |
18:05:06 | FromGitter | <mratsim> Can someone reproduce this issue on Windows or Linux? https://github.com/nim-lang/Nim/issues/6078. Compilation hangs and Nim must be killed manually. |
18:09:15 | subsetpark | mratsim: my CPU usage doesn't spike, but the compile does hang on Linux |
18:09:26 | FromGitter | <mratsim> I’m completely stuck on my lib. I need object polymorphism but due to `static` bug I can’t use closures, methods and vtref is not yet there :/ |
18:09:37 | subsetpark | same issue on #head |
18:09:52 | subsetpark | good bug! |
18:10:51 | FromGitter | <mratsim> Thanks for reproducing |
18:11:35 | zahary | @subsetpark, do you see the error when you do `:messages` in vim? |
18:12:40 | subsetpark | zahary: yep. |
18:13:12 | zahary | can I have a gist? |
18:13:27 | subsetpark | Trying to get one... Copying out of my term is hard :0 |
18:13:47 | * | Sentreen joined #nim |
18:15:00 | subsetpark | https://www.irccloud.com/pastebin/4MezkGXU/ |
18:15:51 | zahary | hrm, looks strange. what's your vim version? |
18:16:29 | zahary | I use my plugin everyday, but it definetely needs some TCL |
18:17:14 | subsetpark | This is under Neovim... I also use the plugin every day, it seems to have just popped out of the blue |
18:17:47 | subsetpark | This version was installed May 06 so not sure what would have changed |
18:17:57 | zahary | so latest neovim? built from git head? |
18:18:22 | subsetpark | No, stable - 0.2.0-2 |
18:19:30 | zahary | just to be sure, I would check if the files of the plugin are intact (I guess you've cloned them using git - you can run a git status) |
18:23:29 | subsetpark | yes, i just installed a clean version - same issue |
18:23:34 | subsetpark | but i think i might know what's causing it |
18:24:45 | subsetpark | Yeah that was it. I use a non-POSIX shell; I recently removed `set shell=/usr/bin/bash` from my rcfile |
18:26:27 | subsetpark | BTW - ALE's Nim integration is really solid |
18:30:11 | zahary | I think there is also a fork of my plugin on Github with quite a lot of improvements |
18:49:23 | * | ARCADIVS joined #nim |
18:58:50 | * | arnetheduck joined #nim |
19:17:54 | * | xet7 joined #nim |
19:41:05 | * | Sentreen quit (Ping timeout: 240 seconds) |
19:47:16 | * | yglukhov quit (Remote host closed the connection) |
19:53:55 | * | Sentreen joined #nim |
20:08:52 | * | rokups quit (Quit: Connection closed for inactivity) |
20:11:02 | * | yglukhov joined #nim |
20:15:41 | * | couven92 joined #nim |
20:26:48 | * | gokr joined #nim |
20:27:13 | * | Sentreen quit (Ping timeout: 248 seconds) |
20:38:40 | * | Vi- quit (Ping timeout: 260 seconds) |
20:38:47 | * | planhths quit (Quit: Konversation terminated!) |
20:41:05 | * | Sentreen joined #nim |
20:46:50 | * | Vladar quit (Quit: Leaving) |
20:47:32 | * | Sentreen quit (Ping timeout: 260 seconds) |
20:51:29 | * | nightmared quit (Ping timeout: 246 seconds) |
20:54:08 | * | cs_ joined #nim |
20:55:11 | cs_ | test |
20:55:56 | * | cs_ quit (Client Quit) |
21:01:34 | * | Sentreen joined #nim |
21:03:21 | FromGitter | <Varriount> subsetpark: ALE? |
21:14:18 | surma | I’m trying to write a template to generate setters, but I can’t quite figure out how to inject a name into the the infix-operator notation. Is there a way or do I need to use macros for this? (snippet: https://gist.github.com/surma/f0d0436c6f90124e1f04edf429a95c22) |
21:17:31 | * | gokr quit (Quit: Leaving.) |
21:29:31 | dom96 | Hrm. Araq^ |
21:29:41 | dom96 | I have a feeling that macros are needed for this. |
21:29:54 | dom96 | IMO this name construction syntax in templates needs to be made more flexible |
21:45:34 | * | handlex joined #nim |
21:47:45 | * | Sentreen quit (Ping timeout: 248 seconds) |
21:56:49 | * | vendethiel quit (Ping timeout: 248 seconds) |
22:01:45 | * | Sentreen joined #nim |
22:20:05 | * | arnetheduck quit (Ping timeout: 240 seconds) |
22:24:48 | * | derlafff quit (Remote host closed the connection) |
22:25:10 | * | yglukhov quit (Remote host closed the connection) |
22:26:09 | * | derlafff joined #nim |
22:34:50 | * | nsf quit (Quit: WeeChat 1.7.1) |
22:40:38 | * | sz0 joined #nim |
22:46:44 | * | xet7 quit (Quit: Leaving) |
22:54:44 | * | handlex quit (Quit: handlex) |
23:18:54 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:44:55 | * | chemist69 quit (Ping timeout: 255 seconds) |
23:45:19 | * | chemist69 joined #nim |
23:57:08 | subsetpark | Varriount: https://github.com/w0rp/ale |
23:57:38 | subsetpark | Really good asynchronous linter - syntastic replacement |