[go-nuts] Re: Quirk with width of format string like %#05x

2019-01-03 Thread moehrmann via golang-nuts
To keep backwards compatibility with go1 changing fmt to count in the 0x for the padding was discussed and abandoned in https://go-review.googlesource.com/c/go/+/22136/. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

[go-nuts] Re: built tests fail on sierra 10.12.6

2017-08-17 Thread moehrmann via golang-nuts
I filed an issue a few days ago since i had the same problem: https://github.com/golang/go/issues/21416 -- 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-nut

[go-nuts] Re: expected bahaviour for fmt.Stringer within a container in a struct?

2017-08-31 Thread moehrmann via golang-nuts
m is an unexported Field. fmt can not use interface() on the reflect values to then call String on them on anything unexported or below. This also happens if m is just interface{} and not a map: https://play.golang.org/p/ODrjW3Fslf If m is made an exported field by naming it M it works: https:/

[go-nuts] Re: instruction gen in amd64, it iseems not the best choice?

2020-08-26 Thread moehrmann via golang-nuts
As far as I am aware: A LEA with a scale of 3 does not exist on amd64. Scale can be 1,2,4,8. A LEA with 3 arguments LEAQ 4(AX)(AX*2) on many modern amd64 compatible machines will use 3 cycles instead of 2 for two simpler LEA. The newest generation of Intel CPUs seems to have gotten better again