Hacker News new | ask | show | jobs
by scrawl 1228 days ago
why 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.

1 comments

The 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.
i learned something. thanks for responding.