<< 11-11-2025 >>

00:23:19*beholders_eye quit (Ping timeout: 240 seconds)
00:44:37*rockcavera joined #nim
02:59:18*rockcavera quit (Remote host closed the connection)
04:24:21FromDiscord<lainlaylie> what did you change?
05:53:34FromDiscord<DetermiedNim1> In reply to @TFed "i think i can": reverse sort then take first two?
07:36:54FromDiscord<pmunch> In reply to @gokr "I did not write": Interesting. I've tried Claude out a little bit but haven't had much luck with it. Did you tweak anything to get it working that well? Or is this just a matter of the existing code being available in Go so it has plenty to draw upon to know how to do things?
08:06:52FromDiscord<gokr> In reply to @pmunch "Interesting. I've tried Claude": Trick with Nim is to have a decent CLAUDE.md and of course, Sonnet 4.5 is better than previous Sonnet 4. I use Claude Code as well, the tool itself also makes a difference.
08:27:33FromDiscord<gokr> @pmunch So in general I feel Claude 4.5 (but also other models like GLM-4.6) does a great job in Nim. Even really advanced Nim specific stuff like advanced macros. Funny enough it often trips up on shadowing the result variable 🙂 But... it feeels to me that the current frontier models have a "general understanding" of programming and can given context etc work very well in even niche languages.
08:29:06FromDiscord<vindaar> sent a long message, see https://pasty.ee/iEuZMQpJ
08:33:19FromDiscord<vindaar> just pushed the code for reference: https://github.com/Vindaar/yatexml
08:34:38FromDiscord<0xfab_10> can you do cursed things in it?
08:43:17FromDiscord<nnsee> In reply to @TFed "it's okay it's a": added floyd-rivest as well as an alternative to quickselect, which is roughly 2x faster than quickselect (at least when benchmarking random arrays, YMMV depending on what sort of data you're working with) and doesn't depend on std/random. https://play.nim-lang.org/#pasty=HmscilMb
08:43:45FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=ISuLDSqC
08:47:35FromDiscord<nnsee> based on https://people.csail.mit.edu/rivest/pubs/FR75b.pdf
08:55:36FromDiscord<vindaar> In reply to @vindaar "just pushed the code": and here's the library hosted to play around with: https://pages.vindaar.de/yatexml/tex_to_ml_tester.html
09:14:40*bcksl quit (Ping timeout: 256 seconds)
09:17:01*bcksl joined #nim
09:33:21*beholders_eye joined #nim
09:57:36*beholders_eye quit (Ping timeout: 256 seconds)
10:25:00FromDiscord<nnsee> In reply to @TFed "it's okay it's a": final ping about this: added the quickselect library to nimble, install it and use `floydRivest()` (or `quickselect()` if you want)
10:30:54*beholders_eye joined #nim
11:10:41FromDiscord<michaelbehnam> [image.png](https://imageds.com/Vsxv1dd/1.jpg)↵[image.png](https://imageds.com/Vsxv1dd/2.jpg)↵[image.png](https://imageds.com/Vsxv1dd/3.jpg)↵[image.png](https://imageds.com/19SvCJt/1.jpg)
14:22:32FromDiscord<kiloneie> https://discord.com/channels/371759389889003530/706542664643772436/1437762346876407818↵What does bus error even mean ? (No problem, OS went crazy).
14:27:53FromDiscord<nnsee> In reply to @kiloneie "https://discord.com/channels/371759389889003530/706": bus error... not something i've seen in a while
14:28:07FromDiscord<nnsee> it means that the application is trying to access invalid memory
14:28:16FromDiscord<nnsee> like, the address is wrong or otherwise impossible to address
14:28:52FromDiscord<nnsee> these days unless you're doing asm fuckery, this indicates that something went wrong in hardware
14:28:56FromDiscord<nnsee> i would recommend running memtest or something
14:30:17FromDiscord<nnsee> https://en.wikipedia.org/wiki/Bus_error?useskin=vector
14:30:19FromDiscord<kiloneie> In reply to @nnsee "i would recommend running": I would maybe do it, but i am on a beta desktop environment, so i am PRETTY sure, it's to blame. It has happened before, i just never saw it from Nim before. Like, losing tray icons, cannot open console, folders, etc.
14:30:49FromDiscord<nnsee> your desktop environment has pretty much nothing to do with any nim application you're running yourself
14:33:00FromDiscord<kiloneie> Well, i can't rule out, that my memory sticks caused the DE to go haywire, along with Nim.
14:34:09FromDiscord<kiloneie> But i've had some truly bizzare errors on Linux before...
14:36:55FromDiscord<kiloneie> Gotta get a new system within 1-3 years, it's time. My poor cycle is, like 10 years. An upgrade at that point, is mind boggling. But it's not time yet. I might go Intel for GPU, with how AMD is starting to behave, at least their RADEON division. I can't understand, how the CPU department is doing so well, but the GPU, can't do a single thing right.
14:37:56FromDiscord<nnsee> what do you mean
14:38:08FromDiscord<kiloneie> Last time i did my upgrade, no storage upgrade, keyboard, mouse or headphones. But with a 500€ monitor, it cost me 1800€. Then with all that i didn't list + aprox storage cost if new, would of cost me 3000€
14:38:10FromDiscord<nnsee> i use a modern radeon graphics card and barely have any issues at all
14:38:22FromDiscord<nnsee> also maybe let's move to #offtopic
14:38:26FromDiscord<kiloneie> In reply to @nnsee "i use a modern": I meant their marketing, etc
14:38:41FromDiscord<kiloneie> Oh sht, i thought i did put this in offtopic.
17:48:04*alexdaguy joined #nim
18:15:40*alexdaguy quit (Quit: WeeChat 4.7.1)
18:23:47*xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
18:27:17*xutaxkamay joined #nim
19:37:28FromDiscord<mostypc123> how to get the current users username in Nim?
19:37:31FromDiscord<mostypc123> i dont need windows support
19:37:38FromDiscord<mostypc123> only linux
19:48:49FromDiscord<lamabamadong_33783> In reply to @mostypc123 "how to get the": https://github.com/nim-lang/Nim/blob/a57b6d8406a11c478e47dfd23b14058719c72cdb/lib/posix/posix.nim#L558
19:49:19FromDiscord<lamabamadong_33783> https://linux.die.net/man/3/getlogin_r
19:57:12FromDiscord<lamabamadong_33783> https://play.nim-lang.org/#pasty=OGStaxyz
20:06:58Amun-Raor… https://play.nim-lang.org/#pasty=CeInddsq
20:07:45Amun-Raenv won't always work
20:55:07FromDiscord<alexander888alexander> hey, does anyone have a tutorial or library for triangulating polygons↵need it for an opengl project
21:06:21*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
21:06:51*beholders_eye quit (Quit: WeeChat 4.6.3)
21:06:56*SchweinDeBurg joined #nim
21:16:14*beholders_eye joined #nim
23:21:25*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
23:22:12*Lord_Nightmare joined #nim
23:23:11*Lord_Nightmare quit (Remote host closed the connection)
23:26:02*Lord_Nightmare joined #nim
23:31:50*nyeaa49284230101 joined #nim
23:43:53*nyeaa49284230101 quit (Quit: The Lounge - https://thelounge.chat)
23:52:00*rockcavera joined #nim