Is it possible to use Python with Go [duplicate]
Possible Duplicate:
Mixing python with a faster language for optimization in GAE
I wounder if you can use python with Go, I have just introduced myself to Go (by mistake lol, although that it exists long time ago) to Go, it feels like python, I like it, but I'm not planning to learn it because python satisfies me, I'm just wondering, is it possible to create an app on google app engine using python sdk and Go for some tasks?
I already know that they have a totally different for go
EDIT
I think i have just asked a stupid question because I have just found out that you have to com开发者_运维百科pile Go!
anyway I'll keep the question for today maybe I'll have a good answer that I'm not expecting.
You can use different languages in the same app -- however, each one in a different version. They will have access to the same datastore and memcache, however CRON and (I think) tasks will only work for the active version (because they target the main version url using a relative path). You would have to "talk" between versions using HTTP. You can also have the main app in Python and a Go or Java backend, etc.
Go is compiled, but the Go SDK do all the work for you, re-compiling the app each time you change your code. It is pretty neat and fun to try Go this way.
精彩评论