3 ms·
FWIW, the Python implementation of Cap'n Proto loads schemas dynamically -- there is no code generator. However, this is done through a C extension that calls
by kentonv 10y ago
FWIW, the Python implementation of Cap'n Proto loads schemas dynamically -- there is no code generator.
However, this is done through a C extension that calls into the C++ implementation. For browser-side Javascript, that's obviously problematic. (Emscripten isn't really the answer -- would be way too large a download.)
- TazeTSchnitzel 10y ago> Emscripten isn't really the answer -- would be way too large a download. Could the emscripten result be slimmed-down? (I fear the answer is probably “in theory, yes, in practice, it's >100KB”)