9 points · by 999900000999 · 2y ago · 19 comments
Would Go be a good choice for this? I keep trying to learn Rust, but it's very difficult for me.
That's a bit vague, if you only need pseudo random numbers consider a xorshift based approach, e.g., https://pkg.go.dev/github.com/db47h/rand64/xorshift. Xorshift is fast and simple.
> Would Go be a good choice for this? I keep trying to learn Rust, but it's very difficult for me.
If you need fast but don't want to write Rust or C(++), Go is a good choice for this. It will likely also have a good amount of examples and existing code available for most common problems.
Original solution was in Python, which is much slower.
What other languages did you consider?
Do you see a positive future for Golang devs?
Rust appears to of picked up a lot of its momentum. I vastly prefer Golang.
// It was picked with a dice roll.
man od