[go-nuts] Re: [ANN] sorts - parallel quicksort and radix sort

2019-02-16 Thread Serhat Şevki Dinçer
Hi, I needed a concurrent sort for a huge integer list, wrote a simple one and found out about yours. Mine (sorty) does not: - implement sort.Interface - limit number of goroutines - implement all common types, just uint64 Here is the go test output (sorting random 2^27 uint64s) on my laptop:

[go-nuts] ctrl-c and Golang

2019-02-16 Thread Hemant Singh
I have the following program. The program is processing network packets at 1 Gbps rate. I don't want to print the rate for every packet. Instead, I'd like to save the rate in an array and dump the array on Ctrl-c of the program. When I dump the array on Ctrl-c, the data is all zeroes.

Re: [go-nuts] ctrl-c and Golang

2019-02-16 Thread Hemant Singh
Thanks, David. Let me look into passing as a parameter. Actually, I didn't paste all the code. My array in the for loop does have a check that if array limit is reached, I set the index to zero and overwrite data. Thus, the last 65536 entries are looked at. Hemant On Saturday, February

[go-nuts] Re: Go and Microsoft Outlook

2019-02-16 Thread minforth
Only if golang is a panacea to you. I'd use AutoIT perhaps... Am Samstag, 16. Februar 2019 08:40:52 UTC+1 schrieb Andrew: > > Our corporate using Outlook send/receive emails. I have some emails need > to send out routinely with the same content(book truck, ask for order > information, etc). > I

[go-nuts] Re: Weekend question: Idiomatic way of handling >millions of objects (structs ;))

2019-02-16 Thread Manlio Perillo
On Saturday, February 16, 2019 at 10:04:46 AM UTC+1, Egon wrote: > > Yeah, mmap is a valid solution. > > Of course, you end up with code that works less reliably on all platforms. > Not only that, but SliceHeader is not subjected to API stability promise:

Re: [go-nuts] ctrl-c and Golang

2019-02-16 Thread David Riley
I suspect it's because your reference to the time_array is actually copying it into your closure that's running as the goroutine instead of making a reference to it. You might do better to pass that array as a parameter to the goroutine instead of trying to absorb it as context. I should note

[go-nuts] Re: Go and Microsoft Outlook

2019-02-16 Thread Andrew
Thanks, Can you please show me the example code? I've tried the code below by using my outlook account but get errors: https://gist.github.com/jim3ma/b5c9edeac77ac92157f8f8affa290f45 2019/02/16 11:51:24 504 5.7.4 Unrecognized authentication type [MWHPR13CA0009.namprd13.prod.outlook.com] panic:

[go-nuts] Re: get Package from types.Type

2019-02-16 Thread Randall O'Reilly
nevermind - I think I figured it out — just need to drill down Underlying until you find types.Named and get the Obj().Pkg() from that. Only Named types have a package home.. - Randy > On Feb 16, 2019, at 12:51 AM, Randall O'Reilly wrote: > > I’m probably missing something very basic, but I

[go-nuts] Re: Weekend question: Idiomatic way of handling >millions of objects (structs ;))

2019-02-16 Thread Egon
Yeah, mmap is a valid solution. Of course, you end up with code that works less reliably on all platforms. And, depending on what kinds of operations you are doing you might not get a perf benefit. On Friday, 15 February 2019 19:34:55 UTC+2, Jeroen Massar wrote: > > Hi folks, > > Silly

[go-nuts] Re: Node-RED -like system implementation in golang

2019-02-16 Thread Dmitry Ponyatov
> > Maybe we already have some parts can be used for building such a like > system? > - Web-frontend for vector drawing blocks of hierarchical data flow models - Golang code generator from blocked models - Module management subsystem to control libraries and module sets -- You

Re: [go-nuts] Re: get Package from types.Type

2019-02-16 Thread Paul Jolly
Underlying is the identity function for all types except *types.Named (https://github.com/golang/example/tree/master/gotypes#named-types), so this won't get you what you want. Instead what I think you're after is type asserting against the types.Type you have

[go-nuts] Node-RED -like system implementation in golang

2019-02-16 Thread Dmitry Ponyatov
Does anybody hear about implementations of dataflow visual design systems for golang? https://www.youtube.com/playlist?list=PLKYvTRORAnx6a9tETvF95o35mykuysuOw Now I'm playing with a serial port log processing, and totally disappointed with Node.js productivity even for such simple task as the

Re: [go-nuts] why go get does not work outside a module?

2019-02-16 Thread Manlio Perillo
Well, the problem is that module aware go get will **still** download commands in GOBIN and **will** cache downloaded modules in GOPATH/pkg/mod. So I don't see a valid reason why it should not work outside a module. Thanks Manlio Perillo On Saturday, February 16, 2019 at 1:08:08 AM UTC+1,

Re: [go-nuts] why go get does not work outside a module?

2019-02-16 Thread thepudds1460
The good news is that this is addressed for 1.12: #24250 cmd/go: allow "go get" when outside a module in module mode https://github.com/golang/go/issues/24250 It would be worthwhile to try the 1.12 release candidate if you can: