How I turned Zig into my favorite language to write network programs in

55 points by andyferris


ane

I think composable stream interfaces are a thing of beauty.

I fondly remember working with Java in the early 2000s and how easy it was to convert filesystem-based code to network-based code when the receiving end wanted InputStreams and testing was so easy with a fixed byte array based ByteArrayInputStream.

andyferris

I am curious how this will gel with the incoming async io refresh in Zig (0.16?)

calvin

For blitting structures across the network? I think the best choice is something with binary pattern matching, which is unfortunately not many languages. But it does make dealing with bit-level manipulation trivial. Your best bet for that is something BEAM.