[erlang-questions] Bit Syntax and compiler Erlang/OTP R21.1

Valentin Micic v@REDACTED
Wed Aug 21 00:23:01 CEST 2019


> On 20 Aug 2019, at 22:13, Dániel Szoboszlay <dszoboszlay@REDACTED> wrote:
> 
> Bit strings could come very handy for compression algorithms too, say Huffman coding a byte stream. Yes, at the end you may have to pad the bitstring to get whole bytes that you can save to a file or send over the network, but until then it's very useful that your buffer can have an arbitrary length. Bitstrings are rarely needed, but when you need them, it's Godsent that the language has excellent support for this data type!

For what is worth, I agree — compression algorithm implementation may benefit from Bitstrings.

> 
> On Tue, 20 Aug 2019 at 21:24, Steve Strong <steve@REDACTED <mailto:steve@REDACTED>> wrote:
> Or take SDI, where each word is 10bits... bitstring is invaluable.
> 
> Sent from my iPhone
> 
> > On 20 Aug 2019, at 20:21, Fred Hebert <mononcqc@REDACTED <mailto:mononcqc@REDACTED>> wrote:
> > 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
> http://erlang.org/mailman/listinfo/erlang-questions <http://erlang.org/mailman/listinfo/erlang-questions>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190821/9b7a5cd1/attachment.htm>


More information about the erlang-questions mailing list