On 11/12/2013 23:07,
mp...@case.edu wrote:
> Hi everyone,
>
> I apologize for bursting in here and asking a potentially naive
> question,
> but this Google group seems to be the only place for discussion
> concerning
> the go language.
No need to apologise, this is an entirely appropriate question for this
list.
Without wishing to speak to anyone else's intentions, it is my
understanding that whilst there is currently no active pursuit of
supporting such usage - neither is there any animosity towards such
usage. Whilst there are a number of packages around for integration
with high-level languages they do currently focus more on Go being the
primary.
Whilst there is nothing in the language specification that makes it
impossible to write libraries to be used by other languages in Go, it is
certainly not something that is currently easy. I have written an
experimental version of my Go Python bindings that will allow you to
write Python extension modules in Go (
http://gopy.qur.me/extensions/),
but it only works with the gccgo toolchain (due to lack of .so support
in the gc toolchain) and there is plenty of icky low-level hackery in
there.
> Any guidance and expertise you can offer is greatly appreciated!
AFAIK, there isn't currently any production ready way to use Go as a
secondary language for high-level languages in the way that you can with
C. I think it may take a while, as there is less incentive to want to
be able to write the bulk of your code in another language than you have
when writing C ... ;) There is also the fact that generally the reason
that a high-level language has C bindings available is that it is itself
implemented in C, so perhaps someone will write a future popular high
level language in Go, and then it would be natural for the low-level
extensions to that language to be written in Go.
I personally would like to have the ability to write production ready
modules for Python in Go, but unless I was to try and find a $DAYJOB
that would be willing to fund it I don't have the time to do more than
poke at it now and then myself.
> -Matthew
--
Julian