Re: [go-nuts] BUGFIX-66: Algorithmic Puzzles in Go

2022-11-13 Thread Lawrence Ryan
So you're suggesting that a user could write code containing a race, have that code produce, say, a slice with the wrong length (by interleaving the pointer and length/capacity writes), and then use that "mixed" slice to compromise the system. I see what you're saying. If the site is running

Re: [go-nuts] Should an IPv4 address input to idna.Registration.ToASCII() return an error or not?

2022-11-13 Thread redder
I suspected this to be the case but wasn't completely sure. Thank you for confirming. Perhaps I don't understand how this function is typically used in practice, but to me it seems using Registration.ToASCII() alone is never sufficient for registerable domain name validation. In addition to

Re: [go-nuts] BUGFIX-66: Algorithmic Puzzles in Go

2022-11-13 Thread Matt Harden
Sounds fun! Go doesn't prevent race conditions and those can result in undefined behavior, so I don't think you're safe just restricting imports and limiting CPU and memory. You need to run code in a sandbox of some sort. I would look at what the Go playground does. On Fri, Nov 11, 2022, 10:47

[go-nuts] Re: Golang make coding very explicit. People should be warned !

2022-11-13 Thread Kamil Ziemian
I hope they will join Go community. sobota, 12 listopada 2022 o 04:51:10 UTC+1 mario.g...@gmail.com napisaƂ(a): > I'm about to do a presentation of Go for some coworkers. I thought it > shoul be required to warn them about explicit code ahead ;-) > > I make it this evening. > > Take it and

Re: [go-nuts] Re: Go implementation of CLP

2022-11-13 Thread Jason E. Aten
CLP looks impressive. Is there is a C API then it would probably be easy to write Go bindings to it. Since there is some kind of python integration, perhaps a C API is already there. I took a quick look but could only see C++ code; it would have to be an actual C (not C++) API for cgo to be

[go-nuts] Re: Creating c-archive that uses external symbols

2022-11-13 Thread Jason E. Aten
All go code depends on the runtime for memory and go routine management, so the runtime will always have to be included. On Wednesday, November 9, 2022 at 12:31:10 PM UTC-6 aviram...@gmail.com wrote: > Hi, > I wish to create a c-archive that contains only specific symbols, > importing on