Re: [go-nuts] Should I always call runtime.LockOSThread() before calling C function?

2020-10-24 Thread Ian Lance Taylor
On Sat, Oct 24, 2020 at 10:30 AM ByeongJoon Gong wrote: > > I'm developing speech-to-text inference server with cpp libraries (wav2letter) > > according to runtime docs > (https://golang.org/src/runtime/proc.go?s=108905:108924#L3803), > > "A goroutine should call LockOSThread before calling OS se

[go-nuts] Does concurrency have some effect over HTTP client?

2020-10-24 Thread JuanPablo AJ
Hi, I have some doubts related to the HTTP client. I have an HTTP service that in the handler calls synchronously to another HTTP service (serviceA). (I will call it case 1). func withoutGoroutine(w http.ResponseWriter, r *http.Request) { httpGetA() _, err := w.Write([]byte(``)) if err

[go-nuts] Should I always call runtime.LockOSThread() before calling C function?

2020-10-24 Thread ByeongJoon Gong
Hi, I'm developing speech-to-text inference server with cpp libraries (wav2letter) according to runtime docs (https://golang.org/src/runtime/proc.go?s=108905:108924#L3803), "A goroutine should call LockOSThread before calling OS services or non-Go library functions that depend on per-thread s

Re: [go-nuts] Distributed go testing (running "go test" as a client)

2020-10-24 Thread Shulhan
> On 24 Oct 2020, at 22.21, Craig Silverstein wrote: > >> Client: >> FOR EACH pkg in pkgs DO >> (1) result := "go test "+ $pkg; >> (2) POST /$pkg/$result >> DONE > > As I mentioned above: we can certainly do things this way, but there's > a big performance hit to invoking `go test` repeated

Re: [go-nuts] Distributed go testing (running "go test" as a client)

2020-10-24 Thread Craig Silverstein
> Client: > FOR EACH pkg in pkgs DO > (1) result := "go test "+ $pkg; > (2) POST /$pkg/$result > DONE As I mentioned above: we can certainly do things this way, but there's a big performance hit to invoking `go test` repeatedly. To be clear, I'm not suggesting changing `go test`. My first id

Re: [go-nuts] Distributed go testing (running "go test" as a client)

2020-10-24 Thread Shulhan
> On 24 Oct 2020, at 05.57, Craig Silverstein wrote: > > As a way of distributing our go-test run across multiple machines, we are > exploring a client-server architecture. The way we'd like it to work is that > a "go test client" runs on the client machine(s), and repeatedly does the > fol

Re: [go-nuts] Any embedded scripting language for Go

2020-10-24 Thread Viktor Kojouharov
I've had success with using github.com/dop251/goja as a javascript interpreter On Thursday, October 22, 2020 at 7:00:34 PM UTC+2 Jan Mercl wrote: > In case you're on Linux and you like Tcl: > https://godoc.org/modernc.org/tcl#example-Interp-NewCommand > > On Wed, Oct 21, 2020, 07:32 Aravindhan K