[go-nuts] LD_PRELOAD yet again

2024-08-23 Thread Peter JIN
Hi all, A continuation of the gccgo and LD_PRELOAD discussion (search for it in golang-dev). As mentioned before, I have a bunch of LD_PRELOAD libraries written in C, and due to the static linking issue in Go, it would be difficult to use the libraries with Go programs. I have considered seve

Re: [go-nuts] [compilation|gob] Is it possible to have multiple gob encoding instances?

2024-08-23 Thread Ian Lance Taylor
On Fri, Aug 23, 2024 at 4:26 PM gavraz wrote: > > So gob has a Register function that mutates a "global" state. This implies > that a single program cannot have multiple instances with different > registrations. True. > I tried to create another module that wraps gob with its own go.mod with a

[go-nuts] [compilation|gob] Is it possible to have multiple gob encoding instances?

2024-08-23 Thread gavraz
Hey, So gob has a Register function that mutates a "global" state. This implies that a single program cannot have multiple instances with different registrations. I tried to create another module that wraps gob with its own go.mod with a different toolchain then what my program uses hoping that