3 ms·
Yes, there is a difference between embedding and extending. Extending means your app is just a module that lives in the language's interpreter. Embedding means
by sdegutis 12y ago
Yes, there is a difference between embedding and extending. Extending means your app is just a module that lives in the language's interpreter. Embedding means the language interpreter lives in your app.
One advocate[-1] of extending prefers it simply because he got bitten by his own poor design.
Another advocate[undefined] prefers it simply because he prefers JavaScript and the easiest way to embed it is to write your app as C plugins that hook into V8[NaN].
The Python community[2] will unfailingly tell you to choose extending over embedding, delegating their reasoning to this highly questionable rant[2].
[-1]: https://julien.danjou.info/blog/2011/why-not-lua https://julien.danjou.info/blog/2011/why-not-lua
[undefined]: Zhivago in ##c on freenode; please go say hi to him and make sure 2 use abbvs and dont use punctatng or spell thngs rite b4 him
[NaN]: http://stackoverflow.com/questions/6334618/experience-embedding-javascript http://stackoverflow.com/questions/6334618/experience-embedd...
[2]: aka #python on freenode
[2]: http://twistedmatrix.com/users/glyph/rant/extendit.html http://twistedmatrix.com/users/glyph/rant/extendit.html
- sitkack 12y agoThe 'Python community' says those things because the CPython codebase is a PITA to embed, that is the only reason. With a clean design, like the Lua interpreter, embedding vs extending is about equal.