Re:C++20 has been approved
by rwmj on Sunday September 06, 2020 @09:43AM
(#24391226)
I really liked camlp4 (an early fork of which is available as camlp5, but no longer a fundamental part of the OCaml ecosystem). I was able to use camlp4 to implement Erlang-style bitstrings, and they were as efficient as if you had written the most efficient code by hand.
https://people.redhat.com/~rjones/bitstring/html/Bitstring.h...