[go-nuts] minicrypt released

2025-05-13 Thread Stefan Claas
Hi all, I just released minicrypt, a public key encryption program, which is aimed at elderly people or people with a disability and find the learning curve for GnuPG etc. too hard. I would appreciate if you take a look at minicrypt and leave a feedback. https://github.com/706f6c6c7578/min

Re: [go-nuts] deterministic runtime with pseudo-random-number generator?

2025-05-13 Thread 'Axel Wagner' via golang-nuts
It used to be possible to do this using NaCl. In fact, the playground used to be implemented using that and was fully deterministic. These days, the playground uses gVisor, AFAIK, and is no longer deterministic. I don't know how well the NaCl port is still maintained. Come to think of it, you might

Re: [go-nuts] deterministic runtime with pseudo-random-number generator?

2025-05-13 Thread Robert Engels
Pretty sure you cannot do this for two reasons: the runtime creates internal threads for IO and other purposes that you cannot control. Also the kernel IO / poll is non deterministic. You might have better luck with a custom tiny Go. On May 13, 2025, at 1:53 PM, Jason E. Aten wrote:I'd like to ru

[go-nuts] deterministic runtime with pseudo-random-number generator?

2025-05-13 Thread Jason E. Aten
I'd like to run variations of my Raft test code on a fully deterministic runtime (meaning only one thread, all randomness from a pseudo RNG controlled with a repeatable seed). I was looking at the standard (big) Go runtime, and I don't see where there are any options to control the random number

Re: [go-nuts] Adding methods to non local types that use more state than available in the non local type

2025-05-13 Thread 'Michael Knyszek' via golang-nuts
On Monday, May 12, 2025 at 3:58:54 PM UTC-4 Jason E. Aten wrote: possibly very relevant -- https://github.com/golang/go/issues/70683 On Monday, May 12, 2025 at 8:50:33 PM UTC+1 Jason E. Aten wrote: Interesting. Thanks, Robert, for the pointer to your tests in https://github.com/robaho/go-conc