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
2
votes
6 answers
What is a good embeddable language for an existing Java application?
I want to embed a dsl or existing full language within my application. It should be a simple, full Turing complete language but simple and light enough that the code can be interpreted without too much overhead.
Also the other "processes" can't…

Berlin Brown
- 11,504
- 37
- 135
- 203
2
votes
2 answers
Embedding IronRuby in C# and DateTime
When I embed IronRuby what is the proper way to get a reference to either Ruby's DateTime/Date classes or .NET's System.DateTime. I'm running into errors when I try
require 'date'
I get the error - no such file to load -- date
when I try
require…

BuddyJoe
- 69,735
- 114
- 291
- 466
2
votes
3 answers
python object to native c++ pointer
Im toying around with the idea to use python as an embedded scripting language for a project im working on and have got most things working. However i cant seem to be able to convert a python extended object back into a native c++ pointer.
So this…

Lodle
- 31,277
- 19
- 64
- 91
2
votes
1 answer
What replacements are available for vbscript in an application?
An application I maintain has been around since VB6 days - ported to .Net 1.1, and now being updated/rewritten across to .Net 3.5
The application provides a mechanism to run VBScripts - this was done in a highly integrated way - allowing the program…

TheoJones
- 359
- 3
- 15
2
votes
2 answers
What factors drive you to use embedded scripting in your applications?
What factors do you weigh in your decision process when you select an embedded scripting, and can issues of configuration and variation be overcome purely with IOC and the Plugin pattern?
Many times the Strategy Pattern and Decorator Pattern are…

David Robbins
- 9,996
- 7
- 51
- 82
1
vote
0 answers
vscode `provideCompletionItem` in Middleware not getting triggered for string
I am trying to implement embedded language support for SQL in vscode extension using request forwarding mechanism.
According to the documentation we can hijack the completion using middleware option and provide the sub-language completion using an…

Aneesha Fernando
- 21
- 3
1
vote
2 answers
Embedding MS.NET C# into c/c++ (like mono)
Is it possible to embed the MS C# compiler into an umanaged c/c++ host application and make both languages interoperate, very much like Mono does this (like here and here)?
I have a working implementation of this für my Qt based C++ Application…

FFox
- 1,550
- 2
- 17
- 26
1
vote
2 answers
Lua & implicit global state
I'm integrating Lua into my project at the moment, and I'm facing a small design problem on the way. Currently, if I want to get information from my host application into Lua scripts, I call a function that I registered in C, in this fashion:
--…

LukeN
- 5,590
- 1
- 25
- 33
1
vote
2 answers
Dynamic user control over variables (embedded language?)
I'm creating a piece of software (written in C#, will be a windows application) and I ran into this problem-
I've got a set of variables, and I need to allow the user to define a wide range of mathematical functions on those variables.
But my users…

Malki
- 2,335
- 8
- 31
- 61
1
vote
1 answer
Stop embedded Python prompt from C++
I'm running Python embedded in a C++ application. The program consists of a Qt GUI and a work QThread where computations happen. The user can chose to run a Python script from a file or to start a Python prompt. Both run in the QThread. The program…

Jose
- 46
- 7
1
vote
2 answers
Embedding Python thread safe
I'm trying to use Python in a module for an analysis software of vehicle bus systems. For this I have to embed Python in a thread safe manner, since there can be multiple instances of the module witch work independently. I could use a mutex to…

JustMaximumPower
- 1,257
- 3
- 11
- 22
1
vote
1 answer
C++ and Embedded Python - NUL Terminated Strings
I'm working on embedding Python 2.6 into an existing c++ application. So far I have the Libraries linked in and am able to successfully initialize the Python Interpreter and can also transfer data to Python. I'm having trouble retrieving it, and…

g.d.d.c
- 46,865
- 9
- 101
- 111
1
vote
0 answers
C++ <-> Python: bidirectional communication
I want to integrate a Python application into my C++ application. The communication has to be bidirectional, as shown in the following example:
C++:
void main() {
# call python code
return 0;
}
int computeResult(int value) {
int…

Richard Schulze
- 113
- 9
1
vote
2 answers
Passing arguments in Python function via C++
I am using a C++ program and I need to call Python objects from the C++ program (to perform optimization and mathematical operations). I am having trouble to pass arguments to Python object via C++
Here is a simple code
#include
#include…

Vincent
- 1,616
- 2
- 16
- 18
0
votes
2 answers
What characters can I use to quote this ruby string?
I'm embedding JRuby in Java, because I need to call some Ruby methods with Java strings as arguments. The thing is, I'm calling the methods like this:
String text = ""; // this can span over multiple lines, and will contain ruby code
Ruby ruby =…

Geo
- 93,257
- 117
- 344
- 520