News for hackers. Stuff that matters.
Re:What's new in the .NET 11 runtime by pjmlp on Tuesday November 10, 2026 @01:20PM (#50444079)
From your description you certainly weren't using AOT compilation, and forgetting about CGO.

Static linking as the only way in most platforms, we moved into other mechanisms for a reason.

In Go the only way to do plugins, without shipping everything as source code is to use microservices, the more fashionable name for multiple process with OS IPC.

Re:What's new in the .NET 11 runtime by fodkodrasz on Wednesday November 11, 2026 @03:55AM (#50451115)
I'd presume you can still do dlopen despite your binary being statically linked... but I have not expermented in the topic, I did dlopen in Linux libc, and Assembly.Load and P/Invoke in .Net (no AOT).

I wasn't using AOT, it was not something I needed/wanted, but for a TypeScript compiler it would make more sense. I only tried single file binary compilation, as I didn't want to deploy the runtimes, wanted to have them embedded to the air-gapped systems in a simple copy and runway (no installers, etc).

Re:What's new in the .NET 11 runtime by pjmlp on Wednesday November 11, 2026 @05:01AM (#50451584)
Yeah, but that beats the purpose of static linking in first place, especially if the plugins require access to the host process APIs.

Doable, but requires a bit more of extra work, and Go plugin package is basically abandoned, it was not yet been removed due to backwards compatibility.