I've read about certain programs, such as the Civilization video game series, using interpreted components (Lua in this case) to interface with compiled ones (C++ I assume) to allow for user extendability through mods and such. Why is invoking a virtual machine in such a manner, when I assume you could just write and bake in your own compiled-language extensions, helpful?
Why use an interpreted language to make a compiled one adjustable "on-the-fly"?
108 Views Asked by Aleksey Bilogur At
1
There are 1 best solutions below
Related Questions in INTERPRETED-LANGUAGE
- Is it possible to capture the bitstream of post-interpreted code? (pre-execution) eg. speedup calls I make often
- Is lisp really the first interpreted high-level programming language?
- Python compile-time optimization
- implementing "this" / "self" in a custom interpreted programming language
- If Javascript code gets executed line by line then, how AST (Abstract syntax tree) works?
- Does Python basically execute code from the top to the bottom?
- Is Standard ML compiled, interpreted or both?
- Are syntax errors in Python found at 'compile time' or 'runtime'?
- Why are there no languages that are both interpreted and (really) compiled?
- How does python determine whether to categorize a variable as local or non-local in a function?
- Why don't most interpreted languages like ruby provide an optional compiler?
- Error: Conflcting types for xxx pointing to same declaration
- If Scala is a compiled language, then why didn't it detect an out of bound exception in this program beforehand?
- How interpreted language code is executed by CPU?
- Why Golang for loop is slower than Python for loop?
Related Questions in COMPILED-LANGUAGE
- If Javascript code gets executed line by line then, how AST (Abstract syntax tree) works?
- Design Pattern Factory Method question - why the factory method in ConcreteCreator won't be available yet?
- How to ckeck Java Internal code which is written by Java Complire implicitly
- Why are there no languages that are both interpreted and (really) compiled?
- If Scala is a compiled language, then why didn't it detect an out of bound exception in this program beforehand?
- Is there a way to delay the choice of calling convention without leaving too much work to the linker?
- What prevented a WebAssembly-like system from being implemented and adopted on the web to begin with?
- Why Golang for loop is slower than Python for loop?
- Compiler and Interpreter preferable
- Window Creation in Beef Language
- What does it really mean to "install" a programming language?
- Is CMake an equivalent of npm?
- Precompiled templates with initializators (factory pattern) or single interface and method or what else?
- Speed up parallelised solving of ODE containing events
- Track activity in deployed AppStore iOS apps
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could totally make your own compiled extensions! But that is a lot of work, then you have to teach the users to use your programming language.
Easier to interface with a known, stable language which is easy to interface with (like Lua).