4 ms·
Why is this only for Android? Is that because of JIT compiler or is it an issue even on JVM and hence can we use flatbuffers even on web?
by bozoUser 11y ago
Why is this only for Android? Is that because of JIT compiler or is it an issue even on JVM and hence can we use flatbuffers even on web?
- johncolanduoni 11y agoFlatbuffers targets C++ and Go[1], so it does not appear to require JIT. It would appear the necessary code is generated statically even for Java and C#, to take advantage of strong typing. [1]: https://google.github.io/flatbuffers/ https://google.github.io/flatbuffers/
- bozoUser 11y agoMakes sense but do people use it for conventional web. If there is such a great deal of efficiency why isn't there a great deal of adoption? Edit: Added some more text
- detaro 11y agoBecause JSON is the "default" (everybody knows it, everything has tooling for it) and most people don't care about efficiency on that level until they have to.
- Aardappel 11y agoFlatBuffers isn't available natively for JS (yet), though you could use it through asm.js if you really wanted to.