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

2020-10-25 Thread Craig Silverstein
> But in my experimenting the overhead of calling `go test` is quite high: `go test -count 1 ; go test -count 1 ` is 50% slower than `go test -count1 `. Oops, I forgot to take parallelism into account. Once I do, it drops to 30% slower (which is still significant): % time go test ./pkg/... [

[go-nuts] Windows "syscalls" and Go pointers

2020-10-25 Thread Constantine Shablya
Hello, I wish to call some Windows functions, some of which take pointers to types which themselves contain pointers. For this purpose I intended to use golang.org/x/sys/windows/mkwinsyscall.go and not cgo; in past I have implemented a package that uses WASAPI by generating "syscall" bodies with

[go-nuts] Re: SFTPGo gained Azure Blob Storage backend support

2020-10-25 Thread ChrisLu
Hi, Nicola, Great to see the SFTPGo author is also here! Actually I was checking how to integrate FTP with SeaweedFS. It will be great to get some insight from you: 1) Really dumb question. Do people still use FTP? I have not used it myself for a long time. 2) How reliable/mature/performant

Re: [go-nuts] Better generator support

2020-10-25 Thread 'Axel Wagner' via golang-nuts
On Mon, Oct 26, 2020 at 12:29 AM Oliver Smith < oliver.sm...@superevilmegacorp.com> wrote: > This pattern/idiom is very un-golike in that it's an eyesore, and one of > the hardest things I've found to teach people new to trying to read go code. > FWIW, I definitely disagree that this is somehow "

Re: [go-nuts] Discussing the browser compatibility of WASM produced by the official Go compiler

2020-10-25 Thread srlor...@gmail.com
If it isent too much work then I would keep safari support even if it would be less performant. But Apple is forcing the usage of webkit on ios and intentionally crippling webkit at the same time. So we might just have to cut of Safari till the antitrust suits go through... On Sunday, 25 Octob

[go-nuts] Better generator support

2020-10-25 Thread Oliver Smith
Looking at how C++ has chosen to provide it's users with generators served as a bit of a wake-up call for me on how we implement them in Go. We write them backwards: ```go func getPositiveOdds(numbers []int) <-chan int { channel := make(chan int) go func () { defer close(channel)

[go-nuts] SFTPGo gained Azure Blob Storage backend support

2020-10-25 Thread Nicola Murino
Hi, I just added Azure Blob Storage backend support to SFTPGo. If you are interested in this feature you are encouraged to try it out and report any issues you encounter. You can easily test the latest SFTPGo Git revision using the "edge" or "edge-alpine" tag for the Docker image or you can do

Re: [go-nuts] Discussing the browser compatibility of WASM produced by the official Go compiler

2020-10-25 Thread Kevin Chadwick
> So please feel free to write down your thoughts and ideas! My recommendation would be less performant wasm for Safari where it is easily maintained. Otherwise drop Safari support almost out of principle. Leaving users vulnerable to script kiddie attacks by monopolising Safari engine use AND

[go-nuts] go install ./... behavior on 1.15.2

2020-10-25 Thread Benedicto Franco Jr
Hi all, I'm trying to upgrade from go 1.14.6 to 1.15.2 (soon to 1.15.3). I have a folder under $GOPATH not related to any golang project that has permissions (700) only to the owner/root user (I'm using linux/centos-8) and when I issue a go install ./... on my project root folder ($GOPATH/src/g

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

2020-10-25 Thread Tamás Gulácsi
I'd put all that C-calling code in ONE goroution, with runtime.LockOSThread, and send commands to this thread through a channel, with a receiver chan for response, too. This way only one goroutine needs LockOSThread, and only that pays the memory penalty. If it becomes the bottleneck, you can ea

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

2020-10-25 Thread ByeongJoon Gong
Thanks Ian I found out that some libraries use thread-local storage I understood that it should be called runtime.LockOSThread() in my go routine because each C function in for-loop can run on different thread I have one more question. If I called runtime.LockOSThread(), should I also call runt

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

2020-10-25 Thread Jesper Louis Andersen
On Sat, Oct 24, 2020 at 7:30 PM JuanPablo AJ wrote: > I have some doubts related to the HTTP client. > First, if you have unexplained efficiency concerns in a program, you should profile and instrument. Make the system tell you what is happening rather than making guesses as to why. With that s

[go-nuts] Discussing the browser compatibility of WASM produced by the official Go compiler

2020-10-25 Thread Ad van der Veer
There currently is an open discussion on browser compatibility for Go-based WASM that I believe could use a wider audience: https://github.com/golang/go/issues/28360. It could have a big impact on the usefulness of Go for targeting the future web (such as supporting the Safari web browser, or n