<< 05-11-2026 >>

00:38:44*beholders_eye quit (Ping timeout: 243 seconds)
00:40:59*beholders_eye joined #nim
01:17:21*xet7 quit (Quit: Leaving)
02:44:32*beholders_eye quit (Ping timeout: 252 seconds)
02:51:01*rockcavera quit (Remote host closed the connection)
03:24:15*th3r00t quit (Quit: ZNC 1.10.2 - https://znc.in)
03:27:49*th3r00t joined #nim
03:40:42*th3r00t quit (Quit: ZNC 1.10.2 - https://znc.in)
03:53:10*th3r00t joined #nim
04:07:39FromDiscord<_timurski> In reply to @zkopt_ "https://github.com/zkopt-dev I'm high": if you want honest feedback, you are asking the wrong question
04:08:06FromDiscord<_timurski> firstly, nobody is gonna put in the effort to judge your code quality
04:08:24FromDiscord<_timurski> but secondly, you yourself should be figuring out what "good' code is
04:08:57FromDiscord<_timurski> talking to people about what this means and looking at what other people have thought before is important, but independence is also key
04:09:21FromDiscord<_timurski> the basic point is that if you were a good programmer, you wouldn't be posting your GitHub and asking people if you're a good programmer
04:10:15FromDiscord<_timurski> I also in general see that you ask people about things like what you should do or project ideas, and in general this is another sign that you haven't dived deeply enough into something. once you become fairly knowledgeable about some domain you tend to have the issue of too many ideas
05:22:51FromDiscord<zkopt_> In reply to @_timurski "I also in general": I don't ask idea ↵I have too many idea even I don't have much knowledge lol
05:23:34FromDiscord<zkopt_> In reply to @_timurski "but secondly, you yourself": um... but that doesn't mean other person's evaluate is meanless
05:24:21FromDiscord<zkopt_> In reply to @_timurski "the basic point is": I think I'm not good programmer at all↵I'm just high school student developer↵and I want to ask what point I should fix or enhance
05:24:44FromDiscord<zkopt_> (edit) "meanless" => "meaningless"
05:25:51FromDiscord<zkopt_> In reply to @abdulrahman.103 "this c lib is": what reason? I can't say any words at "some reason"↵↵upload error message of compiler or linker
05:31:39FromDiscord<_timurski> In reply to @zkopt_ "I don't ask idea": idk i thought i saw you do that beforemb
05:31:57FromDiscord<_timurski> In reply to @zkopt_ "I think I'm not": the way you're doing it is really unproductive
05:32:08FromDiscord<_timurski> you can't expect random people on discord to just spend a bunch of time looking at things for you
05:32:12FromDiscord<_timurski> it's not exactly rude but it's bordering on it
05:35:07FromDiscord<_timurski> jonathan blow had a good comment on this i guess. whenever you build a project you should look back and analyze, what was difficult? what did you do wrong? what assumptions did you have that proved to be counterproductive? what should you have done instead?
05:35:53FromDiscord<_timurski> like "what should i fix or enhance" what do you think is the answer to this
05:36:04FromDiscord<_timurski> because in my opinion the full answer is "your entire way of thinking"
05:36:16FromDiscord<_timurski> and this is a process everyone should always be in
05:54:04FromDiscord<Abdulrahman> In reply to @zkopt_ "what reason? I can't": Turns out it had to download multiple dependencies in the background
06:12:23*KawaiiSelbst quit (Remote host closed the connection)
06:12:39*KawaiiSelbst joined #nim
06:12:40*KawaiiSelbst quit (Remote host closed the connection)
06:13:39*KawaiiSelbst joined #nim
06:44:10Amun-Ra"good" code is a subjective term; I write good code to me, you write good code to you, etc
07:02:08FromDiscord<xierongchuan> 👀
07:12:17FromDiscord<gesee37> In reply to @_timurski "you can't expect random": Having random people on discord looking at what we do and giving feedbacks is why we are all here 🙂
07:14:07FromDiscord<gesee37> In reply to @zkopt_ "https://github.com/zkopt-dev I'm high": Well about coding skills not sure we can really access that since it would require to read all the code you wrote 🚼
07:15:35FromDiscord<gesee37> We already struggle to review 500 of AI changes so a whole repository (especially when we aren't paid enough for that)...
07:16:33FromDiscord<_timurski> In reply to @gesee37 "Having random people on": nah I don't think this should really be encouraged
07:17:00FromDiscord<_timurski> it's just not an efficient way to even help somebody
07:17:02FromDiscord<gesee37> (edit) "We already struggle to review 500 ... of" added "loc"
07:18:43FromDiscord<_timurski> as in, literally asking people to look at your entire GitHub profile
07:19:03FromDiscord<gesee37> In reply to @_timurski "nah I don't think": Well it's a way to help...↵Maybe not posting your full bio (which indeed is not helpful)↵But specific project yeah
08:43:18FromDiscord<b0rsuk> Is it possible in the programming language Nim to echo a string without a trailing newline? The procedure's documentation in the `system` module doesn't hint how to do that.
08:49:07FromDiscord<b0rsuk> Is it because I should be a good boy and assemble the whole line before printing it?
08:59:23FromDiscord<tempestro> I personally would solve this with a raw `printf()`↵I know it is not a good solution
09:01:48Amun-Rab0rsuk: only via stdout.write
09:02:21Amun-Rasee std/sycio
09:02:23Amun-Rasyncio*
09:03:42FromDiscord<tempestro> In reply to @xierongchuan "I've been using this": what do you mean with the RAM consumption?↵Idling VSCode eats 669 MiB, Zed with a bunch of stuff open eats 406 MiB
09:04:49*xtr00 joined #nim
09:05:46Amun-Raraw printf requires you to use proper type specifiers that differ in 32-bit and 64-bit systems
09:06:10Amun-Raunless you always for example use %zu for unsigned ints etc
09:07:47FromDiscord<b0rsuk> Ultimately it's not a big deal because I can assemble a string and concatenate `\n` to it...
09:09:29Amun-RaI often wish there was an echo w/o implicit new line, stdout.write raises IOError, echo does not
09:09:39Amun-Ra{.raises.}
10:36:40FromDiscord<TӨMΛ ☠> sent a code paste, see https://discordapp.com/channels/371759389889003530/371759389889003532/1567850118231756882
10:46:58*insanescholar joined #nim
10:58:39*insanescholar quit (Ping timeout: 263 seconds)
11:03:14*insanescholar joined #nim
11:27:32FromDiscord<mratsim> In reply to @toma400 "I wanted to make": is log a const or a `var log {.compileTime.}: Log` ?
11:52:22FromDiscord<TӨMΛ ☠> A `var` but without any pragmas
11:54:39*insanescholar quit (Remote host closed the connection)
11:54:41FromDiscord<viiper_dev> Hello, I'm new on Nim and I'm trying to have LSP. I installed nimlangserver via nimble and the plugin in nvim via Mason. Once all of this is done, I get this segfault (see attached file) https://media.discordapp.net/attachments/371759389889003532/1567869759628775484/segfault_fedora44_nim.txt?ex=6aedc000&is=6aec6e80&hm=aa204158269a4e5dd42b1a2a91455e81da8fde20b8716d5d5cbfb28cf42b49e5&
11:55:34*xtr00 quit (Read error: Connection reset by peer)
12:06:48*beholders_eye joined #nim
12:17:11FromDiscord<gesee37> In reply to @toma400 "A `var` but without": Then it's probably just that Nim doesn't interpret `log` as `static[Log]` because it's neither a const nor `{.compileTime.}` `var`
12:17:25FromDiscord<gesee37> (edit) "In reply to @toma400 "A `var` but without": Then it's probably just that Nim doesn't interpret `log` as `static[Log]` because it's neither a const nor ... `{.compileTime.}`" added "a"
12:37:29FromDiscord<TӨMΛ ☠> How one can provide argument to macro then? Putting pure type instead of `static[Log]` provides NimNode, so docs suggested doing `static[]` as working differently (?) in Nim↵I need Log to be editable on runtime :/
12:37:42FromDiscord<TӨMΛ ☠> (edit) "runtime" => "runtime, so it can't be evaluated on compilation"
13:33:51*acidsys quit (Ping timeout: 242 seconds)
13:34:59*acidsys joined #nim
13:39:13FromDiscord<mratsim> In reply to @toma400 "A `var` but without": a var that is not {.compiletime.} is not static param. Static is for compile-time values only
13:39:58FromDiscord<mratsim> In reply to @toma400 "How one can provide": remove the static.
13:46:15*xtr00 joined #nim
13:56:21FromDiscord<tempestro> In reply to @viiper_dev "Hello, I'm new on": hello, not an expert, but nim doesn't really have any stable working language server atm
13:56:46FromDiscord<viiper_dev> oh ok I supposed that it had one lol
14:10:29*beholders_eye quit (Ping timeout: 270 seconds)
14:27:53FromDiscord<mratsim> In reply to @viiper_dev "oh ok I supposed": it does have one and it's being worked on. But historically the nimsuggest / langserver story has been burning CPU cycles with complex codebases with macros and lot of compiletime evaluation stuff
14:28:39FromDiscord<mratsim> In reply to @viiper_dev "Hello, I'm new on": Might have better luck in #tooling cc @jmgomez
14:29:28FromDiscord<viiper_dev> In reply to @mratsim "it does have one": segfault on `echo("Hello World")` lol
14:31:55FromDiscord<mratsim> In reply to @viiper_dev "segfault on `echo("Hello World")`": ¯\\_(ツ)\_/¯
14:40:41*beholders_eye joined #nim
15:02:04FromDiscord<TӨMΛ ☠> sent a code paste, see https://discordapp.com/channels/371759389889003530/371759389889003532/1567916911742951588
15:02:42FromDiscord<TӨMΛ ☠> `<-` in my original code, I changed it to `|:` but the error remains the same
15:03:45FromDiscord<TӨMΛ ☠> Like I can't do any operations on types within macro if I don't use static
15:12:54*acidsys quit (Ping timeout: 245 seconds)
15:16:15*acidsys joined #nim
15:56:39FromDiscord<gesee37> In reply to @toma400 "This then yields another": You can use `static`
15:57:08FromDiscord<gesee37> Just that the `log` object you pass to the macro should be known a compile time
15:57:47FromDiscord<gesee37> And to do so you have to put it in a `const` or some compile-time var
16:03:31*beholders_eye quit (Ping timeout: 253 seconds)
16:07:34FromDiscord<TӨMΛ ☠> Would that let me edit its fields etc.? Also some of its contents depend on runtime read of the files 😔
16:08:06FromDiscord<TӨMΛ ☠> (edit) "Would that let me edit its fields etc.? Also some of its contents depend on runtime read of the files 😔 ... " added "(though if I could edit object's fields, I could supply it later I guess)"
17:32:12*KawaiiSelbst quit (Remote host closed the connection)
17:32:58*KawaiiSelbst joined #nim
17:33:16*KawaiiSelbst quit (Remote host closed the connection)
18:24:01*iwuvmika quit (Ping timeout: 244 seconds)
18:27:08*iwuvmika joined #nim
18:40:07*iwuvmika quit (Ping timeout: 241 seconds)
19:01:27*iwuvmika joined #nim
19:52:29*xet7 joined #nim
19:56:52FromDiscord<gesee37> In reply to @toma400 "Would that let me": Sad↵You have to make a choice↵Either it exist in macro and hardly at runtime either ot exost at runtime but is not usable in macro
20:18:18*Mister_Magister quit (Ping timeout: 263 seconds)
20:32:52*Mister_Magister joined #nim
20:39:52*xet7 quit (Ping timeout: 245 seconds)
20:45:10*om3ga quit (Ping timeout: 248 seconds)
20:51:24*xet7 joined #nim
20:52:40*om3ga joined #nim
21:10:55*xet7 quit (Ping timeout: 254 seconds)
21:27:33*Mister_Magister_ joined #nim
21:28:57*Mister_Magister quit (Ping timeout: 274 seconds)
21:30:56*Mister_Magister_ is now known as Mister_Magister
21:36:36*xet7 joined #nim
22:16:30*xtr00 quit (Read error: Connection reset by peer)
22:23:54*iwuvmika quit (Ping timeout: 252 seconds)
22:34:48*xet7_ joined #nim
22:35:06*xet7_ quit (Remote host closed the connection)
22:35:17*xet7 quit (Quit: Leaving)
22:35:46*xet7 joined #nim
22:45:07*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
22:49:51*Lord_Nightmare joined #nim