Anyone solving protohackers challenges using Erlang?

There’s an interesting set of challenges on https://protohackers.com/ , which I think are very suitable for solving in Erlang.

I would recommend someone trying to learn Erlang (or any beam language) to try those out.

From the site:

Protohackers challenges you to create servers for network protocols.

We give you the protocol spec. You write the server and host it. We automatically test it. There’s a global leaderboard for the fastest solve times and a new problem every ~2 weeks.

8 Likes

I did not find anyone solving it in Erlang (at least publicly) in the unofficial languages dashboard: https://edoannunziata.github.io/protohackers/ . (There are two in Elixir though)

So, I decided to solve it myself so that we at least have one representation. My solutions are at GitHub - srijan/phfly: Trying protohackers.com challenges using erlang and fly.io

2 Likes

I have done only two so far:

Does anyone want to review my code? I am sure it can be improved.