Re: [go-nuts] Re: Clace: Secure web application development platform using Starlark

2023-10-30 Thread 'Dan Kortschak' via golang-nuts
On Mon, 2023-10-30 at 23:29 -0700, TheDiveO wrote: > Unfortunatelly, "okay" hasn't been tested in court yet and especially > with HashiCorp breaking bad you surely have the deep pockets to see > this through? This is not really my problem, I was just pointing out that the authors of the license ha

Re: [go-nuts] Re: Clace: Secure web application development platform using Starlark

2023-10-30 Thread TheDiveO
Unfortunatelly, "okay" hasn't been tested in court yet and especially with HashiCorp breaking bad you surely have the deep pockets to see this through? On Tuesday, October 31, 2023 at 4:12:13 AM UTC+1 Dan Kortschak wrote: > On Mon, 2023-10-30 at 18:43 -0700, Jason E. Aten wrote: > > I'm surprise

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

2023-10-30 Thread Zhihui Jiang
On Monday, October 30, 2023 at 10:12:08 PM UTC-7 Robert Engels wrote: What is the average wall time of a request? The average latency is a few hundred milliseconds. Based on what you wrote it appears that handling a single request generates a lot of garbage - high allocation rate - and for

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

2023-10-30 Thread Robert Engels
What is the average wall time of a request? Based on what you wrote it appears that handling a single request generates a lot of garbage - high allocation rate - and for this to be significant I suspect the runtime is also significant - which implies to me a spawn and destroy request handler is

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

2023-10-30 Thread Zhihui Jiang
Hi Michael, Jason and Robert, thanks a lot for the replies and suggestions! I did some profiling today, here are some specific findings: 1, CPUs used for GC is around 35% after we enabled soft memory limit, and it was 45%+ before. I don't have too much experience here on how much CPU we should s

Re: [go-nuts] Re: Clace: Secure web application development platform using Starlark

2023-10-30 Thread 'Dan Kortschak' via golang-nuts
On Mon, 2023-10-30 at 18:43 -0700, Jason E. Aten wrote: > I'm surprised by that claim. I seriously doubt, from reading the > licenses, that you can legally use the Apache2 license, since > it removes the MPL requirements; which the MPL forbids you from > doing.   > The Mozilla FAQ https://www.moz

Re: [go-nuts] Re: Clace: Secure web application development platform using Starlark

2023-10-30 Thread Jason E. Aten
I'm surprised by that claim. I seriously doubt, from reading the licenses, that you can legally use the Apache2 license, since it removes the MPL requirements; which the MPL forbids you from doing. Moreover I don't think a court would consider relevant what the Cloud Native Foundation thought

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

2023-10-30 Thread 王富民awaw
Hi Jason Thanks for your suggestion. I have renamed the function Levene to BrownForsythe, as well as added a comment to note that it assumes its input to be sorted ascendingly. On Tuesday, 31 October 2023 at 02:18:51 UTC+8 Jason E. Aten wrote: > > On Monday, October 30, 2023 at 3:14:29 AM UTC 王

Re: [go-nuts] Re: Clace: Secure web application development platform using Starlark

2023-10-30 Thread Ajay Kidave
Clace itself is Apache-2 licensed, using a MPL licensed library in an Apache-2 licensed project is fine from what I understand. I do not plan to make any code changes to the go-plugin code. The go-plugin library is specifically allowed by CNCF projects if that matters https://github.com/cncf/founda

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

2023-10-30 Thread 'Michael Knyszek' via golang-nuts
I second Jason's message, and +1 to off-heap memory as a last resort. Here are a few more details: For a starting point on how to reduce memory allocations directly, see https://go.dev/doc/gc-guide#Optimization_guide. Note that this may require restructuring your program in places. (e.g. passin

[go-nuts] Re: Clace: Secure web application development platform using Starlark

2023-10-30 Thread TheDiveO
sadly, OpenDoufu(*) is the epitaph of HashiCorp breaking bad. So that go-plugin package is a no-go now (pun intended). (*) I can't get myself using the British Empire misspelling of Standard Chinese (putonghua). And don't call that Ma... either. On Monday, October 30, 2023 at 7:54:50 PM UTC+1 J

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

2023-10-30 Thread Jason E. Aten
On Monday, October 30, 2023 at 3:14:29 AM UTC 王富民awaw wrote: Therefore, perhaps I should not be following scipy and rename my function from Levene to BrownForsythe? Since you have made it available to the public Go community, yes, it would be a good idea to name it BrownForsythe, as it is us

[go-nuts] Symbolic/Concolic execution of Go compiled Binaries

2023-10-30 Thread 'Karolina GORNA' via golang-nuts
Hi Gophers, Hope that your are alright! *Does any of you know symbolic or concolic execution tools that are compatible with Go binaries please ? * >From what I currently understand, it seams possible to adapt Angr for instance so that it understands Go binaries, but I am not

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

2023-10-30 Thread Domenico Andreoli
On Sun, Oct 29, 2023 at 11:32 PM Jason E. Aten wrote: > 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) > > Thanks for the poi