News for hackers. Stuff that matters.
Re:Cisco says 90% of internet traffic goes through Erlang-co... by masklinn on Sunday June 03, 2018 @08:14AM (#17219187)
No change from when Go was released AFAIK: Go has no reliability/failover story (whether locally or in terms of distribution), uncaught panics will bring down the entire system, and the runtime has no support for routine hierarchies.

So I guess you'd choose Go if you want to build a local service — especially if it has some amount of concurrency (e.g. network daemons) — or CLI tools (fast startup). You'd use erlang if you want to build a system which really should not die, especially if it so should not die that you're willing to spread it over multiple physical machines.

Re:Cisco says 90% of internet traffic goes through Erlang-co... by anonymous_fun on Sunday June 03, 2018 @09:26AM (#17219403)
Not an expert, nor to take anything from Erlang (was amazed at how robust RabbitMQ was first time I stress tested it) but fault tolerance seems to be a part of OTP. To me, k8s ~ OTP, GO ~ Erlang, and Erlang syntax is a bit easier than GoLang, but might just be the way I was brought up.
Re:Cisco says 90% of internet traffic goes through Erlang-co... by masklinn on Sunday June 03, 2018 @09:38AM (#17219456)
OTP is the standard distribution & library of Erlang, and most of the fault tolerance is either that or the core Erlang runtime e.g. supervisors are part of the standard library[0] and the underlying systems are basically built into the language[1].

Distribution is likewise built into the runtime and language, most of the distribution-related BIFs are not only part of the "erlang" module/namespace but also part of its "prelude" (auto-imported in all modules by default).

So no, it is absolutely nothing like kubernetes in relation to go.

[0] http://erlang.org/doc/man/supervisor.html

[1] http://erlang.org/doc/reference_manual/processes.html#id8861...

Re:Cisco says 90% of internet traffic goes through Erlang-co... by sheeshkebab on Sunday June 03, 2018 @10:28AM (#17219682)
I think parent was referring to similarity of k8s to OTP from user's prospective..
Re:Cisco says 90% of internet traffic goes through Erlang-co... by zzzcpan on Sunday June 03, 2018 @11:07AM (#17219865)
People just want k8s to be that marvelous, to have strong supervision tree architecture. I want the same for systemd too. But sadly it's all mess.
Re:Cisco says 90% of internet traffic goes through Erlang-co... by dozzie on Sunday June 03, 2018 @12:10PM (#17220196)
> [...] but fault tolerance seems to be a part of OTP.

Yes, mostly, but the thing is that OTP was possible at all because of how the portions provided by the language and the runtime play together. You cannot replicate the OTP as it is in Go because Go's runtime is lacking and its communication model doesn't match.

Re:Cisco says 90% of internet traffic goes through Erlang-co... by sitkack on Monday June 04, 2018 @02:30AM (#17225145)
Once you learn Erlang and OTP, you will start seeing everything as a poor re-implementation of the same concepts.
Re:Cisco says 90% of internet traffic goes through Erlang-co... by krainboltgreene on Sunday June 03, 2018 @02:47PM (#17221052)
The syntax you're looking for is k8S:Go::Erlang:OTP