[go-nuts] Re: Which one is the latest optimization: ASM/Pure Go implementations?

2022-11-10 Thread Holloway Kean Ho
Hi Keith, > The stdlib is organized to take advantage of hardware instructions when they are available and falls back to portable Go code when they aren't. You actually answered my question == the ASM is the latest optimization direction. So the desgin sequences are always: 1. Pure software

[go-nuts] Re: checkptr reports error in lfstack_64bit.go

2022-11-10 Thread 'Keith Randall' via golang-nuts
On Thursday, November 10, 2022 at 1:59:11 PM UTC-8 David Pacheco wrote: > Hi Keith, > > Thanks for the helpful (and quick) reply! I gather you're right about not > applying checkptr to Go's own test suite. I applied your patch, tried > again, and started hitting failures in tests that were

[go-nuts] Re: Which one is the latest optimization: ASM/Pure Go implementations?

2022-11-10 Thread 'Keith Randall' via golang-nuts
I'm not sure exactly what the question is that you're asking here. "latest and right optimization direction" doesn't make any sense to me. The stdlib is organized to take advantage of hardware instructions when they are available and falls back to portable Go code when they aren't. It sounds to

[go-nuts] Re: checkptr reports error in lfstack_64bit.go

2022-11-10 Thread David Pacheco
Hi Keith, Thanks for the helpful (and quick) reply! I gather you're right about not applying checkptr to Go's own test suite. I applied your patch, tried again, and started hitting failures in tests that were written for specific past issues. These seem like false positives. Do you have

Re: [go-nuts] Create a 1GB ballast but it takes up RSS and pages are Dirty?

2022-11-10 Thread 'Michael Knyszek' via golang-nuts
That's correct. The runtime has a simple heuristic for avoiding zeroing but it's far from perfect. As a result, a ballast is inherently always going to be a little risky. This is especially true on some platforms, such as Windows, since there's no way to avoid marking the memory as committed

Re: [go-nuts] [ANN] Tool for automatic instrumentation of OpenTelemetry

2022-11-10 Thread Nikolay Dubina
Thank you! tbh, I am a bit audacious by taking `//go:instrument`. But I think if official Go toolchain starts to use `//go:instrument` or more people raise concerns, I would definitely switch to something different. Taking a note on your feedback. Will monitor for more comments about this. --

Re: [go-nuts] [ANN] Tool for automatic instrumentation of OpenTelemetry

2022-11-10 Thread 'Sean Liao' via golang-nuts
Interesting As a note, directive comments should be of the form `//toolname:directive`, meaning the `//go:` prefix should be reserved for the `go` toolchain itself. - sean On Thu, Nov 10, 2022 at 4:07 PM Nikolay Dubina wrote: > *What?* > > Tool for automatic instrumentation of OpenTelemetry

[go-nuts] [ANN] Tool for automatic instrumentation of OpenTelemetry

2022-11-10 Thread Nikolay Dubina
*What?* Tool for automatic instrumentation of OpenTelemetry Traces of all functions and methods. https://github.com/nikolaydubina/go-instrument *Why?* It is laborious to add tracing code to every function manually. The code repeats 99% of time. Other languages can either modify code or have

[go-nuts] Re: Who are the Go maintainers?

2022-11-10 Thread Alberto Donizetti
> Who are the Go maintainers? In this context, anyone who is part of the "approvers" group on the Go gerrit instance (https://go-review.googlesource.com). The group itself and the list of its members are not publicy visible, I believe. > Is this the same set of people as

Re: [go-nuts] Goroutine to thread mapping

2022-11-10 Thread Piotr Wyderski
Thank you for your answer, it is clear now. wtorek, 8 listopada 2022 o 13:38:33 UTC+1 ren...@ix.netcom.com napisaƂ(a): > To answer the rest of the question, since they are premptable they can be > resumed on any thread. Go tries to use the same thread for performance but > will issue memory