News for hackers. Stuff that matters.
Re:Scriptable Operating Systems with Lua [pdf] by sdegutis on Tuesday September 30, 2014 @05:43PM (#8391478)
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

[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-embedd...

[2]: aka #python on freenode

[2]: http://twistedmatrix.com/users/glyph/rant/extendit.html

Re:Scriptable Operating Systems with Lua [pdf] by sitkack on Wednesday October 01, 2014 @01:26AM (#8392965)
The '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.