<< 25-03-2025 >>

00:37:45*Jhonny2x4 quit (Quit: Jhonny2x4)
00:38:06*Jhonny2x4 joined #nim
03:09:57*rockcavera quit (Remote host closed the connection)
03:31:12FromDiscord<lainlaylie> In reply to @starkiller1493 "because I'm trying to": you can put your modules anywhere as long as your `--path`s are correct
04:02:00FromDiscord<heysokam> Is there a way to pass an argument to the internal compiler that nim calls?↵Meaning: I want to call `gcc thing myfile.output.c` when I say `nim myfile.nim --passC=thing`
04:11:29*fallback quit (Ping timeout: 260 seconds)
04:22:21FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=nJSrvSnz
04:22:39FromDiscord<heysokam> `error: unknown command: -c`
04:26:25*fallback joined #nim
04:37:47FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=KOsaXagQ
04:38:39FromDiscord<heysokam> In reply to @janakali "you can use a": that was not the question
04:39:15FromDiscord<heysokam> the question is passing an argument literally to the internal compiler, without nim f'ing with it
04:45:14FromDiscord<janakali> you can generate compile script and modify arguments directly:↵`nim c --compileOnly --genScript --nimcache:nimcache source.nim`↵then edit `nimcache/compile_source.sh` however you need
04:46:52FromDiscord<heysokam> ?
04:49:01FromDiscord<heysokam> oh, I just read the docs about that option. I guess that's one way. but that's so complex
04:49:44FromDiscord<heysokam> I'd rather recompile a wrapper binary everytime I compile my app, than export the script and modify it
04:50:50FromDiscord<heysokam> To answer my own question, it seems that the conclusion is: No, nim options are badly managed
04:51:22FromDiscord<heysokam> or badly forwarded to the internal compiler, rather
05:15:56FromDiscord<janakali> In reply to @heysokam "or badly forwarded to": I wouldn't say it's badly forwarded, nim just doesn't support every C compiler, only a few. Default one is gcc and it happens that gcc/clang require '-c' as first argument so it's hard-coded in the gcc/clang command gen part of the compiler: https://github.com/nim-lang/Nim/blob/d15705e05b166077634a6caa96808d34af1f5d5b/compiler/extccomp.nim#L83
05:20:03FromDiscord<heysokam> In reply to @janakali "I wouldn't say it's": you literally gave the counter argument with solid reasons to your own statement 😦
05:21:44FromDiscord<janakali> where? I just said that if you want to support non-standard compilers, you need to add support properly e.g. edit extccomp.nim and recompile Nim
05:21:48FromDiscord<heysokam> hard-coding a first argument, without allowing customization of it, is "badly" enough to be called badly
05:22:44FromDiscord<janakali> hard-coded for gcc/clang where it's literally required isn't so bad
05:23:00FromDiscord<heysokam> its required in `zig cc` too
05:23:19FromDiscord<janakali> zig cc is not supported
05:23:30FromDiscord<heysokam> but nim says `zig -c` if I give it `zig cc`, and complains that `"zig cc"` is not a valid path
05:23:32FromDiscord<janakali> officially atleast
05:24:11FromDiscord<heysokam> well, that was the question, which would be answered if nim did a not-bad job at dealing with compiler arguments
05:24:36FromDiscord<heysokam> because I would configure it, and not need to hack together the compiler and re-bootstrap
05:24:43FromDiscord<heysokam> that warrants the badly title
05:25:19FromDiscord<heysokam> anyway, lets stop wasting our breath on this. ty jan
05:32:09FromDiscord<lainlaylie> nice thing about open source is you can implement the features you want and PR them
05:42:36FromDiscord<heysokam> this one in particular was implemented and removed on purpose (saw the PR myself)↵But I thought I could be missing some hidden magic option, so figured I could ask
05:43:50FromDiscord<heysokam> last time I implemented a hack to get by, but I want to do things better this time
05:49:26FromDiscord<lainlaylie> are you referring to https://github.com/nim-lang/Nim/pull/14245
06:45:55FromDiscord<heysokam> it might be
06:47:54FromDiscord<heysokam> ah no, it was the one where `compileTmpl` was removed, with a comment about being bad design or something
06:55:10*cornfeedhobo quit (Quit: ZNC - https://znc.in)
06:56:26*via quit (Ping timeout: 244 seconds)
06:56:34*via joined #nim
06:58:35*cornfeedhobo joined #nim
08:26:56*redj quit (Quit: No Ping reply in 180 seconds.)
08:28:27*redj joined #nim
09:13:14*ntat joined #nim
09:57:53*ntat quit (Quit: leaving)
10:50:18FromDiscord<Robyn [She/Her]> @i_love_boys4976 Imo Nim is much easier than C++ from personal experience, but I also am very bad at writing C++ so :p↵Nim lets me prototype and develop applications fast, but the code is also quite performant, so imo you should try it and decide for yourself
10:50:57FromDiscord<Robyn [She/Her]> on Windows, as long as you don't use the bundled C compiler, you're fine
10:51:10FromDiscord<Robyn [She/Her]> The bundled C compiler tends to trigger a lot of false positives on Nim code, unfortunately
10:52:10*ntat joined #nim
10:56:36*ehmry quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
10:57:51*ehmry joined #nim
11:33:34FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=MxqhAsKq
11:40:03FromDiscord<solitudesf> no
11:40:49*ehmry quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
11:56:26*ehmry joined #nim
12:19:41FromDiscord<Robyn [She/Her]> In reply to @heysokam "If I compile/bootstrap nim": nope, you'd have to add it to the Nim compiler's `nim.cfg` yourself
12:19:52FromDiscord<Robyn [She/Her]> Even the compiler version and such is set there
12:22:35FromDiscord<heysokam> ty
12:45:27*ntat quit (Quit: leaving)
13:35:01*ntat joined #nim
14:19:39*xet7 quit (Quit: Leaving)
15:39:03FromDiscord<starkiller1493> In reply to @lainlaylie "you can put your": They're correct
15:40:34FromDiscord<starkiller1493> In reply to @nasuray "this depends on the": yeah, src is set as srcDir.↵it's this package i'm having trouble importing https://github.com/filvyb/DotNimRemoting
15:52:38FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=ufwMoDMB
15:54:06FromDiscord<nasuray> In reply to @starkiller1493 "yeah, src is set": That's because the README for it is wrong. if it wanted users to do `import DotNimReporting/.../...` then those should be at `src/DotNimReporting`
16:31:48FromDiscord<starkiller1493> In reply to @nasuray "That's because the README": Oh, that's it, thanks
18:03:37FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=NPGZmzgT
18:03:58FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=wwpeWaBP
19:52:00*fallback quit (Ping timeout: 260 seconds)
19:53:54*andreas_ quit (Quit: Konversation terminated!)
19:54:06*andreas_ joined #nim
20:19:42*fallback joined #nim
20:21:12*xet7 joined #nim
21:24:11FromDiscord<heysokam> In reply to @battery.acid.bubblegum "iirc the zigcc package": it does, but it requires nim installed↵which means you cannot bootstrap nim with it
21:30:20*ntat quit (Quit: leaving)
21:36:32*rockcavera joined #nim
22:06:26FromDiscord<Robyn [She/Her]> Ah fair
22:06:50FromDiscord<Robyn [She/Her]> Could've always shipped a powershell, sh and batch script