Re: [go-nuts] go test -bench -benchmem, allocs/op mystery

2016-12-01 Thread Erwin
> The build flag -gcflags=-m will cause the compiler to report which > allocations escape to the heap. > > Give that a try and see what it tells you. It doesn't report any escape info for that function. I did figure it out by outcommenting parts of the function, it turns out that scratch := f32s

Re: [go-nuts] developing local packages with modules

2020-06-07 Thread Erwin
witching-to-go-modules/ > > Best regards, > > Michael > > > > On 7. Jun 2020, at 15:20, Erwin Driessens wrote: > > > > Hello people > > i have always found modules very scary and complicated but now there > seems to be no way round any longer. > > I

Re: [go-nuts] Re: developing local packages with modules

2020-06-07 Thread Erwin
opment used to be so beautifully simple! On Sun, 7 Jun 2020 at 16:07, Brian Candler wrote: > On Sunday, 7 June 2020 14:20:40 UTC+1, Erwin Driessens wrote: >> >> >> However, my next quest was to import the hello/morestrings package in >> another module and use it th

[go-nuts] Re: gomobile: what's the right way to make widgets?

2018-10-29 Thread Erwin Driessens
i wish the the blender GUI would be made stand-alone, ready to port to Go... so clean and fast! -- 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+unsub

Re: [go-nuts] Re: Float32 math and slice arithmetics using SIMD

2016-10-27 Thread Erwin Driessens
I'd love to see SIMD intrinsics in the Go compiler(s), even if it would mean separate packages for all the architectures. I'm not experienced enough to tell how far one could get with designing a cross-platform set of intrinsics instructions? Using the hardware when it is available, falling bac

[go-nuts] go test -bench -benchmem, allocs/op mystery

2016-11-30 Thread Erwin Driessens
When I 'go test -bench . -benchmem', I sometimes see small numbers reported in allocs/op that I can't spot in the code for the function that was benchmarked. For example, the following function: func Mul_c(m1, m2, m3 *Matrix) { // validate r1, c1 := m1.Dim() r2, c2 := m2.Dim() r3, c3 := m3.Dim(

[go-nuts] Re: Runtime code generation?

2017-05-10 Thread Erwin Driessens
You could let your application generate valid Go source, call the compiler to build a plugin, and load that plugin. I haven't tried that yet, but i think it should work. Downside is that you need to Go tools on the target machine for it to work. I don't know how many times you have to generate

[go-nuts] Re: A spinning cube demo using Vulkan API and Go, the project status

2017-06-01 Thread Erwin Driessens
bravo! -- 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.

[go-nuts] developing local packages with modules

2020-06-07 Thread Erwin Driessens
Hello people i have always found modules very scary and complicated but now there seems to be no way round any longer. I have a lot of packages that i do now want to put in repositories. I want them to be locally accessible, without internet access. Everything always worked great for me with the

[go-nuts] Re: developing local packages with modules

2020-06-07 Thread Erwin Driessens
should be: "i can't get it to work", instead of "i can get it to work", sadly enough On Sunday, June 7, 2020 at 3:20:40 PM UTC+2, Erwin Driessens wrote: > > Hello people > i have always found modules very scary and complicated but now there seems > to be no