[go-nuts] Re: super large virtual memory allocation for simplest golang apps, why?

2021-01-15 Thread pat2...@gmail.com
On Thursday, January 14, 2021 at 12:27:25 PM UTC-5 laos...@gmail.com wrote: > I run the helloworld net/http on 128MB MIPS 32bit cpu, helloworld takes > 700MB VSS each, I then run 40 of them(each takes 4M RSS) in parallel, and I > got 'can't fork: out of memory' if I set overcommit_memory to 2, c

[go-nuts] [ANN] go-featureprocessing v1.0.0

2021-01-15 Thread Nikolay Dubina
*What is this?* Fast feature preprocessing in Go with feature parity to sklearn https://github.com/nikolaydubina/go-featureprocessing *What is new?* - Added batch processing - Added inplace processing - Added parallel processing - Made all inference code to have zero memory allocat

[go-nuts] Re: Context on one-shot structs

2021-01-15 Thread Ross Light
The Go CDK stores a Context in a struct while performing I/O: https://pkg.go.dev/gocloud.dev/blob#Bucket.NewWriter It could be argued that this is done for compatibility with the io.Reader and io.Writer interfaces. However, I think this pattern, used sparingly, is suitable for API interactions

Re: [go-nuts] `go list` across multiple modules?

2021-01-15 Thread 'Tim Hockin' via golang-nuts
On Fri, Jan 15, 2021 at 2:17 PM Jay Conrod wrote: > > I was initially going to suggest adding the module subdirectories as > requirements to the main go.mod, then replacing those with the subdirectories. > > module example.com/m > > go 1.15 > > require ( > example.com/other1 v0.0.0 > example.

Re: [go-nuts] `go list` across multiple modules?

2021-01-15 Thread 'Jay Conrod' via golang-nuts
I was initially going to suggest adding the module subdirectories as requirements to the main go.mod, then replacing those with the subdirectories. module example.com/m go 1.15 require ( example.com/other1 v0.0.0 example.com/other2 v0.0.0 example.com/m/submod v0.0.0 ) replace ( example.

Re: [go-nuts] an open source project to replace SMTP/email

2021-01-15 Thread Liam
Brian's feedback is here: https://github.com/networkimprov/mnm/issues/5 On Thursday, January 14, 2021 at 9:20:02 AM UTC-8 Brian Candler wrote: > I do have some feedback, but I think this is off-topic for golang-nuts. > Where would you like it to be sent? > > My suggestion would be to enable Dis

Re: [go-nuts] `go list` across multiple modules?

2021-01-15 Thread 'Tim Hockin' via golang-nuts
Hi. This isn't exactly burning urgent, but it is a long-term issue for Kubernetes. If there's anything I can do to catalyze the discussion - tests to run, info to dig up, etc - please let me know. On Wed, Dec 23, 2020 at 10:48 AM Tim Hockin wrote: > > Hi Paul! > > On Wed, Dec 23, 2020 at 4:23 A

Re: [go-nuts] return own custom error from template while it executed

2021-01-15 Thread Shulhan
14 Jan 2021 17:32:37 Vasiliy Tolstov : Hi. I can't find in google how to solve my problem. Inside text/template i want to check some passed data and return some descriptive text if conditions not matching. I don't have ability to check it before template executed. Does it possible? I am