Shared Library support?

已查看 686 次
跳至第一个未读帖子

Ev Kont

未读,
2011年3月6日 04:58:412011/3/6
收件人 golang-nuts
I've been looking for C replacement forever.

And every few months or so I keep checking Go and D to see which one
has finally gotten a full support for shared libraries. Both call
itself "systems programming language" but AFAIK both only target
executables. I can't think of a single C project I have which was an
executable - nearly all systems software is compiled as a shared
library these days (extensions to Python, nginx/apache modules, the
list goes on). Everything on a server runs in the context of some sort
of an application server process, regardless of the OS (Tomcat/JVM,
IIS/CLR, Ruby/Passenger and so on). Can't even think of a use case why
would I want an executable.

So... what are the current plans regarding shared libraries written in
Go? Specifically, I am looking to rewrite some of my C shared libs
used by other processes (Python, Postfix and nginx).

Thanks.

Ostsol

未读,
2011年3月6日 11:02:052011/3/6
收件人 golang-nuts
The last post regarding this from the Go team that I read stated that
dynamic linking/loading was possible, but being a very complicated
feature it's not even on the current roadmap. You can link to C
libraries via cgo, but that's pretty much it. Your only other choice
is to simply communicate with other processes.

-Daniel
回复全部
回复作者
转发
0 个新帖子