datalust / squirrel-json

A vectorized JSON parser for pre-validated, minified documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pub extern "C"

blake-regalia opened this issue · comments

Very cool lib. I have been using similar techniques for extracting data from deterministic JSON strings as fast as I possibly can. Would be great if this library exposed some C-linkable functionality so C/C++ projects can use it. Wouldn't be too much effort, i imagine it would be about mostly just adding some wrapper functions.

Hi @blake-regalia! 👋 Thanks for reaching out. We could definitely look at adding some C bindings to the project. It wasn't originally written with C interop in mind so I'm not sure how nice the Document API would be to use from C (it uses a lot of Cows and Iterators), but it could be fun to explore!