| 28 Jul 2025 |
jade_ | we are trying to kill those and nix_plugin_entry is guaranteed to be called | 21:09:11 |
jade_ | so anything that you'd like to statically initialize can be initialized with that | 21:10:17 |
raitobezarius | sure but they're not fully killed yet | 21:11:06 |
jade_ | yes, and the non killed ones can still be bypassed early | 21:11:20 |
jade_ | at the very least by new RegisterFoo() | 21:11:45 |
jade_ | are you saying that dlsym is busted? that's the only way I understand what you mean here | 21:14:47 |
raitobezarius | dlsym works | 21:14:54 |
raitobezarius | i get the proper handle to _nix_plugin_entry | 21:15:02 |
jade_ | then you shouldn't need the static initializer right? | 21:15:02 |
raitobezarius | what init sequence do we offer for plugin? | 21:15:19 |
raitobezarius | how do I init the logger? | 21:15:23 |
jade_ | you shouldn't need to? you use the one from nix::logger | 21:15:39 |
jade_ | and let the rest of the nix deal wtih it | 21:15:46 |
raitobezarius | ok, it's busted | 21:15:48 |
raitobezarius | using Nix's logger doesn't work | 21:15:58 |
jade_ | O_o | 21:16:01 |
raitobezarius | extern Logger* logger (I'm talking about this one) | 21:16:09 |
jade_ | weird that our code isnt fucked | 21:16:15 |
raitobezarius | you can do the very simple experience by checking out the mTLS CL | 21:16:19 |
raitobezarius | remove flat_namespace | 21:16:20 |
raitobezarius | add the plugin | 21:16:22 |
raitobezarius | and sprinkle printInfo("hello world") | 21:16:29 |
raitobezarius | and observe nothing happens | 21:16:32 |
jade_ | nothing happens is a very weird outcome | 21:16:43 |
jade_ | i would hope it to crash instead | 21:16:57 |
raitobezarius | maybe something something min macos version idk | 21:17:07 |
raitobezarius | but also | 21:17:15 |
raitobezarius | maybe if ((level) <= nix::verbosity) | 21:17:19 |
raitobezarius | idk | 21:17:20 |
raitobezarius | maybe it exec and just lives its best life | 21:17:26 |