Serde.zig - Format-agnostic serialization for Zig using comptime
Unified serialization API for six formats without codegen or macros using Zig comptime.
Serialize fitted scikit-learn models to safetensors + JSON. No pickle.
Human-readable JSON config beats skops' opaque binary blobs for model versioning.
ML engineers deploying sklearn models in production
skops · joblib · MLflow
We built skeights to decompose a fitted estimator into two files. A JSON file for hyperparameters and structure, and a safetensors file for the numeric arrays. The JSON is human-readable and diffable, and safetensors is a well-established safe format from Hugging Face.
This allows you to trade models as config. The JSON is just data you can inspect, diff, and version alongside the rest of your config, rather than a binary artefact on the side.
It supports most common sklearn estimators (linear models, trees, random forests, gradient boosting, MLPs, pipelines), plus LightGBM and XGBoost. MIT licensed.
Blog post with a worked example: https://alxhslm.github.io/projects/skeights/
Repo: https://github.com/carbon-re/skeights
`pip install skeights`
Unified serialization API for six formats without codegen or macros using Zig comptime.
Serial mouse over telnet because someone asked 'what if' and actually built it.
LLM token savings angle is interesting, but binary formats are crowded.
Python syntax on Rust Actix core reaches 20k RPS, but Mojo and uv already address Python speed.
Binary JSON with table reuse, but CBOR and MessagePack already own this space.
424k statements/sec with zero dependencies — sqlparse can't match this performance.