| 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:18 | FromDiscord | <lumi.ous> How do I interop std::printf from c++ to nim? |
| 07:14:12 | FromDiscord | <lumi.ous> C is possible. But for c++, i don't know how to do it |
| 07:15:30 | FromDiscord | <lumi.ous> sent a code paste, see https://play.nim-lang.org/#pasty=NzYKhhrh |
| 07:15:38 | FromDiscord | <lumi.ous> (edit) "https://play.nim-lang.org/#pasty=ukTIMCvL" => "https://play.nim-lang.org/#pasty=FFjsPare" |
| 07:16:18 | FromDiscord | <lumi.ous> But printf(@) does |
| 07:16:30 | FromDiscord | <lumi.ous> Why is that? |
| 07:24:49 | Amun-Ra | use importc for either one |
| 07:25:56 | Amun-Ra | importcpp generates code with calling syntax like obj->method(arg) |
| 07:27:16 | Amun-Ra | what you miss in this pragma is importcpp: "printf(@)" |
| 07:28:30 | Amun-Ra | that's why when you write importcpp only, printf "hello" results with (void)("hello".printf()); |
| 08:03:39 | FromDiscord | <lumi.ous> Thanks, got it, why i got that error now |
| 08:07:51 | Amun-Ra | for the non-member access just use importc |
| 08:08:01 | Amun-Ra | access → access style* |
| 08:36:21 | FromDiscord | <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:07 | FromDiscord | <microssd.> if they are submodule do they locally be just a dir? |
| 08:45:30 | FromDiscord | <microssd.> well... noone answers, I guess I have to try out and see what happens |
| 08:56:13 | Amun-Ra | I never used atlas, only nimble |
| 09:01:38 | FromDiscord | <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:57 | FromDiscord | <aethrvmn> Where does atlas put the projects? |
| 09:31:07 | FromDiscord | <aethrvmn> You can just add the folder atlas uses to .gitignore |
| 11:24:42 | FromDiscord | <lumi.ous> In reply to @Amun-Ra "that's why when you": How do I do the same for std::cout ? |
| 11:40:56 | FromDiscord | <pmunch> Urgh, why doesn't a HttpRequestError have the HTTP error status code as a field in the error type.. |
| 12:18:29 | Amun-Ra | lumi.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:17 | FromDiscord | <lumi.ous> cool |
| 12:55:08 | FromDiscord | <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:55 | FromDiscord | <saint._._.> In reply to @entropydev "does hot code reloading": For what exactly |
| 14:11:13 | FromDiscord | <saint._._.> There are ways to do it |
| 14:41:52 | FromDiscord | <lumi.ous> In reply to @saint._._. "There are ways to": --forceBuild:on would work ig |
| 14:42:16 | FromDiscord | <saint._._.> Oh not sure wha that does |
| 14:42:36 | FromDiscord | <saint._._.> The nimja code base had it sorta working but it was a bit janky |
| 14:43:08 | FromDiscord | <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:46 | FromDiscord | <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:49 | FromDiscord | <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:23 | FromDiscord | <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:42 | FromDiscord | <lumi.ous> Nimble is better |
| 14:45:13 | FromDiscord | <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:08 | FromDiscord | <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:27 | FromDiscord | <asviest> sent a code paste, see https://play.nim-lang.org/#pasty=UtxhiSxX |
| 22:18:31 | FromDiscord | <grumblygibson> sent a code paste, see https://play.nim-lang.org/#pasty=SnpizSqd |
| 22:21:10 | FromDiscord | <asviest> Strange, it worked before |
| 22:44:56 | FromDiscord | <nasuray> In reply to @grumblygibson "Where is `{.all.}` documented?": https://nim-lang.org/docs/manual_experimental.html#importing-private-symbols |
| 22:46:42 | FromDiscord | <grumblygibson> Thanks, that link connected to importutils and I think that's what I need to use. |
| 22:47:56 | FromDiscord | <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:29 | FromDiscord | <mjsdev> https://tenor.com/grVdjN9JO2G.gif |
| 23:40:39 | FromDiscord | <mjsdev> _destroying my entire version history for atlas_ |