Re: [go-nuts] Re: Running Go binary on a 56 core VM

2017-09-03 Thread Linker
More File-IO, more GOMAXPROCS. On Mon, Sep 4, 2017 at 3:44 AM, rlh via golang-nuts < golang-nuts@googlegroups.com> wrote: > Without building and measuring it is impossible to know which of these > approaches, or even a third one where you simply run a single instance, is > best for your

[go-nuts] golang gc stop the world how to stop cpu busy goroutine?

2017-09-03 Thread 刘桂祥
when have one or two cpu busy goroutine in my server (example for loop empty), the gc stop the world how to stop the goroutine ? -- 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,

Re: [go-nuts] Splitting CamelCaseWords in Go

2017-09-03 Thread Tong Sun
On Sun, Sep 3, 2017 at 6:05 PM, Seth Bunce wrote: > https://play.golang.org/p/-FM2wC22A0 > Thanks a lot Seth! FTR, I archived it in my personal treasure chest at https://github.com/suntong/lang/blob/master/lang/Go/src/text/CamelCaseSplit.go with a little bit enhancement. -- You received this

[go-nuts] Same code different result?

2017-09-03 Thread Tong Sun
Hi, I've bumped into another "same code different result" problem -- my `go test` runs fine locally but on Travis, https://travis-ci.org/go-dedup/fsimilar/builds/271540570 it is broken. I've verified at least four or five times that *all* my local code have been pushed to github. Now I've

Re: [go-nuts] Splitting CamelCaseWords in Go

2017-09-03 Thread Seth Bunce
https://play.golang.org/p/-FM2wC22A0 My inclination would be to go for an approach like this. Then make a table-driven unit test and throw everything you can think of at it and iterate until you get what you need. On Sun, Sep 3, 2017 at 2:23 PM, Tong Sun wrote: > Hi, > >

[go-nuts] Best way to launch/monitor several go process in production

2017-09-03 Thread emartinez1847
Hello, I am looking for the 'best' way to launch and monitor several go processes. Doing it with just 1 is easy enough, using monit or systemctl should do the trick, however since our app takes a while to start, we want to keep a few proceses running at all times so we don't have downtime

[go-nuts] Re: Running Go binary on a 56 core VM

2017-09-03 Thread rlh via golang-nuts
Without building and measuring it is impossible to know which of these approaches, or even a third one where you simply run a single instance, is best for your application. Each approach has upsides and downsides. The GC believes GOMAXPROCS and will uses as much CPU as it believes is

[go-nuts] Question about plugins & types

2017-09-03 Thread Miki Tebeka
Hi, Assume I have a plugin: package main func Add(x, y int) int { return x + y } func main() {} I'd like to make sure that plugin functions are from certain type. So I wrote (ignore panics, they are for brevity): Enter code here...package main import ( "fmt" "plugin" ) type MathFunc

[go-nuts] Hosting go code in Visual Studio Team Services

2017-09-03 Thread Sotirios Mantziaris
Hi, has someone successfully used visual studio team services in a go project with support of the go tooling (go get, glide-dep etc)? thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving