00:01:07 | * | francisl joined #nim |
00:01:41 | * | francisl quit (Client Quit) |
00:10:35 | * | desophos quit (Remote host closed the connection) |
00:12:07 | * | irrequietus quit () |
00:20:34 | * | vonh quit (Ping timeout: 244 seconds) |
00:41:42 | * | desophos joined #nim |
02:22:28 | * | desophos_ joined #nim |
02:27:06 | * | desophos_ quit (Ping timeout: 244 seconds) |
03:11:02 | * | francisl joined #nim |
03:19:44 | * | brson quit (Quit: leaving) |
03:20:36 | * | francisl quit (Quit: francisl) |
03:21:54 | * | francisl joined #nim |
04:01:04 | * | enthus1ast quit (Quit: Leaving.) |
04:02:05 | * | endragor joined #nim |
04:02:10 | * | endragor quit (Remote host closed the connection) |
04:02:41 | * | endragor joined #nim |
04:34:07 | * | Demos joined #nim |
04:45:11 | ldlework | lol |
05:04:17 | * | Demon_Fox quit (Quit: Leaving) |
05:04:35 | * | francisl quit (Ping timeout: 248 seconds) |
05:09:00 | vegansk | Hi! Can anyone help me to find the workaround for this bug: https://github.com/nim-lang/Nim/issues/3995. The problem is wha I need the function with the signature ``proc flatMap[A,B](f: Rand[A], g: A -> Rand[B]): Rand[B]`` |
05:10:20 | vegansk | s/wha/what/g |
05:14:25 | * | vendethiel joined #nim |
05:24:53 | * | vendethiel quit (Ping timeout: 244 seconds) |
05:55:55 | * | desophos quit (Read error: Connection reset by peer) |
05:56:40 | * | exebook quit (Ping timeout: 252 seconds) |
06:02:15 | * | exebook joined #nim |
06:21:07 | * | endragor_ joined #nim |
06:24:22 | * | endragor quit (Ping timeout: 260 seconds) |
06:38:57 | * | endragor_ quit (Remote host closed the connection) |
06:39:27 | * | endragor joined #nim |
06:53:14 | * | enthus1ast joined #nim |
07:18:19 | * | enthus1ast quit (Quit: Leaving.) |
08:25:22 | * | yglukhov joined #nim |
09:16:38 | * | enthus1ast joined #nim |
09:37:30 | * | onionhammer1 joined #nim |
09:39:43 | * | bbl joined #nim |
09:39:50 | * | onionhammer quit (Ping timeout: 240 seconds) |
09:39:51 | * | baabelfish quit (Ping timeout: 240 seconds) |
09:40:01 | * | zaquest quit (Ping timeout: 240 seconds) |
09:40:27 | * | zaquest joined #nim |
09:41:38 | * | gokr joined #nim |
09:43:54 | * | asdf__ joined #nim |
09:43:58 | * | asdf quit (Ping timeout: 240 seconds) |
09:44:22 | * | kulelu88 joined #nim |
09:44:23 | * | kulelu88 quit (Changing host) |
09:44:23 | * | kulelu88 joined #nim |
09:47:30 | * | mal`` quit (Ping timeout: 246 seconds) |
09:48:58 | cheatfate | vegansk, are you here? |
09:49:18 | vegansk | cheatfate,hi! I'm here |
09:50:13 | cheatfate | vegansk, got this https://gist.github.com/cheatfate/2c161d2d9277cd27292e when using locks on linux, i think you forgot to add [*] to functions |
09:51:05 | * | mal`` joined #nim |
09:52:00 | * | asdf__ is now known as asdf |
09:56:45 | cheatfate | vegansk, ping? |
09:58:30 | vegansk | cheatfate, the problem is that it's an internal file and it's included to another modules and not imported |
09:58:52 | cheatfate | i'm using locks.nim |
10:00:37 | vegansk | cheatfate, I found the solution. doing the PR now... |
10:05:04 | * | kulelu88 quit (Quit: Leaving) |
10:31:17 | vegansk | cheatfate, do you know why ``{.push hints: off.}`` works and {.push hint[XDeclaredButNotUsed]: off.} doesn't? |
10:32:08 | reactormonk | Araq, tabs. |
10:32:08 | cheatfate | vegansk, this is not very good solution but {.hint[]: off.} must be used |
10:33:48 | vegansk | ``syslocks`` used partially in ``locks`` and partially in ``rlocks``. so, this solution must be fine |
10:33:54 | * | lokien joined #nim |
10:35:57 | * | thotypous left #nim ("WeeChat 1.4") |
10:40:29 | vegansk | wow, {.hint[]: off.} kills the compiler with segfault |
10:42:45 | reactormonk | vegansk, now that's bad. Time for a bug report. |
10:45:01 | * | vendethiel joined #nim |
10:45:59 | * | gokr quit (Quit: Leaving.) |
10:47:33 | vegansk | PR #4000 :-) https://github.com/nim-lang/Nim/pull/4000 |
10:48:13 | * | darkf quit (Quit: Leaving) |
10:51:18 | vegansk | reactormonk, https://github.com/nim-lang/Nim/issues/4001 |
10:59:45 | lokien | vegansk: how good is your fp library? |
11:00:03 | reactormonk | vegansk, more like issue #4000, the PRs share ids with them. |
11:02:32 | reactormonk | vegansk, no zero/point in your FP library? I'm dissapointed. |
11:04:14 | vegansk | lokien, it's an experiment, but we use it in production :-) |
11:08:11 | vegansk | reactormonk, it's only the beginning. Here is the new showstopper for this library: https://github.com/nim-lang/Nim/issues/3995 |
11:09:58 | * | vendethiel quit (Ping timeout: 244 seconds) |
11:13:49 | lokien | how to append things to a sequence? it's not in the official tutorial, darn |
11:16:16 | lokien | oh, it's .add. |
11:16:59 | * | arnetheduck joined #nim |
11:19:55 | reactormonk | vegansk, meh |
11:20:40 | reactormonk | Wanna dig around in the lambda lifting code? :-) |
11:22:39 | vegansk | well, I'm just starting to dig ito the nim's compiler code, so ll is a hardcore theme for me :-) |
11:23:48 | reactormonk | the variables names are a bit on the short side, but otherwise it's not too bad. |
11:30:28 | lokien | vegansk: wait, you're using nim in production? |
11:32:07 | * | Trustable joined #nim |
11:32:41 | vegansk | lokien, there are two ``not that big`` projects that are used by our clients. And they don't even know that they are written in Nim :-) |
11:34:19 | vegansk | first was a small tool that imports some information from external sources to one of our product's database |
11:36:22 | lokien | what's the second one? |
11:38:59 | vegansk | The second was more cool :-) The online activation system for some of our prodcts. And it contains the library that is used from C++ and Haskell applications and the server with REST API :-) |
11:42:37 | lokien | oh, neat :) |
12:01:44 | * | vendethiel joined #nim |
12:05:07 | * | mirek quit (Quit: Page closed) |
12:10:42 | * | vegansk is now known as veganskaway |
12:24:52 | * | vendethiel quit (Ping timeout: 260 seconds) |
12:33:39 | * | vendethiel joined #nim |
12:36:27 | lokien | hey, how do I open a text file? like pythonish "with open("path") as text:" |
12:44:59 | GangstaCat | lokien, http://nim-lang.org/docs/system.html#readFile,string ? |
12:50:20 | lokien | GangstaCat: works perfectly, thanks |
12:54:59 | * | vendethiel quit (Ping timeout: 248 seconds) |
12:56:53 | flyx | lokien: here's what you can do if you actually want something like Python's `with`: https://gist.github.com/flyx/c1f7dd6afbbe6bbf1e9c |
12:59:00 | lokien | flyx: aw, that's useful too. but for now readFile will do :) |
13:02:16 | def- | flyx: could also use defer |
13:03:44 | flyx | def-: nice, I didn't use that yet |
13:03:59 | flyx | there are still so many features I don't know about |
13:07:27 | * | BitPuffin joined #nim |
13:11:32 | lokien | do you guys add main proc to every program you write? |
13:12:21 | * | flyx does not |
13:12:50 | lokien | noice |
13:14:59 | * | irrequietus joined #nim |
13:19:00 | * | yglukhov quit (Ping timeout: 276 seconds) |
13:19:25 | * | exebook quit (Ping timeout: 252 seconds) |
13:26:26 | * | kulelu88 joined #nim |
13:31:12 | * | vendethiel joined #nim |
13:31:49 | * | exebook joined #nim |
13:36:51 | * | zahary joined #nim |
13:43:03 | * | Trustable quit (Ping timeout: 240 seconds) |
13:45:49 | * | Trustable joined #nim |
13:52:09 | * | vendethiel quit (Ping timeout: 246 seconds) |
13:56:20 | lokien | how do I check if all letters from first string appear in the other string? |
13:57:07 | lokien | f("aaa", "asd") -> true, f("bbb", "asd") -> false |
13:59:45 | def- | lokien: iterate over string and check if each char is in. or use strutils.allCharsInSet after making a set of chars |
14:02:03 | * | kulelu88 quit (Quit: Leaving) |
14:04:30 | def- | lokien: for example: https://gist.github.com/def-/d15148ea575371204890 |
14:06:03 | lokien | def-: thanks! I was trying to do the naive solution, but I'm too illiterate atm :D |
14:20:09 | * | yglukhov joined #nim |
14:21:27 | * | zahary quit (Quit: Leaving.) |
14:22:40 | * | endragor quit (Ping timeout: 252 seconds) |
14:32:21 | * | BitPuffin quit (Read error: Connection reset by peer) |
14:32:46 | * | BitPuffin joined #nim |
14:32:58 | * | pregressive joined #nim |
14:51:04 | * | bjz_ joined #nim |
14:51:05 | * | francisl joined #nim |
14:52:21 | * | bjz quit (Ping timeout: 246 seconds) |
14:59:29 | * | vendethiel joined #nim |
15:13:50 | * | francisl quit (Quit: francisl) |
15:17:49 | * | exebook quit (Ping timeout: 248 seconds) |
15:21:47 | * | vendethiel quit (Ping timeout: 268 seconds) |
15:35:16 | * | exebook joined #nim |
15:44:56 | cheatfate | what is the best method to avoid [XDeclaredButNotUsed] |
15:48:09 | dom96 | cheatfate: use the identifier :P |
15:48:27 | * | arnetheduck quit (Ping timeout: 260 seconds) |
15:50:05 | cheatfate | dom96, its not so easy when this is function |
15:53:29 | cheatfate | dom96, you know selectors.nim cannot be compiled, if "-d:useStdlibThreading" |
15:54:49 | dom96 | I'm not surprised, that is still experimental |
16:20:27 | * | desophos joined #nim |
16:20:27 | * | desophos quit (Read error: Connection reset by peer) |
16:20:37 | * | desophos joined #nim |
16:38:58 | * | vendethiel joined #nim |
16:42:34 | dom96 | cheatfate: Think you could look into this? https://github.com/nim-lang/Nim/issues/3726 |
16:44:30 | * | yglukhov quit (Ping timeout: 250 seconds) |
16:45:03 | cheatfate | dom96, ok |
16:45:13 | dom96 | thanks |
16:50:30 | cheatfate | dom96, i even can't install nimble from source in freebsd... |
16:51:05 | cheatfate | sysio.nim(90, 12) Error: IOFBF not ported to your platform. |
16:51:18 | dom96 | cheatfate: Don't use the nims file |
16:51:26 | dom96 | follow the instructions in Nimble's repo |
16:51:48 | cheatfate | https://github.com/nim-lang/nimble |
16:52:13 | cheatfate | this instructions? it was failed on last step "nim -d:release c -r src/nimble install" |
16:52:50 | dom96 | with the above message? |
16:53:05 | dom96 | oh, Nimble uses nimscript now too D: |
16:53:35 | dom96 | Guess the first step is to make nimscript work on freebsd |
16:53:44 | cheatfate | :) |
16:59:47 | * | vendethiel quit (Ping timeout: 244 seconds) |
17:03:54 | * | francisl joined #nim |
17:04:07 | * | Jesin quit (Quit: Leaving) |
17:14:02 | cheatfate | i think i had old devel base let me check |
17:15:37 | * | brson joined #nim |
17:19:46 | * | Jesin joined #nim |
17:20:48 | cheatfate | my nimble error was because of old version |
17:24:50 | * | Demon_Fox joined #nim |
17:26:18 | cheatfate | dom96, i can't reproduce errors... i think it was patched with https://github.com/nim-lang/Nim/pull/3947 |
17:26:52 | dom96 | cool |
17:27:05 | dom96 | even #3726? |
17:28:05 | cheatfate | i have successfully installed gtk2 and cairo with nim on my freebsd |
17:28:12 | cheatfate | with nimble* |
17:34:37 | cheatfate | dom96, do we finished? or you want me to do more tests? |
17:35:29 | dom96 | cheatfate: can you see if Aporia works? |
17:35:42 | cheatfate | dom96, i dont have X11s... |
17:35:52 | dom96 | oh, okay |
17:40:21 | * | Arrrr joined #nim |
17:40:37 | * | perturbation joined #nim |
17:41:42 | * | yglukhov joined #nim |
17:46:04 | * | yglukhov quit (Ping timeout: 260 seconds) |
18:01:10 | * | francisl quit (Quit: francisl) |
18:18:03 | * | yglukhov joined #nim |
18:20:12 | * | vendethiel joined #nim |
18:24:15 | * | yglukhov quit (Remote host closed the connection) |
18:44:28 | * | vendethiel quit (Ping timeout: 252 seconds) |
18:48:55 | * | pregressive quit (Remote host closed the connection) |
18:49:07 | * | chrisheller quit (Remote host closed the connection) |
18:56:07 | * | vendethiel joined #nim |
19:19:24 | * | vendethiel quit (Ping timeout: 246 seconds) |
19:30:15 | * | vendethiel joined #nim |
19:30:52 | * | fredrik92 joined #nim |
19:45:01 | * | francisl joined #nim |
19:48:23 | * | yglukhov joined #nim |
19:56:35 | * | maxim joined #nim |
19:56:58 | * | maxim is now known as Guest22743 |
19:57:41 | Guest22743 | Hello, I've just installed Nim on Windows XP 2002 SP3 |
19:57:52 | Guest22743 | And now I have problem with nimble |
19:58:17 | fredrik92 | people out there still use XP?!?!? :P |
19:58:38 | Guest22743 | It is not my main computer :D |
19:58:50 | Guest22743 | "could not import: inet_ntop", that is the problem |
20:00:03 | Guest22743 | I found some issues on github and they are solved |
20:01:26 | Guest22743 | But in fact, I can't use nimble. Maybe building this from sources will help? |
20:03:13 | dom96 | hey Guest22743 |
20:03:25 | dom96 | are you using Nim 0.13.0 or the latest from Github? |
20:03:50 | Guest22743 | I have installed nim via installer from site |
20:04:17 | Guest22743 | 0.13.0 |
20:05:15 | * | heinrich5991 quit (Ping timeout: 264 seconds) |
20:08:27 | * | heinrich5991 joined #nim |
20:12:49 | dom96 | Guest22743: can you try the latest from Github? |
20:13:00 | dom96 | make sure to remove the installed version first |
20:13:25 | Guest22743 | ok, I try, thank you |
20:14:21 | Guest22743 | How can I remove installed nimble? |
20:16:03 | * | vendethiel quit (Ping timeout: 248 seconds) |
20:16:10 | Arrrr | https://github.com/nim-lang/nimble#nimble-uninstall |
20:16:26 | Arrrr | Ups, that wont work. |
20:16:33 | Arrrr | Just rm -rf nimble |
20:17:19 | dom96 | Guest22743: just navigate to where Nim was installed, there should be a uninstall.exe or similar file |
20:17:27 | cheatfate | dom96, inet_ntop problem it doesn't help |
20:17:49 | cheatfate | dom96, latest development version is affected too i think |
20:18:00 | Guest22743 | Should I reinstall Nim or Nimble? |
20:18:00 | Arrrr | It was fixed on february |
20:18:18 | dom96 | Guest22743: both, you need to recompile Nimble as well |
20:18:21 | Arrrr | Guest, do you know how to clone a repository? |
20:18:26 | Guest22743 | Yes |
20:18:33 | Guest22743 | I will try |
20:18:48 | Arrrr | Then https://github.com/nim-lang/Nim#compiling |
20:20:18 | cheatfate | Arrrr, ws2_32.dll (windows xp) doesnt have export symbol "inet_ntop" |
20:21:00 | dom96 | cheatfate: yes, but its usage was fixed (I think?) |
20:21:12 | Arrrr | The issue with windows xp was that you could not execute any nim application using sockets. |
20:21:23 | Arrrr | Now it works, but i think it doesn't support ipv6 |
20:22:23 | cheatfate | https://github.com/nim-lang/Nim/blob/devel/lib/windows/winlean.nim (lines 836-838) |
20:23:58 | Arrrr | There was an annoying warrning there, but it got fixed recently too |
20:26:29 | cheatfate | maybe "symAddr" can produce this "could not import: inet_ntop" |
20:26:30 | * | gokr joined #nim |
20:26:30 | * | gokr quit (Read error: Connection reset by peer) |
20:26:46 | * | gokr joined #nim |
20:29:26 | Arrrr | I dont think so, i believe the issue was fixed here https://github.com/nim-lang/Nim/pull/3787, i have not used winlean directly but a lot of code relays on it |
20:31:27 | cheatfate | Arrrr, you are right |
20:31:58 | cheatfate | it was fixed 26 Jan 2016 |
20:32:11 | cheatfate | i dont know when 0.13.0 was released |
20:34:51 | Arrrr | the web says Jan 18 |
20:48:28 | * | Arrrr quit (Quit: WeeChat 1.4) |
20:50:05 | Guest22743 | Yes, guys |
20:50:23 | Guest22743 | I finished, latest sources solved my problem |
20:50:29 | Guest22743 | Thank you |
20:51:39 | Guest22743 | Have you ever thought about creating chat in Telegram? |
20:58:36 | * | desophos quit (Remote host closed the connection) |
20:59:16 | * | desophos joined #nim |
21:03:50 | * | darkf joined #nim |
21:06:06 | * | BitPuffin quit (Remote host closed the connection) |
21:22:23 | * | Guest22743 left #nim (#nim) |
21:33:55 | * | yglukhov quit (Remote host closed the connection) |
21:34:39 | * | yglukhov joined #nim |
21:36:29 | Araq | who's up for a challenge? |
21:36:31 | Araq | https://github.com/nim-lang/Nim/issues/3998 |
21:36:58 | Araq | chances are high it's in compiler/sigmatch.nim |
21:37:38 | Araq | where we allow for type conversions in the unification process that resolves generics. |
21:37:45 | Araq | which we shouldn't. |
21:41:15 | Araq | nur nicht alle auf einmal... |
21:41:18 | * | mahasamoot_ quit (Remote host closed the connection) |
21:43:32 | * | mahasamoot joined #nim |
21:46:03 | * | desophos quit (Remote host closed the connection) |
21:46:19 | * | desophos joined #nim |
21:49:59 | * | pregressive joined #nim |
21:50:04 | * | desophos quit (Remote host closed the connection) |
21:53:27 | * | desophos joined #nim |
21:54:55 | * | saml quit (Quit: Leaving) |
21:56:04 | * | gokr quit (Quit: Leaving.) |
22:00:05 | Varriount | Araq: I could try. |
22:00:49 | Araq | Varriount: go ahead. I'm here to help you. |
22:02:38 | * | desophos quit (Remote host closed the connection) |
22:04:38 | Varriount | Araq: Are arrays handled by the generics matching code? |
22:05:24 | Varriount | I ask because I figure the best way to find the faulty piece of code is to figure out where an error is *supposed* to happen, and figure out why it isn't. |
22:05:43 | Varriount | So I need a test case that actually works. |
22:08:21 | Araq | Varriount: it works properly (aka doesn't compile) when it uses arrays directly |
22:08:31 | Araq | but fails when the array is wrapped in a generic |
22:11:44 | Varriount | Araq: Wouldn't that be part of semAsgn? |
22:14:29 | * | desophos joined #nim |
22:15:53 | Araq | Varriount: good point, first thing you need to check is whether only assignment is affected or parameter passing in general |
22:16:35 | * | desophos quit (Remote host closed the connection) |
22:16:44 | Varriount | Araq: Also, you'll be interested to know Nimsuggest is getting a nice workout navigating through compiler code. |
22:23:35 | * | desophos joined #nim |
22:26:55 | Araq | coo. |
22:26:57 | Araq | l. |
22:29:51 | * | desophos quit (Remote host closed the connection) |
22:31:07 | * | desophos joined #nim |
22:35:33 | * | desophos quit (Ping timeout: 240 seconds) |
22:35:56 | * | desophos joined #nim |
22:37:34 | fredrik92 | The Visual Studio Code plugin actually automagically uses Nimsuggest for IntelliSense! |
22:37:48 | fredrik92 | That's really awesome! :-) |
22:45:29 | * | yglukhov quit (Remote host closed the connection) |
22:48:46 | cheatfate | fredrik92, you mean this one https://github.com/Gravityzwell/NimStudio? |
22:49:08 | * | yglukhov joined #nim |
22:51:07 | fredrik92 | this one: https://marketplace.visualstudio.com/items?itemName=kosz78.nim |
22:52:12 | cheatfate | ah, sorry |
22:52:34 | cheatfate | i dont like this javascript based editors |
22:53:29 | Varriount | cheatfate: Yay! Another compatriot! |
22:53:32 | fredrik92 | Hmm... Could be nice to write VSIX for Visual Studio to make Nim projects! ;-) |
22:54:33 | fredrik92 | actually you could probably speed up compile time this way, since Visual Studio automagically uses incremental build and so on... |
22:55:34 | cheatfate | fredrik92, but this depends on compiler, not editor |
22:55:44 | fredrik92 | true |
22:56:04 | fredrik92 | You, could also write a Makefile! ;-) |
22:56:56 | fredrik92 | I'm just (obviously) a Microsoft/Visual Studio kind of guy! :P |
22:57:32 | fredrik92 | Btw, can we get Nim to generate C# code? |
22:57:51 | Varriount | Araq: As a side note, is Nimsuggest supposed to spit out "template/generic instantiation from here" for correct files? |
22:58:03 | Varriount | fredrik92: You can build a backend. :D |
22:58:20 | cheatfate | the best visual studio was Visual Studio 6.0, all vs after it just made it slower and slower |
22:58:35 | cheatfate | but ms made vs2015 a little faster than 2013 |
22:59:42 | fredrik92 | Well, I mainly do C# nowadays, so VS is still the most awesome IDE for that (that I know of) |
23:03:48 | fredrik92 | But yes, VS does require a LOT of resources! :-/ |
23:05:09 | cheatfate | i though c# programmers hate c programmers so will never join nim society :) |
23:06:04 | fredrik92 | Well at the UiT in Tromsø, Norway, we actually teach C, since I am a TA there I kind of have to embrace it! :P |
23:07:05 | fredrik92 | No, C can be quite fun! And if you really, really want to, you can do magic P/Invokes in C#->C! :D |
23:11:09 | * | francisl quit (Quit: francisl) |
23:11:25 | cheatfate | fredrik92, http://lurkmore.so/images/5/52/Program-weapon.jpg |
23:12:10 | fredrik92 | cheatfate, yeah, I know! :d |
23:12:20 | cheatfate | and i'm totally agree :) |
23:13:20 | fredrik92 | Well, I kind of do as well, or I do not disagree! :-) |
23:19:27 | * | francisl joined #nim |
23:20:10 | * | yglukhov quit (Remote host closed the connection) |
23:21:44 | fredrik92 | cheatfate, though with .NET Core and the cross-platform capabilities MS are developing right now, I think C# is going in the right direction... |
23:23:21 | cheatfate | microsoft is working in alternative reality, i think .net will die as ActiveX |
23:26:22 | * | pregressive quit (Remote host closed the connection) |
23:27:48 | nsf | C# is very popular in gamedev these days due to unity |
23:28:33 | nsf | so it probably won't die any time soon |
23:41:05 | * | desophos quit (Remote host closed the connection) |
23:48:49 | * | desophos joined #nim |
23:49:00 | * | Trustable quit (Remote host closed the connection) |
23:57:27 | * | mahasamoot quit (Ping timeout: 264 seconds) |