<< 25-09-2025 >>

02:07:19*xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
02:11:43*xutaxkamay joined #nim
02:43:21*greaser|q quit (Changing host)
02:43:21*greaser|q joined #nim
02:43:24*greaser|q is now known as GreaseMonkey
04:09:00*tiorock joined #nim
04:09:00*tiorock quit (Changing host)
04:09:00*tiorock joined #nim
04:09:00*rockcavera quit (Killed (erbium.libera.chat (Nickname regained by services)))
04:09:00*tiorock is now known as rockcavera
04:11:04*tiorock joined #nim
04:11:04*rockcavera is now known as Guest3476
04:11:04*Guest3476 quit (Killed (iridium.libera.chat (Nickname regained by services)))
04:11:04*tiorock is now known as rockcavera
04:34:25*derpydoo joined #nim
04:35:05FromDiscord<litlighilit> anyone know what's the name of the algorithm used by `!&` and `!$` in std/hashes?
04:38:18FromDiscord<leorize> wangyi
04:38:35FromDiscord<litlighilit> I'm implementing [NPython](https://github.com/nimpylib/NPython)'s sys.hash\_info and it just uses `!&` `!$` for str/bytes/bytearray hash (Py\_hashBuffer)
04:39:18FromDiscord<leorize> the source code has references to the algo in use iirc
04:39:49FromDiscord<litlighilit> It seems only integers uses it
04:40:24FromDiscord<litlighilit> yes for others like hash for string&#47;cstring but for this one
04:41:33FromDiscord<litlighilit> I've read a lot about source.↵Maybe I shall ask the author 😅
04:43:25FromDiscord<leorize> hash functions are rarely novel, LLMs might be able to figure out the construct if you prompt it (ofc, always double check)
04:49:37FromDiscord<litlighilit> Ops I see.↵Jenkins hashhttps://en.m.wikipedia.org/wiki/Jenkins_hash_function
04:57:39FromDiscord<microssd.> how do I fix can't evaluate at compile time, when getting a value from rand?
04:58:43FromDiscord<microssd.> sent a long message, see https://pasty.ee/SGWKWoid
05:01:36FromDiscord<litlighilit> use seq over tuple for `good` and `bad`
05:03:48FromDiscord<litlighilit> Because index used for `[]` (getitem) of tuple must be a static (compiletime) variable
05:05:34FromDiscord<litlighilit> As long as you didn't want a compiletime random
05:08:05*tiorock joined #nim
05:08:05*rockcavera is now known as Guest3889
05:08:05*tiorock is now known as rockcavera
05:10:08*tiorock joined #nim
05:10:08*rockcavera is now known as Guest2436
05:10:08*tiorock is now known as rockcavera
05:11:52*Guest3889 quit (Ping timeout: 256 seconds)
05:13:34*Guest2436 quit (Ping timeout: 256 seconds)
05:16:16*073AAADTC joined #nim
05:19:48*rockcavera quit (Ping timeout: 256 seconds)
05:21:55FromDiscord<microssd.> Thanks
05:22:41FromDiscord<microssd.> do I have to free the seq?
05:24:42*derpydoo quit (Ping timeout: 244 seconds)
05:29:40FromDiscord<leorize> you don't
05:38:32FromDiscord<Robyn [She/Her]> In reply to @Tóth Alfréd "True, but it's still": ehh... idk, Nim seems to not support some OS module features in the VM which ain't great
05:44:35*rockcavera joined #nim
05:46:43*tiorock joined #nim
05:46:43*rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services)))
05:46:43*tiorock is now known as rockcavera
05:48:37*073AAADTC quit (Ping timeout: 264 seconds)
06:15:36FromDiscord<lainlaylie> sent a code paste, see https://play.nim-lang.org/#pasty=gDQSMiyL
06:16:49FromDiscord<Elegantbeef> strint
06:18:30FromDiscord<Elegantbeef> Or the superior intering
06:31:26*derpydoo joined #nim
06:43:04FromDiscord<litlighilit> well if u really want such to compile,↵use seq&#47;openArray of Any in std&#47;typeinfo (lol)↵(@lainlaylie)
06:54:21*tiorock joined #nim
06:54:21*rockcavera is now known as Guest7112
06:54:21*tiorock is now known as rockcavera
06:56:29*rockcavera is now known as Guest7357
06:56:29*tiorock joined #nim
06:56:29*Guest7357 quit (Killed (platinum.libera.chat (Nickname regained by services)))
06:56:29*tiorock is now known as rockcavera
06:56:50FromDiscord<janakali> In reply to @yedco.12 "Is nim repl stable?": nlvm has real repl that is not a VM: https://github.com/arnetheduck/nlvm#repl--running-your-code↵on unix systems you can run it through `rlwrap` to get line-editing and history: `rlwrap ./nlvm-x86_64.AppImage r`
06:57:28FromDiscord<yedco.12> But does it work on windows?
06:57:42FromDiscord<yedco.12> Or I'll use wsl ig
06:58:49*Guest7112 quit (Ping timeout: 264 seconds)
07:08:28*tiorock joined #nim
07:08:28*tiorock quit (Changing host)
07:08:28*tiorock joined #nim
07:08:28*rockcavera quit (Killed (lithium.libera.chat (Nickname regained by services)))
07:08:28*tiorock is now known as rockcavera
07:10:33*tiorock joined #nim
07:10:33*tiorock quit (Changing host)
07:10:33*tiorock joined #nim
07:10:33*rockcavera is now known as Guest7303
07:10:33*Guest7303 quit (Killed (tantalum.libera.chat (Nickname regained by services)))
07:10:33*tiorock is now known as rockcavera
07:11:41FromDiscord<systemblue_whale> I'm considering to move intellij to kate
07:12:27FromDiscord<systemblue_whale> intellij has good function like git.. git... git...↵for nim↵intellij has nothing good
07:39:16*beholders_eye joined #nim
07:39:37FromDiscord<tauruuuuuus> In reply to @systemblue_whale "intellij has good function": https://tenor.com/view/doubt-press-x-la-noire-meme-x-button-gif-19259237
07:43:49*beholders_eye quit (Ping timeout: 264 seconds)
07:45:36*beholders_eye joined #nim
08:02:02*tiorock joined #nim
08:02:02*tiorock quit (Changing host)
08:02:02*tiorock joined #nim
08:02:02*rockcavera is now known as Guest3810
08:02:02*Guest3810 quit (Killed (erbium.libera.chat (Nickname regained by services)))
08:02:02*tiorock is now known as rockcavera
08:27:56*nils` quit (Ping timeout: 256 seconds)
08:41:25*nils` joined #nim
09:00:33*Jhonny2x4 quit (Quit: Jhonny2x4)
09:00:41*Jhonny2x4 joined #nim
09:00:49*nils` quit (Ping timeout: 255 seconds)
09:15:29*nils` joined #nim
09:23:55*nils` quit (Ping timeout: 244 seconds)
09:38:06*nils` joined #nim
09:48:48*tiorock joined #nim
09:48:48*rockcavera is now known as Guest6905
09:48:49*Guest6905 quit (Killed (tungsten.libera.chat (Nickname regained by services)))
09:48:49*tiorock is now known as rockcavera
09:50:53*tiorock joined #nim
09:50:53*rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services)))
09:50:53*tiorock is now known as rockcavera
09:51:15*nils` quit (Ping timeout: 252 seconds)
09:51:17FromDiscord<Tóth Alfréd> Unfortunately, the Nim plugin for IntelliJ isn't maintained regularly, and it doesn't support the latest IntelliJ version. The best editors for nim I've used so far are VSCode and Emacs, but even on them, the language server is painfully slow. If you want to use a GUI git frontend, I recommend [Sublime Merge](https://www.sublimemerge.com). It's very powerful and easy to use.↵(@systemblue_whale)
09:54:09*nils` joined #nim
10:04:15*rockcavera quit (Remote host closed the connection)
10:10:34FromDiscord<ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyy> sent a code paste, see https://play.nim-lang.org/#pasty=FXKATRsF
10:14:16FromDiscord<griffith1deadly> In reply to @Tóth Alfréd "Unfortunately, the Nim plugin": zed is very good for nim
10:23:11*ormiret quit (Read error: Connection reset by peer)
10:24:07*blackbeard420 quit (Quit: ZNC 1.10.1 - https://znc.in)
10:24:10*przmk quit (Read error: Connection reset by peer)
10:24:14*bgupta quit (Read error: Connection reset by peer)
10:24:14*blackbeard420 joined #nim
10:24:23*bgupta joined #nim
10:24:24*przmk joined #nim
10:24:30*ursa-major quit (Ping timeout: 245 seconds)
10:24:35*GreaseMonkey quit (Quit: No Ping reply in 180 seconds.)
10:24:51*ormiret joined #nim
10:25:20*attah quit (Ping timeout: 245 seconds)
10:25:52*greaser|q joined #nim
10:26:31*attah joined #nim
10:27:43*ursa-major joined #nim
10:36:01*nils` quit (Ping timeout: 264 seconds)
10:48:59*nils` joined #nim
10:49:55*greaser|q quit (Changing host)
10:49:55*greaser|q joined #nim
10:50:05*greaser|q is now known as GreaseMonkey
11:25:16*ormiret quit (Read error: Connection reset by peer)
11:25:54*ormiret joined #nim
11:42:06FromDiscord<tauruuuuuus> tbh clion + nim plugin is good enough, ime it's the best experience altough it is not perfect, YMMV
11:42:36FromDiscord<tauruuuuuus> I completely abandoned vscode/codium and unfortunately terminal editors are not for me
12:06:18*nils` quit (Ping timeout: 248 seconds)
12:19:49*nils` joined #nim
12:21:29*nils` quit (Read error: Connection reset by peer)
12:27:46FromDiscord<ayex> is that the same nim addon one gets via pycharm?↵(@tauruuuuuus)
12:29:37FromDiscord<ayex> as term editor for nim I like micro. (surely not a full ide experience, but nice syntax highlighting and check on save out of the box without any extra configuration)
12:34:34FromDiscord<janakali> In reply to @ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyy "Hey, I'm quite new": well, Linux + Nim 2.2.4 + clang cross-compiler with windows target (zigcc) seems to compile and run this dll just fine, so you can try that
12:35:11FromDiscord<janakali> I've tested Wine, so it still might fail on real machine
12:37:13FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=fTjDTrim
12:38:45*nils` joined #nim
12:47:09FromDiscord<ayex> yes, linux cross compile with zigcc on wsl2 to win target works very well for me as well. especially since I did not have a single false-positive from the win-installed shitty av since then. 😉
12:52:09FromDiscord<janakali> In reply to @ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyy "Hey, I'm quite new": update: it works in Windows 7 too https://media.discordapp.net/attachments/371759389889003532/1420754749891805285/dllTest.jpg?ex=68d68c78&is=68d53af8&hm=b8b2bfebcfff7beef22ac66eb72e88802ac96d1efe5960164a411fc257b174e1&
13:45:13FromDiscord<tauruuuuuus> In reply to @ayex "is that the same": I think so, I guess it's for any jetbrains editor
13:46:25FromDiscord<tauruuuuuus> Don't expect a perfect experience tho, unfortunately I've come to terms that for now, the tooling story is a sort of "choose the lesser evil" in nim
13:47:40FromDiscord<tauruuuuuus> And syntax highlighting + customizable tasks (sort of) + code navigation + code hints (not always working) is the least I require for my personal experience to be good, I jsut cannot stand the crashes/infinite loading on vscode/codium
13:49:09*derpydoo quit (Quit: derpydoo)
14:27:07FromDiscord<yedco.12> In reply to @janakali "well, Linux + Nim": What about c++?
14:35:06FromDiscord<whisperecean> Is there a good library / bindings for git? I want to git clone, and git log with Nim essentially
14:57:30*Avinash joined #nim
15:09:34FromDiscord<griffith1deadly> libgit?
15:09:43FromDiscord<griffith1deadly> or libgit2
15:09:50FromDiscord<griffith1deadly> distruptek has one
15:09:57FromDiscord<griffith1deadly> (edit) "distruptek" => "disruptek"
15:10:14FromDiscord<griffith1deadly> https://github.com/disruptek/gittyup
15:18:01*beholders_eye quit (Ping timeout: 264 seconds)
15:22:31*Avinash quit (Quit: Have a nice day!)
16:02:26FromDiscord<nasuray> I feel like everytime I see an app try to use bindings to git it eventually breaks or lacks support for something and they fallback to the CLI
16:06:26*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
16:13:40*Lord_Nightmare joined #nim
16:22:37FromDiscord<yedco.12> In reply to @janakali "nlvm has real repl": Wsl crashes again and again when I build it lol
16:27:48FromDiscord<kiloneie> sent a code paste, see https://play.nim-lang.org/#pasty=lEDDMhJM
16:29:02FromDiscord<nocturn9x> hmm how common is it for nim to generate code that builds fine under clang but doesn't under gcc?
16:29:23FromDiscord<nocturn9x> I am casting a string constant to a ptr Stuff and it works in clang as intended
16:29:30FromDiscord<nocturn9x> but won't compile in gcc
16:29:51FromDiscord<yedco.12> In reply to @nocturn9x "but won't compile in": That's a gcc problem then
16:29:59FromDiscord<nocturn9x> could also be a clang problem
16:30:05FromDiscord<nocturn9x> i.e. accepting broken code
16:30:22FromDiscord<yedco.12> Which version are you using?
16:30:41FromDiscord<nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=lLizwPpS
16:31:41FromDiscord<yedco.12> Try 15.1
16:31:58FromDiscord<nocturn9x> not exactly easy to install a different gcc version, I'm on a rolling release distro
16:32:01FromDiscord<nocturn9x> lemme check AUR
16:32:21FromDiscord<yedco.12> Oh okay
16:32:26FromDiscord<nocturn9x> yeah nop
16:32:27FromDiscord<nocturn9x> only 14
16:32:37FromDiscord<nocturn9x> and older
16:33:07FromDiscord<yedco.12> Try using pre-installed binaries
16:33:25FromDiscord<nocturn9x> ??
16:33:27FromDiscord<nocturn9x> of what lol
16:33:32FromDiscord<yedco.12> Gcc
16:33:46FromDiscord<nocturn9x> what part of "I'm on a rolling release distro" did not register? :|
16:33:53FromDiscord<nocturn9x> there is only one gcc, and it's gcc 15.2
16:33:54FromDiscord<nocturn9x> :p
16:35:00FromDiscord<yedco.12> Dude, pre-installed binaries, from a archived file. You can get them in official gcc. Or you can install gcc14 using your package manager .
16:35:07FromDiscord<nocturn9x> In reply to @yedco.12 "Dude, pre-installed binaries, from": oh that
16:35:35FromDiscord<Robyn [She/Her]> In reply to @nasuray "I feel like everytime": I'm just invoking CLI because it's ez
16:35:59FromDiscord<yedco.12> In reply to @nocturn9x "oh that": Because clang is really better than gcc, you can use it.
16:36:15FromDiscord<nocturn9x> lol I know I can use it, clang generates faster code toio
16:36:16FromDiscord<nocturn9x> (edit) "toio" => "too"
16:36:24FromDiscord<yedco.12> Use what works for you
16:36:26FromDiscord<nocturn9x> I just wanted to figure out if it's a gcc, clang or nim bug
16:36:32FromDiscord<nocturn9x> In reply to @yedco.12 "Use what works for": :|
16:36:39FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=XoaAspTs
16:36:45FromDiscord<nocturn9x> In reply to @nocturn9x "I just wanted to": .
16:37:04FromDiscord<yedco.12> In reply to @janakali "works as well (argh..": That's man 😂
16:37:12FromDiscord<yedco.12> (edit) "That's" => "Thanks"
16:38:01FromDiscord<yedco.12> In reply to @nocturn9x ".": Not a nim bug
16:38:09FromDiscord<nocturn9x> In reply to @yedco.12 "Not a nim bug": you don't know that lol
16:38:15FromDiscord<nocturn9x> it could be generating broken code that clang just accepts
16:38:23FromDiscord<yedco.12> Ohh okay
16:41:32FromDiscord<yedco.12> In reply to @janakali "works as well (argh..": Also nlvm isn't building on wsl, ig i can't use it 😕
16:42:08FromDiscord<yedco.12> Its terminates when it reaches close to finishing
16:43:40FromDiscord<nocturn9x> In reply to @janakali "works as well (argh..": hmm
16:43:44FromDiscord<nocturn9x> I'm trying something similar
16:43:49FromDiscord<nocturn9x> cross compiling with zigcc I mean
16:43:53FromDiscord<nocturn9x> not zigcpp
16:43:56FromDiscord<nocturn9x> but I get a weird error
16:43:57FromDiscord<janakali> In reply to @yedco.12 "Also nlvm isn't building": appimage should work on linux, even in wsl: https://github.com/arnetheduck/nlvm/releases/tag/continuous
16:44:00FromDiscord<nocturn9x> `ld.lld: error: /home/nocturn9x/heimdall/bin/heimdall.lto.o: not an ELF file`
16:44:10FromDiscord<nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=wuFlNQBs
16:44:17FromDiscord<nocturn9x> most options are specific to my project
16:44:56FromDiscord<nocturn9x> what am I doing wrong?
16:47:43FromDiscord<nocturn9x> oh, LTO seems to be the problem here
16:52:43FromDiscord<nocturn9x> can't make LTO builds apparently :(
16:53:08FromDiscord<nocturn9x> nor any builds for that matter
16:55:40FromDiscord<nocturn9x> nim seems hellbent on using `ld.lld` to link
16:55:47FromDiscord<janakali> I think it's missing`-l:"-target x86_64-windows-gnu"`, in general you need to always pass same flags to compiler and linker with zigcc
16:55:49FromDiscord<nocturn9x> despite me passing `-fuse-ld=lld-link` to the linker
16:56:01FromDiscord<nocturn9x> In reply to @janakali "I think it's missing`-l:"-target": let me try
16:57:21FromDiscord<nocturn9x> it worked!
16:59:02*def- quit (Quit: -)
16:59:33FromDiscord<nocturn9x> let's see if the performance is as expected
16:59:55FromDiscord<nocturn9x> the numbers with wine look promising
17:00:19*def- joined #nim
17:59:30FromDiscord<mitranim> Dereferencing with `x[]` rather than `x` is such a neat design, reuses syntax, saves on syntax, and `[]` for deref matches assembly notation too
17:59:51FromDiscord<mitranim> (edit) "`[]`" => "using the characters `][`"
18:56:05FromDiscord<nocturn9x> is there a way to get rid of an imported reference?
18:56:18FromDiscord<nocturn9x> I have a `File` type (as in a chessboard file) and it clashes with `syncio.File`
18:56:24FromDiscord<nocturn9x> so I have to do `pieces.File(x)`
18:56:41FromDiscord<nocturn9x> which is very annoying because stuff like `File.high()` obviously works because there's no ambiguity
18:57:14FromDiscord<nocturn9x> In reply to @nocturn9x "I have a `File`": which I am not importing explicitly btw, seems to be from system
20:00:30FromDiscord<Elegantbeef> @nocturn9x`import x except y`
20:00:49FromDiscord<nocturn9x> fair enough, but isn't system imported by default already?
20:01:23FromDiscord<yedco.12> In reply to @janakali "works as well (argh..": hey do, can you paste the example you compiled for c++?
20:01:32FromDiscord<Elegantbeef> You can use `-d:nimPreviewSlimSystem` but that'll likely explode \:D
20:02:00FromDiscord<yedco.12> (edit) "hey do, can" => "hey,can"
20:02:56FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=hpxbwYgC
20:03:39FromDiscord<yedco.12> sent a code paste, see https://play.nim-lang.org/#pasty=EmSynGtn
20:04:08FromDiscord<yedco.12> (edit) "https://play.nim-lang.org/#pasty=CfXDfhmZ" => "https://play.nim-lang.org/#pasty=akgbXkGQ"
20:04:22FromDiscord<yedco.12> (edit) "https://play.nim-lang.org/#pasty=hhvgHlzi" => "https://play.nim-lang.org/#pasty=ZfrTddYj"
20:05:07FromDiscord<yedco.12> even simple c++ is not compiling
21:20:28*rockcavera joined #nim
22:03:28FromDiscord<DetermiedNim1> Does nimscript support threads currently
22:36:25*rockcavera quit (Remote host closed the connection)
22:39:07*rockcavera joined #nim
22:49:43FromDiscord<janakali> In reply to @yedco.12 "hey,can you paste the": already posted it here: https://discord.com/channels/371759389889003530/371759389889003532/1420750987924209797↵it's the same code for c and cpp
23:01:49FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=oTMJVCfJ
23:02:18FromDiscord<janakali> (edit) "https://play.nim-lang.org/#pasty=jeVdEdHr" => "https://play.nim-lang.org/#pasty=DkfzYLKD"
23:55:06*mal`` quit (Ping timeout: 248 seconds)