Re: [go-nuts] Odd error message - expression in go must be function call

2020-04-23 Thread Ian Lance Taylor
On Thu, Apr 23, 2020 at 9:35 AM Matthew Zimmerman wrote: > > Reported, thank you! > > https://github.com/golang/go/issues/38624 Thanks! Ian On Thu, Apr 23, 2020 at 12:16 PM Ian Lance Taylor wrote: >> >> On Thu, Apr 23, 2020 at 7:30 AM Matthew Zimmerman >> wrote: >> > >> > I was really conf

Re: [go-nuts] Why isn't there "number plus" postfix syntax for more than or equal?

2020-04-23 Thread anon notmyfault64
In this context, this number plus syntax short-circuit more than or equal, so a 99+ is same as a >= 99 On Thursday, April 23, 2020 at 11:43:32 PM UTC+7, Ian Lance Taylor wrote: > > On Thu, Apr 23, 2020 at 8:48 AM anon notmyfault64 > wrote: > > > > Many times outside programming we use "nu

Re: [go-nuts] Why isn't there "number plus" postfix syntax for more than or equal?

2020-04-23 Thread Rob Pike
if r == 13 despiteallobjections { ... } -rob On Fri, Apr 24, 2020 at 8:04 AM 'Dan Kortschak' via golang-nuts < golang-nuts@googlegroups.com> wrote: > I look forward to the addition of the definition of "in a handwavy > sense" to the spec. > > On Thu, 2020-04-23 at 11:41 -0700, Michael Jones wro

[go-nuts] sshagentca : project code review/security audit advice

2020-04-23 Thread roryclw
I've written my second(!) go project, an ssh certificate authority for forwarded ssh connections. https://github.com/rorycl/sshagentca The idea for the project came from Peter Moody's posting about uber's pam module for ssh forwarded agents with certificates: https://medium.com/uber-security-pr

Re: [go-nuts] Why isn't there "number plus" postfix syntax for more than or equal?

2020-04-23 Thread 'Dan Kortschak' via golang-nuts
I look forward to the addition of the definition of "in a handwavy sense" to the spec. On Thu, 2020-04-23 at 11:41 -0700, Michael Jones wrote: > You could extend the notation: > > If r 13+- { > // if r is close to 13, in a handwavy sense > : > } > > On Thu, Apr 23, 2020 at 9:43 AM Ian Lance

Re: [go-nuts] pprof samples

2020-04-23 Thread asaxena via golang-nuts
The program is indeed IO and network bound so it does seem the CPU usage is minimal. Thanks for all the pointers for tracing and analyzing !! On Wednesday, April 22, 2020 at 2:45:57 PM UTC-7, Robert Engels wrote: > > pprof is not only cpu profiling - it is the same tracing infrastructure > use

Re: [go-nuts] Why isn't there "number plus" postfix syntax for more than or equal?

2020-04-23 Thread Michael Jones
You could extend the notation: If r 13+- { // if r is close to 13, in a handwavy sense : } On Thu, Apr 23, 2020 at 9:43 AM Ian Lance Taylor wrote: > On Thu, Apr 23, 2020 at 8:48 AM anon notmyfault64 > wrote: > > > > Many times outside programming we use "number plus" postfix syntax to > de

Re: [go-nuts] Why isn't there "number plus" postfix syntax for more than or equal?

2020-04-23 Thread Ian Lance Taylor
On Thu, Apr 23, 2020 at 8:48 AM anon notmyfault64 wrote: > > Many times outside programming we use "number plus" postfix syntax to denote > more than or equal, for example: > > a 99+ > > But why isn't there such syntax above in all programming languages, including > Go? That is, why does followi

[go-nuts] Re: gomobile icon, storage, startup warning

2020-04-23 Thread hermanbergwerf
For the icons I found out about `assets/icon.png` by looking at the source code, unfortunately it has a small side-effect for me (https://github.com/golang/go/issues/38615) On Thursday, 23 April 2020 17:51:35 UTC+2, Herman Bergwerf wrote: > > I want to build a simple game about permutations, and g

Re: [go-nuts] gomobile icon, storage, startup warning

2020-04-23 Thread Herman Bergwerf
For the icons I found out about `assets/icon.png` by looking at the source code, unfortunately it has a small side-effect for me (https://github.com/golang/go/issues/38615) On Thu, 23 Apr 2020 at 17:51, wrote: > > I want to build a simple game about permutations, and gomobile native looks > like

Re: [go-nuts] Odd error message - expression in go must be function call

2020-04-23 Thread Matthew Zimmerman
Reported, thank you! https://github.com/golang/go/issues/38624 On Thu, Apr 23, 2020 at 12:16 PM Ian Lance Taylor wrote: > On Thu, Apr 23, 2020 at 7:30 AM Matthew Zimmerman > wrote: > > > > I was really confused by this error for ~10 minutes or so. Usually when > this happens to me, I missed a

Re: [go-nuts] Odd error message - expression in go must be function call

2020-04-23 Thread Ian Lance Taylor
On Thu, Apr 23, 2020 at 7:30 AM Matthew Zimmerman wrote: > > I was really confused by this error for ~10 minutes or so. Usually when this > happens to me, I missed a closing/opening brace somewhere or I forgot to add > () after my anonymous function declaration to actually run it. > > This time

Re: [go-nuts] Missing math.MinFloat64

2020-04-23 Thread Ian Lance Taylor
On Thu, Apr 23, 2020 at 8:48 AM Amarjeet Anand wrote: > > Like math.MaxFloat64, Why don't math.MinFloat64 exist? Unlike integers, for floating point numbers MinFloat64 == - MaxFloat64. So adding MinFloat64 doesn't seem necessary. Of course this assumes that you are aware of that fact. Maybe we

[go-nuts] Missing math.MinFloat64

2020-04-23 Thread Amarjeet Anand
Hi Like *math.MaxFloat64*, Why don't *math.MinFloat64* exist? -- 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-nuts+unsubscr...@googlegroups.com. To view t

[go-nuts] gomobile icon, storage, startup warning

2020-04-23 Thread hermanbergwerf
I want to build a simple game about permutations, and gomobile native looks like a relief! (I resent having 10 nested folders and 4 configuration files just to get started). I would love to build and publish an small game in Go :) I have a few questions, perhaps someone here can help me with th

[go-nuts] Why isn't there "number plus" postfix syntax for more than or equal?

2020-04-23 Thread anon notmyfault64
Hello, Many times outside programming we use "number plus" postfix syntax to denote more than or equal, for example: a 99+ But why isn't there such syntax above in all programming languages, including Go? That is, why does following code not compile with invalid syntax error? var r int = 18

Re: [go-nuts] Odd error message - expression in go must be function call

2020-04-23 Thread Mhd Shulhan
Pada tanggal Kam, 23 Apr 2020 21.30, Matthew Zimmerman menulis: > I was really confused by this error for ~10 minutes or so. Usually when > this happens to me, I missed a closing/opening brace somewhere or I forgot > to add () after my anonymous function declaration to actually run it. > > This

[go-nuts] Odd error message - expression in go must be function call

2020-04-23 Thread Matthew Zimmerman
I was really confused by this error for ~10 minutes or so. Usually when this happens to me, I missed a closing/opening brace somewhere or I forgot to add () after my anonymous function declaration to actually run it. This time though all the braces were lining up and I had () there appropriately.