!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

415 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.139 Servers

Load older messages


SenderMessageTime
28 Jul 2025
@raitobezarius:matrix.orgraitobezariusdlopening it with two level namespaces does not run the static initializers21:08:40
@raitobezarius:matrix.orgraitobezariusi cannot see logs, i cannot register store21:08:45
@raitobezarius:matrix.orgraitobezariusthe plugin is literally useless21:08:49
@jade_:matrix.orgjade_you shouldn't need/want static initializers is the thing21:09:01
@jade_:matrix.orgjade_we are trying to kill those and nix_plugin_entry is guaranteed to be called21:09:11
@jade_:matrix.orgjade_so anything that you'd like to statically initialize can be initialized with that21:10:17
@raitobezarius:matrix.orgraitobezariussure but they're not fully killed yet21:11:06
@jade_:matrix.orgjade_yes, and the non killed ones can still be bypassed early21:11:20
@jade_:matrix.orgjade_ at the very least by new RegisterFoo() 21:11:45
@jade_:matrix.orgjade_are you saying that dlsym is busted? that's the only way I understand what you mean here21:14:47
@raitobezarius:matrix.orgraitobezariusdlsym works21:14:54
@raitobezarius:matrix.orgraitobezariusi get the proper handle to _nix_plugin_entry21:15:02
@jade_:matrix.orgjade_then you shouldn't need the static initializer right?21:15:02
@raitobezarius:matrix.orgraitobezariuswhat init sequence do we offer for plugin?21:15:19
@raitobezarius:matrix.orgraitobezariushow do I init the logger?21:15:23
@jade_:matrix.orgjade_ you shouldn't need to? you use the one from nix::logger 21:15:39
@jade_:matrix.orgjade_and let the rest of the nix deal wtih it21:15:46
@raitobezarius:matrix.orgraitobezariusok, it's busted21:15:48
@raitobezarius:matrix.orgraitobezariususing Nix's logger doesn't work21:15:58
@jade_:matrix.orgjade_O_o21:16:01
@raitobezarius:matrix.orgraitobezarius extern Logger* logger (I'm talking about this one) 21:16:09
@jade_:matrix.orgjade_ weird that our code isnt fucked 21:16:15
@raitobezarius:matrix.orgraitobezariusyou can do the very simple experience by checking out the mTLS CL21:16:19
@raitobezarius:matrix.orgraitobezariusremove flat_namespace21:16:20
@raitobezarius:matrix.orgraitobezariusadd the plugin21:16:22
@raitobezarius:matrix.orgraitobezarius and sprinkle printInfo("hello world") 21:16:29
@raitobezarius:matrix.orgraitobezariusand observe nothing happens21:16:32
@jade_:matrix.orgjade_nothing happens is a very weird outcome21:16:43
@jade_:matrix.orgjade_i would hope it to crash instead21:16:57
@raitobezarius:matrix.orgraitobezariusmaybe something something min macos version idk21:17:07

Show newer messages


Back to Room ListRoom Version: 10