3 ms·
> 2) It's fast. It's just direct memory access, direct and explicit hardware manipulation I also find C really handy for parsing binary formats (ASN1, Ms EMF..
by kakwa_ 9y ago
> 2) It's fast. It's just direct memory access, direct and explicit hardware manipulation
I also find C really handy for parsing binary formats (ASN1, Ms EMF...), parsing binary stuff in Python for example feels miserable. However, for manipulation string based formats (xml, json, yaml), C is quite miserable, even with the help of libs like libjson-c or libxml2.
And to be fair, even for parsing binary formats, C can be quite unforgiving. I still have some traumatic souvenirs from the first time I ran American Fuzzy Lop on my EMF to SVG converter... (by the way, I love the afl logo: https://upload.wikimedia.org/wikipedia/commons/f/fa/AFL_Fuzz_Logo.gif https://upload.wikimedia.org/wikipedia/commons/f/fa/AFL_Fuzz...)
- sametmax 9y agoIn python you just import pyasn...
- makapuf 9y agowell, currently writing binary tools using python and I find that quite pleasing with the struct module ..
- nurettin 9y agoParsing binary with ruby: https://github.com/nurettin/hst/blob/master/lib/hst.rb https://github.com/nurettin/hst/blob/master/lib/hst.rb