[go-nuts] Re: Why causes []any trouble in type equations?

2023-10-12 Thread Torsten Bronger
uage makes, as any programming language must make many compromises. Regards, Torsten. -- Torsten Bronger -- 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 em

[go-nuts] Re: Why causes []any trouble in type equations?

2023-10-11 Thread Torsten Bronger
Hallöchen! Kurtis Rader writes: > On Wed, Oct 11, 2023 at 10:31 PM Torsten Bronger < > bron...@physik.rwth-aachen.de> wrote: > > 'Axel Wagner' via golang-nuts writes: > > > [...] > > > > What would this do? >

[go-nuts] Re: Why causes []any trouble in type equations?

2023-10-11 Thread Torsten Bronger
d be if this behaved as an implicit instantiation of the function with the type passed to it. If I replace the signature of F with “F[T []E, E any](s T)”, the compiler complaints “IncompatibleAssign” at “s[0] = "Foo"”. I can do “fmt.Println(s[0])”, though. This is what somebody coming to Go fr

[go-nuts] Re: Why causes []any trouble in type equations?

2023-10-11 Thread Torsten Bronger
down to the fact that you can’t pass []float64 as an []any. To be honest, I still don’t fully understand why this is forbidden, so I just accept that the language does not allow it. Thanks to both of you! Regards, Torsten. -- Torsten Bronger -- You received this message because you are sub

[go-nuts] Re: Why causes []any trouble in type equations?

2023-10-10 Thread Torsten Bronger
ould have expected that the same happens as with my first example. Regards, Torsten. -- Torsten Bronger -- 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

[go-nuts] Why causes []any trouble in type equations?

2023-10-10 Thread Torsten Bronger
() { var a []float64 do(a) } is not. The error message doe not help me. Can someone explain this? Thank you! Regards, Torsten. -- Torsten Bronger -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Re: gopls: How to suppress a warning?

2022-12-23 Thread Torsten Bronger
alse, > as described here: https://github.com/golang/tools/blob/master/gopls/ > doc/settings.md#analyses-mapstringbool Thank you, this worked! Regards, Torsten. -- Torsten Bronger -- You received this message because you are subscribed to the Google Groups "golang-nuts" gro

[go-nuts] gopls: How to suppress a warning?

2022-12-22 Thread Torsten Bronger
can I suppress that? Thank you! Regards, Torsten. -- Torsten Bronger -- 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...@googlegrou

[go-nuts] Re: Context cancellation: Is it sufficient to make long-running things interruptible?

2022-12-19 Thread Torsten Bronger
Hallöchen! Brian Candler writes: > On Monday, 19 December 2022 at 12:01:39 UTC Torsten Bronger wrote: > >> But would you agree that additional checking is necessary if >> DoSomething does not have a ctx argument? > > Given that you're running DoSomething synchrono

[go-nuts] Re: Context cancellation: Is it sufficient to make long-running things interruptible?

2022-12-19 Thread Torsten Bronger
e context is still active at the beginning of the select statement. So this example is correct. But would you agree that additional checking is necessary if DoSomething does not have a ctx argument? Regards, Torsten. -- Torsten Bronger -- You received this message because you are subscribed to the

[go-nuts] Re: Context cancellation: Is it sufficient to make long-running things interruptible?

2022-12-19 Thread Torsten Bronger
and it also matters what > DoSomething does. But the problem is not that the select statement may block – and only then a “default” would change anything. On the contrary, if the select blocks, I can be sure it detects a cancellation timely. Regards, Torsten. -- Torsten Bronger -- You receiv

[go-nuts] Context cancellation: Is it sufficient to make long-running things interruptible?

2022-12-19 Thread Torsten Bronger
“out” is drained very efficiently? Then, an arbitrary number of loop iterations could happen before a cancellation is detected, couldn’t it? I would additionally check for ctx.Err() != nil somewhere in the loop. Or is there a reason why this is not necessary? Regards, Torsten. -- Torsten Bronger

[go-nuts] Re: Test driving Go 2?

2021-06-01 Thread Torsten Bronger
Hallöchen! Ian Lance Taylor writes: > On Tue, Jun 1, 2021 at 9:39 AM Torsten Bronger > wrote: > >> Is there already a possibility to give a WIP Go 2 compiler a >> test? What is the best way to get informed for that? (This >> group, the blog, …) > > There are

[go-nuts] Test driving Go 2?

2021-06-01 Thread Torsten Bronger
Hallöchen! Is there already a possibility to give a WIP Go 2 compiler a test? What is the best way to get informed for that? (This group, the blog, …) Tschö, Torsten. -- Torsten Bronger -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: URL prefix for Go's "present"

2016-10-22 Thread Torsten Bronger
" server. But then all links on http://talks.bronger.org/ would break. And I can't give a URL prefix to "present" on the command line. Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de -- You received this message because you are subscribed to the Goo

[go-nuts] URL prefix for Go's "present"

2016-10-21 Thread Torsten Bronger
, all URLs that "present" generates lack the prefix. Can it still be done? Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscrib

[go-nuts] Re: In case you missed it: language benchmarks for Go 1.7, and language adoption

2016-09-10 Thread Torsten Bronger
to discuss what was meant by library, > like sascha they seem to think they understood what was expected. I don't really understand what you want to say with this. My two cents are that only built-in or *standard* library should be allowed. This is a) more clearly defined and b) encourage

[go-nuts] Re: In case you missed it: language benchmarks for Go 1.7, and language adoption

2016-09-10 Thread Torsten Bronger
e added to the corpus. This is just an assumption but I would not interpret too much into the far right of the lines. Regards, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de -- You received this message because you are subscribed to the Google Groups "gol

[go-nuts] Re: Introducing Planet Golang

2016-09-03 Thread Torsten Bronger
rary). I see no reason to ask for permission. I think so, too, but if I look at the trouble Google has with German publishers ... and this is only a prominent example ... rather ask. Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de -- You received this m

[go-nuts] Re: In case you missed it: language benchmarks for Go 1.7, and language adoption

2016-08-31 Thread Torsten Bronger
ing code as was suggested, the comparison is not helpful anymore. Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

[go-nuts] Re: In case you missed it: language benchmarks for Go 1.7, and language adoption

2016-08-31 Thread Torsten Bronger
gt; > http://fastutil.di.unimi.it/ > > Those libraries are based on generated source code. I think something > similar could be built for Go. YMMV, but if such tests are not written ideomatically, they are useless in my opinion. Tschö, Torsten. -- Torsten BrongerJabber ID: torst

[go-nuts] Re: In case you missed it: language benchmarks for Go 1.7, and language adoption

2016-08-30 Thread Torsten Bronger
esides, I think in some cases, the quality of the implementation is tested more than anything else. Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de -- You received this message because you are subscribed to the Google Groups "golang-nuts" grou

[go-nuts] Re: In case you missed it: language benchmarks for Go 1.7, and language adoption

2016-08-30 Thread Torsten Bronger
n the OSS world, while Go (you may switch off the C line to see it better) is gaining ground steadily, and doing so faster than Rust. Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de -- You received this message because you are subscribed to the Google G

[go-nuts] Re: why the method set of *T is the superset of the method of T even if values of both *T and T can call both methods of *T and T?

2016-07-16 Thread Torsten Bronger
is *T) on > the wrong receiver type (T). There still is a subtle asymmetry: a.b() is implicitly converted to (&a).b() if necessary. Why isn't f(v) implicitly converted to f(&v) if necessary? Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.rwth-aachen.de --

[go-nuts] Re: [offtopic] go standard library growth, 2009-2016

2016-06-21 Thread Torsten Bronger
Hallöchen! andrey mirtchovski writes: > [...] > > Attached are graphs the total keyword count and a 10-mile overview of > all the keywords and their growth. One "if" every 3.5 lines of code ... Tschö, Torsten. -- Torsten BrongerJabber ID: torsten.bron...@jabber.r