logoalt Hacker News

gandreanitoday at 1:44 PM1 replyview on HN

What did you need to write with golang? I found the exact opposite effect when I tested elixir and then went to go.

Exlixir has a great std lib but fewer packages than I'd like in the community. I can't even recall what I wanted!

With go the std lib seems bigger (although very lacking in some data structures) but the third party packages are incredible.

I also find both languages similarly useful since I was mostly interested in sane concurrent primitives in a lang. The OTP is not that useful to me since I haven't had to run these services in anything close to serious but you can (kinda) take the OTP to other languages (they're principles after all).


Replies

sarrephtoday at 1:56 PM

> What did you need to write with golang?

This is a great follow-up that I don't have a satisfactory answer for, because I can't really recall. I _think_ I was trying to do something with Firebase w/ high parallelism using goroutines. I just remember the feeling of imperativeness when I was iterating through results, etc, and not having a built-in mapping function.

Elixir was totally different -- was just scratching an "intellectual" itch, and it fit my needs like a glove in terms of feeling.

I'm confident that I could learn to like Go, though, lots of people I know rave about it.

> The OTP is not that useful to me

Also agree, didn't really get into OTP even, just enjoyed the style and structure of the language itself!