> 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/ 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/f37505188c1f1c...
Go, D, Erlang and C in real life: MQTT broker implementation shootout (2013)
31–40 of 50 posts
Re: Go, D, Erlang and C in real life: MQTT broker implementation shootout (2013)
#32Earlier quoted context omitted.
How Go is compiled isn't as relevant to its performance as much as what Go is compiled into, which hasn't changed all that much as far as I know. The GC improvements might help with latency though.
It's still hard to take any benchmark seriously when given the quote: > Mosquitto was compiled with gcc 4.8.2, the Go implementation was executed with go run, the D implementation was compiled with dmd 2.0.64.2 and the Erlang version I’m not sure. The "I'm not sure" speaks for itself, but go run also includes both compilation time and execution time and they're comparing it against just the execution times of the oth…
I don't know why you think that start-up time has an effect on the benchmarks. It doesn't matter how long the brokers take to start, once they did the measurements were done. `go run` doesn't change a thing.
Re: Go, D, Erlang and C in real life: MQTT broker implementation shootout (2013)
#33> 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/ 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/f37505188c1f1c...
I'll let him know :)
Re: Go, D, Erlang and C in real life: MQTT broker implementation shootout (2013)
#34update from go 1.2? since there have been many performance improvements since then...
It seems this article was posted in 2013. Not sure where that falls in the Go release timeline, but I'm guessing the version wasn't was far behind then as it seems now. Edit: After a quick search, it looks like Go 1.2 was released only 4 days prior to this article being posted.
Re: Go, D, Erlang and C in real life: MQTT broker implementation shootout (2013)
#35Is there any hardware that uses MQTT?
Re: Go, D, Erlang and C in real life: MQTT broker implementation shootout (2013)
#36I'm the author but not the OP.
Re: Go, D, Erlang and C in real life: MQTT broker implementation shootout (2013)
#37Is there any hardware that uses MQTT?