Anything related to languages (designed to be) embedded in other applications and their implementations. DO NOT use this tag to mark questions related to embedded devices, unless it also relates to embedding a language in a bigger application.
Questions tagged [embedded-language]
84 questions
67
votes
7 answers
Calling python from a c++ program for distribution
I would like to call python script files from my c++ program.
I am not sure that the people I will distribute to will have python installed.

Brian R. Bondy
- 339,232
- 124
- 596
- 636
54
votes
4 answers
Are there any statically typed, embeddable scripting languages?
I am wondering if there are any statically typed, embeddable scripting languages. Python, JavaScript, etc. are great languages, but they are dynamically typed (that is, types are checked at run time). I am just wondering if anyone knows of any…

Nathan Osman
- 71,149
- 71
- 256
- 361
45
votes
13 answers
Embedded Prolog Interpreter/Compiler for Java
I'm working on an application in Java, that needs to do some complex logic rule deductions as part of its functionality. I'd like to code my logic deductions in Prolog or some other logic/constraint programming language, instead of Java, as I…

Sami
- 3,263
- 3
- 29
- 37
30
votes
2 answers
Why do we need an embeddable programming language like Lua?
What are the typical use cases of using an embeddable programming language? Do I understand it correctly that such language should be embedded into some program environment and should be able to be executed from there?

Vladimir Kostyukov
- 2,492
- 3
- 21
- 30
27
votes
3 answers
Stopping embedded Python
I'm embedding Python interpreter to a C program. However, it might happen that while running some python script via PyRun_SimpleString() will run into infinite loop or execute for too long. Consider PyRun_SimpleString("while 1: pass"); In preventing…

Anton L.
- 2,397
- 2
- 17
- 8
26
votes
2 answers
Embedded language: Lua vs Common Lisp (ECL)
Does anybody here have a experience with Common Lisp as a embedded language (using ECL)? If so, how good is ECL compared to Lua?

linkit
- 269
- 1
- 3
- 3
24
votes
8 answers
Embedding a Low Performance Scripting Language in Python
I have a web-application. As part of this, I need users of the app to be able to write (or copy and paste) very simple scripts to run against their data.
The scripts really can be very simple, and performance is only the most minor issue. And…

Ian
- 3,619
- 1
- 21
- 32
20
votes
5 answers
How to embed Ruby in C++?
What's the best way to embed Ruby as a scripting language in C++? Using ruby.h? SWIG? Something else? What I need is to expose some C++ objects to Ruby and have the Ruby interpreter evaluate scripts that access these objects. I don't care about…

Firas Assaad
- 25,006
- 16
- 61
- 78
19
votes
4 answers
Deploying application with Python or another embedded scripting language
I'm thinking about using Python as an embedded scripting language in a hobby project written in C++. I would not like to depend on separately installed Python distribution. Python documentation seems to be quite clear about general usage, but I…

John Smith
- 4,402
- 4
- 32
- 34
17
votes
5 answers
Any tutorial for embedding Clang as script interpreter into C++ Code?
I have no experience with llvm or clang, yet. From what I read clang is said to be easily embeddable Wikipedia-Clang, however, I did not find any tutorials about how to achieve this. So is it possible to provide the user of a c++ application with…

FFox
- 1,550
- 2
- 17
- 26
16
votes
4 answers
Python vs Lua for embedded scripting/text processing engine
For a project I'm currently working on, I'm looking to embed a scripting engine into my C++ code to allow for some extensibility down the line. The application will require a fair amount of text processing and the use of regular expressions within…

Wade Tandy
- 4,026
- 3
- 23
- 31
15
votes
2 answers
How to embed LLVM?
The LLVM Core project consists of:
Compiler - converts source code to LLVM IR
VM - executes compiled IR code
How can I embed the VM to a C++ application?

Alon Gubkin
- 56,458
- 54
- 195
- 288
14
votes
13 answers
Is there a "safe" subset of Python for use as an embedded scripting language?
In the many Python applications I've created, I often create simple modules containing nothing but constants to be used as config files. Additionally, because the config file is actually a Python code file, I can add simple logic for changing…

Soviut
- 88,194
- 49
- 192
- 260
9
votes
2 answers
How to call R from within a web server (like Apache)?
That is, is there an embedded R interpreter available?

Dan Goldstein
- 24,229
- 18
- 37
- 41
9
votes
2 answers
Invoking a method on an object
Given a PyObject* pointing to a python object, how do I invoke one of the object methods? The documentation never gives an example of this:
PyObject* obj = ....
PyObject* args = Py_BuildValue("(s)", "An arg");
PyObject* method = PyWHATGOESHERE(obj,…

jmucchiello
- 18,754
- 7
- 41
- 61