Re: [go-nuts] Which is the most efficient way to read STDIN lines 100s of MB long and tens of MB info is passed to it

2022-06-08 Thread Const V
I did implementations and profiling of following: *BigGrepStrFnd* - Boyer-Moore (grep) *BigGrepBytes* - Rabin-Karp *BigGrepStr - *Rabin-Karp *BigGrepScan *- search with sliding window Additionally implemented them using concurrency. Tested on 100 files containing one 100MB line. Searching for

[go-nuts] Re: Quick poll: Which of these declarative UI trees looks the most legible to you?

2022-06-08 Thread Henry
Alternatively, you may experiment using structs with exported fields. It may be a bit less verbose. On Thursday, June 9, 2022 at 8:28:32 AM UTC+7 atd...@gmail.com wrote: > Hey, > > Yes, they all look kind of similar because they all use function > composition and are variations of the same tree

[go-nuts] Re: Quick poll: Which of these declarative UI trees looks the most legible to you?

2022-06-08 Thread atd...@gmail.com
Hey, Yes, they all look kind of similar because they all use function composition and are variations of the same tree, just not with the same level of expansion. I've made a new gist that shows more distinct approaches. https://gist.github.com/atdiar/725844d85d4b9835c58f7f834570ab69 Thanks fo

Re: [go-nuts] Crash within netpoll.go?

2022-06-08 Thread Michael Sweeney
Thank you. We have since updated our set of services to the GO 1.17.x series. Yet, we had an instance of our service deployed using the older version. I wish we had the stdout, that would have been useful. I will continue to monitor and upgrade. Thanks again. Mike On Wednesday, June 8, 2022 a

Re: [go-nuts] Crash within netpoll.go?

2022-06-08 Thread Ian Lance Taylor
On Wed, Jun 8, 2022 at 4:21 PM Michael Sweeney wrote: > > Hi All, I searched around for details and references for a similar error and > could not find anything. I am posting here to see if someone has any pointers > to help me discover the root cause. > > A GO 1.15.4 executable encountered a pa

[go-nuts] Crash within netpoll.go?

2022-06-08 Thread Michael Sweeney
Hi All, I searched around for details and references for a similar error and could not find anything. I am posting here to see if someone has any pointers to help me discover the root cause. A GO 1.15.4 executable encountered a panic and generated a core file. Using 'dlv' to analyze the core fi

[go-nuts] How to use thrifter.ToJSON() function

2022-06-08 Thread Vaishnavi Singh
Hi all! I'm working on a project in golang, where I have to convert a thrift string into json. I came across thrifter package. thrift-iterator . Please help me write 1) How to import? 2) Import external dependencies using bazel 3) Also

[go-nuts] Re: How to call function from struct in slice?

2022-06-08 Thread jake...@gmail.com
Your playground example was still not runnable. I have fixed it so it runs: https://go.dev/play/p/I57OftEerLY Now that we have a working example, what precisely is the problem you are having? On Saturday, June 4, 2022 at 2:56:43 PM UTC-4 Little Ant wrote: > Thank you Jake, > > I have not have a

Re: [go-nuts] encoding/asn1 overly strict?

2022-06-08 Thread Brian Candler
On Wednesday, 8 June 2022 at 10:09:26 UTC+1 cpu...@gmail.com wrote: > We've not found an approach for communicating with the device sofar unless > using patched Go stdlib. > Connect via a proxy like stunnel? Out of interest, does raw "openssl s_client" allow communication with the device? It

Re: [go-nuts] encoding/asn1 overly strict?

2022-06-08 Thread Andreas Götz
To be more specific: in order to connect to the IOT server presenting the rogue BER certificate, we have InsecureSkipVerify: true. The description of InsecureSkipVerify reads: // InsecureSkipVerify controls whether a client verifies the server's // certificate chain and host name. If InsecureSki

[go-nuts] Re: Quick poll: Which of these declarative UI trees looks the most legible to you?

2022-06-08 Thread a2800276
To be honest: on first glance, they all look identical to me apart from the missing AddClass statements in the last example. Would it be possible to have some examples with less subtle differences? ¯\_(ツ)_/¯ sorry -- You received this message because you are subscribed to the Google Groups "

Re: [go-nuts] encoding/asn1 overly strict?

2022-06-08 Thread cpu...@gmail.com
Sorry to revive this ancient discussion. We've come across https://forum.golangbridge.org/t/x509-certificate-parse-error-with-iot-device/27622/2 where an IOT device from a large vendor uses BER for it's TLS certificate. It's unlikely, that the vendor will fix the certificate any time soon.