Re: [go-nuts] Why would Go not be able put floats in registers without loss of precision?

2023-03-02 Thread 'Grant Seltzer Richman' via golang-nuts
On Thu, Mar 2, 2023 at 12:07 PM Ian Lance Taylor wrote: > > On Thu, Mar 2, 2023 at 8:43 AM 'Grant Seltzer Richman' via golang-nuts > wrote: > > > > So you're saying this should never happen on arm64? That would make sense > > but i'm having trouble finding the float64 values in registers via bpf

Re: [go-nuts] Why would Go not be able put floats in registers without loss of precision?

2023-03-02 Thread Ian Lance Taylor
On Thu, Mar 2, 2023 at 8:43 AM 'Grant Seltzer Richman' via golang-nuts wrote: > > So you're saying this should never happen on arm64? That would make sense but > i'm having trouble finding the float64 values in registers via bpf. Perhaps > my issue lies in how i'm reading the raw bytes and my un

Re: [go-nuts] Why would Go not be able put floats in registers without loss of precision?

2023-03-02 Thread 'Grant Seltzer Richman' via golang-nuts
Hi Ian, So you're saying this should never happen on arm64? That would make sense but i'm having trouble finding the float64 values in registers via bpf. Perhaps my issue lies in how i'm reading the raw bytes and my understanding of ARM. Hard to give an example without just sending a whole cod

Re: [go-nuts] Why would Go not be able put floats in registers without loss of precision?

2023-03-02 Thread Ian Lance Taylor
On Thu, Mar 2, 2023 at 8:22 AM 'Grant Seltzer Richman' via golang-nuts wrote: > > I'm tracing go functions with uprobes/bpf and printing the contents of > registers/stacks. So I can see the content of registers and stack at the > entry of specified go functions. > > I'm looking at a function wit

[go-nuts] Why would Go not be able put floats in registers without loss of precision?

2023-03-02 Thread 'Grant Seltzer Richman' via golang-nuts
Hi everyone! I'm tracing go functions with uprobes/bpf and printing the contents of registers/stacks. So I can see the content of registers and stack at the entry of specified go functions. I'm looking at a function with floats as parameters, and what I notice is that sometimes Go puts these v

Re: [go-nuts] Issue implementing interface method that returns another interface

2023-03-02 Thread Rick Schubert
Thank you for the help @Axel Wagner On Tuesday, 28 February 2023 at 18:20:54 UTC Axel Wagner wrote: > You are running into this: https://go.dev/doc/faq#covariant_types > > > How could I do that? > > You probably have to write a wrapper. Or change the concrete type to > return an interface. Or te

[go-nuts] Re: heap profiling does not work on M2 MacBook air?

2023-03-02 Thread peterGo
On Thursday, March 2, 2023 at 2:03:22 AM UTC-5 Jochen Voss wrote: Hi Peter, Thanks a lot, giving the "-alloc_space" option makes all the difference! With this option, it also works for me. I wonder whether it meant to be the way that you have to give this option. Maybe something broke? In t