Re: [go-nuts] Crash using gccheckmark=1, possible GC bug?

2023-08-18 Thread ma...@eliasnaur.com
On Friday, 18 August 2023 at 05:57:38 UTC-6 Tibor Halter wrote: Thanks Ian! I have managed to strip it down to its essence, see code below. *Summary of what I'm doing* - reserve memory with make([]byte) - get pointer to underlying array - cast it to type Num - write pointer #2 into it - force

Re: [go-nuts] Finding the go command from inside a test case

2022-08-11 Thread ma...@eliasnaur.com
On Thursday, 11 August 2022 at 10:09:35 UTC+2 Jan Mercl wrote: > On Thu, Aug 11, 2022 at 9:59 AM Patrick Smith wrote: > > > To date, I've been using a recipe I found some time ago through an > Internet search (I've forgotten the source, so can't credit it): > > > > gocmd :=

Re: [go-nuts] Re: WASM Performance

2021-09-07 Thread ma...@eliasnaur.com
In my experience (Gio projects), WASM is very slow compared to native code; my investigations are part of #32591. You may find https://github.com/golang/go/issues/32591#issuecomment-517835565 relevant, because I cut out rendering to eliminate the JS<=>Go crossing overhead. It was a ~10x

[go-nuts] Re: Right way to start gomobile in IOS

2021-08-28 Thread ma...@eliasnaur.com
On Wednesday, 25 August 2021 at 22:31:31 UTC+2 Higherous wrote: > Hello all. How do I need to start my server written in Go and used in the > iOS app? > I tried as in many tutorials, just > > *ServerStartArg("8090", documentDirectory[0])* > > This starts the server, but the application

[go-nuts] Re: Is the Go png encoder performing gamma correction ?

2021-03-30 Thread ma...@eliasnaur.com
On Tuesday, 30 March 2021 at 14:19:57 UTC+2 christoph...@gmail.com wrote: > > It is unspecified in the documentation if the png encoder is performing > gamma correction. I thus assume that it is not performing gamma correction. > Is this assumption correct ? > > According to wikipedia, jpg

Re: [go-nuts] No generic, part -2

2021-03-18 Thread ma...@eliasnaur.com
On Thursday, 18 March 2021 at 13:11:33 UTC+1 Space A. wrote: > > What kind of proof would you find to be acceptable? Can you give an > example of something that I could say that you would consider to be a > good answer to that question? Thanks. > > Ian, seriously. ANY evidence please, which

[go-nuts] Re: insane idea to eliminate CGO latency

2021-03-14 Thread ma...@eliasnaur.com
On Sunday, 14 March 2021 at 07:57:12 UTC+1 Jason E. Aten wrote: > I was noodling about how to minimize the cost of crossing the CGO barrier from Go code into C code and back. > Then I thought, what if I look at this the other way around. > Instead of teaching the Go compiler how to better run

[go-nuts] Re: Link Go againsta a static 32 bit 3rd party library

2021-02-21 Thread ma...@eliasnaur.com
On Sunday, 21 February 2021 at 19:08:16 UTC+1 Luis Furquim wrote: > > That seems to me that when I set GOARCH=386 it disables CGO, silently > ignoring any code that references to C symbols. > > > Go disables Cgo when cross-compiling (GOARCH is different from your native GOARCH). You can

[go-nuts] Re: -mod=readonly caused go install p@version to fail

2020-12-19 Thread ma...@eliasnaur.com
Filed as https://github.com/golang/go/issues/43278 On Friday, 18 December 2020 at 20:41:47 UTC+1 ma...@eliasnaur.com wrote: > Hi, > > I have GOFLAGS=-mod=readonly in my environment to avoid unnoticed changes > to go.mod and go.sum. However, I'm getting a weird error from the new in

[go-nuts] -mod=readonly caused go install p@version to fail

2020-12-18 Thread ma...@eliasnaur.com
Hi, I have GOFLAGS=-mod=readonly in my environment to avoid unnoticed changes to go.mod and go.sum. However, I'm getting a weird error from the new in 1.16 "go install p@version" form to install a Go program: $ go version go version devel +2de7866470 Fri Dec 18 18:25:14 2020 + darwin/amd64

Re: [go-nuts] Running "go test" modifies go.mod & go.sum

2020-11-01 Thread ma...@eliasnaur.com
On Sunday, 1 November 2020 at 13:52:34 UTC+1 miki@gmail.com wrote: > I try to change the "go run" command to use "-mod=readonly", didn't help. > Drive-by comment in case you weren't aware: Go 1.16 is switching to -mod=readonly by default. The proposal and links to the implementation are in

[go-nuts] Re: Is there a gui library for Go, like Gtk+ or similar, which can be used to build statically linked executables ?

2020-08-02 Thread ma...@eliasnaur.com
On Sunday, 2 August 2020 at 23:24:20 UTC+2 jake...@gmail.com wrote: > There is currently no 'clear choice' for GUI in go. It will depend on you > needs. Some to look into: > > https://bitbucket.org/rj/goey/src/master/ > https://gioui.org/ > https://github.com/andlabs/ui >