Re: [go-nuts] Re: recommended statistics package? Requirements: ANOVA, Brown-Forsythe

2023-10-29 Thread 王富民awaw
Hi Jason Yes, I concur that the function "Levene" named in my package should really be called Brown-Forsthe. I was vacillating between this correct naming versus following the nomenclature of scipy from which my im

Re: [go-nuts] Suggestions on optimizing Go GC

2023-10-29 Thread Robert Engels
If the objects are created and discarded you might be able to spawn a new process to handle the request - or maybe a bunch - then just kill it and start a new process. Possibly use shared memory for constant data. This is the poor man’s generational garbage collector. > On Oct 29, 2023, at 9:

[go-nuts] Suggestions on optimizing Go GC

2023-10-29 Thread Zhihui Jiang
Hi there, We have a large-scale recommendation system serving millions of users which is built using Golang. It has worked well until recently when we are trying to enlarge our index or candidate pool by 10X in which case the number of candidate objects created to serve each user request can al

Re: [go-nuts] Re: recommended statistics package? Requirements: ANOVA, Brown-Forsythe

2023-10-29 Thread Jason E. Aten
王富民awaw: Very nice. The Levene function, though, is confusingly named. The Levene test is distinct from the Brown-Forsthe test, so mixing up the names seems odd.[1] [1] quoting https://www.statisticshowto.com/brown-forsythe-test/#:~:text=The%20Levene%20test%20uses%20deviations,a%20test%20that'

Re: [go-nuts] Re: recommended statistics package? Requirements: ANOVA, Brown-Forsythe

2023-10-29 Thread 王富民awaw
Hi Jan, Martin, and Jason Thanks for your tips and encouragement for rolling our sleeves. I have put together a small statistics library: stat package - github.com/fumin/stat - Go Packages For my own needs, in addition to Brown-Forsythe, I also needed

Re: [go-nuts] Re: Any option to substitute plug-in package ?

2023-10-29 Thread Jason E. Aten
The RPC and webserver/webclient approaches are well and good. Very standard, if high latency. Other approaches I have used to extend Go dynamically: a) embed a scripting language: https://github.com/glycerine/zygomys (my lisp) https://github.com/google/starlark-go (a python with assign once sema

[go-nuts] Re: Go called by C: is the goroutine locked to a thread?

2023-10-29 Thread Jason E. Aten
You could also look at the existing Go <-> Python interfaces and see how they handle such issues. Might give you hints. https://github.com/qur/gopy. (python 3.11) https://github.com/glycerine/pyg (python 3.7.1) -- You received this message because you are subscribed to the Google Groups "golan

Re: [go-nuts] Re: recommended statistics package? Requirements: ANOVA, Brown-Forsythe

2023-10-29 Thread Jason E. Aten
For the ANOVA, I usually just call from Go into R for such things -- at least until I can validate if its the right thing to do/ meets the sensitivity/power needs of the analysis. https://statsandr.com/blog/anova-in-r/ https://github.com/glycerine/rmq#and-the-reverse-embedding-r-inside-your-go

Re: [go-nuts] Re: Any option to substitute plug-in package ?

2023-10-29 Thread Nagaev Boris
For highly-specific filtering, you might also find https://github.com/google/cel-go interesting. CEL is statically typed and declarative. On Sat, Oct 28, 2023 at 11:48 PM Mike Schinkel wrote: > > I recently started using github.com/yuin/gopher-lua for a project to allow > users to add filtering