00:01:48 | * | Snircle quit (Remote host closed the connection) |
00:05:08 | * | jinshil joined #nim |
00:09:39 | * | http_GK1wmSU joined #nim |
00:11:32 | * | http_GK1wmSU left #nim (#nim) |
00:17:58 | * | couven92 quit (Quit: Client Disconnecting) |
00:21:54 | FromGitter | <zetashift> @TiberiumN oh man I met some great people through dota including russians; I just joke around a lot and tbf they used cyka pretty casually |
00:51:04 | * | endragor joined #nim |
00:55:44 | * | endragor quit (Ping timeout: 260 seconds) |
01:12:48 | * | gokr quit (Ping timeout: 240 seconds) |
01:26:05 | * | chemist69 quit (Ping timeout: 255 seconds) |
01:35:38 | * | BitPuffin|osx joined #nim |
01:39:57 | * | chemist69 joined #nim |
01:50:29 | * | endragor joined #nim |
02:08:10 | * | flaviu quit (Read error: Connection reset by peer) |
03:08:21 | * | pilne quit (Quit: Quitting!) |
03:11:43 | mahtov | thnks dom96 for jsonrpc ex. |
03:15:50 | * | v17d quit (Ping timeout: 240 seconds) |
04:08:19 | * | def-pri-pub quit (Quit: leaving) |
05:28:19 | * | BitPuffin|osx quit (Ping timeout: 255 seconds) |
05:47:10 | * | dankrad quit (Ping timeout: 240 seconds) |
05:59:15 | * | salewski joined #nim |
06:01:33 | salewski | Araq, do you already have an idea why I have to support the mconnect macro with the connect template: |
06:01:38 | salewski | https://github.com/StefanSalewski/gintro/blob/master/tests/gen.nim#L947 |
06:02:03 | salewski | Of course this combination works fine, and is not really ugly. |
06:02:29 | salewski | But I still wonder why a macro alone is not sufficient. |
06:03:10 | salewski | In other words, why can a getType() call in the macro not provide the same information that |
06:03:28 | salewski | type() can provide in the template? |
06:05:07 | salewski | The reason why I am asking is, that I have to provide a similar macro for the cairo module... |
06:05:37 | salewski | And I want to ensure that I not simply miss sonething or do it not properly. |
06:05:57 | salewski | Bye. |
06:15:58 | * | rauss quit (Quit: WeeChat 1.9) |
06:27:57 | * | nsf joined #nim |
06:37:11 | * | couven92 joined #nim |
07:14:30 | * | Sentreen quit (Ping timeout: 240 seconds) |
07:20:27 | * | yglukhov joined #nim |
07:21:53 | * | nattefrost joined #nim |
07:27:55 | * | Sentreen joined #nim |
07:47:38 | * | Andris_zbx joined #nim |
08:04:37 | * | v17d joined #nim |
08:16:24 | * | sakalli quit (Remote host closed the connection) |
08:17:45 | * | sakalli joined #nim |
08:19:14 | * | sakalli left #nim (#nim) |
08:58:10 | * | dom96|w joined #nim |
09:09:11 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:11:16 | * | jinshil quit (Quit: Good-bye!) |
09:31:29 | * | dom96|w joined #nim |
10:03:13 | * | gokr joined #nim |
10:04:19 | * | endragor quit (Read error: Connection reset by peer) |
10:04:46 | * | endragor joined #nim |
10:07:10 | * | mahtov quit (Ping timeout: 240 seconds) |
10:07:16 | * | Vladar joined #nim |
10:08:16 | * | mahtov joined #nim |
10:24:14 | * | LyndsySimon quit (Ping timeout: 246 seconds) |
10:25:58 | * | LyndsySimon joined #nim |
10:28:19 | FromGitter | <TiberiumN> Hmm, how can I ask user for multi-line input? |
10:28:28 | FromGitter | <TiberiumN> so he wants to paste multiple lines of text into program |
10:29:41 | FromGitter | <TiberiumN> ah, const ⏎ x = 1 ⏎ # a comment can occur here too ⏎ y = 2 ⏎ z = y + 5 # computations are possible [https://gitter.im/nim-lang/Nim?at=5982fb14614889d475151997] |
10:29:42 | FromGitter | <TiberiumN> sorry |
10:29:44 | FromGitter | <TiberiumN> readAll |
10:30:35 | FromGitter | <TiberiumN> hmm, readAll doesn't work |
10:30:48 | FromGitter | <TiberiumN> it just reads everything until I stop the program |
10:31:12 | euantor | How do you know when the end of the user input has been reached? |
10:31:33 | euantor | Does the user enter some text to say it's the end of input? (such as a blank line)? |
10:31:40 | FromGitter | <TiberiumN> well, I don't know, but I thought it's possible |
10:31:47 | FromGitter | <TiberiumN> hmm, yes, I can ask user to do that |
10:31:49 | euantor | Read all reads until it reaches EOF, so when the program exits |
10:32:06 | euantor | Without some kind of end token or fixed limit of number of lines, there's no other way |
10:32:27 | FromGitter | <TiberiumN> ok, I would use readLine until I get empty line? |
10:32:36 | euantor | Yeah |
10:41:04 | couven92 | ah.... classic I/O problme, how to know when the InputStream is fully consumed? Fun everytime! :P |
10:51:47 | flyx | well you can send EOF to the program without closing it |
10:51:51 | flyx | ^D |
10:56:20 | FromGitter | <gokr> @TiberiumN Recommend homebrew, but you already know that I am sure. |
10:57:09 | FromGitter | <TiberiumN> what do you mean? |
10:57:50 | FromGitter | <TiberiumN> I've installed brew after I've installed and configured my hackintosh :) |
10:58:11 | FromGitter | <gokr> Exactly |
10:58:39 | FromGitter | <TiberiumN> well because I knew it exists and it's a package manager |
10:59:00 | FromGitter | <gokr> I also tried hackintosh, but... too many machines already to keep in order. |
10:59:17 | FromGitter | <TiberiumN> question about async: why while hasPendingOperations() runs forever, even if there's no "pending operations" left? |
11:01:49 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
11:04:26 | euantor | flyx: I always forget about ^D, I very rarely have any use for it |
11:05:50 | * | dozn joined #nim |
11:13:15 | * | Vladar quit (Quit: Leaving) |
11:17:27 | * | couven92 quit (Quit: Client disconnecting) |
11:17:42 | flyx | euantor: there's also heredoc |
11:18:04 | euantor | That would work too |
11:18:15 | euantor | Can also take the git approach and open the system editor |
11:19:32 | flyx | whether you want to do that depends on whether the tool should be scriptable or not |
11:35:52 | * | dom96|w joined #nim |
12:32:05 | * | v17d quit (Ping timeout: 240 seconds) |
12:45:46 | * | UxerUospr joined #nim |
12:51:19 | * | tanguy joined #nim |
12:51:25 | * | tanguy quit (Client Quit) |
13:12:16 | * | BitPuffin|osx joined #nim |
13:12:54 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:19:41 | * | dom96|w joined #nim |
13:28:09 | * | sz0 joined #nim |
13:36:55 | * | rauss joined #nim |
13:39:31 | * | crem quit (Quit: leaving) |
13:47:47 | * | crem joined #nim |
13:55:05 | * | Snircle joined #nim |
14:04:27 | * | BitPuffin|osx quit (Ping timeout: 240 seconds) |
14:13:45 | * | vivus joined #nim |
14:14:37 | * | v17d joined #nim |
14:16:11 | * | salewski quit (Quit: WeeChat 1.4) |
15:14:28 | * | nsf quit (Quit: WeeChat 1.9) |
15:16:16 | * | v17d quit (Ping timeout: 260 seconds) |
15:25:14 | * | endragor quit (Remote host closed the connection) |
15:28:04 | * | v17d joined #nim |
15:29:48 | * | endragor_ joined #nim |
15:34:12 | * | endragor_ quit (Ping timeout: 240 seconds) |
15:36:57 | * | gokr quit (Quit: Leaving.) |
15:45:53 | * | yglukhov quit (Remote host closed the connection) |
15:47:32 | * | v17d quit (Ping timeout: 260 seconds) |
15:55:06 | * | dankrad joined #nim |
16:01:19 | * | Trustable joined #nim |
16:02:16 | * | v17d joined #nim |
16:02:42 | tankfeeder | hi all |
16:02:49 | FromGitter | <TiberiumN> hi |
16:02:53 | tankfeeder | how to make this code work? |
16:02:54 | tankfeeder | http://ideone.com/ECeEci |
16:02:57 | tankfeeder | or where to read |
16:03:32 | FromGitter | <TiberiumN> you need to use "if" instead of "when". ⏎ or you want this in compile time? |
16:05:44 | tankfeeder | no, i dont |
16:05:54 | FromGitter | <TiberiumN> well, just use "if" |
16:06:07 | tankfeeder | ok, thanks |
16:06:08 | FromGitter | <TiberiumN> "when" is needed if you want to evaluate some statement on compile-time |
16:06:58 | tankfeeder | ok, i see it now in tutorial. |
16:09:44 | FromGitter | <Alan-FGR> @gokr these days my "mac" was upgraded so much that it can only be classified as a hackintosh... I'm using clover and it's working rather fine, I've upgraded the CPU so I had to use a fakeCPUID, but the problem is in legal grounds; you can never know if you're fine, in some jurisdictions it's perfectly OK to upgrade the hardware and you still retain the license, but it's a bit of a gray area overall... I'm not buying |
16:09:44 | FromGitter | ... their overpriced stuff though only to have some marginal improvements while I can upgrade the hardware I have here... not to mention that I'm against ditching an entire machine just for a few extra hertz and more memory because of trash production |
16:10:25 | FromGitter | <TiberiumN> lol :) |
16:10:41 | FromGitter | <Alan-FGR> what's funny? |
16:10:46 | FromGitter | <TiberiumN> not funny, interesting |
16:10:54 | FromGitter | <Alan-FGR> I see. fine :) |
16:14:36 | * | vendethiel- quit (Ping timeout: 260 seconds) |
16:30:28 | * | yglukhov joined #nim |
16:32:01 | * | arnetheduck quit (Ping timeout: 276 seconds) |
16:32:55 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
16:34:42 | * | yglukhov quit (Ping timeout: 240 seconds) |
16:35:54 | * | Andris_zbx quit (Remote host closed the connection) |
16:57:56 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
16:58:00 | * | v17d quit (Ping timeout: 260 seconds) |
17:09:53 | * | v17d joined #nim |
17:23:20 | * | cspar__ quit (Read error: Connection reset by peer) |
17:35:27 | * | v17d quit (Ping timeout: 260 seconds) |
17:40:50 | * | mahtov quit (Ping timeout: 240 seconds) |
17:43:29 | shmup | lol |
17:43:49 | * | mahtov joined #nim |
17:47:13 | * | andrzejk_ joined #nim |
17:58:59 | * | endragor joined #nim |
17:59:00 | * | couven92 joined #nim |
18:03:25 | * | endragor quit (Ping timeout: 255 seconds) |
18:08:18 | * | v17d joined #nim |
18:18:08 | * | mahtov quit (Ping timeout: 258 seconds) |
18:19:12 | * | v17d quit (Ping timeout: 260 seconds) |
18:19:53 | * | ipjk joined #nim |
18:21:34 | ipjk | Varriount: I found someone who were calling the same function as me. Afterwards the rest clicked. |
18:28:12 | * | Matthias247 joined #nim |
18:44:08 | * | nsf joined #nim |
18:44:57 | * | andrzejk_ quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
18:50:20 | * | spkpp quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
18:55:07 | * | Sentreen quit (Quit: WeeChat 1.4) |
18:56:30 | * | mahtov joined #nim |
19:12:16 | * | chemist69 quit (Ping timeout: 255 seconds) |
19:25:20 | * | andrzejk_ joined #nim |
19:26:04 | shodan45 | Hi Nim people |
19:26:19 | * | chemist69 joined #nim |
19:27:19 | shodan45 | Haven't been keeping up with things... Is a 1.0 getting close? |
19:30:50 | * | Trustable quit (Remote host closed the connection) |
19:35:45 | * | andrzejk_ quit (Quit: Textual IRC Client: www.textualapp.com) |
19:51:39 | * | yglukhov joined #nim |
19:54:15 | * | rauss quit (Quit: WeeChat 1.9) |
19:56:43 | * | tankfeeder quit (Quit: Connection closed for inactivity) |
20:02:26 | * | Sentreen joined #nim |
20:03:39 | * | themagician joined #nim |
20:10:54 | * | vendethiel joined #nim |
20:15:57 | * | ludocode_ quit (Ping timeout: 240 seconds) |
20:21:20 | * | Sentreen quit (Quit: WeeChat 1.4) |
20:22:44 | * | Sentreen joined #nim |
20:25:11 | Araq | shodan45: yes, even though it might look that way. I doing lots of experiments with |
20:25:31 | Araq | Nim's runtime/semantic details |
20:25:56 | Araq | so that we bet on a future proof design (I hope) |
20:26:39 | Araq | *event though it might not look that way |
20:30:09 | * | UxerUospr quit (Quit: Lost terminal) |
20:31:50 | * | dankrad quit (Ping timeout: 240 seconds) |
20:33:42 | * | Parashurama joined #nim |
20:33:49 | * | dankrad joined #nim |
20:34:10 | Parashurama | hey! |
20:34:51 | Parashurama | @Araq: I'm having issues with new Magics in compiler in PR: https://github.com/nim-lang/Nim/pull/6180 |
20:35:20 | Parashurama | Do you know how I can solve it. |
20:36:17 | Araq | when defined(nimFoobar): |
20:36:25 | Araq | # code that uses new magics |
20:36:34 | Araq | # in condsyms.nim |
20:36:48 | Araq | defineSymbol"nimFoobar" # we now support more magics |
20:37:40 | Araq | you need to think a bit about it to see why that works. |
20:38:17 | Parashurama | Okay, thanks, will try that. |
20:38:50 | * | Sentreen quit (Quit: WeeChat 1.4) |
20:39:03 | * | gokr joined #nim |
20:39:09 | * | ludocode joined #nim |
20:40:37 | * | Sentreen joined #nim |
20:49:04 | * | Sentreen quit (Quit: WeeChat 1.4) |
20:50:28 | * | Sentreen joined #nim |
20:53:23 | Parashurama | It appear to work perfectly on my machine, thanks |
21:10:30 | Parashurama | And the AppVeyor & Travis CI bootstrapped.. |
21:10:43 | * | Parashurama quit (Quit: ChatZilla 0.9.93 [Firefox 54.0.1/20170630112252]) |
21:37:35 | * | vivus quit (Quit: Leaving) |
21:43:01 | * | gokr quit (Quit: Leaving.) |
21:45:56 | * | yglukhov quit (Remote host closed the connection) |
21:48:43 | * | nsf quit (Quit: WeeChat 1.9) |
21:51:28 | dom96 | Araq: Hey, take a look at the logs: https://ci.appveyor.com/project/Araq/nim/build/1407 |
21:51:49 | dom96 | According to AppVeyor support the build is timing out |
21:52:01 | dom96 | But look at where it times out |
21:52:05 | dom96 | On the bootstrap phase |
21:52:17 | dom96 | It does a couple of iterations |
21:52:25 | dom96 | One takes 26s |
21:52:34 | dom96 | another later iteration takes more than 60 minutes! |
21:52:39 | dom96 | Are we sure this isn't a Nim bug? |
21:53:01 | dom96 | In the meantime I asked them for test machine specs. |
22:00:12 | dom96 | Could somebody with a Windows machine verify that the steps which AppVeyor makes work? |
22:01:18 | Araq | dom96: I planned to look into that as soon as my holidays end |
22:01:40 | dom96 | okay, cool |
22:01:52 | Araq | I noticed it fails in the bootstrapping phase, I suspected memory swapping |
22:18:16 | * | salewski joined #nim |
22:19:17 | salewski | I have in a macro: |
22:19:20 | salewski | result = quote do: |
22:19:34 | salewski | proc `procName`(self: `wt`; p: proc (self: `wt`, cr: cairo.Context, arg: `at`): bool; a: `at`) = |
22:20:04 | salewski | The :bool is a problem. |
22:21:07 | salewski | Without it it compiles. Is there a trick that the compiler sees that bool is the result of the proc? |
22:30:34 | dom96 | Araq: That's what I suspect as well. I asked AppVeyor support about this. |
22:31:57 | Araq | salewski: (proc (self: `wt`, cr: cairo.Context, arg: `at`): bool) |
22:32:03 | Araq | use () around the type |
22:33:05 | salewski | Araq, I think I already tried it with () -- will try again... |
22:37:07 | salewski | proc `procName`(self: `wt`; p: (proc (self: `wt`; cr: cairo.Context; arg: `at`): bool); a: `at`) = |
22:37:13 | * | PMunch joined #nim |
22:37:21 | salewski | That does not help, compiler message is |
22:37:38 | salewski | button.nim(48, 88) Error: type expected |
22:38:06 | * | PMunch quit (Client Quit) |
22:38:12 | salewski | Seems that the () is ignored in the macro. |
22:45:35 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:46:08 | salewski | I think I may try to define a procedure type and use that. But I fear that may result in type redefinition errors |
22:46:22 | salewski | when users use many callbacks. |
22:48:48 | FromGitter | <zacharycarter> yay! back to having non-working skeletal animation in my engine :D |
22:52:48 | Araq | salewski: the problem is likely somewhere else |
22:53:28 | Araq | like `at`or `wt` being no types or some gensym'ed bullshit due to 'quote do' |
22:55:28 | * | nattefrost quit (Ping timeout: 260 seconds) |
22:55:48 | salewski | type HHH = proc (self: `wt`; cr: cairo.Context; arg: `at`): bool |
22:56:09 | salewski | does not help, the :bool result makes trouble. |
22:57:48 | salewski | It is a macro similar to https://github.com/StefanSalewski/gintro/blob/master/tests/gen.nim#L947 |
22:58:16 | salewski | Is the "quote do" syntax deprecated? |
23:04:03 | salewski | OK, will investigate further tomorrow. Bye. |
23:09:37 | * | UxerUospr joined #nim |
23:12:40 | * | salewski quit (Quit: WeeChat 1.4) |
23:14:14 | * | UxerUospr quit (Quit: Lost terminal) |
23:26:44 | * | vendethiel quit (Ping timeout: 260 seconds) |
23:45:24 | * | ipjk quit (Quit: Leaving) |
23:46:29 | * | yglukhov joined #nim |
23:51:04 | * | yglukhov quit (Ping timeout: 268 seconds) |