5 ms·
Static linking of Go code is a conscious design decision, not some artifact of toolchain immaturity. It will never change.
by 4ad 14y ago
Static linking of Go code is a conscious design decision, not some artifact of toolchain immaturity. It will never change.
- reddit_clone 14y agoOn a related note, using Go can one develop DLLs that can be dynamically consumed from other applications? Or you can only produce statically linked exe's?
- zimbatm 14y agoOnly exes at the time being. Go is the main loop and needs to have control of the execution flow for concurrency. If you think of it, DLLs are a bit like separate programs that you communicate with trough the C call stack instead of another structured protocol. In Go you would spawn different processes and use something like protobuf to exchange messages.
- pjmlp 14y agoYou can make use of dynamic linking with gccgo, as far as I am aware.