| 00:10:08 | FromDiscord | <systemblue2010> sent a long message, see https://pasty.ee/sVfaQITC |
| 00:10:20 | FromDiscord | <systemblue2010> please add this in Nim |
| 00:31:25 | FromDiscord | <Elegantbeef> @TӨMΛ ☠ You can also just use an object variant |
| 00:34:25 | FromDiscord | <Elegantbeef> @systemblue2010 Experimental view types exist, but they explode and kill everyone in a 3 km radius |
| 00:35:13 | FromDiscord | <Jack S.> Sounds fun. |
| 00:35:34 | FromDiscord | <Elegantbeef> Hey I use the adjective fun |
| 00:35:36 | FromDiscord | <Elegantbeef> Find your own! |
| 00:38:11 | FromDiscord | <Jack S.> _Jack S. refuses to find another adjective._ |
| 00:39:05 | FromDiscord | <Jack S.> _Jack S. refuses to find another adjective. shakes head_ |
| 00:58:22 | FromDiscord | <systemblue2010> In reply to @Elegantbeef "<@1424216909766983721> Experimental view types": I know some of them↵owned, sink, lent etc.. |
| 01:40:47 | FromDiscord | <Elegantbeef> none of those are view types inm themself |
| 02:14:10 | FromDiscord | <systemblue2010> hey is there binding of Qt in Nim? |
| 02:56:55 | cws | I've seen a handful of projects that attempt it, but whether or not they're maintained I'm not sure. |
| 03:05:37 | * | ainema joined #nim |
| 03:42:37 | * | xutaxkamay_ joined #nim |
| 03:43:21 | * | xutaxkamay quit (Ping timeout: 252 seconds) |
| 03:43:30 | * | xutaxkamay_ is now known as xutaxkamay |
| 05:01:30 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
| 05:02:11 | * | SchweinDeBurg joined #nim |
| 05:16:46 | FromDiscord | <demotomohiro> In reply to @systemblue2010 "hey is there binding": https://forum.nim-lang.org/t/12709 |
| 05:38:23 | * | hygo quit (Ping timeout: 256 seconds) |
| 05:40:21 | * | hygo joined #nim |
| 06:42:02 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=MhiufzOL |
| 06:42:21 | FromDiscord | <janakali> It's possible that problem is proxy app, but it worked fine with Nim 2.2.4. |
| 07:29:39 | FromDiscord | <.tokyovigilante> Can I filter a `Table`, ie get a `seq[ValueType]` of every element in a table that satisfies a predicate? Was expecting `table.values.filter()` to work but doesn't seem to. |
| 07:40:28 | FromDiscord | <TӨMΛ ☠> In reply to @Elegantbeef "<@656540400546480128> You can also": Object variants mean however that you can't have the same struct using both types, right? I'd like to have one thing occupying `thing`, but be either A, B or None type↵(to be exact, it's meant to be either Location or Settlement occupying the tile) |
| 07:58:17 | FromDiscord | <kiloneie> sent a code paste, see https://play.nim-lang.org/#pasty=onjZJfYv |
| 08:00:37 | FromDiscord | <Elegantbeef> It makes a typeclass |
| 08:05:41 | FromDiscord | <kiloneie> `type EntityOrEntities = Entity or seq[Entity]` and what is this called ? |
| 08:11:24 | FromDiscord | <kiloneie> sent a code paste, see https://play.nim-lang.org/#pasty=xRAXrlqW |
| 08:11:35 | FromDiscord | <Elegantbeef> Yes |
| 08:23:54 | FromDiscord | <systemblue2010> In reply to @demotomohiro "https://forum.nim-lang.org/t/12709": is it updated in now? |
| 09:14:38 | FromDiscord | <kiloneie> Does {.discardable.} only work with bool ? |
| 09:16:49 | FromDiscord | <kiloneie> i am trying to use it with Entity = object, but it errors that i have to use it... |
| 09:32:34 | FromDiscord | <janakali> @kiloneie I believe it works with everything except templates |
| 09:33:51 | FromDiscord | <kiloneie> I've tried it with proc + template wrapper, with both having bool return and marking the proc discardable, and it worked. But for the ones with Entity, it doesn't want to work... |
| 09:35:21 | FromDiscord | <kiloneie> This doesn't want to work. https://media.discordapp.net/attachments/371759389889003532/1434475962669727845/Screenshot_2025-11-02_10-34-50.png?ex=69087758&is=690725d8&hm=fa4cf7ebfc66f3586cf338a93e5dcfd2cb5a4a63d1ea676f9d892c0632e9028f& https://media.discordapp.net/attachments/371759389889003532/1434475963638349854/Screenshot_2025-11-02_10-35-05.png?ex=69087759&is=690725d9&hm=8f60355953b17af9f2a0f503a5830bb4d594d5cbadee51be7f0312bff5838294 |
| 09:37:58 | FromDiscord | <kiloneie> This works. https://media.discordapp.net/attachments/371759389889003532/1434476620202381374/Screenshot_2025-11-02_10-37-06.png?ex=690877f5&is=69072675&hm=b644057daaa14a42e7dc62ffdb96a369dadee6e21084d86e81221a51af8993ed& https://media.discordapp.net/attachments/371759389889003532/1434476620810420234/Screenshot_2025-11-02_10-37-47.png?ex=690877f5&is=69072675&hm=ea7fd2d96139ee9a9ba2d27af02f78e8854962979a416fa44d36a1fbdaec38e9& |
| 09:40:06 | FromDiscord | <janakali> In reply to @kiloneie "I've tried it with": https://nim-lang.org/docs/manual.html#statements-and-expressions-discard-statement↵> however the discardable pragma does not work on templates as templates substitute the AST in place.↵> ↵your second example works because it turns into a single procedure call that gets discarded |
| 09:41:58 | FromDiscord | <janakali> think about templates as if code is literally copy-pasted (with some safety) |
| 09:42:02 | FromDiscord | <demotomohiro> In reply to @systemblue2010 "is it updated in": I don't know. I just post the forum post that might helps you. I don't write GUI apps recently. |
| 09:45:38 | FromDiscord | <janakali> In reply to @kiloneie "This doesn't want to": I looked at it one more time. And I think I get what |
| 09:45:51 | FromDiscord | <janakali> (edit) "what" => "what's the problem" |
| 09:47:12 | FromDiscord | <janakali> your instanceCreate template has return type 'Entity', so it has to return Entity, so the call at the end of template will not get discarded. |
| 09:51:19 | FromDiscord | <kiloneie> either i create an instance and manipulate it, or i just create it |
| 09:51:47 | FromDiscord | <kiloneie> i don't want to type discard, if i don't need to use that instance |
| 09:52:53 | FromDiscord | <janakali> why not use a proc? |
| 09:53:40 | FromDiscord | <kiloneie> Because i don't want to specify the sequence, the layer that i am adding to, that will be used by default 99% of the time, the same one. |
| 09:53:50 | FromDiscord | <kiloneie> That is why i am using a template wrapper. |
| 09:54:07 | Amun-Ra | you can't add pragma to a template, topmost callee must be either func or proc |
| 09:55:16 | FromDiscord | <kiloneie> I know that. |
| 09:56:16 | Amun-Ra | so discard is your only friend; or his brother - refactor ;) |
| 10:06:31 | FromDiscord | <kiloneie> I can't do it with a block or something ? |
| 10:19:05 | FromDiscord | <Laylie> i must be missing where the unexpected behavior is. you call a template that evaluates to an Entity and then you don't use or discard it, so the compiler complains about it. |
| 10:22:02 | FromDiscord | <Laylie> are you expecting the discardable-ness of `proc instanceCreate` so somehow carry over to its returned Entity? |
| 10:22:12 | FromDiscord | <Laylie> are you expecting the discardable-ness of `proc instanceCreate` to somehow carry over to its returned Entity? |
| 10:27:49 | * | tiorock joined #nim |
| 10:27:49 | * | rockcavera quit (Killed (copper.libera.chat (Nickname regained by services))) |
| 10:27:49 | * | tiorock is now known as rockcavera |
| 10:29:26 | Amun-Ra | kiloneie: not without at least an additional template argument |
| 10:30:01 | FromDiscord | <kiloneie> I've done it btw. I just moved the extra stuff to the proc... i think the proc had some left overs that weren't finished... |
| 10:30:21 | FromDiscord | <kiloneie> Im working on the second one, then i will screenshot. |
| 10:38:21 | FromDiscord | <kiloneie> https://media.discordapp.net/attachments/371759389889003532/1434491817599963136/Screenshot_2025-11-02_11-38-04.png?ex=6908861c&is=6907349c&hm=34af8a322c47201e52c9b12530990c97d1c32c56f0d51c94b968a0aa6f3c99ab& https://media.discordapp.net/attachments/371759389889003532/1434491818044817429/Screenshot_2025-11-02_11-38-11.png?ex=6908861c&is=6907349c&hm=cdd51758670771c0ff24fa4d188209e8c99f005051e5c33195ab79b774a3cede& |
| 10:38:47 | FromDiscord | <kiloneie> I had everything i needed there already, i can't remember exactly why it was like that... |
| 10:39:33 | FromDiscord | <kiloneie> This stressed me so much... |
| 11:18:36 | * | ainema left #nim (#nim) |
| 11:23:08 | * | beholders_eye joined #nim |
| 14:13:29 | * | beholders_eye quit (Ping timeout: 256 seconds) |
| 14:17:32 | * | zgasma_ quit (Quit: Lost terminal) |
| 15:07:15 | FromDiscord | <mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=vCJgUGnd |
| 15:40:53 | FromDiscord | <Laylie> sent a code paste, see https://play.nim-lang.org/#pasty=VlVjxDlN |
| 15:42:05 | FromDiscord | <Laylie> also 4-space indentation 😬 |
| 15:55:30 | * | beholders_eye joined #nim |
| 16:25:09 | * | beholders_eye quit (Read error: Connection reset by peer) |
| 16:29:15 | * | beholders_eye joined #nim |
| 17:06:35 | * | FromDiscord quit (Remote host closed the connection) |
| 17:06:48 | * | FromDiscord joined #nim |
| 17:19:13 | * | om3ga quit (Ping timeout: 264 seconds) |
| 17:32:21 | * | rockcavera quit (Remote host closed the connection) |
| 18:54:46 | FromDiscord | <trustmandev> Hey traders,↵Anyone looking for a developer to help generate revenue? |
| 19:08:55 | FromDiscord | <0xfab_10> I have a big shipment of silk cloth but I couldn't find enough horses and men to help me transport it. could you assist me? |
| 19:09:36 | Amun-Ra | and I have a few ship containers of pagers |
| 19:11:42 | FromDiscord | <lamabamadong_33783> In reply to @Amun-Ra "and I have a": Found the Mossad agent |
| 19:13:24 | Amun-Ra | wrong, I'm a rabbitmq agent |
| 19:30:34 | FromDiscord | <nervecenter> In reply to @trustmandev "Hey traders, Anyone looking": I have wheelbarrows full of bored apes because I thought they were heading for the moon, maybe you can help me sell them! |
| 19:33:12 | * | beholders_eye quit (Ping timeout: 256 seconds) |
| 19:33:12 | * | marcus quit (Ping timeout: 256 seconds) |
| 19:33:53 | * | marcus joined #nim |
| 19:34:02 | * | beholders_eye joined #nim |
| 19:37:17 | * | cm quit (*.net *.split) |
| 19:37:17 | * | bgupta quit (*.net *.split) |
| 19:38:57 | * | cm joined #nim |
| 19:38:57 | * | bgupta joined #nim |
| 20:07:15 | FromDiscord | <lamabamadong_33783> Who is going to tell him that Satoshi Nakamoto translates to central intelligence origin? |
| 23:46:30 | FromDiscord | <griffith1deadly> @treeform do we have any change that fidget2 will support in future embedding in existing gl application? with/without windy, will make it featured for games for example |
| 23:48:16 | FromDiscord | <treeform> In reply to @griffith1deadly "<@107140179025735680> do we have": It's possible but not really the focus right now. Without windy what would you use? |
| 23:50:41 | FromDiscord | <griffith1deadly> i think common api for custom window manager will be enought, and user just will need write whatever it want yourself, glfw - sdl2/sdl3 - rgfw - or even os native apis |
| 23:53:01 | FromDiscord | <griffith1deadly> for example my case is java game that uses lwjgl2, it uses gl, but not glfw.. and i don't wanna spend my time for full rewrite fidget2 into java/kotlin, but it's not worst for writing jni glue bridge |
| 23:53:29 | FromDiscord | <griffith1deadly> but fidget2 is really awesome for that kind of projects |