HNHacker News
TopNewBestAskShowJobs

pawelkowal

2 karma · joined March 20, 2015

submissionscomments
pawelkowal··on Elixir – The next big language for the web
Certainly Rubygems+Bundler in Ruby does it, as well as Mix in Elixir. npm in node.js may even do it due to its weird require system but I am not sure.
pawelkowal··on Elixir – The next big language for the web
> Erlang's module system means that a chunk of the raison d'etre behind language-specific package managers is already alleviated.

Sure, modules provide a way to "package" functions, but that is 5% of what a package manager does. Being able to distribute, fetch and do dependency resolution is certainly the bulk of it.

I definitely prefer my deployments to rely on packages than fetching git repositories from Github and Bitbucket. There are recent discussions in Erlang mailing list regarding packages and the OTP team (the team behind Erlang) is looking into package managers too.

> The rest - dependency management and building, is handled quite well by tools like Rebar.

Sorry, Rebar does not handle dependencies well. Rebar does not even guarantee repeatable builds. Once I fetch dependencies on my machine, my co-worker can end-up with versions different than mine and that is dependency management 101.

Rebar 3 seems to improve in this area but is still alpha. erlang.mk idea of package manager is a file on github in tsv format (and still no repeatable builds).

> Unicode handling? I think this might be a knock on Erlang's string handling.

Erlang needs better unicode support, regardless of using lists or binaries. Strings support only latin1 in literal format. If I want to write my name as a binary, it needs to be written as <<"paweł"/utf8>>. This is nowhere close to acceptable to anyone that has to write strings in formats other than latin1.

Things are getting better in Erlang 18 but there won't be any conveniences for handling unicode. There is no function to calculate the grapheme length (essential if you want to support languages like japanese or korean and do a size validation on an input), to convert to lowercase/uppercase and so on. Be it if the underlying representation is a list or a binary.

pawelkowal··on An Empathetic Functional Language
It looks like you skipped all examples given next, which do not seem to be Ruby related at all: the inviting community, the extraordinarily involved creator and the tooling.
pawelkowal··on An Empathetic Functional Language
The lack of empathy in your comment is exactly what ends up pushing people (like me) away from functional languages.

Your comment just points what is wrong, without any help to guide those who would like to know more, be them the author or a reader. It is interesting because you just dismissed everything the article was about: being empathetic and providing guidance.

For the curious, I understand a pure functional language one that explicitly marks all side-effects, for example, by using monads. So Elixir indeed does not seem to be a pure language. More information can be found on wikipedia: http://en.wikipedia.org/wiki/Purely_functional