<< 10-05-2026 >>

02:33:22*oculux joined #nim
02:35:53*kick455 quit (Ping timeout: 248 seconds)
03:31:46*benson joined #nim
04:23:39*amadaluzia quit (Read error: Connection reset by peer)
04:35:36*amadaluzia joined #nim
04:55:43*tokyovigilante joined #nim
06:46:09FromDiscord<[Next-System] systemblue> I'm boring guys
06:46:30FromDiscord<ardisan_> Me too, bro
06:51:51FromDiscord<[Next-System] systemblue> I'm busy with projects but boring because projects are so boring...
06:51:56FromDiscord<[Next-System] systemblue> SIMD, Cryptography, Utility...
06:51:58FromDiscord<[Next-System] systemblue> all boring
07:01:16FromDiscord<narimiran> If somebody's interested, here's another ~~meaningless~~ benchmark comparing different languages. And Nim is currently not standing very well:↵https://github.com/Syzygies/Compare
07:01:18*tiorock joined #nim
07:01:18*tiorock quit (Changing host)
07:01:19*tiorock joined #nim
07:01:19*rockcavera is now known as Guest8743
07:01:19*Guest8743 quit (Killed (tungsten.libera.chat (Nickname regained by services)))
07:01:19*tiorock is now known as rockcavera
07:05:01FromDiscord<[Next-System] systemblue> https://github.com/Syzygies/Compare↵↵I think it's not trusty
07:05:16FromDiscord<[Next-System] systemblue> because F# and Scala is VM Langauge, JIT compiled, but faster than Native lang?
07:05:44FromDiscord<[Next-System] systemblue> noobs can know that it's impossible in common situation
07:06:10FromDiscord<[Next-System] systemblue> and Scalal Native is slower than Scala?? it's impossible too
07:06:19FromDiscord<[Next-System] systemblue> he's benchmark is totally wrong
07:08:14FromDiscord<narimiran> In reply to @bluewhale_unkown_x "he's benchmark is totally": so, should be very easy to improve Nim's result
07:33:05*xet7 quit (Remote host closed the connection)
08:28:41FromDiscord<tapeda> I like that it concludes by choosing the slowest on the list
08:36:17FromDiscord<zumi.dxy> maaan if I had a sign to tap it'd be this (again) :(↵https://arxiv.org/abs/2410.05460
08:36:20FromDiscord<zumi.dxy> https://media.discordapp.net/attachments/371759389889003532/1502952419477291068/Screenshot_20241205_070409_Opera.png?ex=6a019504&is=6a004384&hm=b068ca1e7a0a8cdaece221b43e2f92fe84e784ba42e80ac1190b21fbf8be697d&
09:03:33tarzeauAmun-Ra: i found it packaged on salsa.d.o :)
09:03:49tarzeautrying to contact author to have it officially...
09:44:44Amun-Ratarzeau: yeah, debian's nim is far behind, that's why I packaged it myself and put on my prive repo
09:45:03Amun-RaI have to push those recipes on gh someday
09:56:43*beholders_eye joined #nim
10:45:57FromDiscord<vidyasagarv> In reply to @bluewhale_unkown_x "https://github.com/Syzygies/Compare I think": I made a PR to improve the nim implementation: https://github.com/Syzygies/Compare/pull/2/changes I am new to nim, so please feel free to comment
10:47:15Amun-Rahave you tested inlining it actually inlines and helps? compilers are usually smart enough to know when to inline
10:47:52Amun-Raand inline is usually just a hint, template always inlines not matter what opinion any compiler has about it ;)
10:49:06Amun-Ra-march=native is fine, except when you write a portable software, if it's for a specific machine it's fine
11:10:10*beholders_eye quit (Ping timeout: 248 seconds)
11:11:58*beholders_eye joined #nim
11:15:19tarzeauAmun-Ra: you're james cuzella?
11:16:40tarzeauAmun-Ra: few changes here and there, and i'll be so glad to upload it into debian :) drop rules-requires-root from d/control, make standards version be 4.7.4, compat = 13, make pkg non-native
11:24:11tarzeaumaybe write an ITP, can be done with deb2itp script. i prefer debian/clean instead of rm in d/rules.. but as you wish
11:36:02tarzeaui'd definitely add d/README.Debian with an examplee config.toml [buffer] images=true ; and [display] image-mode="kitty" ...
11:36:37tarzeaui somehow have an issue umlauts being rendered as inverse ? in a diamond :( which i couldn't fix yet
11:58:24*beholders_eye quit (Ping timeout: 256 seconds)
12:01:01*beholders_eye joined #nim
12:42:56FromDiscord<TӨMΛ ☠> Is there a way to differentiate between imported types? E.g. `uing` and `pixie` having Image type↵Separating through `uing.Image`/`pixie.Image` didn't do much, and `from uing import Image as uImage` seems to not be supported
12:43:47FromDiscord<TӨMΛ ☠> To be clear, I need both Image types, so it's not like I can `except` on any
12:48:19*przmk_ quit (Remote host closed the connection)
12:50:26*przmk joined #nim
12:58:49FromDiscord<bung8954> from x import nil, then use `x.yy`
13:15:20*xet7 joined #nim
13:24:45FromDiscord<vyrnexis> with nimble I needed to use the offical sdl3 from nim-lang, it has the sdl2-ttf wrapper, however when setting "required" to sdl3 it downloads the transmutrix/nim-sdl3 package instead, I know I could do a nimble install https://github.com/nim-lang/sdl3 manually, but do I include this in the project nimble file as a requirement
13:25:22FromDiscord<vyrnexis> with nimble I needed to use the offical sdl3 from nim-lang, it has the sdl2-ttf wrapper, however when setting "required" to sdl3 it downloads the transmutrix/nim-sdl3 package instead, I know I could do a nimble install https://github.com/nim-lang/sdl3 manually, but do I include this in the project nimble file as a requirement
13:32:54*beholders_eye quit (Quit: WeeChat 4.9.0)
13:36:45*beholders_eye joined #nim
13:51:07FromDiscord<TӨMΛ ☠> In reply to @bung8954 "from x import nil,": Thank you 🫡
13:59:53FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=QTDEGjPg
14:01:18Amun-Ratarzeau: no, my first name is Artur, that name doesn't sound polish at all :)
14:01:24FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=dRsjZIQd
14:03:33FromDiscord<janakali> Amun-Ra\: who are you kidding? you are clearly Egyptian 😛
14:05:02Amun-Rajanakali: :D
14:05:42Amun-Rajanakali: I can even read hieroglyphs… :)
14:05:48Amun-Raand I'm serious
14:06:25Amun-Raone of the most useless traits I got
14:08:00FromDiscord<asviest> Is there an some ProxSuite bindings for nim?
14:08:06FromDiscord<asviest> (edit) removed "an"
14:09:04Amun-RaI browsed their readme.md and I still got no idea what's it for
14:11:00tarzeauhaha
14:13:45Amun-Raglanced* tbh ;)
14:40:21*joast quit (Quit: Leaving.)
14:42:57FromDiscord<spotlightkid> https://nim-lang.org/docs/manual.html#templates-varargs-of-untyped↵> [...] a template cannot iterate over varargs,↵> Why is that and is there a workaround?
14:43:17FromDiscord<spotlightkid> https://nim-lang.org/docs/manual.html#templates-varargs-of-untyped↵> [...] a template cannot iterate over varargs,↵Why is that and is there a workaround?
15:07:44FromDiscord<mratsim> In reply to @spotlightkid "https://nim-lang.org/docs/manual.html#templates-var": use a macro
15:07:47Amun-Rahttps://nim-lang.org/docs/macros.html#unpackVarargs.m%2Cuntyped%2Cvarargs%5Buntyped%5D
15:08:06Amun-Ranot exactly what you want
15:29:33*rockcavera quit (Read error: Connection reset by peer)
15:30:13*rockcavera joined #nim
15:30:13*rockcavera quit (Changing host)
15:30:13*rockcavera joined #nim
15:39:58*joast joined #nim
15:43:56FromDiscord<spotlightkid> Ok, I'm trying to use a macro instead. How do I write a macro that returns an actual type? Create the AST of a proc that returns that type?
16:17:52*xet7 quit (Remote host closed the connection)
16:20:02*beholders_eye quit (Ping timeout: 248 seconds)
16:21:59*beholders_eye joined #nim
16:41:09*beholders_eye quit (Ping timeout: 245 seconds)
16:43:11*beholders_eye joined #nim
17:17:58FromDiscord<spotlightkid> Ok, I think I got it. To be able to do `let myMsg: Message = makeMsgMacro(bla, foo)` I can implement `makeMsgmacro` so that it returns a `BlockStmt` AST that evaluates to a `Message` object.
17:26:18FromDiscord<spotlightkid> If anybody is interested\:↵● https://codeberg.org/SpotlightKid/bosco/src/branch/master/src/bosco/macros.nim (macro)↵● https://codeberg.org/SpotlightKid/bosco/src/branch/master/tests/test_macros.nim (test usage)
17:40:17*benson quit (Quit: Konversation terminated!)
17:42:04*skippy8 joined #nim
17:42:31*amadaluzia quit (Read error: Connection reset by peer)
17:43:30*amadaluzia joined #nim
17:48:33*amadaluzia quit (Read error: Connection reset by peer)
18:06:45FromDiscord<mratsim> In reply to @spotlightkid "If anybody is interested\:": this looks like a REST API.
18:06:55*hygo quit (Ping timeout: 265 seconds)
18:07:54FromDiscord<mratsim> You might want to check the macros used in presto for REST routing: https://github.com/status-im/nim-presto
18:12:15*rockcavera quit (Remote host closed the connection)
18:13:29*rockcavera joined #nim
18:13:29*rockcavera quit (Changing host)
18:13:29*rockcavera joined #nim
18:22:17*hygo joined #nim
18:22:24*hygo quit (Client Quit)
18:23:44*hygo joined #nim
18:28:07*beholders_eye quit (Ping timeout: 276 seconds)
18:29:23*beholders_eye joined #nim
18:48:07*kick455 joined #nim
18:49:34*oculux quit (Ping timeout: 244 seconds)
19:05:27FromDiscord<vidyasagarv> In reply to @Amun-Ra "have you tested inlining": Yes, it actually helps, surprisingly the -march=native did not help, this did 🤷‍♂️ Also, for what it's worth, this updated nim implementation is faster than current rust implementation on my machine 😅
19:21:45FromDiscord<spotlightkid> No, similar, but not the same, it's for constructing Open Sound Control (OSC) messages, which get usually sent directly over UDP.↵I'll have a look at your link, though.↵(@mratsim)
20:15:29*hygo quit (Ping timeout: 265 seconds)