Live data from Hacker News

Cloud Functions: Go 1.11 is now a supported language

cloud.google.com

101–107 of 107 posts

Re: Cloud Functions: Go 1.11 is now a supported language

#101

Hey all - Seth from Google here. We're really excited to bring Go to Google Cloud Functions (GCF). Please try it out, give us feedback, and let us know if you have any questions!

This might be a very specific question, but any plans to include packages in the Go runtime for headless Chrome? I know it is already available in Node.js.

Re: Cloud Functions: Go 1.11 is now a supported language

#102

Hey all - Seth from Google here. We're really excited to bring Go to Google Cloud Functions (GCF). Please try it out, give us feedback, and let us know if you have any questions!

This might be a very specific question, but any plans to include packages in the Go runtime for headless Chrome? I know it is already available in Node.js.

The base set of system packages should be the same between the two runtimes.

I work at GCP and on this project.

Re: Cloud Functions: Go 1.11 is now a supported language

#103

Earlier quoted context omitted.

This is a much better solution, I think. Uploading your source code is often easier than uploading your binaries. If, for example, you have a new contributor you don't yet trust creating a cloud function in Go and you know enough Go to review the code, but it's not convenient for you to compile it yourself, you can just upload the code yourself. You can't easily review the binary.

The fact that it's easier to do things this way just shows how immature the toolchain surrounding serverless development is. It shouldn't be difficult to simulate the serverless environment on a workstation, and yet somehow that's a huge gap, even for Lambda.

Then again, what's the point of controlling your own repository of binaries if their only goal in life is to be deployed somewhere else anyway ? It's much easier to just cut the middleman.

Re: Cloud Functions: Go 1.11 is now a supported language

#104
post #74

Earlier quoted context omitted.

This is a much better solution, I think. Uploading your source code is often easier than uploading your binaries. If, for example, you have a new contributor you don't yet trust creating a cloud function in Go and you know enough Go to review the code, but it's not convenient for you to compile it yourself, you can just upload the code yourself. You can't easily review the binary.

Your code review and deployment pipeline should be all automated from day zero. Setting up a CI pays off in the first couple of days in terms of time investment and massive returns on longer term mostly for avoiding human error and confusions that ensues.

CI is a continuous integration tool. There are inherent latencies to committing, pushing, deploying to AWS, running tests. Mature development tooling, if it's not REPL-based, will at least allow a local debugger to step through the code compiled/run locally, without these remote latencies.

Both tools are necessary for fast engineering, but in different contexts.

Re: Cloud Functions: Go 1.11 is now a supported language

#105
post #93

Earlier quoted context omitted.

One thing that is not super clear from the blog post, and which may be a surpsise to some, is that Cloud Functions will require you to upload your source code. The compilation happens not on your end but on Google servers. This is probably not a surprise for folks who have been using Python or Node for cloud functions, but it is something to think about. I've been thinking of using this approach for a golang MMO game…

Like Screeps? Even more niche? :)

That looks cool.

What I'm describing is for implementing MMOs, though.

Re: Cloud Functions: Go 1.11 is now a supported language

#106

Since it's compiled (compared to Python or JS), is this faster/lighter?

Any performance difference will be similar to if you were running on any other platform.

So, if for your particular application, Go has a faster startup/cold start time than Python or Node, then yes, it'll be faster, overall.

Very difficult to speak about performance in general terms, though.

I will say that there is no kind of wrapper library or wrapper runtime like some other serverless platforms might depend on.

Re: Cloud Functions: Go 1.11 is now a supported language

#107
post #82
post #78

Earlier quoted context omitted.

His post is super unclear but I think he is concerned about someone getting their hands on his source code. In general, a compiled Go binary is not trivial to reverse engineer, so there’s some security through obscurity there.

Not 'someone'. Google.

Your secrets are not safe by embedding them in a binary. Compilation is not (necessarily, and at least so in the Go compiler's case) security...
Post reply on HN