3 ms·
> What about readability and ease of writing? I can’t read Erlang so I can’t comment on that. The Erlang code looks very nice. If you read this, great work Pat
by rdtsc 11y ago
> What about readability and ease of writing? I can’t read Erlang so I can’t comment on that.
The Erlang code looks very nice. If you read this, great work Patrick!
https://bitbucket.org/pvalsecc/ https://bitbucket.org/pvalsecc/
Nice use of gen_fsm + binary matching.
Here is an example of the client code that takes only 200 lines:
https://bitbucket.org/pvalsecc/erlangmqtt/src/f37505188c1f1c62aa2b4b94121330d779975d3d/src/mqtt_client_protocol.erl?at=default https://bitbucket.org/pvalsecc/erlangmqtt/src/f37505188c1f1c...
- playing_colours 11y agoYeah, it all depends on code authors. This is one more example of an mqtt broker in Erlang - VerneMQ; and it's very readable: https://github.com/erlio/vmq_server https://github.com/erlio/vmq_server We are currently estimating it.
- dergraf 11y agoThanks, we're working hard to improve our codebase even more! :) Umbrella Project can be found on https://github.com/erlio/vernemq https://github.com/erlio/vernemq as well as our website https://verne.mq https://verne.mq
- atilaneves 11y agoI'll let him know :)
- rdtsc 11y agoThanks and thanks for sharing the benchmarks!
- shepardrtc 11y agoWriting code in Erlang is such a pleasure. I really hope more people get exposed to it. The pattern matching alone is just so nice (and concise!).