00:02:06 | * | krux02 quit (Remote host closed the connection) |
00:04:05 | FromGitter | <zacharycarter> ugh assimp just may be the way to go here |
00:04:17 | FromGitter | <zacharycarter> I'd like to allow people to use fbx |
00:18:34 | FromGitter | <zacharycarter> maybe iqm is the way to go I didn't realize everything could just be converted to it |
00:32:06 | FromGitter | <Varriount> @zacharycarter Static 3d models sound complicated enough to serialize. Animated ones... ugh, it doesn't bear thinking about. |
01:10:54 | * | chemist69 quit (Ping timeout: 255 seconds) |
01:23:17 | * | chemist69 joined #nim |
01:35:03 | * | Jesin quit (Quit: Leaving) |
01:48:37 | * | rauss joined #nim |
01:54:18 | * | yingjun_ joined #nim |
02:04:20 | FromGitter | <Varriount> @watzon Any other questions? Your code looks pretty good. |
02:06:04 | FromGitter | <zacharycarter> @Varriount what's your opinion about having a dependency like assimp? |
02:06:45 | FromGitter | <Varriount> Don't be afraid to just package the dependency source code as a git submodule or something |
02:07:32 | FromGitter | <Varriount> Then release with precompiled static libs or something. |
02:08:02 | FromGitter | <Varriount> Although... does a static library format change between compiler versions? |
02:08:44 | FromGitter | <zacharycarter> are static libs preferred over dynamic libs these days? |
02:08:53 | FromGitter | <zacharycarter> and I don't know |
02:09:33 | FromGitter | <Varriount> Dynamic libs are preferred, but aren't always possible. |
02:10:13 | FromGitter | <zacharycarter> if I go with IQM I could keep with pure Nim and still support skeletal animation |
02:10:26 | FromGitter | <zacharycarter> but if I want to support stuff like fbx |
02:10:31 | FromGitter | <zacharycarter> I think assimp is the way to go |
02:12:44 | FromGitter | <zacharycarter> I think I'll give iqm a shot first |
02:12:51 | FromGitter | <zacharycarter> make then I can make assimp optional later if people want it |
02:18:27 | * | oprypin quit (Ping timeout: 240 seconds) |
02:19:13 | * | FromGitter quit (Ping timeout: 248 seconds) |
02:19:16 | * | oprypin joined #nim |
02:19:44 | * | vivus quit (Ping timeout: 258 seconds) |
02:19:44 | * | FromGitter joined #nim |
02:20:29 | * | pilne quit (Quit: Quitting!) |
02:24:55 | * | FromGitter quit (Ping timeout: 276 seconds) |
02:25:50 | * | endragor joined #nim |
02:28:48 | * | endragor_ joined #nim |
02:29:34 | * | FromGitter joined #nim |
02:29:44 | * | endragor_ quit (Remote host closed the connection) |
02:30:28 | * | endragor quit (Ping timeout: 260 seconds) |
02:30:54 | * | endragor joined #nim |
02:38:09 | FromGitter | <zacharycarter> I couldddd |
02:38:12 | FromGitter | <bigDaddyS1oth> Hey Nim folk, does the guide on the site do a good job of explaining have to use Nim for scripting purposes? |
02:38:14 | FromGitter | <zacharycarter> but that might take forever |
03:15:36 | * | vivus joined #nim |
03:27:33 | FromGitter | <watzon> @Varriount nothing yet. I am trying to solve an issue that I found though. The issue is actually present in mozilla's code too though. It seems as though when tokens are created, the `colno` ends up being the end of the token instead of the beginning |
03:31:28 | FromGitter | <watzon> It's being caused by the fact that the `extractMatching` and `parseString` use the `forward` method inside of them |
03:43:07 | * | SusWombat joined #nim |
03:46:14 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
03:58:06 | * | yingjun_ quit (Remote host closed the connection) |
04:00:45 | FromGitter | <watzon> Ok heres, one: I'm having trouble thinking about how to do this (https://github.com/mozilla/nunjucks/blob/master/src/nodes.js) in a more Nim type way. This (https://gitlab.com/watzon/nunchaku/blob/master/src/nunchaku/node.nim) is what I have so far, but I'm finding that the way Objects and sequences work in Nim it makes it really hard to do the same thing |
04:03:53 | * | yingjun_ joined #nim |
04:12:01 | * | heinrich5991 joined #nim |
04:47:53 | * | yingjun_ quit (Remote host closed the connection) |
04:48:04 | * | yingjun_ joined #nim |
04:49:26 | * | yingjun_ quit (Remote host closed the connection) |
05:11:19 | * | yingjun_ joined #nim |
05:13:29 | * | vivus quit (Quit: Leaving) |
05:32:48 | * | yeeve quit (Ping timeout: 260 seconds) |
05:33:18 | * | rauss quit (Quit: WeeChat 1.9) |
05:42:57 | * | Sentreen quit (Ping timeout: 248 seconds) |
05:43:48 | * | yuken joined #nim |
05:44:03 | yuken | oi ldleworker, https://i.imgur.com/wyxceEf.png |
05:44:14 | yuken | trying to compile nimsynth under Windows o-o |
05:50:51 | * | xet7 joined #nim |
05:55:52 | * | Sentreen joined #nim |
06:26:36 | * | skrylar joined #nim |
06:31:50 | * | nsf joined #nim |
06:53:04 | * | xet7_ joined #nim |
06:56:40 | * | xet7 quit (Ping timeout: 268 seconds) |
07:23:16 | * | yglukhov joined #nim |
07:26:48 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
07:29:38 | * | Vladar joined #nim |
07:32:07 | * | skrylar joined #nim |
07:32:14 | * | yingjun_ quit (Remote host closed the connection) |
07:32:36 | * | yingjun_ joined #nim |
07:33:47 | * | yingjun_ quit (Remote host closed the connection) |
07:42:01 | * | yingjun_ joined #nim |
07:51:42 | * | couven92 joined #nim |
07:52:34 | * | xet7_ quit (Quit: Leaving) |
07:52:54 | * | xet7 joined #nim |
07:53:24 | * | Matthias247 joined #nim |
07:53:29 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
07:56:01 | * | couven92 quit (Read error: Connection reset by peer) |
08:05:58 | * | elecfon joined #nim |
08:06:54 | * | elecfon left #nim (#nim) |
08:10:33 | * | cncl quit (Ping timeout: 260 seconds) |
08:10:53 | * | couven92 joined #nim |
08:14:27 | * | cncl joined #nim |
08:29:27 | * | arnetheduck joined #nim |
08:37:16 | * | yeeve joined #nim |
08:38:40 | * | Arrrr joined #nim |
08:38:40 | * | Arrrr quit (Changing host) |
08:38:40 | * | Arrrr joined #nim |
08:41:14 | * | dom96|w joined #nim |
08:44:53 | * | andrzejku joined #nim |
08:44:55 | andrzejku | hi |
08:45:03 | * | skrylar joined #nim |
08:45:04 | andrzejku | I need NIM plugin creator |
08:45:44 | skrylar | a plugin for what? that does what? |
08:46:09 | andrzejku | qt creator nim plugin |
08:56:05 | * | yuken left #nim ("Leaving") |
08:56:36 | def- | andrzejku: google tells me this: https://github.com/filcuc/NimQtCreatorPlugin |
08:57:11 | def- | ah, "The development of this plugin has been moved inside the offical QtCreator repository" |
08:58:10 | yingjun_ | hello |
08:58:16 | yingjun_ | anybody there? |
08:58:22 | yingjun_ | I have a question |
08:58:35 | def- | yingjun_: hi. just ask the question |
08:58:49 | yingjun_ | proc `host=`*(s: var Socket, value: int) |
08:58:56 | yingjun_ | proc `host=`*(s: Socket, value: int) |
08:59:02 | yingjun_ | what is the difference? |
08:59:14 | yingjun_ | both the code works |
09:00:54 | yingjun_ | hello? |
09:01:24 | def- | yingjun_: with a var paramter you can modify the parameter inside the proc |
09:01:39 | def- | and the caller can then used the changed variable that it passed |
09:07:40 | yingjun_ | but seems I can still modify the para without a var |
09:07:50 | def- | yes, a copy of the parameter |
09:08:01 | def- | so the outside caller will not see that changes that you do to it |
09:08:22 | Zevv | A socket is probably not a good example here, since this is not typically something you would change |
09:08:24 | def- | except if Socket is a ref, then you pass the pointer |
09:08:29 | Zevv | for objects or containers it makes more sense |
09:12:47 | Zevv | I found some references to use nimscript with shebang #! notation, but I can't get this to work. What is the proper way to do this? |
09:13:44 | Zevv | Ow wait, it seems that the file extension matters: not ending on .nims will not work |
09:17:21 | FromGitter | <Varriount> @watzon Would object variants help? |
09:21:57 | yingjun_ | for my question: I get it now. Thank you! |
09:28:05 | * | chemist69 quit (Quit: WeeChat 1.8) |
09:32:45 | * | chemist69 joined #nim |
09:46:45 | * | skrylar wonders if enough people use matrix that having a matrix server written in nim would give nim any glory |
09:55:11 | * | v17d joined #nim |
09:59:43 | Zevv | skrylar: home server like synapse? |
10:02:51 | * | yingjun_ quit (Remote host closed the connection) |
10:03:00 | * | yingjun joined #nim |
10:04:23 | * | yingjun quit (Remote host closed the connection) |
10:06:23 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
10:21:04 | * | yingjun joined #nim |
10:26:48 | * | dom96|w joined #nim |
10:35:37 | * | v17d quit (Ping timeout: 255 seconds) |
10:36:35 | * | v17d joined #nim |
10:37:37 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
10:43:55 | * | ShalokShalom joined #nim |
10:44:31 | * | v17d quit (Ping timeout: 246 seconds) |
10:46:16 | * | v17d joined #nim |
10:56:31 | * | yingjun quit (Remote host closed the connection) |
11:00:52 | * | v17d quit (Ping timeout: 268 seconds) |
11:03:58 | * | couven92 quit (Ping timeout: 255 seconds) |
11:17:29 | * | v17d joined #nim |
11:25:30 | * | couven92 joined #nim |
11:57:03 | * | yingjun joined #nim |
12:00:10 | * | v17d quit (Ping timeout: 276 seconds) |
12:01:05 | * | yingjun quit (Ping timeout: 240 seconds) |
12:03:04 | * | Snircle joined #nim |
12:12:30 | * | v17d joined #nim |
12:42:41 | * | v17d quit (Ping timeout: 248 seconds) |
12:42:48 | * | dom96|w joined #nim |
12:44:54 | * | Arrrr quit (Read error: Connection reset by peer) |
12:58:47 | * | v17d joined #nim |
13:08:17 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:17:51 | * | dom96|w joined #nim |
13:24:55 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:27:47 | * | dom96|w joined #nim |
13:32:22 | * | rauss joined #nim |
13:33:22 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:36:18 | * | Vladar quit (Quit: Leaving) |
13:43:42 | * | Sembei joined #nim |
13:47:53 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
13:48:56 | * | Sembei quit (Quit: WeeChat 2.0-dev) |
13:49:45 | FromGitter | <TiberiumN> I've made a small article about generics and converters in Nim (in russian): https://habrahabr.ru/post/333702/ |
13:50:10 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
13:52:23 | FromGitter | <TiberiumN> also someone gave me an invite (habrahabr is invite-only, but you can write articles in "sandbox" and hope moderator or someone else will give you an invite) |
13:58:15 | * | skrylar joined #nim |
13:59:59 | * | dom96|w joined #nim |
14:02:27 | FromGitter | <TiberiumN> and two users already asked me in comments for my article to make new articles about Nim :) |
14:04:16 | * | Matthias247 quit (Read error: Connection reset by peer) |
14:08:33 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
14:13:45 | * | nsf quit (Quit: WeeChat 1.9) |
14:16:04 | * | skrylar joined #nim |
14:25:55 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
14:34:27 | FromGitter | <watzon> @Varriount I don't know. I'm not familiar enough with them to know. I did attempt to do it with object variants, but they seemed too limiting |
14:35:36 | FromGitter | <watzon> The main problem I'm running into right now is figuring out how to make a sequence that can hold `Node` or any of it's children |
14:46:28 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
14:49:22 | * | skrylar joined #nim |
15:00:25 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
15:02:33 | * | dom96|w joined #nim |
15:03:14 | * | skrylar joined #nim |
15:03:34 | FromGitter | <Varriount> @watzon If you are trying to map out a node/ast architecture, object variants are the usual strategy. |
15:04:14 | yglukhov | TiberiumN: cool, want more! =) |
15:08:13 | * | Jesin joined #nim |
15:10:41 | * | andrzejku quit (Quit: Leaving) |
15:13:11 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
15:14:14 | FromGitter | <TiberiumN> Well, it's my first article about some programming ever |
15:28:45 | * | skrylar joined #nim |
15:29:14 | FromGitter | <Varriount> @TiberiumN Well, I can't comment on well it reads (as I had to run it through a translation service) however I like the structure. |
15:29:52 | FromGitter | <Varriount> @watzon How were variants limiting? |
15:40:27 | * | Trustable joined #nim |
15:44:54 | FromGitter | <watzon> @Varriount well, only you can't have properties with the same name on multiple variants can you? I tried and it was throwing errors |
15:45:51 | FromGitter | <Varriount> @watzon No, but usually you don't want the same names. If you have common properties, don't put them in the variant section |
15:46:30 | FromGitter | <watzon> Where would you put the common properties? |
15:50:23 | FromGitter | <Varriount> https://gist.github.com/Varriount/14294ffa001805915dcc7463d698882a |
15:51:11 | * | Arrrr joined #nim |
15:51:11 | * | Arrrr quit (Changing host) |
15:51:11 | * | Arrrr joined #nim |
15:53:39 | * | nsf joined #nim |
15:54:05 | * | nhywyll joined #nim |
15:58:11 | FromGitter | <watzon> @Varriount thanks for that! |
15:58:15 | FromGitter | <watzon> I'll see what I can do |
15:59:18 | Arrrr | What happened to the nim survey? |
16:00:29 | FromGitter | <watzon> @Varriount I suppose options like this (https://github.com/mozilla/nunjucks/blob/master/src/nodes.js#L85) that don't have any properties wouldn't need to be included in the `case` statement? |
16:08:51 | * | nhywyll quit (Quit: nhywyll) |
16:09:14 | * | yglukhov quit (Remote host closed the connection) |
16:12:15 | FromGitter | <Varriount> @watzon You would have an empty `of` section (or stick it in the 'else' clause) |
16:12:36 | * | smt_ joined #nim |
16:15:16 | FromGitter | <Varriount> `of Literal: discard` |
16:16:20 | * | smt quit (Ping timeout: 260 seconds) |
16:24:39 | * | yglukhov joined #nim |
16:29:55 | * | yglukhov quit (Ping timeout: 276 seconds) |
16:30:13 | * | v17d quit (Ping timeout: 255 seconds) |
16:35:36 | * | enthus1ast__ joined #nim |
16:35:44 | * | smt_ is now known as smt |
16:36:32 | * | yglukhov joined #nim |
16:36:36 | * | enthus1ast__ quit (Read error: Connection reset by peer) |
16:40:57 | * | yglukhov quit (Ping timeout: 240 seconds) |
16:43:01 | * | enthus1ast__ joined #nim |
16:43:03 | * | v17d joined #nim |
16:46:13 | enthus1ast__ | hello all, i've a strange issue with the onClick closure in nigui |
16:46:27 | enthus1ast__ | https://gist.github.com/anonymous/122e544fbf314e15b5fc62d12c679ab4 |
16:46:50 | enthus1ast__ | 3 buttons are created but they all prints "baz" |
16:47:16 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
16:47:19 | enthus1ast__ | any idea? |
16:48:58 | enthus1ast__ | Trustable ^ |
16:51:47 | Trustable | Hi enthus1ast__, see my comment on the gist |
16:58:19 | * | v17d quit (Ping timeout: 246 seconds) |
17:01:48 | FromGitter | <Varriount> Trustable: Why is the cast required? |
17:02:45 | Trustable | because the onClick event is defined for the base type Control, 'event.control' is of type Control |
17:02:47 | FromGitter | <Varriount> enthus1ast: Also, be aware of closure scopes: https://nim-lang.org/docs/manual.html#closures-creating-closures-in-loops |
17:02:51 | enthus1ast__ | Trustable, i've simplified the code a bit. I my original code i loop over a json list, there is a field that i have to use when i press the button. |
17:02:56 | * | skrylar quit (Quit: My iMac has gone to sleep. ZZZzzz…) |
17:03:22 | FromGitter | <Varriount> enthus1ast: Conversion won't work? |
17:04:03 | enthus1ast__ | lemme try closureScope maybe thats it |
17:05:17 | Trustable | enthus1ast__, I read your example again, I don't know, why it does not work as expected |
17:06:08 | Trustable | I will think about it another time, because I'm in a hurry |
17:06:20 | enthus1ast__ | ty Trustable |
17:14:10 | * | v17d joined #nim |
17:14:40 | * | Trustable quit (Remote host closed the connection) |
17:16:57 | enthus1ast__ | nope the closureScope does not help |
17:18:11 | * | krux02 joined #nim |
17:19:58 | * | couven92 quit (Ping timeout: 276 seconds) |
17:27:33 | * | yglukhov joined #nim |
17:40:29 | * | dom96|w joined #nim |
17:42:57 | * | v17d quit (Ping timeout: 248 seconds) |
17:43:42 | enthus1ast__ | i've opened an issue https://github.com/trustable-code/NiGui/issues/12 |
17:51:00 | * | nsf quit (Quit: WeeChat 1.9) |
17:52:55 | * | enthus1ast__ quit (Ping timeout: 246 seconds) |
17:55:40 | * | nhywyll joined #nim |
17:56:23 | * | v17d joined #nim |
17:58:01 | * | dankrad joined #nim |
18:03:35 | * | v17d quit (Ping timeout: 240 seconds) |
18:06:20 | FromGitter | <ephja> @Varriount I assume it will work then, and conversions should be used instead when possible |
18:10:15 | * | vendethiel joined #nim |
18:18:28 | * | v17d joined #nim |
18:20:44 | FromGitter | <cyberlis> @TiberiumN i've read it today. it was very small. But then i had seen, that it is from sandbox. It will be iteresting, if you write about macros and templates. two words about generics |
18:21:33 | FromGitter | <cyberlis> not enough |
18:26:11 | * | yglukhov quit (Remote host closed the connection) |
18:29:00 | * | u_nuSLASHkm8 joined #nim |
18:29:59 | * | u_nuSLASHkm8 left #nim (#nim) |
18:36:27 | * | andrzejku joined #nim |
18:40:03 | * | yglukhov joined #nim |
18:47:21 | * | smt_ joined #nim |
18:49:19 | * | v17d quit (Remote host closed the connection) |
18:50:56 | * | v17d joined #nim |
18:51:38 | * | smt quit (Ping timeout: 260 seconds) |
18:52:28 | * | itseris joined #nim |
19:03:07 | * | yingjun joined #nim |
19:06:57 | * | ShalokShalom quit (Ping timeout: 240 seconds) |
19:07:08 | * | v17d quit (Remote host closed the connection) |
19:07:58 | * | yingjun quit (Ping timeout: 260 seconds) |
19:09:40 | * | ShalokShalom joined #nim |
19:13:04 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
19:19:32 | FromGitter | <TiberiumN> yeah, I know, I just wanted to write something about nim :) |
19:20:06 | yglukhov | dom96: are you there? |
19:21:15 | FromGitter | <krux02> I am here :P |
19:21:36 | FromGitter | <krux02> If I am pretty enough for you :D |
19:25:39 | * | yglukhov quit (Read error: Connection reset by peer) |
19:26:10 | * | yglukhov joined #nim |
19:27:36 | yglukhov | can you merge my pr please? ;) |
19:31:58 | * | nsf joined #nim |
19:32:08 | * | yglukhov quit (Remote host closed the connection) |
19:32:39 | FromGitter | <krux02> haha, yea I wish, but I have some pull requests on my own |
19:33:07 | * | v17d joined #nim |
19:33:21 | * | yglukhov joined #nim |
19:33:46 | FromGitter | <Varriount> I can review pull requests |
19:35:07 | FromGitter | <Varriount> Just not ones for the compiler or async |
19:36:05 | * | yglukhov quit (Remote host closed the connection) |
19:36:56 | * | endragor quit (Remote host closed the connection) |
19:37:27 | * | endragor joined #nim |
19:40:50 | * | tinyurl_comSLASH joined #nim |
19:41:01 | * | v17d quit (Ping timeout: 255 seconds) |
19:41:10 | * | tinyurl_comSLASH left #nim (#nim) |
19:41:29 | * | endragor quit (Ping timeout: 240 seconds) |
19:41:41 | * | yglukhov joined #nim |
19:42:04 | yglukhov | my pr is to nimble =) |
19:44:35 | * | Snircle joined #nim |
19:49:44 | * | Trustable joined #nim |
19:50:06 | * | smt_ is now known as smt |
19:51:06 | * | endragor joined #nim |
19:51:49 | * | dankrad quit (Ping timeout: 268 seconds) |
19:53:42 | * | v17d joined #nim |
19:56:08 | * | endragor quit (Ping timeout: 268 seconds) |
19:58:32 | FromGitter | <zacharycarter> @Varriount if you have a sec, please check PM's |
19:59:53 | * | ShalokShalom quit (Ping timeout: 260 seconds) |
20:00:00 | * | enthus1ast- joined #nim |
20:03:28 | * | nsf quit (Quit: WeeChat 1.9) |
20:07:17 | * | yingjun joined #nim |
20:08:16 | * | Arrrr quit (Quit: Leaving.) |
20:10:06 | dom96 | yglukhov: reviewed |
20:10:15 | dom96 | (just a small change needed) |
20:15:43 | * | dankrad joined #nim |
20:16:15 | yglukhov | dom96: doAssert(spe[0] == '#')? |
20:17:24 | * | ShalokShalom joined #nim |
20:20:53 | * | yingjun quit (Ping timeout: 260 seconds) |
20:23:16 | * | ShalokShalom quit (Quit: No Ping reply in 180 seconds.) |
20:24:01 | * | ShalokShalom joined #nim |
20:29:04 | Trustable | Hi guys, I think enthus1ast discovered a closure bug, I reported it here: https://github.com/nim-lang/Nim/issues/6124 |
20:30:06 | * | andrzejku quit (Quit: Textual IRC Client: www.textualapp.com) |
20:31:48 | * | ShalokShalom_ joined #nim |
20:32:05 | * | ShalokShalom quit (Ping timeout: 240 seconds) |
20:33:10 | Trustable | yglukhov, ty, you are right, it's not a bug, solved |
20:33:24 | yglukhov | anytime =) |
20:33:27 | enthus1ast- | i was shure to tried it |
20:35:13 | * | v17d quit (Ping timeout: 248 seconds) |
20:43:23 | * | ShalokShalom_ is now known as ShalokShalom |
20:46:11 | * | rauss quit (Quit: WeeChat 1.9) |
20:48:33 | * | dankrad quit (Ping timeout: 248 seconds) |
20:50:33 | * | dankrad joined #nim |
20:50:46 | * | v17d joined #nim |
21:21:22 | * | arnetheduck quit (Ping timeout: 255 seconds) |
21:23:58 | * | pilne joined #nim |
21:28:46 | * | Trustable quit (Remote host closed the connection) |
21:30:20 | * | PMunch joined #nim |
21:39:07 | * | dankrad quit (Ping timeout: 268 seconds) |
21:44:53 | * | PMunch quit (Ping timeout: 260 seconds) |
21:45:46 | * | dankrad joined #nim |
21:54:56 | FromGitter | <watzon> So @Varriount , would this be a good way to do it for all of them? https://gist.github.com/watzon/93b71ff2fc8f336f394be4b8bfa6e984 |
21:55:18 | FromGitter | <watzon> I'm pretty sure I need to turn a lot of those `string` references into `Node`, but still |
21:55:50 | * | rauss joined #nim |
21:55:55 | FromGitter | <Varriount> @watzon "of nkLiteral, nkTemplateData:" - empty fields? |
21:56:09 | FromGitter | <Varriount> Does this compile? |
21:56:32 | FromGitter | <watzon> Damn, no lol |
21:56:46 | FromGitter | <watzon> My linter didn't give me any errors though |
21:56:57 | * | xet7 quit (Ping timeout: 258 seconds) |
21:58:00 | * | couven92 joined #nim |
21:58:48 | FromGitter | <Varriount> I'm going through it. |
22:05:10 | FromGitter | <watzon> I'm finding some of my own mistakes |
22:05:20 | FromGitter | <watzon> I'll re-up in a sec |
22:06:51 | FromGitter | <watzon> Updated. Now I just have to figure out how to handle the `NodeList` variants |
22:08:35 | * | xet7 joined #nim |
22:11:52 | * | enthus1ast- quit (Quit: Lost terminal) |
22:13:03 | * | yglukhov quit (Remote host closed the connection) |
22:19:04 | FromGitter | <Varriount> Ugh, I keep getting "not all cases covered" |
22:20:31 | FromGitter | <watzon> @Varriount I think I figured it out |
22:20:34 | FromGitter | <watzon> https://gist.github.com/watzon/93b71ff2fc8f336f394be4b8bfa6e984 |
22:20:44 | FromGitter | <watzon> Not sure it this is all right convention-wise though |
22:22:35 | FromGitter | <Varriount> Well, it works. |
22:22:54 | FromGitter | <watzon> That it does lol |
22:23:01 | FromGitter | <watzon> Which is more than I had before |
22:23:32 | FromGitter | <Varriount> @watzon Behold, https://github.com/nim-lang/Nim/blob/devel/compiler/ast.nim |
22:23:39 | FromGitter | <watzon> Now I just have to reformat all of the original `newNode` statements |
22:23:59 | FromGitter | <watzon> Yay! A real example |
22:25:32 | FromGitter | <watzon> And a lot more complicated than what I'm trying to make haha |
22:25:44 | FromGitter | <Varriount> @watzon You might want to take a notepad with you. It's dangerous to go alone (inside the compiler source code) |
22:26:06 | FromGitter | <watzon> |
22:33:50 | FromGitter | <watzon> @Varriount one more question.. hopefully. How hard would it be to create a macro to create all of the node initialization procs for me? |
22:35:23 | FromGitter | <Varriount> Depends on how the nodes are supposed to be initialized. Could you create some pseudocode I could see? |
22:36:00 | FromGitter | <watzon> Basically this is what I'm doing. It's just getting tedious ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=596fdecf0de4d2545e447525] |
22:37:24 | FromGitter | <watzon> I just need the macro to take all of the properties on each variant and create a proc that will initialize a new one with those props |
22:38:08 | FromGitter | <watzon> Or a template? I'm looking over the docs and trying to figure out what fits |
22:51:28 | * | Matthias247 joined #nim |
22:54:10 | * | nhywyll quit (Quit: nhywyll) |
23:05:52 | FromGitter | <watzon> Anyone know of a code example for generating procs with a macro? |
23:18:22 | * | yingjun joined #nim |
23:19:40 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:22:35 | * | yingjun quit (Ping timeout: 240 seconds) |
23:31:57 | * | couven92 quit (Read error: Connection reset by peer) |
23:49:20 | * | smt_ joined #nim |
23:53:04 | * | smt quit (Ping timeout: 246 seconds) |
23:57:04 | * | user0 quit (Ping timeout: 255 seconds) |