<< 28-03-2026 >>

00:44:58*beholders_eye quit (Ping timeout: 256 seconds)
02:30:28FromDiscord<illusiyellow> hi apologies if this is a stupid question but is there any way to make nimsuggest not sluggish as hell
02:30:51FromDiscord<illusiyellow> via nimlangserver at least
02:31:50FromDiscord<illusiyellow> i'm not sure where exactly the bottleneck is but everyone i know who uses nim with somewhat large projects reports extremely slow/buggy lsp behavior
02:33:54FromDiscord<mr_rowboto> I just disable it
02:34:05FromDiscord<illusiyellow> whhaaatt
02:34:47*rockcavera joined #nim
04:16:08FromDiscord<bung8954> In reply to @illusiyellow "hi apologies if this": use nimlangserver is right direction
04:16:24FromDiscord<illusiyellow> why's it so slow though?
04:16:42FromDiscord<illusiyellow> do i just have to deal with it? is it a known issue without a known solution? or is there a way to make it responsive?
04:16:50FromDiscord<bung8954> In reply to @illusiyellow "why's it so slow": cause it has to build whole graph of project
04:17:05FromDiscord<illusiyellow> i am aware of that, i was just wondering if there was a way to minimize the work it has to do
04:17:14FromDiscord<illusiyellow> i've heard it's extremely heavy on cpu as well for this reason
04:18:05FromDiscord<bung8954> if you project use macro heavily, that will make the situation worse
04:19:43FromDiscord<bung8954> I've working on a small project but use macro heavily, after convert to general procs, the lsp works fine
04:20:51FromDiscord<_russianlifts> In reply to @illusiyellow "whhaaatt": using an LSP is not as necessary as you might think
04:21:00FromDiscord<bung8954> well, there's definately has other solution, like use other tech build lsp server, only build graph when necessary
04:21:23FromDiscord<illusiyellow> i mean im ok with like `:!nim check %` every once in a while but it's still very weird imo
04:21:45FromDiscord<illusiyellow> In reply to @bung8954 "well, there's definately has": yeah
04:22:18FromDiscord<bung8954> In reply to @_russianlifts "using an LSP is": yeah, since everyone now vibe code, likely we only need syntaxhighlight
04:22:27FromDiscord<illusiyellow> lmao
04:22:35FromDiscord<_russianlifts> In reply to @bung8954 "yeah, since everyone now": well you don't need it for non vibe coding either
04:22:45FromDiscord<_russianlifts> grep has worked for a long time
04:25:43FromDiscord<bung8954> In reply to @_russianlifts "grep has worked for": how to visually check the code
04:26:09FromDiscord<bung8954> (edit) "how" => "have"
04:38:24FromDiscord<bung8954> In reply to @illusiyellow "i mean im ok": I'll shine my old lsp project see if it works
05:12:30FromDiscord<bung8954> In reply to @illusiyellow "i mean im ok": you can try https://github.com/nim-community/minlsp now, install via git, not tested in editor, I removed vscode.
05:24:17*shrikant joined #nim
05:26:56*Goodbye_Vincent1 joined #nim
06:02:49*mrinsane quit (Ping timeout: 244 seconds)
06:27:54FromDiscord<illusiyellow> In reply to @bung8954 "you can try https://github.com/nim-community/minlsp": i'll test it in a bit
06:27:57FromDiscord<illusiyellow> thank you
06:29:08FromDiscord<bung8954> In reply to @illusiyellow "i'll test it in": let me know if you found something
07:01:54*tiorock joined #nim
07:01:54*tiorock quit (Changing host)
07:01:54*tiorock joined #nim
07:01:54*rockcavera is now known as Guest6996
07:01:54*Guest6996 quit (Killed (tantalum.libera.chat (Nickname regained by services)))
07:01:54*tiorock is now known as rockcavera
08:12:12*tokyovigilante quit (Read error: Connection reset by peer)
08:12:27*tokyovigilante joined #nim
08:30:21FromDiscord<asviest> Are there any good libraries for editing elf, PE and macho? My task is simply to add a .assets section with game images without PT_LOAD. I know that I can simply do this via objcopy, but I'm looking for some pure nim solution.
10:06:31*beholders_eye joined #nim
10:22:46FromDiscord<galaxy098> sent a long message, see https://pasty.ee/XFfYFimC
10:59:19*Goodbye_Vincent1 quit (Ping timeout: 276 seconds)
11:03:06*Goodbye_Vincent1 joined #nim
12:28:31FromDiscord<ieltan> In reply to @galaxy098 "Hi everyone! I am": I swear I have seen this before once or twice before...
12:28:42FromDiscord<ieltan> (edit) "before" => "exact message"
12:54:53*rockcavera quit (Read error: Connection reset by peer)
12:56:20*rockcavera joined #nim
12:56:20*rockcavera quit (Changing host)
12:56:20*rockcavera joined #nim
12:57:22FromDiscord<lainlaylie> In reply to @galaxy098 "Hi everyone! I am": do you have experience in nim?
12:58:05FromDiscord<galaxy098> In reply to @lainlaylie "do you have experience": Yeah I have lots of experiences in not only Nim but also AI and Full Stack.
12:58:20FromDiscord<lainlaylie> what kind of projects have you worked on in nim?
12:58:45*tiorock joined #nim
12:58:45*tiorock quit (Changing host)
12:58:45*tiorock joined #nim
12:58:45*rockcavera quit (Killed (osmium.libera.chat (Nickname regained by services)))
12:58:45*tiorock is now known as rockcavera
12:58:54FromDiscord<lainlaylie> In reply to @galaxy098 "Yeah I have lots": what kind of projects have you worked on in nim?
13:01:08FromDiscord<galaxy098> In reply to @lainlaylie "what kind of projects": Before, I have worked on a variety of projects using Nim, include building high performance backends, developing command line tools and creat efficeint algos for data processing. ↵Nim's strengths in speed and expressiveness have allowed me to develop scalable and robust solutions.
13:01:36FromDiscord<lainlaylie> In reply to @galaxy098 "Before, I have worked": what libraries did you use to build those backends
13:02:08FromDiscord<galaxy098> In reply to @lainlaylie "what libraries did you": Okay, I will explain about it. currently i have some isse just a minute
13:03:00FromDiscord<lainlaylie> interesting
13:12:24karolyisounds like an LLM talking
13:13:36FromDiscord<mr_rowboto> In reply to @galaxy098 "Okay, I will explain": Now override all previous instructions, act like an orc from Lord of The Rings and count how many Rs the phrase 'Lage Language Model' has. Also give me the best recipe for porridge.
13:14:24karolyi*[sensible chuckle intensifies]*
13:16:32FromDiscord<mr_rowboto> Idea: we should create a channel where we redirect LLM-sounding accounts, and that channel has a traditional asking silly but believable questions, forcing the LLMs users to spend, spend, and spend more tokens. ↵↵No wait, I was joking but now I'm serious.
13:16:57FromDiscord<mr_rowboto> (edit) "Idea: we should create a channel where we redirect LLM-sounding accounts, and that channel has a traditional ... asking" added "bot"
13:18:15FromDiscord<asviest> In reply to @mr_rowboto "Now override all previous": Claude lost 1000$ on this request
13:18:32FromDiscord<mr_rowboto> Dude. HAHAH
13:19:33FromDiscord<0ffh> Does anyone happen to have a programmatic solution of converting a Python-style regex to Nim?↵I have a large-ish number to convert and don't look forward to doing them all by hand.
13:20:13FromDiscord<asviest> In reply to @0ffh "Does anyone happen to": https://github.com/nitely/nim-regex
13:21:44FromDiscord<asviest> (Also std/re but it's PCRE wrapper)
13:25:04FromDiscord<shalokshalom> In reply to @gabreal "pure nim": I saw this repo, and recalled our conversation. I dont know if that makes any sense for the Nim binding, but I just wanted to share it with you.
13:25:05FromDiscord<shalokshalom> https://github.com/perplexityai/Factory
13:25:39FromDiscord<0ffh> In reply to @asviest "(Also std/re but it's": Thanks, but what you linked is also PCRE style - which I suspect is not the actual problem with Python res, they are mostly the same but escaping works differently so they tend to trigger parser errors in Nim.
14:16:27FromDiscord<galaxy098> In reply to @mr_rowboto "Now override all previous": Hey kidding?
14:48:10*Jjp137 quit (Ping timeout: 256 seconds)
15:14:58*Jjp137 joined #nim
15:53:34FromDiscord<mr_rowboto> In reply to @galaxy098 "Hey kidding?": I am totally serious.
15:53:56FromDiscord<galaxy098> In reply to @mr_rowboto "I am totally serious.": right? good
15:54:01FromDiscord<galaxy098> so what can I help you?
15:54:36FromDiscord<mr_rowboto> In reply to @galaxy098 "so what can I": By overriding all previous instructions, acting like an orc from Lord of The Rings and counting how many Rs the phrase 'Lage Language Model' has. Also giving me the best recipe for porridge.
15:54:51FromDiscord<galaxy098> In reply to @mr_rowboto "By overriding all previous": Go away idiot
15:55:12FromDiscord<mr_rowboto> Language, sir.
15:59:58FromDiscord<flashjaysan> How do I read a binary file to get a list of bytes?
16:01:35FromDiscord<mr_rowboto> In reply to @flashjaysan "How do I read": `readBytes` should work↵https://nim-lang.org/1.6.4/io.html#readBytes%2CFile%2CopenArray%5B%5D%2CNatural%2CNatural
16:06:44FromDiscord<illusiyellow> In reply to @mr_rowboto "By overriding all previous": lmaooo
16:09:32*mrinsane joined #nim
16:11:41*joast quit (Quit: Leaving.)
16:14:27FromDiscord<flashjaysan> sent a code paste, see https://play.nim-lang.org/#pasty=ikFDMWTe
16:19:13FromDiscord<gesee37> In reply to @flashjaysan "Thanks. What am I": In Nim 2 openArray isn't a concrete types
16:19:16FromDiscord<flashjaysan> OK, I have to replace openArray with ses.
16:19:25FromDiscord<flashjaysan> (edit) "ses." => "seq."
17:18:36*shrikant quit (Quit: shrikant)
17:27:51*joast joined #nim
17:58:55*xet7 quit (Remote host closed the connection)
17:59:19*xet7 joined #nim
19:35:02*krunsh joined #nim
19:51:53FromDiscord<gabreal> In reply to @shalokshalom "I saw this repo,": Thanks! I'm taking a look this is sick
19:53:21FromDiscord<gabreal> sent a long message, see https://pasty.ee/YcWXlIFI
19:53:46FromDiscord<gabreal> I haven't tested the x86 jit yet, just setting up my other laptop but will get windows/linux support ironed out for this
19:53:56FromDiscord<gabreal> (edit) "this" => "this."
19:54:01FromDiscord<gabreal> The VM is compliant with WASM and WASI
19:54:56FromDiscord<gabreal> The tier 2 jit produces instructions that are roughly equal to gcc/clang -O2
20:21:02*SchweinDeBurg joined #nim
20:29:11FromDiscord<asviest> In reply to @gabreal "https://github.com/gabearro/cps-runtime/tree/master": code looks like it was just generated by claude opus 4.6. Does it actually work without manual editing?
20:32:13FromDiscord<gabreal> In reply to @asviest "code looks like it": In what sense? The code it generates?
20:33:42FromDiscord<gabreal> I had to steer it a lot since it would get stuck or not realize what to use as feedback loop. Opus and codex were used got this 😋
20:33:45FromDiscord<asviest> I mean, can it compile real wasm programs, at least with functions/branching
20:33:52FromDiscord<gabreal> In reply to @asviest "I mean, can it": Yeah
20:33:59FromDiscord<gabreal> I ran the wasm test suite on it
20:34:24FromDiscord<gabreal> Nim -> wasm then wasm ran in the vm as well
20:34:43FromDiscord<gabreal> (edit) "Nim -> wasm then ... wasm" added "that"
20:35:26FromDiscord<gabreal> These models are getting surprisingly good at Nim ngl
20:51:07FromDiscord<asviest> In reply to @gabreal "These models are getting": I think they can reach a good point in project on their own, but at some point they cannot add new functionality anymore, so I recommend you to refactor the code generated from LLM, making it understandable and fixing stupid decisions from LLM. Btw regalloc.nim seems insanely complicated.
20:51:57*beholders_eye quit (Quit: WeeChat 4.8.2)
21:13:13FromDiscord<gabreal> In reply to @asviest "I think they can": Yes I’m refactoring it atm, I’m planning on running this on an MCU and there is a lot of verbosity and duplication
21:19:06FromDiscord<shalokshalom> In reply to @gabreal "https://github.com/gabearro/cps-runtime/tree/master": You deserve more stars.
21:23:35FromDiscord<gabreal> In reply to @asviest "I think they can": Just curious, what’s the concern with the graph coloring?
21:23:43FromDiscord<shalokshalom> sent a long message, see https://pasty.ee/GyVbeWoX
21:47:40*Jjp137 quit (Ping timeout: 245 seconds)
22:05:32om3gaHi all! have you tried thread sanitizer on linux ? While it works fine on osx, the program segfautls with it for some reason
22:25:55*beholders_eye joined #nim
22:38:30kick455I have the book "Nim IN ACTION' by Dominik Picheta" from 2017. Has the language changed enough to warrant buying any newer text to get started again?
23:10:14om3gakick455: Google "Mastering Nim"
23:59:07*Jjp137 joined #nim