84 points · by rlander · 13y ago · 27 comments
Some of the highlights are:
* Optimized handling of processes in the VM
* New internal process table allowing for parallel reads and writes
- optimized run queue management
- optimized process state changes
* "Non-blocking" code loading
* New internal port table, and rewrite of scheduling of port tasks.
* Dynamic allocation of port structures, allowing the default for maximum ports to be raised to 65536 (from 1024) Support for UTF-8 encoded Unicode characters in source files.
* Inets application: The http client now support HTTPS through a proxy
* Asn1 application: Major cleanup of back ends and optimizations of mainly decode for PER and UPER.
* The experimental features parameterized modules and packages are removed. An alternative compatible solution for parameterized modules is provided here https://github.com/erlang/pmod_transform.
* All built in functions BIF's (even if they are implemented in C as part of the VM) are now visible in the source code of the module they belong to, including their type specs.
* The Wx application now compiles and is usable with the unstable development branch of wxWidgets-2.9. This means that wx can now be built on 64 bit MacOsX as well.
You can find the README file with more detailed info at http://www.erlang.org/download/otp_src_R16A_RELEASE_CANDIDAT...
That is kind of huge, guess it is time to go catch up on the mailing list...
With ChicagoBoss being one of the highest profile projects to use pmods extensively, Evan Miller has been arguing for them pretty extensively.
At least support wasn't completely dropped, since they are providing the parse_transform to re-enable the functionality:
https://github.com/erlang/pmod_transform
[1] A friendly war, anyway: http://erlang.org/pipermail/erlang-questions/2013-January/07...
Once they start taking the little people (so to speak) seriously, I'll revisit the Erlang runtime for an actual project.
Until then: Clojure.
Clojure has a strong tinkerer culture.
Erlang is not a tinkerers language. If you want to tinker you want Scheme, Clojure or Haskell, which to a far greater extent plays around with new ways of doing things in programming languages.
Erlang is about providing a stable platform and controlled additions. The decision to remove parameterized modules must be balanced against the fact that you are maintaining an experimental extension and that it complicates the compiler. So the decision was made to remove them completely from the language in order to pave the way for a better solution.
One of Joe Armstrongs ideas is that if you add a new feature to the language, you must remove one as well. So the choice is all about balancing the effort required to keep parts of the implementation working.
It isn't that Evan Miller as not been heard and taken seriously. Believe me, the decision is not a quick one made just for the sake of making such a choice.
In Erlang, pmods are problematic because the language has no type system and they seriously mess with readability of program code. They also make it harder to grep in code, and there are very simple ways to work around the lack of them. And they are not the feature we need to make the language better. There are a large amount of other features which would be far better to have.
Also - my own startup uses Erlang extensively (we use Riak, yes, but our actual application is built on top of Erlang too); I would say 80% of our codebase consists of Erlang. It's rock solid and the concurrency and distribution features (and ease of use) are unmatched. Also - OTP, nothing compares to OTP yet (Akka is trying to get there, but they have a long journey ahead of them).
Here's a list of a few I have compiled on the mailing list in the past: http://erlang.org/pipermail/erlang-questions/2012-August/068...
Evan has a point regarding the verbosity of many expressions and there have been very complete enhancement proposals that are much better in what they cover and their properties. See for example Richard O'Keefe's 'Frames' proposal: http://www.cs.otago.ac.nz/staffpriv/ok/frames.pdf
This doesn't mean his points and concerns are not valid, and it also doesn't mean that parametrized modules should stay. I think the compromise made (still support them, but not in the main OTP distribution) is a decent one, because it takes little effort to keep old code compatible, stuff still works, but the issues mentioned in my post linked above are no longer a concern of whoever is using or implementing libraries with features that were built on a weird implementations like tuple calls.
It also allowed a much simpler error handler with new very interesting mechanisms when similar features were cleaned up.
This particular question highlights a shortcoming of long-form changelogs though. It would be nice if there was a way to have community-voted highlighting of a changelog pointing out the significance of each line-item of a changelog.
http://sigma-star.com/blog/post/changelog-voting (Blog post inspired by this question)
http://www.erlang.org/download/
which tells you part of the story.