|
|
|
|
|
by modulovalue
26 days ago
|
|
I'm working on better SIMD support in Dart and one of the motivations for that work is specializing parser specifications based on schema specifications of that language. Or more concretely, if we had a parser generator + json parser specification that can generate efficient simdjson style parsers, then we should be able to parse json restricted to a subset of json based on a schema at least as efficiently as simdjson can parse general purpose json. That way we could have the best of both worlds, a (potentially lazy) statically type-safe model and simdjson performance! I still think that this is definitely doable, it's just that a lot of infrastructure needs to be built for it. I remember reading that Meta is doing something similar with binary formats. I find it weird that there's nothing like that for json yet. |
|
https://dl.acm.org/doi/pdf/10.1145/2714064.2660241
https://dl.acm.org/doi/pdf/10.1145/3314221.3314625