Re: [go-nuts] strings: escape sequence translation

2021-09-06 Thread Kurtis Rader
On Mon, Sep 6, 2021 at 7:40 PM 'nadashin' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Why is the function in Go compiler that interprets escape sequences not > available in Go's standard library? > It does. See https://pkg.go.dev/strconv#Unquote. Try this hastily thrown together exam

[go-nuts] strings: escape sequence translation

2021-09-06 Thread 'nadashin' via golang-nuts
Why is the function in Go compiler that interprets escape sequences not available in Go's standard library? -- 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

Re: [go-nuts] Re: slices grow at 25% after 1024 but why 1024?

2021-09-06 Thread Arnaud Delobelle
If the growing function is currently f(x) = 2x for x < 1024 f(x) = x + x/4 otherwise (Which I haven't checked), couldn't a simple way be to use e.g. f(x) = 2xfor x < 1024 f(x) = x + x/4 + 768 otherwise Then f(1023) = 2046 f(1024) = 2048 So the function is monotonic

Re: [go-nuts] Re: slices grow at 25% after 1024 but why 1024?

2021-09-06 Thread 'Keith Randall' via golang-nuts
I don't think this is an important thing to fix, but I agree it is a bit odd. If there's a simple way to restore monotonicity we'll consider it. A similar issue: https://github.com/golang/go/issues/41239 On Sunday, September 5, 2021 at 8:59:01 AM UTC-7 jake...@gmail.com wrote: > You are 100% cor