Re: [go-nuts] clarifying Go FAQ: Is Go an object-oriented language?

2022-11-23 Thread Holloway Kean Ho
> I think the amount of hair-splitting over what is an object oriented language is reason to say it *isn't* an Object Oriented language at all. Given the FAQ header's "Is Go an object-oriented language? emphasizing that "object-oriented" is in lowercase, not the titlecase "Object-Oriented" that

Re: [go-nuts] clarifying Go FAQ: Is Go an object-oriented language?

2022-11-23 Thread Holloway Kean Ho
> If the answer to that question is "yes and no," it'd be less ambiguous to simply say, "no." And that would be a definitive way of indicating that it woul be inappropriate to apply many patterns from object oriented languages to Go -- and to encourage people to accept Go for what it is. Go doe

[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 so

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

2022-11-09 Thread Holloway Kean Ho
Hi all, To clarify, which one is latest and right optimization development direction? Example case: (floor_asm.go <--> floor_amd64.s VS floor_noasm.go) 1) https://cs.opensource.google/go/go/+/refs/tags/go1.19.2:src/math/floor_asm.go;bpv=0;bpt=0 2) https://cs.opensource.google/go/go/+/ref

[go-nuts] Unicode AzeriCase == TurkishCase?

2022-09-25 Thread Holloway Kean Ho
Hi all, Just to confirm, is the unicode special case "AzeriCase" == "TurkishCase"? Location: https://cs.opensource.google/go/go/+/go1.19.1:src/unicode/letter.go;l=64 I don't know about Turkish so help is needed just in case their charsets are different. Stumbled upon this while developing my

Re: [go-nuts] Is Go a security malware risk?

2022-08-25 Thread Holloway Kean Ho
22 at 09:54:13 UTC+1 kortschak wrote: > >> On Thu, 2022-08-25 at 01:47 -0700, Holloway Kean Ho wrote: >> > What exactly you're trying to achieve by taking a very elaborated, >> > crystal-clear, good-willed security-related article way out of its >> > c

Re: [go-nuts] Is Go a security malware risk?

2022-08-25 Thread Holloway Kean Ho
Hi, I be very blunt here: 1. What exactly you're trying to achieve by taking a very elaborated, crystal-clear, good-willed security-related article way out of its context with your thread title here and agitate some of the Go maintainers here? Why I'm asking: - AFAIK, behavior

[go-nuts] Re: what is //go:build difference from //+build?

2022-06-15 Thread Holloway Kean Ho
They are build-constraints for cross platform support. Doc: https://pkg.go.dev/cmd/go#hdr-Build_constraints I believe to-date is only using go:build. +build was for Go 1.16 and before so only use that if you plans to support legacy compiler. On Thursday, June 16, 2022 at 10:37:16 AM UTC+8 cuiw.

Re: [go-nuts] how to protect source code

2022-03-18 Thread Holloway Kean Ho
>I want to encrypt my algorithm library, is there any good way in Go. My library is used in both Windows and Linux I'm assuming you're doing it for scalable distribution since Zhaoxun already answered local development environment. In this case it makes no sense as I can still use disassembler

Re: [go-nuts] Pointer to a pointer

2022-03-10 Thread Holloway Kean Ho
HI all, > Does anyone know what the upper bound on this could be? Interesting question. I have a thought experiment theory: "LIMIT_MAX = (TOTAL_MEMORY - OTHER_SERVICES - DATA) / MBIT" Explanation: 1. Assuming you're using 64-bit OS and memory structure is aligned using 64-bit memory, your MBI