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:06AM (#17219165)
> I believe GoLang supports efficient sharing of large data-structures between cores of the same processor, whereas ErlangLang does not.

AKA Go does shared-memory multitasking, while Erlang does shared-nothing multitasking.

Re:Cisco says 90% of internet traffic goes through Erlang-co... by amelius on Sunday June 03, 2018 @08:37AM (#17219242)
Yes, and when used in an immutable way, the GoLang approach is very powerful and efficient, because it allows one to pass large (parts of) immutable data-structures without copying.
Re:Cisco says 90% of internet traffic goes through Erlang-co... by jeremyjh on Sunday June 03, 2018 @08:45AM (#17219265)
How do I declare an immutable data structure in Go?
Re:Cisco says 90% of internet traffic goes through Erlang-co... by jerf on Sunday June 03, 2018 @09:26AM (#17219402)
An unexported value type provided through an interface is immutable. The "context" object uses this. But it isn't really a solution for immutable value programming.
Re:Cisco says 90% of internet traffic goes through Erlang-co... by jeremyjh on Sunday June 03, 2018 @09:27AM (#17219408)
Its immutable everywhere, or just outside the package that declares it?
Re:Cisco says 90% of internet traffic goes through Erlang-co... by jerf on Sunday June 03, 2018 @01:37PM (#17220633)
Outside the package that declares it, though if you have it as an interface value you'd have to do work to penetrate it.

Since it's not like I'm trying to sell this as a solution to all immutable data requirements, I didn't worry too much about that detail. In the end it's all about effort, anyhow; with the right invocations in Haskell I can mutate "immutable" data just fine. So even an interface in the package that declared it is still nontrivial protection against accidentally mutating it.

Re:Cisco says 90% of internet traffic goes through Erlang-co... by jeremyjh on Sunday June 03, 2018 @05:12PM (#17222109)
I don't think thats really true about Haskell, unless you are talking about C code you've invoked through FFI in which case all bets are off in every language.

Isn't it a lot simpler to just say that Go has no feature support for immutable data? The fact that you can hide accessors in a package is small comfort if I have to read all the source code in that package to know the actual semantics.

Re:Cisco says 90% of internet traffic goes through Erlang-co... by RyanZAG on Sunday June 03, 2018 @01:57PM (#17220745)
What about lists? Eg, an immutable list of packets.
Re:Cisco says 90% of internet traffic goes through Erlang-co... by darkr on Sunday June 03, 2018 @09:50AM (#17219501)
AFAIAA, the only immutable core type in go is string.