News for hackers. Stuff that matters.

pcjthug

Re:K0s – Zero Friction Kubernetes on Tuesday November 17, 2020 @04:49AM (#25121865)
Technically, we may consider k0s to be the limit of a decreasing sequence of container orchestrators

`k8s, k3s, ... = k{x}s as x -> 0`

in which case we have 8/x -> +inf

Re:If Not SPAs, What? on Wednesday October 28, 2020 @10:12PM (#24926351)
it smokes Spring in benchmarks, often by a factor of 10x or more, and on plaintext it's 50x faster than spring and even with the fastest Rust/C++ frameworks, so must be some awfully light baggage
Re:Even in Go, concurrency is still not easy on Thursday September 03, 2020 @04:16AM (#24361864)
Did Go ever make concurrency easy?

Any modern language allows you to create threads (semantically equivalent to goroutines) and pass messages between them. Most of them even have high-level concurrency support such as parallel map, structured concurrency, reactive extensions, type-safe generic collections...

We could say that Golang makes concurrency using thread semantics scale to a large number of threads. When this paradigm is appropriate, then indeed Go is nice. The select statement is nice. But this is not always the right approach.

Yes, it is true that go needs slightly fewer characters to launch a naked thread than in C# or Java. In that sense, it is easier. Anyone who considers that a major selling point is a walking race condition.

As a tongue in cheek analogy, what if we consider my new language G, in which G is an alias for goto. G is going to finally make control flow easy. I've done away with complicated control flow constructs such as for or while - users wouldn't understand them anyway. Users are encouraged to use the G keyword liberally. After all, it's only 1 character. Indeed, by that metric, it's even simpler than go's go keyword. What could go wrong?