<< 12-12-2025 >>

01:35:14*Jjp137_ joined #nim
01:40:37*joast quit (Quit: Leaving.)
02:38:26*joast joined #nim
03:09:35*rockcavera quit (Remote host closed the connection)
07:13:18FromDiscord<lumi.ous> How do I interop std::printf from c++ to nim?
07:14:12FromDiscord<lumi.ous> C is possible. But for c++, i don't know how to do it
07:15:30FromDiscord<lumi.ous> sent a code paste, see https://play.nim-lang.org/#pasty=NzYKhhrh
07:15:38FromDiscord<lumi.ous> (edit) "https://play.nim-lang.org/#pasty=ukTIMCvL" => "https://play.nim-lang.org/#pasty=FFjsPare"
07:16:18FromDiscord<lumi.ous> But printf(@) does
07:16:30FromDiscord<lumi.ous> Why is that?
07:24:49Amun-Rause importc for either one
07:25:56Amun-Raimportcpp generates code with calling syntax like obj->method(arg)
07:27:16Amun-Rawhat you miss in this pragma is importcpp: "printf(@)"
07:28:30Amun-Rathat's why when you write importcpp only, printf "hello" results with (void)("hello".printf());
08:03:39FromDiscord<lumi.ous> Thanks, got it, why i got that error now
08:07:51Amun-Rafor the non-member access just use importc
08:08:01Amun-Raaccess → access style*
08:36:21FromDiscord<microssd.> Question: if I create a project with atlas, and I put depencies on it, shall I add those as git submodule or how do I put them on github?
08:37:07FromDiscord<microssd.> if they are submodule do they locally be just a dir?
08:45:30FromDiscord<microssd.> well... noone answers, I guess I have to try out and see what happens
08:56:13Amun-RaI never used atlas, only nimble
09:01:38FromDiscord<microssd.> hum... I think I could not put the dependencies on github and simply tell on readme to run "atlas use ... " before compiling it
09:02:43*beholders_eye joined #nim
09:11:15*TheTechRobo1 joined #nim
09:11:19*TheTechRobo quit (Ping timeout: 240 seconds)
09:11:20*TheTechRobo1 is now known as TheTechRobo
09:30:57FromDiscord<aethrvmn> Where does atlas put the projects?
09:31:07FromDiscord<aethrvmn> You can just add the folder atlas uses to .gitignore
11:24:42FromDiscord<lumi.ous> In reply to @Amun-Ra "that's why when you": How do I do the same for std::cout ?
11:40:56FromDiscord<pmunch> Urgh, why doesn't a HttpRequestError have the HTTP error status code as a field in the error type..
12:18:29Amun-Ralumi.ous: dunno, cout is so ugly I've never used it in any serious c++ code
12:31:12*oz quit (Quit: EOF)
12:32:07*ox joined #nim
12:33:15*ox quit (Client Quit)
12:33:47*ox joined #nim
12:45:17FromDiscord<lumi.ous> cool
12:55:08FromDiscord<entropydev> does hot code reloading work?
12:56:19*beholders_eye quit (Ping timeout: 260 seconds)
13:53:51*beholders_eye joined #nim
13:58:55*ox is now known as oz
14:10:55FromDiscord<saint._._.> In reply to @entropydev "does hot code reloading": For what exactly
14:11:13FromDiscord<saint._._.> There are ways to do it
14:41:52FromDiscord<lumi.ous> In reply to @saint._._. "There are ways to": --forceBuild:on would work ig
14:42:16FromDiscord<saint._._.> Oh not sure wha that does
14:42:36FromDiscord<saint._._.> The nimja code base had it sorta working but it was a bit janky
14:43:08FromDiscord<saint._._.> I just decided it’s easier to recompile always but yeah I think with nimony and IC it will be a lot better
14:43:46FromDiscord<lumi.ous> In reply to @saint._._. "Oh not sure wha": So I'm creating a cli using c++, and using nim as intermediate. So, whenever i change code in c++, it should rebuild the nim code too.
14:43:49FromDiscord<saint._._.> I think I’m not a fan of HCR with other platforms cause I end up always reloading cause I wanna be sure if what i’m doing is not working or if it’s just requiring a restart
14:44:23FromDiscord<lumi.ous> In reply to @lumi.ous "So I'm creating a": Not gonna use cmake or any other build system anymore lol
14:44:42FromDiscord<lumi.ous> Nimble is better
14:45:13FromDiscord<lumi.ous> In reply to @saint._._. "I think I’m not": Ohhh yeahhh 😔
17:09:05*beholders_eye quit (Ping timeout: 245 seconds)
17:38:07*Jjp137_ quit (Ping timeout: 264 seconds)
18:09:11*Jjp137_ joined #nim
19:22:27*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
19:25:49*Lord_Nightmare joined #nim
20:02:08FromDiscord<grumblygibson> sent a code paste, see https://play.nim-lang.org/#pasty=uphSqISI
21:14:03*Jhonny2x4 quit (Quit: Jhonny2x4)
21:14:27*Jhonny2x4 joined #nim
21:58:27FromDiscord<asviest> sent a code paste, see https://play.nim-lang.org/#pasty=UtxhiSxX
22:18:31FromDiscord<grumblygibson> sent a code paste, see https://play.nim-lang.org/#pasty=SnpizSqd
22:21:10FromDiscord<asviest> Strange, it worked before
22:44:56FromDiscord<nasuray> In reply to @grumblygibson "Where is `{.all.}` documented?": https://nim-lang.org/docs/manual_experimental.html#importing-private-symbols
22:46:42FromDiscord<grumblygibson> Thanks, that link connected to importutils and I think that's what I need to use.
22:47:56FromDiscord<grumblygibson> I believe the all pragma was only designed for surfacing top level symbols of a module, not the private fields of types of that module.
23:40:29FromDiscord<mjsdev> https://tenor.com/grVdjN9JO2G.gif
23:40:39FromDiscord<mjsdev> _destroying my entire version history for atlas_