5 ms·
> Golang is an absolutely ideal language for writing REST API microservices Those are strong words for a language with all the flaws I just mentioned. :D Yes,
by pkulak 3y ago
> Golang is an absolutely ideal language for writing REST API microservices
Those are strong words for a language with all the flaws I just mentioned. :D Yes, green threads are great for network programming, but it's not the only language with them, and one feature does not make it "ideal". If I had to pick the best networking language... I'd probably say Elixir.
But even if we agree that it's ideal, it doesn't change my point.
- smw 3y agoI find go distasteful, but are there really many other languages with an m:n threading model? Only other popular one I can think of is Erlang/Elixir.
- pkulak 3y agoJava 21, and I assume like every scripting language (Ruby, Python, etc). Though I guess with scripting you can't use more than one OS thread (not totally sure). Rust started off with it, and C# tried it too, but there are huge downsides to the model, so it's not like it's perfection incarnate and every other language just can't pull it off.
- gregors 3y agocompletely agree Elixir is a much better language all around for this type of work
- Thaxll 3y agoElixir performance is pretty average and it's not a statically typed language, things will blow up at runtime.
- neonsunset 3y agoThe better language at this to both Java, Go and, god forbid, Elixir is C#. It properly implements generics, pattern matching and task-based asynchronous model which allows to trivially interleave or dispatch all kinds of method calls in ways which require extremely verbose and bulky code in Go.