What is an embedded scripting language?

Travis J picture Travis J · Aug 20, 2012 · Viewed 13.1k times · Source

What is an embedded scripting language? What are some advantages it would have over the domain specific language?

"A number of languages have been designed for the purpose of replacing application-specific scripting languages by being embeddable in application programs." -Scripting language (wiki)

Javascript.NET is one such example. It can be used in place of c# for example. However, what constitutes the difference between a scripting language, and an embedded scripting language? Moreover, why would javascript be more desirable than C# - or any other domain specific language?

Answer

Christian Stieber picture Christian Stieber · Aug 20, 2012

An embedded scripting language would be a scripting language (or more specifically an interpreter for such a language) that can be embedded into applications. Thus, the interpreter has an API that can be used to integrate it into the application, allowing scripts to control all or parts of the application.

the advantage is that application developers only have to provide the interfacing with the language; they don't have to implement the actual language. This allows more complex and feature-rich languages to be used, since there's no development time (from the application developer point of view).

For users, it means they know the pros and cons, the quirks and benefits of the scripting language, provided we are talking about a commonly used one.