00:01:49 | * | PMunch quit (Ping timeout: 252 seconds) |
00:04:21 | * | yglukhov quit (Ping timeout: 276 seconds) |
00:23:33 | * | yglukhov joined #nim |
00:28:24 | * | yglukhov quit (Ping timeout: 276 seconds) |
00:47:48 | * | yglukhov joined #nim |
00:52:27 | * | yglukhov quit (Ping timeout: 276 seconds) |
00:53:04 | libman | Gotta run. TT-y'all-L. |
00:53:11 | * | libman left #nim (#nim) |
01:12:05 | * | yglukhov joined #nim |
01:17:09 | * | yglukhov quit (Ping timeout: 276 seconds) |
01:36:16 | * | yglukhov joined #nim |
01:40:52 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:58:01 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
02:00:27 | * | yglukhov joined #nim |
02:05:15 | * | yglukhov quit (Ping timeout: 276 seconds) |
02:24:38 | * | yglukhov joined #nim |
02:25:01 | * | space-wizard joined #nim |
02:29:17 | * | yglukhov quit (Ping timeout: 260 seconds) |
02:36:44 | * | kseg quit (Quit: kseg) |
02:42:47 | * | kseg joined #nim |
02:48:54 | * | yglukhov joined #nim |
02:53:12 | * | yglukhov quit (Ping timeout: 246 seconds) |
02:53:21 | * | lubos_cz quit (Ping timeout: 276 seconds) |
03:08:29 | * | onionhammer quit (Ping timeout: 276 seconds) |
03:09:11 | * | saml_ quit (Quit: Leaving) |
03:11:21 | * | |2701 quit (Quit: Connection closed for inactivity) |
03:13:01 | * | yglukhov joined #nim |
03:17:42 | * | yglukhov quit (Ping timeout: 260 seconds) |
03:43:25 | * | yglukhov joined #nim |
03:47:48 | * | yglukhov quit (Ping timeout: 246 seconds) |
03:49:40 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
03:52:12 | * | Demon_Fox joined #nim |
04:00:18 | * | yglukhov-phone joined #nim |
04:00:50 | * | kseg quit (Quit: kseg) |
04:01:10 | * | kseg joined #nim |
04:06:42 | * | yglukhov-phone quit (Ping timeout: 260 seconds) |
04:07:51 | * | yglukhov joined #nim |
04:12:20 | * | yglukhov quit (Ping timeout: 244 seconds) |
04:13:12 | * | kseg quit (Quit: kseg) |
04:17:51 | * | doubank joined #nim |
04:21:46 | * | kseg joined #nim |
04:32:04 | * | yglukhov joined #nim |
04:32:14 | * | space-wizard joined #nim |
04:32:41 | * | yglukhov-phone joined #nim |
04:36:27 | * | yglukhov quit (Ping timeout: 246 seconds) |
04:42:52 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
04:43:12 | * | yglukhov-phone quit (Ping timeout: 276 seconds) |
04:45:15 | * | kseg quit (Quit: kseg) |
04:45:58 | * | kseg joined #nim |
04:56:15 | * | yglukhov joined #nim |
04:59:10 | * | space-wizard joined #nim |
05:00:36 | * | yglukhov quit (Ping timeout: 246 seconds) |
05:09:11 | * | zion_ joined #nim |
05:11:43 | zion_ | Hi all, does anybody have any experience with enums in nim? Here is what I have: A bunch of values that I want numbered, so I can for loop through them. They all have to be assigned a value twice later on during the code. I can't seem to get it to work. Anyone have a solution? |
05:14:23 | zion_ | And the value I want assigned is not a string or anything it is a ptr. (SurfacePtr from nim-lang's sdl2 to be exact) |
05:16:25 | unifowl | Enum is an integral type like c's enum |
05:17:13 | * | endragor joined #nim |
05:17:21 | zion_ | I don't have experience with C and my C++ knowledge does not cover enums |
05:17:44 | zion_ | what do you mean by integral type? |
05:18:14 | unifowl | I mean that the fields in an enum are names for numbers |
05:18:48 | unifowl | enum A, B, C # A is 0, B is 1, C is 2 |
05:20:27 | * | yglukhov joined #nim |
05:20:36 | zion_ | Hmm, ok. What would be best to do with it? |
05:20:44 | zion_ | Sorry, best way to do what I want |
05:21:18 | unifowl | I'm not sure what you're trying to do can you paste code somewhere |
05:22:03 | * | yglukhov-phone joined #nim |
05:22:18 | zion_ | working on it |
05:23:34 | zion_ | Here: https://gist.github.com/hcorion/5df1f1a06a80be3288178431e9e1f5ce |
05:24:33 | zion_ | That is basically the C++ code I'm trying to translate |
05:24:52 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:28:21 | zion_ | Wait, nvm I think I was reading the code wrong |
05:29:07 | zion_ | Yep, sorry you had to deal with my ignorance, thanks unifowl |
05:29:32 | * | mtj_ quit (Ping timeout: 276 seconds) |
05:30:48 | * | endragor quit (Remote host closed the connection) |
05:31:02 | * | endragor joined #nim |
05:32:14 | * | mtj_ joined #nim |
05:38:01 | unifowl | o_k |
05:42:26 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:43:20 | * | doubank quit (Ping timeout: 250 seconds) |
05:44:41 | * | yglukhov joined #nim |
05:49:22 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:52:52 | * | zion_ quit (Quit: leaving) |
06:08:52 | * | yglukhov joined #nim |
06:13:17 | * | yglukhov quit (Ping timeout: 260 seconds) |
06:16:27 | * | endragor_ joined #nim |
06:19:42 | * | endragor quit (Ping timeout: 260 seconds) |
06:26:07 | * | sarlalian quit (Ping timeout: 260 seconds) |
06:27:51 | * | Demon_Fox quit (Ping timeout: 276 seconds) |
06:28:37 | * | sarlalian joined #nim |
06:28:38 | * | filcuc joined #nim |
06:29:03 | * | yglukhov-phone quit (Ping timeout: 240 seconds) |
06:30:57 | * | endragor_ quit (Remote host closed the connection) |
06:31:26 | * | endragor joined #nim |
06:32:28 | * | Demon_Fox joined #nim |
06:33:03 | * | yglukhov joined #nim |
06:37:12 | * | yglukhov quit (Ping timeout: 246 seconds) |
06:42:14 | * | Amun_Ra quit (Ping timeout: 260 seconds) |
07:31:09 | * | NimBot joined #nim |
07:39:45 | * | endragor quit (Remote host closed the connection) |
07:45:42 | * | yglukhov joined #nim |
07:50:07 | * | yglukhov quit (Ping timeout: 260 seconds) |
07:57:10 | * | endragor joined #nim |
08:00:48 | * | Trustable joined #nim |
08:10:26 | * | fastrom quit (Quit: Leaving.) |
08:16:35 | * | Pisuke joined #nim |
08:21:44 | * | dmitry_p joined #nim |
08:21:47 | * | yglukhov joined #nim |
08:26:17 | * | yglukhov quit (Ping timeout: 260 seconds) |
08:37:15 | * | themagician quit (Ping timeout: 260 seconds) |
08:46:13 | * | yglukhov joined #nim |
08:50:33 | * | yglukhov quit (Ping timeout: 246 seconds) |
08:55:29 | * | fastrom joined #nim |
09:10:27 | * | yglukhov joined #nim |
09:13:42 | * | ri0t joined #nim |
09:14:42 | * | yglukhov quit (Ping timeout: 246 seconds) |
09:25:12 | * | Pisuke quit (Ping timeout: 260 seconds) |
09:25:59 | dmitry_p | Could anyone here approve/reject a trivial pull request, please? https://github.com/nim-lang/Nim/pull/4191 - fix for string -> cstring conversion in JS backend. |
09:34:43 | * | yglukhov joined #nim |
09:37:24 | * | Arrrr joined #nim |
09:39:12 | * | yglukhov quit (Ping timeout: 260 seconds) |
09:54:01 | * | ri0t quit (Ping timeout: 250 seconds) |
09:58:10 | * | ri0t joined #nim |
09:58:51 | * | yglukhov joined #nim |
10:00:23 | * | ri0t left #nim (#nim) |
10:03:39 | * | yglukhov quit (Ping timeout: 276 seconds) |
10:12:20 | * | Pisuke joined #nim |
10:15:25 | * | kseg quit (Quit: kseg) |
10:18:53 | * | themagician joined #nim |
10:19:05 | * | Demon_Fox quit (Quit: Leaving) |
10:23:04 | * | yglukhov joined #nim |
10:25:26 | * | arnetheduck joined #nim |
10:27:42 | * | yglukhov quit (Ping timeout: 276 seconds) |
10:27:51 | * | Pisuke quit (Ping timeout: 246 seconds) |
10:28:28 | * | der-landgraf quit (Quit: WeeChat 1.5) |
10:30:00 | * | kseg joined #nim |
10:30:03 | * | der-landgraf joined #nim |
10:30:04 | * | der-landgraf quit (Changing host) |
10:30:04 | * | der-landgraf joined #nim |
10:44:59 | * | Pisuke joined #nim |
10:46:45 | * | kseg quit (Quit: kseg) |
10:47:16 | * | yglukhov joined #nim |
10:51:39 | * | yglukhov quit (Ping timeout: 246 seconds) |
10:55:59 | * | themagician quit (Ping timeout: 260 seconds) |
10:56:35 | * | themagician joined #nim |
11:00:26 | * | Arrrr_ joined #nim |
11:01:49 | * | Arrrr_ quit (Client Quit) |
11:03:36 | * | Arrrr quit (Ping timeout: 244 seconds) |
11:11:31 | * | yglukhov joined #nim |
11:14:03 | * | Pisuke quit (Ping timeout: 276 seconds) |
11:16:27 | * | yglukhov quit (Ping timeout: 276 seconds) |
11:35:46 | * | yglukhov joined #nim |
11:39:57 | * | yglukhov quit (Ping timeout: 246 seconds) |
11:44:29 | * | saml_ joined #nim |
11:59:57 | * | yglukhov joined #nim |
12:00:26 | * | dmitry_p quit (Remote host closed the connection) |
12:04:06 | * | yglukhov quit (Ping timeout: 246 seconds) |
12:09:53 | * | |2701 joined #nim |
12:13:52 | * | PMunch joined #nim |
12:23:21 | * | Salewski joined #nim |
12:24:11 | * | yglukhov joined #nim |
12:26:07 | Salewski | https://github.com/nim-lang/Nim/wiki/Tutorial:-Sockets # s.send("NICK NimrodBot\c\L") # Why lover case \c and capital \L? Are these escape characters somewhere defined, or only magic? |
12:28:57 | * | yglukhov quit (Ping timeout: 260 seconds) |
12:38:51 | * | Salewski quit () |
12:49:31 | * | kingofoz quit (Ping timeout: 244 seconds) |
12:55:06 | * | enthus1ast joined #nim |
12:55:53 | * | lubos_cz joined #nim |
13:00:15 | * | yglukhov joined #nim |
13:03:09 | * | GangstaCat quit (Ping timeout: 260 seconds) |
13:04:39 | * | yglukhov quit (Ping timeout: 246 seconds) |
13:14:55 | * | Sembei joined #nim |
13:21:40 | * | nsf quit (Quit: WeeChat 1.4) |
13:24:40 | * | yglukhov joined #nim |
13:29:02 | * | yglukhov quit (Ping timeout: 260 seconds) |
13:48:52 | * | yglukhov joined #nim |
13:50:32 | * | GangstaCat joined #nim |
13:53:45 | * | yglukhov quit (Ping timeout: 276 seconds) |
14:13:05 | * | yglukhov joined #nim |
14:17:27 | * | yglukhov quit (Ping timeout: 246 seconds) |
14:32:17 | * | StarBrilliant quit (Ping timeout: 276 seconds) |
14:34:44 | * | StarBrilliant joined #nim |
14:37:20 | * | yglukhov joined #nim |
14:38:34 | * | BitPuffin joined #nim |
14:38:55 | * | lubos_cz quit (Ping timeout: 260 seconds) |
14:38:55 | J3RN | dom96: Just saw your message -- Thanks! |
14:40:22 | dom96 | J3RN: No problem! I wrote the IRC library so if you've got any questions let me know :) |
14:40:36 | J3RN | Will do! |
14:41:57 | * | yglukhov quit (Ping timeout: 260 seconds) |
14:52:58 | * | lubos_cz joined #nim |
14:54:06 | * | nsf joined #nim |
15:01:29 | * | yglukhov joined #nim |
15:06:33 | * | yglukhov quit (Ping timeout: 276 seconds) |
15:12:20 | * | Matthias247 joined #nim |
15:21:21 | * | |2701 quit (Quit: Connection closed for inactivity) |
15:25:43 | * | yglukhov joined #nim |
15:29:54 | * | yglukhov quit (Ping timeout: 246 seconds) |
15:34:18 | * | wuehlmaus joined #nim |
15:40:32 | * | arnetheduck quit (Ping timeout: 244 seconds) |
15:41:52 | * | Demon_Fox joined #nim |
15:44:15 | endragor | In a template body, is it possible to get a gensymed name of a variable as a string? |
15:48:26 | Araq_ | endragor: astToStr ? |
15:50:56 | endragor | Araq_: no, doesn't work. returns the original name |
15:51:45 | endragor | https://gist.github.com/endragor/3a7b5c941ce541831dd6dae920b958a4 - trying to get something like this to work |
16:01:46 | * | yglukhov joined #nim |
16:03:39 | * | fastrom quit (Quit: Leaving.) |
16:07:01 | * | yglukhov quit (Ping timeout: 276 seconds) |
16:24:50 | * | filcuc quit (Read error: Connection reset by peer) |
16:25:23 | * | Matthias247 quit (Read error: Connection reset by peer) |
16:26:14 | * | yglukhov joined #nim |
16:31:02 | * | yglukhov quit (Ping timeout: 260 seconds) |
16:36:26 | * | kulelu88 joined #nim |
16:47:57 | * | enthus1ast quit (Ping timeout: 276 seconds) |
16:50:29 | * | yglukhov joined #nim |
16:53:07 | * | endragor_ joined #nim |
16:54:57 | * | yglukhov quit (Ping timeout: 260 seconds) |
16:56:21 | * | endragor quit (Ping timeout: 246 seconds) |
16:57:39 | * | endragor_ quit (Ping timeout: 260 seconds) |
17:00:25 | * | lubos_cz quit (Ping timeout: 250 seconds) |
17:02:32 | * | yglukhov-phone joined #nim |
17:02:50 | * | Jesin quit (Quit: Leaving) |
17:04:19 | * | Arrrr joined #nim |
17:10:12 | * | Jesin joined #nim |
17:14:37 | * | yglukhov joined #nim |
17:18:45 | * | yglukhov quit (Ping timeout: 246 seconds) |
17:26:25 | * | PMunch quit (Ping timeout: 250 seconds) |
17:36:03 | * | BitPuffin quit (Ping timeout: 276 seconds) |
17:38:51 | * | yglukhov joined #nim |
17:39:10 | * | BitPuffin joined #nim |
17:42:03 | * | themagician quit (Ping timeout: 240 seconds) |
17:43:51 | * | yglukhov quit (Ping timeout: 276 seconds) |
17:44:19 | * | Jesin quit (Ping timeout: 260 seconds) |
17:45:09 | * | Jesin joined #nim |
17:51:28 | * | |2701 joined #nim |
18:03:03 | * | yglukhov joined #nim |
18:07:24 | * | yglukhov quit (Ping timeout: 246 seconds) |
18:24:47 | * | lubos_cz joined #nim |
18:26:13 | * | Sembei quit (Ping timeout: 252 seconds) |
18:26:16 | * | libman joined #nim |
18:27:17 | * | yglukhov joined #nim |
18:28:43 | * | der-landgraf quit (Quit: WeeChat 1.5) |
18:29:40 | * | der-landgraf joined #nim |
18:31:57 | * | yglukhov quit (Ping timeout: 276 seconds) |
18:36:55 | * | lubos_cz quit (Ping timeout: 260 seconds) |
18:49:38 | cheatfate | dom96, looks like my PR made a problem with undocumented feature? |
18:51:27 | * | yglukhov joined #nim |
18:53:15 | dom96 | cheatfate: looks like it indeed. |
18:53:40 | dom96 | I don't think it's your bug though |
18:53:48 | dom96 | I think the macro may be generating incorrect code |
18:55:42 | * | yglukhov quit (Ping timeout: 246 seconds) |
19:03:35 | * | lubos_cz joined #nim |
19:09:02 | * | Trustable_2 joined #nim |
19:09:14 | cheatfate | dom96: https://github.com/nim-lang/Nim/issues/4196 this example needs poll() to be called... and everything would be fine.. because we have deferred callback situation here, so we need to dispatch callback |
19:09:47 | dom96 | look at https://github.com/nim-lang/Nim/issues/4170 |
19:10:58 | * | Trustable quit (Ping timeout: 276 seconds) |
19:11:37 | * | Demon_Fox quit (Ping timeout: 276 seconds) |
19:15:42 | * | yglukhov joined #nim |
19:19:51 | * | yglukhov quit (Ping timeout: 246 seconds) |
19:21:30 | * | enthus1ast joined #nim |
19:21:57 | * | lubos_cz quit (Ping timeout: 246 seconds) |
19:24:49 | * | Demon_Fox joined #nim |
19:25:53 | * | BitPuffin quit (Read error: Connection reset by peer) |
19:27:15 | * | Arrrr quit (Quit: WeeChat 1.4) |
19:29:17 | cheatfate | dom96, to be sure, #4170 must just echo "Caught successfuly"? without exception? |
19:29:38 | dom96 | yes |
19:31:46 | cheatfate | dom96, https://gist.github.com/cheatfate/e9d2399c4dcce42568363270cfac7e2f |
19:39:57 | * | yglukhov joined #nim |
19:40:59 | cheatfate | dom96, this bug was there before my patch... people just use mechanics without poll() |
19:41:46 | cheatfate | i have replaced callSoon(future.cb) with future.cb() and bug still exists |
19:41:48 | dom96 | Like I said "I think the macro may be generating incorrect code" |
19:42:24 | cheatfate | i will test with 0.13.0 asyncdispatch |
19:42:43 | dom96 | although I'm not sure how it ever worked |
19:42:53 | dom96 | so if you could narrow it down to where my example was broken that would great |
19:44:21 | * | yglukhov quit (Ping timeout: 246 seconds) |
19:45:33 | * | lubos_cz joined #nim |
19:46:23 | * | Matthias247 joined #nim |
19:55:36 | cheatfate | dom96, https://gist.github.com/cheatfate/5d8426790b54a4a005eaebc365fc92ce/revisions |
19:56:04 | cheatfate | in 0.13.0 await was expanding to only "yield" |
19:56:23 | dom96 | ahh yes, I broke it somewhere |
19:56:34 | dom96 | in the macro gen code |
19:57:46 | cheatfate | https://github.com/nim-lang/Nim/commit/1446dc87c301268869223e32e7efdc9c76711bad |
19:57:51 | cheatfate | you brake it here |
19:57:55 | cheatfate | in this commit |
20:07:28 | * | PMunch joined #nim |
20:11:16 | * | lubos_cz quit (Ping timeout: 252 seconds) |
20:12:56 | * | yglukhov-phone quit (Read error: Connection reset by peer) |
20:16:02 | * | yglukhov joined #nim |
20:18:22 | cheatfate | dom96, i think main problem is here https://github.com/nim-lang/Nim/issues/3964 |
20:20:52 | * | yglukhov quit (Ping timeout: 260 seconds) |
20:27:56 | cheatfate | dom96, i think you are confused in semantic of `await` macro... |
20:29:30 | cheatfate | dom96, why when you are expanding of `await function()` you made "yield and read" but when you `await future` you made just "yield" without read |
20:32:53 | cheatfate | because i thought all exceptions must be held inside future... |
20:33:26 | cheatfate | so they must not be fired... |
20:34:45 | * | lubos_cz joined #nim |
20:35:30 | cheatfate | its just because we hiding future, so we dont allow user to interact with it if `async f()` |
20:36:23 | Araq_ | do we really hide it or is it still available via 'result'? cause it feels like it should be |
20:37:06 | Araq_ | oh and cheatfate, please show a little more respect for the man who wrote async. |
20:38:33 | cheatfate | Araq_, dom96 i'm very sorry if i insult both of you, this is my bad english... sorry again |
20:40:29 | * | yglukhov joined #nim |
20:42:00 | cheatfate | Araq_, I did not want to offend anyone, just wanted to help... dom96 i'm very sorry again |
20:42:30 | Araq_ | cheatfate: no worries, calm down. |
20:45:12 | * | yglukhov quit (Ping timeout: 276 seconds) |
20:49:17 | * | Demon_Fox quit (Ping timeout: 276 seconds) |
20:50:31 | * | Tavon joined #nim |
20:52:52 | cheatfate | i think if we waiting for Future[void]... doesn't matter how `var fut = SomeFunction():Future[void] and await fut` or `await SomeFunction():Future[void]` we must do `yield and read` so exception can be raised just because void Future dont really have result... |
20:53:29 | * | saml_ quit (Remote host closed the connection) |
20:53:44 | cheatfate | but if result is not void we need to do only `yield` without `read` |
20:54:04 | cheatfate | so result can be checked for fail condition |
20:54:26 | cheatfate | ^ result future |
20:54:39 | * | libman quit (Remote host closed the connection) |
21:03:24 | * | Demon_Fox joined #nim |
21:04:40 | * | yglukhov joined #nim |
21:09:18 | * | yglukhov quit (Ping timeout: 260 seconds) |
21:10:28 | cheatfate | but i'm wrong too ^^^ because `await` returns result of future, but not future itself |
21:26:33 | * | gtrundle joined #nim |
21:28:57 | * | yglukhov joined #nim |
21:29:02 | gtrundle | Araq: random comment. I was looking at parser.nim in c2nim, and the expression parsing is the cleanest example of a Pratt/precedence parser I have seen. |
21:31:27 | * | themagician joined #nim |
21:33:12 | * | yglukhov quit (Ping timeout: 246 seconds) |
21:35:11 | Araq_ | gtrundle: ha good thing I didn't write it then. |
21:35:13 | Araq_ | :D |
21:39:20 | gtrundle | Ha! The point stands. The examples that were around when I was looking into them a few years ago tended to obscure the workings by jamming the handling into classes and associating the classes with tokens in a dictionary. |
21:43:03 | gtrundle | So congrats to whoever did that. :) |
21:43:51 | * | bjz joined #nim |
21:52:01 | * | AndroUser2 joined #nim |
21:53:06 | * | yglukhov joined #nim |
21:58:00 | * | yglukhov quit (Ping timeout: 276 seconds) |
22:17:24 | * | Jesin quit (Remote host closed the connection) |
22:17:25 | * | yglukhov joined #nim |
22:21:41 | * | Jesin joined #nim |
22:22:03 | * | yglukhov quit (Ping timeout: 276 seconds) |
22:23:44 | * | kulelu88 quit (Ping timeout: 260 seconds) |
22:26:40 | * | Trustable_2 quit (Remote host closed the connection) |
22:27:09 | * | Demon_Fox quit (Quit: Leaving) |
22:39:54 | * | kulelu88 joined #nim |
22:50:59 | * | AndroUser2 quit (Ping timeout: 250 seconds) |
22:53:25 | * | yglukhov joined #nim |
22:57:47 | * | yglukhov quit (Ping timeout: 260 seconds) |
23:17:51 | * | yglukhov joined #nim |
23:22:03 | * | yglukhov quit (Ping timeout: 246 seconds) |
23:42:07 | * | yglukhov joined #nim |
23:47:12 | * | yglukhov quit (Ping timeout: 276 seconds) |