4 ms·
But using an existing parser that happens to be written in C could definitely be sensible.
by sweeneyrod 7y ago
But using an existing parser that happens to be written in C could definitely be sensible.
- imtringued 7y agoThat sounds like a pretty awful idea. If you're using a C library for parsing JSON then you must add an additional C to Nim/Crystal conversion step that requires additional RAM and CPU time.
- mratsim 7y agoNim compiles to C, there is no cost in calling C.
- sweeneyrod 7y agoThat's not how people use C libraries.
- SolitudeSF 7y agothats not how it works
- RX14 7y agoYes, we do so for more complex formats like YAML and XML. However, for JSON, reimplementing is worth it for binary portability.