3 ms·
I've been trying to learn a little erlang for a while. One of the things that holds me back is the external libraries. If it's a part of erlang/OTP, then great,
by jeffdavis 14y ago
I've been trying to learn a little erlang for a while. One of the things that holds me back is the external libraries. If it's a part of erlang/OTP, then great, usually I'm happy with it.
But it's hard to find, install, and update external libraries compared with many other languages (like haskell/cabal, ruby/gems, etc.). How do you deal with that on a practical level?
- MetaCosm 14y agoThere isn't a central clearing house at the moment. But the conventions is to use a tool called "rebar" and you simply add a dependency in your rebar.conf like {cowboy, ".*", {git, "git://github.com/extend/cowboy.git", "master"}} and then it will use cowboy's rebar.conf to download what it requires, in this case ranch. So, you can just link to the top level library you care about it most cases and let rebar deal with it.
- jeffdavis 14y agoOh, I see. Thank you. After asking around on IRC, I found out about CEAN, which looks like it's trying to be a central clearing house. But it's a little strange looking compared to ones that I'm used to... it doesn't look very community-oriented. I couldn't even find a license file for CEAN itself. But it looks like rebar offers a lot already, so I'll look into that more.
- JohnHaugeland 14y agoOh wow. I didn't know you were doing Erlang these days. (You know me as StoneCypher.) Welcome to the flock. You're a very good programmer, assuming you're the person that I knew from efnet #c++, and the community will be improved for having you around.