datalust / squirrel-json

A vectorized JSON parser for pre-validated, minified documents
Apache License 2.0
81 stars 3 forks source link

pub extern "C" #6

Open blake-regalia opened 3 years ago

blake-regalia commented 3 years ago

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.

KodrAus commented 3 years ago

Hi @blake-regalia! :wave: 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!