<< 31-10-2025 >>

00:43:01*cjaburto quit (Quit: WeeChat 4.7.1)
00:48:42FromDiscord<mjsdev> is ARC/ORC inherently broken for high concurrency?
00:51:00FromDiscord<mjsdev> Working with mummy, which uses threads and I've got some fairly complex code, but I'm like 99% sure at this point it should all be thread safe at this point, but ARC and ORC still fail (seemingly arbitrarily) with what looks like a double free, atomicArc seems to work fine though.
00:52:00FromDiscord<griffith1deadly> In reply to @mjsdev "is ARC/ORC inherently broken": refs with threading always been broken
00:52:52FromDiscord<griffith1deadly> but, we always can go to raw pointers / ptr object's with destructors (if they worked correctly for ptr, as i remember for refs work, so must)
00:54:48FromDiscord<mjsdev> well, given atomicArc seems to work fine, I'm inclined to stick with that... kinda disappointing I spent 2 days though just to find out it's "always been broken" lol
00:54:48FromDiscord<griffith1deadly> also we have: https://github.com/nim-lang/threading/blob/master/threading/smartptrs.nim and https://github.com/disruptek/insideout/blob/master/insideout/atomic/refs.nim (atomic refs like sugar)
00:56:01*Jjp137 joined #nim
00:56:07FromDiscord<griffith1deadly> In reply to @mjsdev "well, given atomicArc seems": atomicArc turns every ref to atomic version which is resource expensive for access
00:57:09FromDiscord<griffith1deadly> nim 3 aka nimony will have threading (optimized atomicArc) by default... we hope
00:58:06FromDiscord<Elegantbeef> > "\>which is resource expensive for access↵> ↵↵which can be resource expensive
00:59:47FromDiscord<mjsdev> burning resources at this point seems better than rewriting a bunch of code to use atomic refs and then having to determine when/when not to use them based on random double frees 🤷
01:07:44*beholders_eye quit (Ping timeout: 256 seconds)
02:48:53*rockcavera quit (Remote host closed the connection)
04:38:07FromDiscord<systemblue2010> In reply to @mjsdev "is ARC/ORC inherently broken": use channel for safe concurrency
04:42:45*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
04:45:56*Lord_Nightmare joined #nim
04:57:07FromDiscord<mjsdev> In reply to @systemblue2010 "use channel for safe": Not really trying to communicate data, these are just common middleware and services which are all set up and effectively read-only prior to worker threads
06:09:16*cm_ joined #nim
06:09:46*cm quit (Ping timeout: 256 seconds)
06:09:46*cm_ is now known as cm
06:19:24*bgupta quit (Read error: Connection reset by peer)
06:19:31*bgupta joined #nim
06:24:50*cm quit (Quit: Bye.)
06:31:39*cm joined #nim
06:37:38*cm quit (Quit: Bye.)
06:44:09*dza quit (Ping timeout: 260 seconds)
06:44:24*cm joined #nim
06:50:22*dza joined #nim
07:31:37*Jjp137 quit (Ping timeout: 260 seconds)
07:33:51FromDiscord<systemblue2010> I'm considering to make GUI library with Nim ↵I'm comparing Skia and Pixie + Boxy with rendering engine and display engine↵and finding event and window controlling library like SDL
07:34:15FromDiscord<systemblue2010> is there any nim-written event and window control library similar with SDL?
07:44:22FromDiscord<systemblue2010> Pixie and Boxy seems better then skia↵because it's easy, pure nim, and also fast(Pixie is well optimized by SIMD and Boxy is OpenGL)
07:47:47*Jjp137 joined #nim
09:36:49*beholders_eye joined #nim
09:51:56FromDiscord<aethrvmn> There is GUI lib yeah but I can't remember the name, it's fully declarative using macros
09:53:55FromDiscord<aethrvmn> There is also this discussion in the forums
09:53:57FromDiscord<aethrvmn> https://forum.nim-lang.org/t/10299
09:57:54*SchweinDeBurg joined #nim
09:59:15FromDiscord<aethrvmn> It's owlkettlehttps://can-lehmann.github.io/owlkettle/README.html
10:08:58FromDiscord<systemblue2010> In reply to @aethrvmn "There is GUI lib": I'm just trying to make my own GUI lib
10:34:04FromDiscord<griffith1deadly> In reply to @systemblue2010 "I'm considering to make": pixie + boxy is enought
10:35:17FromDiscord<griffith1deadly> and since it's nim native it's better to make something seriously without mem leaks/double free/making binding yourself for skia
10:36:05FromDiscord<griffith1deadly> https://github.com/treeform/fidget2 is awesome
11:20:22FromDiscord<lainlaylie> look ma im in 2.2.6
11:31:34Amun-Ra:O
11:57:05Amun-Rasame here
12:03:37FromDiscord<narimiran> And for the rest of the audience:↵↵Nim 2.2.6 is officially here: https://nim-lang.org/blog/2025/10/31/nim-226.html
12:16:36*vsantana joined #nim
12:26:59*beholders_eye quit (Ping timeout: 244 seconds)
12:29:03*beholders_eye joined #nim
12:44:08*ainema joined #nim
12:45:39*ainema left #nim (#nim)
13:02:49FromDiscord<kiloneie> Why is #announcements not working ?
13:37:26*beholders_eye quit (Ping timeout: 256 seconds)
13:39:18*beholders_eye joined #nim
14:09:57FromDiscord<yg0068> Hey guys, quick question. Is there a way to say that Foo[A] is Foo[B] iff A is B. I.e. let user define their B = object of A, so that my Foo[B] is convertible to Foo[A]...
15:50:08*cws joined #nim
16:12:19*vsantana quit (Ping timeout: 264 seconds)
16:37:19FromDiscord<kiloneie> Wat... https://media.discordapp.net/attachments/371759389889003532/1433857379673440306/Screenshot_2025-10-31_17-36-48.png?ex=6906373f&is=6904e5bf&hm=b16da7c510b6a3d03dcb291a2d483318237fd94ad6aa2afb14fb7fb649cbae4a&
16:43:07FromDiscord<nervecenter> Man I just love OO
16:43:21FromDiscord<nervecenter> (Sorry for the snark, good luck there)
16:55:52FromDiscord<lainlaylie> In reply to @kiloneie "Wat...": is that proc signature mandated by the library? could you pass `self` in through `param` or something?
17:00:24FromDiscord<kiloneie> Im not sure yet, i haven't been using timers for more than the last 5-6 hours or so. https://media.discordapp.net/attachments/371759389889003532/1433863184137191566/Screenshot_2025-10-31_17-59-43.png?ex=69063ca6&is=6904eb26&hm=89c05a7916074588efd0ce355f54c5970cea3299f05684109e1cf8168e10e416&
17:12:21FromDiscord<treeform> In reply to @griffith1deadly "https://github.com/treeform/fidget2 is awesome": Thanks! Its still in heavy development. Let me know which features you want.
17:12:55FromDiscord<treeform> In reply to @narimiran "And for the rest": Thank you for everyone who contributed.
17:19:11FromDiscord<kiloneie> In reply to @kiloneie "Im not sure yet,": param argument, i tried self.addr, same error.
17:25:25FromDiscord<Elegantbeef> Did you read the error message?
17:25:34FromDiscord<Elegantbeef> The mismatch is `Entity` it should be `uint32`
17:28:56FromDiscord<griffith1deadly> In reply to @treeform "Thanks! Its still in": i'd be like animation transition feature between scenes aka `entryFrame` or/and ability to animating nodes with transition with customizable algo (like skeletons that then replaced by content with animation) but idk if figma has something like that
17:33:13FromDiscord<treeform> Yes, figma does have animatins. They area little complex, but I will get to them.
17:33:35FromDiscord<griffith1deadly> thank you for your hard work :nim1:
18:00:28*vsantana joined #nim
18:03:22FromDiscord<systemblue2010> In reply to @treeform "Thanks! Its still in": you made fidget2?
18:03:30FromDiscord<systemblue2010> (edit) "In reply to @treeform "Thanks! Its still in": ... youmake" added "do" | "made" => "make"
18:03:34FromDiscord<treeform> yes
18:04:22FromDiscord<systemblue2010> why you decide to use figma↵it's not open source and it's SaaS service↵don't you worried about subordination
18:05:16FromDiscord<systemblue2010> I heard fidget2 can be programmed by code but↵many time, designer design with figma
18:06:52FromDiscord<systemblue2010> separate design and developing may be good for enterprise users↵but for personal or small team users, I think integrate design and developing is better then sperating it
18:08:25FromDiscord<griffith1deadly> In reply to @systemblue2010 "separate design and developing": fidget2 is literally put figma url and get all design without anything else
18:08:34FromDiscord<griffith1deadly> you just need bind your logic to nodes
18:09:34FromDiscord<systemblue2010> In reply to @griffith1deadly "fidget2 is literally put": yes but the real problem is figma is priority SaaS service so ↵some people might not access to it
18:10:05FromDiscord<systemblue2010> (edit) "priority" => "proprietary"
18:10:14FromDiscord<systemblue2010> little mistake
18:10:16FromDiscord<griffith1deadly> figma is literally service that uses everyone for website/etc designs
18:11:29FromDiscord<systemblue2010> In reply to @griffith1deadly "figma is literally service": but what I'm worried is that i can't use figma in offline environment
18:13:07FromDiscord<griffith1deadly> without online you can use adobe ps/something else. does it popular so much like figma for web and app design? no
18:14:32FromDiscord<systemblue2010> and what I'm saying is why treeform don't use XML or HTML for design and↵use figma(proprietary software) for open source GUI library↵it seems like un-independent open source
18:14:34FromDiscord<treeform> In reply to @systemblue2010 "why did you decide": Because every designer i know uses Figma. I can't force them to use another tool, its not practical.
18:14:50FromDiscord<griffith1deadly> In reply to @systemblue2010 "and what I'm saying": xml and html sucks
18:14:50FromDiscord<systemblue2010> um...
18:15:01FromDiscord<systemblue2010> I only use XML for design
18:15:20FromDiscord<systemblue2010> can I use code or XML for designing fidget2?
18:15:27FromDiscord<griffith1deadly> code
18:15:34FromDiscord<treeform> yes you can use just code
18:15:46FromDiscord<griffith1deadly> but sure you can make your own translation layer from xml...
18:16:06FromDiscord<treeform> https://github.com/treeform/fidget2?tab=readme-ov-file#what-if-i-dont-want-to-use-figma
18:16:13FromDiscord<treeform> https://github.com/treeform/fidget2/tree/master/examples/purecode
18:16:27FromDiscord<treeform> I hate XML, but you can make a layer if you like.
18:16:39FromDiscord<treeform> You can even just write the JSON file direclty?
18:17:53FromDiscord<systemblue2010> I prefer XML because I can control it detail↵(A)XAML is my first design experience↵and it was wonderful to me
18:43:52FromDiscord<aethrvmn> Oh sorry, I misunderstood, I thought you were asking about other GUI libs when you were asking for window control and SDL↵(@systemblue2010)
19:45:58FromDiscord<nocturn9x> Does anyone have a comprehensive guide of how exactly nim async works?
19:46:07FromDiscord<nocturn9x> Specifically I'm looking for the basic suspension mechanism
19:46:14FromDiscord<nocturn9x> in python that's `yield from`
19:46:48FromDiscord<nocturn9x> I want to try porting my event loop POC from python to Nim
20:27:27FromDiscord<wakanakisarazu> sent a long message, see https://pasty.ee/zHDbiSaM
20:28:23FromDiscord<wakanakisarazu> It's also multi stage, 3 stages and 3 different binaries for redundancy
20:36:37*vsantana quit (Ping timeout: 264 seconds)
20:42:50FromDiscord<0xfab_10> teto
21:54:27*rockcavera joined #nim
22:04:50*mahlon quit (Read error: Connection reset by peer)
22:12:37*mahlon joined #nim
22:41:06FromDiscord<edwardpryce21> I'll help the first 10 people interested on how to  start earning $100k or more within a week, but you will reimburse me 10% of your profits when you receive it. Note: only interested people should send a friend request or send me a dm! ask me (HOW) via Telegram username @Edward_Pryce1↵↵Or use the telegram link in my bio
22:43:46FromDiscord<TӨMΛ ☠> <@&371760044473319454> ^
23:28:59*beholders_eye quit (Quit: WeeChat 4.6.3)
23:45:48*oprypin_ quit (Quit: Bye)
23:45:58*oprypin joined #nim
23:58:08FromDiscord<.tokyovigilante> sent a code paste, see https://play.nim-lang.org/#pasty=MsZexvtz