4 ms·
I also like how such rather large changes are being introduced in a language that has been in production for many decades. That is pretty remarkable.
by rdtsc 13y ago
I also like how such rather large changes are being introduced in a language that has been in production for many decades. That is pretty remarkable.
- davidw 13y agoI think Erlang is sort of unique in this way. Many languages go through a lot of changes when they are not all that popular, and then blow up in popularity and finally have a lot of users who are wary of Big Changes. Ruby, for instance, was around for years and years before it started to get popular because of Rails. Python, too, was a product of the early 90ies, but as late as some Linux conference in... '99 or 2000 or thereabouts, I recall sitting at a BoF table with Guido and just a few other people, and the language not being that big a deal. Erlang is still not really all that popular, but has always had a lot of Important Code in production thanks to Ericsson, which has made it more difficult to change even though there are some things that even the creators acknowledge as not particularly elegant.
- rdtsc 13y agoIt is funny Erlang is one of those languages and run-times that is used quite a bit without people knowing about. Its reliability properties put at the core of many services (Facebook chat, Amazon, phone gateways etc). It is both a blessing and a curse. If a service or program doesn't crash and cause a lot of drama and headaches it also doesn't get noticed in a certain way. I forgot who mentioned it (one of Erlang Factory talks probably), but for example if you access the Internet via your smart phone, there is like a 30% change that it goes through Erlang at some point (due to going through Ericsson's servers).
- davidw 13y agoI seem to recollect reading about Facebook Chat getting rewritten in C++. Maybe here somewhere?
- Fishkins 13y agoI also remember seeing such comments on HN, but all the references I could find searching just now say a combination of Erlang and C++ is used for FB Chat.
- signa11 13y ago> I forgot who mentioned it (one of Erlang Factory talks probably), but for example if you access the Internet via your smart phone, there is like a 30% change that it goes through Erlang at some point (due to going through Ericsson's servers). yes there is probably > 30% chance of that. the space that you are looking for is mobile-packet-core, and is dominated by ericsson, csco (via starent acquisition), and to a lesser degree by alu, nsn etc.
- derefr 13y ago> ... has always had a lot of Important Code in production thanks to Ericsson, which has made it more difficult to change... Google basically solved this problem for themselves with gofix. I'm surprised Erlang doesn't have an equivalent, given that it would basically just be a reuse of the "parse transform" code.
- davidw 13y agoErlang dates back to sometime in the late 80ies, so I don't know if it's quite as simple as all that. Some systems are things you really don't want to mess with, and a Pareto (80/20) tool won't cut it.
- masklinn 13y agoRather large change? As far as I understand it's just adding a new built-in collection and literal form for it (oh, and the pattern-matching machinery for it obviously). Python added a set builtin in 2.4 and a literal syntax in 2.7, Objective-C added NSNumber, NSArray and NSDictionary literals only last year.
- rdtsc 13y agoI think it is a rather significant change. It is like adding built-in maps to C++ or Java or C. Python set was similar. And there was talk about whether {} should be an empty set or a dict. It stayed a dict. I remember it. But also in mid 90's already large production systems were written in Erlang while Python was still experimental. Python 2.0 was released in early 2000s or so.
- masklinn 13y ago> I think it is a rather significant change. "Significant" and "large" are different things. A change can be small and significant, and large and insignificant. > It is like adding built-in maps to C++ or Java or C. It's like adding built-ins to anything. Your point? > Python set was similar. Similar what? It was a new builtin and literal to a language which did not have a builtin (let alone literal) set. > And there was talk about whether {} should be an empty set or a dict. Which is relevant how? Also not really, `{}` becoming an empty set literal was taken off the table more or less immediately when the introduction of set literals was being discussed. > But also in mid 90's already large production systems were written in Erlang while Python was still experimental. Python 2.0 was released in early 2000s or so. You're joking right? Python 2.0 was released in 2000 (October), which would quite obviously mean that Python 1 had preceded it by a few years (6), and most things are usually considered not experimental by the time they reach version 1. Python had stopped being experimental more than a decade before sets were added.
- rdtsc 13y ago> It is like adding built-in maps to C++ or Java or C. It's like adding built-ins to anything. Your point? If you'd read my comment you'd understand. The point was that adding a new built-in to an almost a 30 year old language is unusual. Adding a new built-in to Dart is probably a lot easier. So not it is not "like adding built-ins to anything". > > Python set was similar. > Similar what? Wild guess but well I don't know the topic we are discussing -- maps to Erlang. And by extension adding a major built-in type to any established language. > > And there was talk about whether {} should be an empty set or a dict. Which is relevant how? It is not. Just making conversation remembering from years back. Sheesh...
- Uchikoma 13y agoI don't want to sound pessimistic, but adding a map structure to an language sounds rather small to me.
- rdtsc 13y agoTo a new and experimental language it would be a small change. Try adding a built-in map to C or Java. Lambda expressions took year to add to Java for example. Now if say Nimrod or Dart acquired built-in sets (I don't know maybe it already does) it wouldn't be too remarkable. They are pretty experimental. Also there is a difference between having a library and a language built-in. All those languages including Erlang, have libraries that provide associative data structures.
- NigelTufnel 13y agoI don't understand. By built-in map you mean "map literals"?
- rdtsc 13y agoYes, as built-ins I consider literals (with specific language syntax). Well, otherwise most modern useful languages have at least a library level implementation of some associative data structures. Erlang has them too, dict, gb_tree and a few others.
- jlouis 13y agoOff my head: Support the runtime, support the syntax and semantics, change the pattern matcher, write extensive tests, add it to the term_to_binary/binary_to_term protocol, add it to distribution, enable reading of maps in various function calls, enable NIFs to inspect maps, define how to copy maps between processes, change the core compiler. It isn't so simple.
- jeffdavis 13y agoIt's not the grammar footprint that makes it a large change. It's that a lot of people will change the way they write erlang programs now that maps exist.
- cdelsolar 13y agomany = 2 ?