Depends on the protocol. I’ve working prototypes of DALI (lighting protocol) and KNX (building automation) stacks completely in Elixir (except for a few lines of C for hard-realtime stuff). Certainly both are really slow (1200 and 9600 bit/s), but still.
Implementing a protocol with binary pattern matching is just great. You can literally copy the specs. Coming from C this is just mind-blowing for me at the moment.
Yeah, thanks for pointing this out, this project is actually what prompted me to post this. Numerical analysis and ML are actually my area of expertise, so I’m quite keen to learn more about this project once it becomes available and perhaps even contribute to it if I can.