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 bec
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 th
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 project
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 s
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 cleaner
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
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 scie
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
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 rec
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
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 13:52:5
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
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 qu
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.
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 golang-nuts+un
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 golang-nuts+unsubscr...@googleg
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 r
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 wh
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 pro
19 matches
Mail list logo