Parsing Chemistry

re.factorcode.org

In Python, the chemparse project is available as a “lightweight package for parsing chemical formula strings into python dictionaries” mapping chemical elements to numeric counts. It supports parsing several variants of formula such as: simple formulas like “H2O” fractional stoichiometry … Read more

Parsing Protobuf like never before

mcyoung.xyz
parsing-protobuf-like-never-before

Historically I have worked on many projects related to high-performance Protobuf, be that on the C++ runtime, on the Rust runtime, or on integrating UPB, the fastest Protobuf runtime, written by my colleague Josh Haberman. I generally don’t post directly … Read more

Parsing JSON in Forty Lines of Awk

akr.am

JSON is not a friendly format to the Unix shell — it’s hierarchical, and cannot be reasonably split on any character (other than the newline, which is not very useful) as that character might be included in a string. There … Read more

21 GB/s CSV Parsing Using SIMD on AMD 9950X

nietras.com
21-gb/s-csv-parsing-using-simd-on-amd-9950x

Sep 0.10.0 was released April 22nd, 2025 with optimizations for AVX-512 capable CPUs like the AMD 9950X (Zen 5) and updated benchmarks including the 9950X. Sep now achieves a staggering 21 GB/s on the 9950X for the low-level CSV parsing. … Read more

Parsing Awk Is Tricky

raygard.net

What is the grammar and meaning of awk code? Maybe a yacc expert could know. If you only know what the Awk book (by A, K, & W, 1st or 2nd Ed.) says, you’d be missing some details. For example, … Read more

Interval parsing grammars for file format parsing (2023)

dl.acm.org
interval-parsing-grammars-for-file-format-parsing-(2023)

Abstract File formats specify how data is encoded for persistent storage. They cannot be formalized as context-free grammars since their specifications include context-sensitive patterns such as the random access pattern and the type-length-value pattern. We propose a new grammar mechanism … Read more

Parsing Protobuf Definitions with Tree-sitter

relistan.com
parsing-protobuf-definitions-with-tree-sitter

If you work with Protocol Buffers (protobuf), you can really save time, boredom, and headache by parsing your definitions to build tools and generate code. The usual tool for doing that is protoc. It supports plugins to generate output of … Read more