23 Jul 2024 |
Phil | There's 2 ways to do multithreading in owlkettle | 20:40:19 |
Phil | The GTK way or the nim way | 20:40:23 |
Phil | As in, either you do multithreading managed by nim or you use GTKs mechanisms | 20:40:33 |
Phil | The nim way you can forget, there is no decent nim way | 20:40:39 |
Phil | The GTK way is hyper complicated and not yet wrapped | 20:40:50 |
fabric.input_output | lol why | 20:41:03 |
fabric.input_output | because shared memory quirks? | 20:41:33 |
pmunch | But I need a webview, the js engine, and gobject message passing stuff for what I'm doing | 20:41:45 |
fabric.input_output | gtk uses message passing for inter thread communication? | 20:42:12 |
pmunch | Wait, you can't use the Nim way of threading? | 20:42:23 |
pmunch | That's what I do.. | 20:42:29 |
Phil | Decent ways ala Giving the GTK guiloop a mailbox that threads with tasks can send messages to do not work well in terms of being datarace and memory leak free | 20:43:59 |
Phil | All the multithreading I see that doesn't have those issues block the GTK Loop, which is unacceptable | 20:44:55 |
fabric.input_output | can't you mutex or lock? | 20:47:01 |
| sha265sum joined the room. | 23:29:13 |
24 Jul 2024 |
| xhh.me joined the room. | 13:48:46 |
usawiniko | i merged the changes from this pr, including the genui macro https://github.com/nim-lang/ui/pull/42
genui commit: https://github.com/nim-lang/ui/commit/2a3208a4b9197d37445683832a0e7573c4a921e1 | 19:26:01 |
usawiniko | looks like it was from 7 years ago! no wonder you dont remember haha | 19:27:49 |
pmunch | Ah, makes sense 😅 The macro is generally easy to implement, so I implemented it for a couple different toolkits. | 21:05:46 |
pmunch | I was thinking of creating something more full-fledged for it, but couldn't land some of the major design decisions | 21:06:26 |
25 Jul 2024 |
usawiniko | considering making a dsl for my libtray bindings ww | 00:31:54 |
nimblebeee | just we need better and better documentation. Im trying with uing + genui 💀 | 00:36:34 |
| sakesun joined the room. | 03:42:29 |
| .aizon joined the room. | 19:08:54 |
26 Jul 2024 |
| TӨMΛ ☠changed their profile picture. | 07:54:55 |
pmunch | Hard to improve them if you don't tell me what needs to be improved | 08:20:31 |
| mo_ar2006 joined the room. | 14:36:53 |
nimblebeee | Challenge accepted. Give me a few hours 🗿 | 16:21:17 |
| bbbscarter joined the room. | 19:31:12 |
pmunch | No stress, I'm on vacation until Sunday, so probably won't have much time to fix it until then anyways 🙂 | 21:59:38 |