Go is not a virtual machine language, it's compiled to native machine code, like a C program. Each Go program does have a runtime package which provides the garbage collector to manage the programs heap, and Go programs do follow a pattern of over allocating with the expectation that the operating system will lazily fulfil that allocation when the Go program actually does come to use that memory.
It's a moot point at the moment because there is no way to share a Go program's runtime between multiple programs, but I don't think this would achieve the saving you expect compared to JITed virtual machine runtimes like nodejs. On Tuesday, 29 November 2016 18:30:09 UTC+11, Thaniyarasu Kannusamy wrote: > > thanks Dave, > > i am thinking about server less architecture with golang. > i feel that "sharing languange runtime/VM" will be next technology than > the container/kubernetes era. > already aws offering lambda service for serverless architecture. > > i know that nodejs is running in sandbox mode with event based parallel > execution. where node VM is shared for each sandbox. > so i think that node sandbox can be useful to isolate each application > scope where we can achieve 'sharing runtime' effectively. > > i am not an expert in core nodejs, so my question to you is > Is sharing "Nodejs VM" for multiple node application possible ??? > > sorry for my late reply > > Thanks > Thani > > On Tuesday, 29 November 2016 11:30:28 UTC+5:30, Dave Cheney wrote: >> >> No, this is not currently possible. >> >> If it was possible in the future, what would this let you do that you >> cannot do today? >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.