[go-nuts] Re: Proposal: add "future" internal type (similar to channel)

2016-10-18 Thread gopher
so why are channels and goroutines built into the language proper? On Monday, October 17, 2016 at 9:42:17 AM UTC-4, adon...@google.com wrote: > > On Sunday, 16 October 2016 08:40:32 UTC-4, Sokolov Yura wrote: >> >> "future" is commonly used synchronization abstraction. >> >> It could be implemente

Re: [go-nuts] Re: Proposal: add "future" internal type (similar to channel)

2016-10-19 Thread gopher
I was kind of just challenging the rhetorical question asked by stating the obvious as a question itself. On Tuesday, October 18, 2016 at 3:54:01 PM UTC-4, Rob 'Commander' Pike wrote: > > What Ian said, plus select is awkward to implement as a library, but works > quite well when its syntax is

[go-nuts] Japronto vs Go net/http

2017-03-07 Thread Gopher
Hi.Does anyone know why the Japronto is faster? Is it possible to do something about it? I noticed that the response header is larger than japronto header. Response header net/http additionally includes the current date. https://github.com/squeaky-pl/japronto -- You received this message bec

[go-nuts] Why doesn't this select statement timeout?

2018-05-21 Thread gopher . nutter
The following setup uses a select statement to either wait for a response error or timeout after a given duration. The httptest.Server is setup to force the timeout by sleeping (1 sec) for greater than the timeout (1 millisec). But the timeout case isn't being hit at all, why? what is wrong wit

Re: [go-nuts] Why doesn't this select statement timeout?

2018-05-24 Thread gopher . nutter
Thanks for the reply. So you're saying that all case statements are evaluated first before a choice is made. Which means that the full request/response must complete even if the timeout case finishes first. If I swap the cases, now I consistently get a `timeout`. All cases are run to completio

Re: [go-nuts] Why doesn't this select statement timeout?

2018-05-25 Thread gopher . nutter
more > deterministic) > You would get timeout sometimes and nil sometimes > > Also maybe this example would help you understand what's going on. > https://play.golang.org/p/DokMlHtdzi7 > > On Thursday, 24 May 2018 16:58:20 UTC+8, gopher...@gmail.com wrote: >> &

[go-nuts] Important design missing from Errors overview

2018-11-26 Thread gopher . fortress
Greetings, While reading https://go.googlesource.com/proposal/+/master/design/go2draft-error-values-overview.md#other-go-designs I noticed that an important design is missing from the links below. I am talking about Ben's https://middlemost.com/failure-is-your-domain/ which I think offers som

Re: [go-nuts] Important design missing from Errors overview

2018-11-28 Thread gopher . fortress
I do not understand how to respond in the wiki. Do I directly edit the page? I don't see any comments or discussion. Also I think that the article should be mentioned in the errors overview. It is like an evolved version of the upspin method but much simpler to implement and more general. On

Re: [go-nuts] Important design missing from Errors overview

2018-11-28 Thread gopher . fortress
I might be missing something but I could also be misunderstood. Either way I am going to try to explain again what I mean. When someone clicks on https://go.googlesource.com/proposal/+/master/design/go2draft-error-values-overview.md#other-go-designs they can scroll down and see

[go-nuts] Is Go a security malware risk?

2022-08-22 Thread 'Gopher-Insane' via golang-nuts
Hi So our security team has raised a concern with Go and malware. The link that was sent to me was https://securityboulevard.com/2021/09/behavior-based-detection-can-stop-exotic-malware/ . I reached out to Bill Kennedy on Twitter who disagreed that Go was a problem. Said it was worth posting h

Re: [go-nuts] Is Go a security malware risk?

2022-08-22 Thread 'Gopher-Insane' via golang-nuts
on is a good technique to use. > > On Mon, Aug 22, 2022 at 9:30 AM 'Gopher-Insane' via golang-nuts < > golan...@googlegroups.com> wrote: > >> Hi >> >> So our security team has raised a concern with Go and malware. The link >> that was sent to m

Re: [go-nuts] Is Go a security malware risk?

2022-08-22 Thread &#x27;Gopher-Insane' via golang-nuts
erous. Tavis Ormandy has enjoyed a constant stream of cases where > running antivirus "protections" was actually the gateway to serious > exploits. > > Behavior-based detection is a good technique to use. > > On Mon, Aug 22, 2022 at 9:30 AM 'Gopher-Insane' vi

Re: [go-nuts] Is Go a security malware risk?

2022-08-23 Thread &#x27;Gopher-Insane' via golang-nuts
They are suggesting that Go is being more widely used than others, making it more of a risk. On Tuesday, 23 August 2022 at 13:15:06 UTC+1 jesper.lou...@gmail.com wrote: > On Mon, Aug 22, 2022 at 3:30 PM 'Gopher-Insane' via golang-nuts < > golan...@googlegroups.com> wrote

Re: [go-nuts] Is Go a security malware risk?

2022-08-23 Thread &#x27;Gopher-Insane' via golang-nuts
...@gmail.com wrote: > On Tue, Aug 23, 2022 at 2:58 PM 'Gopher-Insane' via golang-nuts < > golan...@googlegroups.com> wrote: > >> They are suggesting that Go is being more widely used than others, making >> it more of a risk. >> >> > Is their

Re: [go-nuts] Is Go a security malware risk?

2022-08-25 Thread &#x27;Gopher-Insane' via golang-nuts
Thank you kortschak, yes that was all I was doing. Seeking advice from people who have better knowledge than me in this area. Again, very grateful for everyone's help. On Thursday, 25 August 2022 at 09:54:13 UTC+1 kortschak wrote: > On Thu, 2022-08-25 at 01:47 -0700, Holloway Kean Ho wrote: >