| 00:23:05 | * | amadaluzia quit (Quit: ZNC 1.8.2 - https://znc.in) |
| 01:56:26 | * | rockcavera quit (Remote host closed the connection) |
| 02:52:35 | FromDiscord | <explosiveend> are you able to nest object variants? |
| 02:54:27 | FromDiscord | <explosiveend> sent a code paste, see https://paste.rs/hqjEe |
| 02:54:50 | FromDiscord | <explosiveend> (edit) "https://paste.rs/my5pM" => "https://paste.rs/hAWPR" |
| 02:59:31 | FromDiscord | <Robyn [She/Her]> In reply to @explosiveend "something roughly similar to": yes |
| 03:02:15 | FromDiscord | <explosiveend> In reply to @battery.acid.bubblegum "yes": for some reason i'm getting an `illformed ast` error... |
| 03:02:40 | FromDiscord | <explosiveend> sent a code paste, see https://paste.rs/JZRls |
| 03:03:18 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://paste.rs/8LDnA |
| 03:03:37 | FromDiscord | <Robyn [She/Her]> after NumKind in the case |
| 03:03:38 | FromDiscord | <explosiveend> oh.... whoops |
| 03:04:08 | FromDiscord | <explosiveend> that makes alot more sense, thanks lol |
| 04:00:31 | FromDiscord | <Robyn [She/Her]> no sweat |
| 04:36:26 | * | SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev) |
| 04:37:51 | FromDiscord | <heysokam> how does one write doc-comments for object fields separately? 🤔 |
| 04:38:12 | FromDiscord | <Elegantbeef> What do you mean seperately? |
| 04:40:37 | FromDiscord | <heysokam> sent a code paste, see https://paste.rs/ibIW9 |
| 04:42:33 | FromDiscord | <Elegantbeef> Don't think you can comment an object |
| 04:43:44 | FromDiscord | <Elegantbeef> sent a code paste, see https://paste.rs/5lURZ |
| 04:44:38 | FromDiscord | <heysokam> oh |
| 04:45:05 | FromDiscord | <heysokam> Yea, now that you mention, I've seen those blocks around the compiler ast objects |
| 04:45:42 | FromDiscord | <heysokam> I wonder if single line would work? |
| 04:45:59 | FromDiscord | <heysokam> can you try it, if you still have test file open? |
| 04:46:30 | FromDiscord | <heysokam> sent a code paste, see https://paste.rs/xvOfS |
| 04:52:57 | FromDiscord | <Elegantbeef> Single lines work as well |
| 04:55:53 | FromDiscord | <heysokam> neat! tyty ✍️ |
| 05:03:44 | * | SchweinDeBurg joined #nim |
| 05:23:34 | * | nils` quit (Ping timeout: 260 seconds) |
| 05:56:28 | * | alexdaguy joined #nim |
| 06:16:17 | * | nils` joined #nim |
| 06:20:35 | * | ntat joined #nim |
| 06:51:57 | * | derpydoo joined #nim |
| 07:16:32 | FromDiscord | <waitaminute4729> @arnetheduck how can i detect nlvm in code, is there a when defined() for the same? |
| 07:27:30 | * | ntat quit (Quit: leaving) |
| 09:19:09 | * | fsane joined #nim |
| 09:21:07 | FromDiscord | <riku5543> sent a code paste, see https://paste.rs/w5kQg |
| 09:43:40 | FromDiscord | <lainlaylie> don't know if it's the best way (or even a good way) but you sidestep the whole c++ references thing by saying getIO returns a (lent?) IO and doing `let io = getIO().addr` |
| 09:43:47 | FromDiscord | <lainlaylie> (edit) "don't know if it's the best way (or even a good way) but you ... sidestep" added "can" |
| 09:46:04 | * | fsane quit (Ping timeout: 260 seconds) |
| 09:49:47 | FromDiscord | <riku5543> I can make it return an actual `IO` object but it's still unchanging. (It also says that it doesn't have an address if I do it that way) |
| 09:53:32 | FromDiscord | <lainlaylie> ok, then it needs to be lent |
| 09:55:07 | FromDiscord | <lainlaylie> var also works. the main thing is you need to tell nim that it's ok to take its address |
| 10:00:19 | FromDiscord | <riku5543> Well, making it var and then getting the address works fine. The only thing is I have no idea what it's doing now lmao. It's returning a mutable object, but we want a pointer to it because otherwise we're probably copying it on accident? Hm |
| 10:02:04 | FromDiscord | <riku5543> Welp. https://media.discordapp.net/attachments/371759389889003532/1356206908217884785/image.png?ex=67ebb99c&is=67ea681c&hm=b6533ceed659c670e44d5c19592d3efc6f53d7bc3ce8f12dca6e9a992b826103& |
| 10:02:30 | FromDiscord | <riku5543> Thanks for the help |
| 10:03:18 | FromDiscord | <lainlaylie> does that actually work in this case? |
| 10:08:31 | FromDiscord | <riku5543> It did not, haha. It doesn't work on return types and applying it to the object itself makes it immutable(?) so I just wrapped it to return a `ptr IO` instead which works fine |
| 10:09:21 | FromDiscord | <heysokam> Is there any Nim http request client that can be statically linked?↵_context: `std/http` uses dynamic linking, which is an issue on win_ |
| 10:23:05 | * | pmp-p quit (Ping timeout: 252 seconds) |
| 10:25:02 | FromDiscord | <nnsee> iirc the issue was with SSL support? |
| 10:25:46 | FromDiscord | <nnsee> if so, you could try statically linking with something like bearssl |
| 10:26:40 | FromDiscord | <nnsee> could use https://github.com/status-im/nim-bearssl, but it'll be manual work required to get the http client to work with it from what I can tell |
| 10:26:56 | * | pmp-p joined #nim |
| 10:30:23 | FromDiscord | <heysokam> i see |
| 11:17:57 | * | derpydoo quit (Quit: derpydoo) |
| 11:29:41 | * | ntat joined #nim |
| 12:04:22 | FromDiscord | <michaelb.eth> I’m pretty sure nim-chronos compiles and links bearssl automatically |
| 12:05:25 | FromDiscord | <michaelb.eth> and chronos provides an http client |
| 12:11:32 | FromDiscord | <nnsee> so it does https://github.com/status-im/nim-chronos/blob/b55e2816eb45f698ddaca8d8473e401502562db2/chronos/apps/http/httpclient.nim |
| 12:29:43 | * | alexdaguy quit (Quit: restart) |
| 12:37:35 | * | FromDiscord quit (Remote host closed the connection) |
| 12:37:47 | * | FromDiscord joined #nim |
| 13:10:49 | * | ntat quit (Quit: leaving) |
| 13:29:57 | FromDiscord | <heysokam> Isn't chronos fully async, which would make my code also async? |
| 13:30:52 | FromDiscord | <heysokam> I'm running away for a project into nim from TS due to async poluting the app, so I was hoping to find a fully sync option |
| 13:40:11 | FromDiscord | <michaelb.eth> In reply to @heysokam "Isn't chronos fully async,": you can use chronos’ waitFor to turn any async call into sync, so you should be able to do what you want, and still benefit from bearssl |
| 13:59:00 | FromDiscord | <heysokam> will take a look, ty ✍️ |
| 14:22:31 | * | ntat joined #nim |
| 17:33:52 | FromDiscord | <enthus1ast.> In reply to @heysokam "Is there any Nim": Puppy should use winapi on Windows |
| 17:34:23 | FromDiscord | <enthus1ast.> https://github.com/treeform/puppy |
| 17:35:18 | FromDiscord | <enthus1ast.> So less trouble with https since the certs should be updated with windows updates |
| 18:13:20 | FromDiscord | <morgan (ping with reply)> can nimble install latest with some command instead of last release? |
| 18:13:42 | FromDiscord | <morgan (ping with reply)> i think i was running into a bug in chroma that was fixed after the last release |
| 18:14:58 | FromDiscord | <morgan (ping with reply)> yeah i can confirm what it's downloading, even giving it the repo instead of name, is out of date |
| 18:15:50 | FromDiscord | <Elegantbeef> `@#head` iirc |
| 18:16:38 | FromDiscord | <morgan (ping with reply)> ill try that |
| 18:17:32 | FromDiscord | <morgan (ping with reply)> ok yea that worked |
| 18:17:33 | FromDiscord | <morgan (ping with reply)> thanks |
| 18:19:23 | FromDiscord | <morgan (ping with reply)> i thought i had an issue with my code but no the oklab to rgb conversion was just broken |
| 18:40:03 | FromDiscord | <morgan (ping with reply)> ugh i hate git sometimes, or right now github to be specific |
| 18:40:22 | FromDiscord | <Elegantbeef> Time to move to another git forge 😄 |
| 18:40:23 | FromDiscord | <morgan (ping with reply)> compare last tag to master, commits↵create new tag, no commits |
| 18:43:01 | FromDiscord | <morgan (ping with reply)> fine i guess ill do it locally |
| 18:43:03 | FromDiscord | <morgan (ping with reply)> ugh |
| 18:54:10 | FromDiscord | <morgan (ping with reply)> well i went thru all that only to find that tags aren't included in prs |
| 19:30:45 | FromDiscord | <morgan (ping with reply)> im tempted to pr mine in place of treeform's on nimble just so it works for people |
| 19:45:18 | FromDiscord | <morgan (ping with reply)> ok yeah opened |
| 20:00:35 | FromDiscord | <Elegantbeef> Could always just ask him to tag his versions |
| 20:08:19 | * | ntat quit (Ping timeout: 245 seconds) |
| 20:14:52 | * | ntat joined #nim |
| 20:59:17 | * | ntat quit (Quit: leaving) |
| 21:17:41 | * | rockcavera joined #nim |
| 22:56:56 | * | oprypin quit (Quit: Bye) |
| 22:57:07 | * | oprypin joined #nim |
| 23:00:01 | * | marcus quit (Remote host closed the connection) |
| 23:00:43 | * | marcus joined #nim |
| 23:02:31 | FromDiscord | <nasuray> Seems inappropriate to swap the URL of an existing package without the consent of the actual author just because a version hasn't been bumped in awhile |
| 23:08:44 | FromDiscord | <Elegantbeef> Especially when it's a decentralised package manager |