What is the built-in scripting language?

What is the built-in scripting language? What are some of the advantages it would have in a domain specific language?

"A number of languages ​​have been developed with the aim of replacing application scripting languages ​​embedded in application programs." - Scripting language (wiki)

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

+6
source share
2 answers

For your core business, you probably shouldn't use the embedded language, but there are other problems using the embedded language. Most importantly, in my experience, it is useful to have an easy-to-use language in which other users can create against your system. Although it is theoretically possible to build the correct definition of interfaces against your system, it is much more convenient to let inexperienced people play with JavaScript and Lua, instead of setting up the entire environment for deployment in .NET.

Of course, it is easy to change the built-in hot-swap languages, and this can significantly speed up your testing; You can also immediately see your changes without restarting the application, because you just restart a small virtual machine for this built-in language.

I personally used this so that people could write helper scripts against the game.

+4
source

An embeddable scripting language will be a scripting language (or, more specifically, an interpreter for such a language) that can be embedded in 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 must be able to interact with the language; they do not need to run the actual language. This allows you to use more complex and multifunctional languages, since there is no development time (from the point of view of the application developer).

For users, this means that they know the pros and cons, quirks, and benefits of the scripting language if we talk about the commonly used language.

+7
source

Source: https://habr.com/ru/post/923313/


All Articles