5 ms·
How does this compare to tinypy? [1] http://www.tinypy.org/ http://www.tinypy.org/
by benob 4y ago
How does this compare to tinypy?
[1] http://www.tinypy.org/ http://www.tinypy.org/
- forgotpwd16 4y agoTinyPy is a bit larger at 10k LOC, seems not as easily embeddable since source split among numerous files, not really suitable for embedding since it's partially bootstrapped (parser and compiler written in tinypy; although pretty cool), it's dead and stuck at py2.
- scrawl 4y agowhy does 1. source split among numerous files, and 2. partial bootstrapping affect embeddability? i'm asking in earnest. i thought to embed we (typically) just need a shared lib and to #include a header api.
- forgotpwd16 4y agoThe issue for the first is you either have to download the shared lib precompiled or compile yourself and link as extra step. PocketPy is entirely in header file(s) that can be included in the project directly. That's easiness. (Of course header-only libs have their bads too.) It isn't really about the difference in the result but the process. Having part written in the language can contribute to previous but can also impact speed and memory use. That's suitability.
- scrawl 4y agoi learned something. thanks for responding.