How'd you decide to use C for this and Rust for shatter?
Discussion
I already have a fast C content parser 😅. I’m using C code in Damus. Since it’s depending on lmdb, it made more sense because lmdb is a C lib as well.
This will also work in rust and notedeck, I’m planning on making a rust interface.
C is the way to code here. That JSON library, JSMN, is pretty slick, very low level, I used it before, but I use C++ now and ‘JSON for modern C++’ . Still working on my CMake port , will post here when done https://github.com/damus-io/nostrdb/commit/32b0e572e418b81af515224cc7eb3b1e8598d906
*meant to say C is the way to go, but the “way to code “ works too… probably some Damus auto correct 🙃
Don't worry, I'm not a Rust proselytizer lol, just curios and glad to see anyone writing low level efficient code these days. Excited to try out notedeck 👍