可以使用Go来扩展Python/PHP/Perl吗?

huangapple go评论79阅读模式
英文:

Is it possible to make extensions to python/php/perl with Go?

问题

我听说Go语言像是带有通道和许多便利功能的C语言。我很少使用C语言,但当我使用它时,通常是为其他语言创建小型扩展。Go语言是否可以安全地用于创建其他语言的扩展?有人在这样做吗?

英文:

I've heard Go is like C with channels and a lot of conveniences. I do very little C, but when I do it's to make small extensions to other languages. Can Go be a safe way to create extensions in other languages? Are people doing this?

答案1

得分: 7

对于Python,有goPy:https://github.com/qur/gopy

对于Perl,有Campher:https://github.com/bradfitz/campher

对于Lua,有golua:https://github.com/afitz/golua

英文:

For Python there is goPy: https://github.com/qur/gopy

For Perl there is Campher: https://github.com/bradfitz/campher

For Lua there is golua: https://github.com/afitz/golua

答案2

得分: 1

对于PHP,有几个选项:

英文:

For PHP there are a few options:

huangapple
  • 本文由 发表于 2011年10月23日 23:18:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/7867000.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定