Re: [go-nuts] Re: Go 1.19 average goroutine stack

2022-08-18 Thread T L
On Thu, Aug 18, 2022 at 5:11 PM Jan Mercl <0xj...@gmail.com> wrote: > On Thu, Aug 18, 2022 at 10:34 AM T L wrote: > > > When I investigate something, I ask questions in communities firstly, to > save time. > > To save your time at the expense of more time wasted by others. Such > an approach is

Re: [go-nuts] Re: Go 1.19 average goroutine stack

2022-08-18 Thread Jan Mercl
On Thu, Aug 18, 2022 at 10:34 AM T L wrote: > When I investigate something, I ask questions in communities firstly, to save > time. To save your time at the expense of more time wasted by others. Such an approach is rightfully frowned upon. Doing your own research first, asking about things

[go-nuts] Call getg() in mcall()

2022-08-18 Thread wang jun
If i call getg() in mcall(), what kind of gorouting would I have? g0 or normal g? -- 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

[go-nuts] Why declaring multiple variable at once for same type feature exists in Golang?

2022-08-18 Thread Yasser Sinjab
Hi, I'm just wondering why this feature is in Golang: such as var x, y, z string Thanks, Yasser -- 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

Re: [go-nuts] gofmt 1.19 reformats comments in a way which breaks go-swagger

2022-08-18 Thread Ivan Porto Carrero
I think that indenting everything should work, we are detecting the yaml marker, collect all the lines in the comment until we see a thing that starts with swagger: or the comment block ends and then proceed to uncomment and remove the indentation based on the first line after the --- marker.

[go-nuts] Re: Why declaring multiple variable at once for same type feature exists in Golang?

2022-08-18 Thread Brian Candler
What exactly is it about that expression that you don't think seems right? It's a shortcut for: var x string var y string var z string I think that saving typing is a good feature. Or do you object to the feature of being able to declare variables at all? On Thursday, 18 August 2022 at

[go-nuts] Re: Go 1.19 average goroutine stack

2022-08-18 Thread 'Keith Randall' via golang-nuts
On Wednesday, August 17, 2022 at 8:18:35 PM UTC-7 tapi...@gmail.com wrote: > I'm a bit wondering about how the following case will be affected by the > change: > 1. Initially, there is one goroutine, which stack size is large at the > time of a GC process. > 2. After the GC process, a large

[go-nuts] Re: Go generics and bloating

2022-08-18 Thread 'Keith Randall' via golang-nuts
On Tuesday, August 16, 2022 at 1:03:22 PM UTC-7 guil.l...@gmail.com wrote: > Hello, > > I remember a paper about Go Generics but I cannot find it again. > It was a scientist paper (with a lot of maths far beyond my understanding > ^^). > Title was something like "Lightweigh generics for Go" or

[go-nuts] Re: Why declaring multiple variable at once for same type feature exists in Golang?

2022-08-18 Thread Brian Candler
There's also a lot of good background about the language design choices in the FAQ: https://go.dev/doc/faq Go derives much of its syntax from C, and the FAQ describes some of the differences from C. But note that even C allows you to do the same: int a, b, c; char *x, *y, *z; On Thursday, 18

[go-nuts] Re: Java to Go converter - 2

2022-08-18 Thread Oliveira Jose Carlos de - ICTS BSA
Hi, I´m looking foward to find a Tool able to convert any Java Source code Project to a GoLang Project. I know that are Programming languages created for different propposal. Java is OOL and goLang is different. So convertion is possible, but I think is very complex. For me is much more easy

[go-nuts] Crypto functionality in wolfSSL's goLang wrapper

2022-08-18 Thread Lealem Amedie
Hi everyone, Checkout this blog post announcing crypto functionality in go-wolfssl, wolfSSL's goLang wrapper! https://www.wolfssl.com/crypto-go-wolfssl/ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Re: Why declaring multiple variable at once for same type feature exists in Golang?

2022-08-18 Thread Yasser Sinjab
Thanks, I don't object it personally, but I had a debate about "grouping variables is considered a clean code". Let's say you have the following code: var x, y, z string var i int And a new change came as: var j int var x, y, z string var i int For me this is not clean. Group them is

Re: [go-nuts] Re: Why declaring multiple variable at once for same type feature exists in Golang?

2022-08-18 Thread K. Alex Mills
Yes. Declaring i and j on the same line is certainly cleaner. We should all do it like that. Am I missing something? On Thu, Aug 18, 2022, 9:25 PM Yasser Sinjab wrote: > Thanks, I don't object it personally, but I had a debate about "grouping > variables is considered a clean code". > > Let's

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-18 Thread Ian Lance Taylor
On Thu, Aug 18, 2022 at 5:05 PM Shane wrote: > > I'm not sure what you mean when you ask which C library version I am using. > Are you asking the version of my libc? > > I am cross-compiling on Debian 10 using Go 1.19 and gcc 4.7.4 (but my > understanding is that a C compiler is only used for

Re: [go-nuts] Call getg() in mcall()

2022-08-18 Thread Ian Lance Taylor
On Thu, Aug 18, 2022 at 5:52 AM wang jun wrote: > > If i call getg() in mcall(), what kind of gorouting would I have? g0 or > normal g? Do you mean: if you use mcall to call a function, and that function calls getg, what does getg return? It returns a g0. Ian -- You received this message

Re: [go-nuts] How to cross-compile Go 1.19 compiler for Solaris 11 on Linux

2022-08-18 Thread Shane
I'm not sure what you mean when you ask which C library version I am using. Are you asking the version of my libc? I am cross-compiling on Debian 10 using Go 1.19 and gcc 4.7.4 (but my understanding is that a C compiler is only used for the cgo parts of the Go source tree, and that most of the

Re: [go-nuts] Re: Why declaring multiple variable at once for same type feature exists in Golang?

2022-08-18 Thread Kurtis Rader
On Thu, Aug 18, 2022 at 7:25 PM Yasser Sinjab wrote: > Thanks, I don't object it personally, but I had a debate about "grouping > variables is considered a clean code". I get the sense you were having a discussion with a coworker (or someone you were collaborating with on an open-source

[go-nuts] Re: Go generics and bloating

2022-08-18 Thread Guillaume Lescure
Thank you very much Keith, that answers my question :) Le jeudi 18 août 2022 à 18:24:43 UTC+2, k...@google.com a écrit : > On Tuesday, August 16, 2022 at 1:03:22 PM UTC-7 guil.l...@gmail.com wrote: > >> Hello, >> >> I remember a paper about Go Generics but I cannot find it again. >> It was a

Re: [go-nuts] Re: Go 1.19 average goroutine stack

2022-08-18 Thread T L
On Thu, Aug 18, 2022 at 11:30 AM Kurtis Rader wrote: > On Wed, Aug 17, 2022 at 8:18 PM tapi...@gmail.com > wrote: > >> I'm a bit wondering about how the following case will be affected by the >> change: >> 1. Initially, there is one goroutine, which stack size is large at the >> time of a GC