embedded-language

How to call R from within a web server (like Apache)?

That is, is there an embedded R interpreter available? ...

Are there any embedded languages that can be embedded into C# and actionscript?

I'm looking for a embedded language that can be used to script common code between a server app written in C# and a client app written in Flash/Actionscript. It is important that the embedded language interpreter run natively in the environment it is embedded into. For example, it cannot load any external C libraries (i.e. python, neko)...

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 the main program to block I thought I could run the interpreter in a thread. How do I st...

Embedded Lua "print" not working in debug mode from Visual Studio

Hi, I am using Luainterface 2.0.3 to embed Lua in a c# application. Everything is working fine, except in visual Studio's debug mode, the Lua's print function does not get written to the console (nor to Output). using System; using LuaInterface; namespace Lua1 { class Program { static void Main(string[] args) { ...

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 'mscorlib.dll' I get the error - no such file to load -- mscorlib.dll What is the right w...

Which javascript interpreter is the easiest to embedd in a C application?

There are a few available and i want to support many platforms so i guess V8 isn't that good unless someone has written an interpreter patch for it. ...

Embedded scripting engine for DSL

I'm working on a project which needs an embedded DSL to fullfill its expected requirements. The DSL would be user defined event based. Here goes a mockup of the desired syntax: user-defined-event-1 { // event body } user-defined-event-2 { // event body } Probably, most similar language I know based on events is LSL (from Sec...

What is a good emeddable 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 effect any other process. I was considering using Clojure and invoking the Clojure interpret...

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 believe the resulting code will be significantly simpler and more maintainable. I Googled for e...

SQL query comparision in ProC with and without using cursor

Which, query performance wise, is more effective? Considering T is a table, and PK is the primary key in the table T. Are they different or they are just a matter of choice? select col1, col2 into :var1, :var2 from T where PK = a ...or: EXEC SQL DECLARE aCursor CURSOR FOR select col1, col2 into :var1, :var2 from T where PK = a...

What is the best scripting language to embed in Mac OS X 10.6 applications?

Is there any other scripting language that can be used to embed scripts inside applications, which can access Mac OS X, or application classes with the same features, or most of the features seen in F-script? ...

Get a C reference to an embedded python function by name?

Assuming I have some embedded python code containing a function foo, what is the best way to get a reference to that function (for use with PyObject_CallObject)? One way is to have some function register each function along with the function name either manually or through use of reflection. This seems like overkill. Another way is to ...

Any systematic way to avoid "reentry" problem? (embedded system)

We are using C to build a system on ARM core (i.e. an embedded system). The question is: how can we avoid reentry problem in a formal way so that we are confident all reentry bugs are removed. This may not be a practical wish but surely important for any system, I guess. Just for the discussion, I guess drawing UML diagram or have a com...

C# instead of IronRuby as an embedded "scripting" language in .NET 3.5

What is the best practice for using C# as an embedded internal scripting application for a .NET 3.5 application? I have an app with a few small IronRuby scripts in it. None of which is really exploiting the dynamic nature of IronRuby. Apparently its against our corporate standard to be using IronRuby or IronPython right now. Ooopps. Wha...

A scripting language to simply compile

I'm looking for a simple script language which I can compile easily by just putting the .h files under an include folder and the .c/.cpp files under a source directory. Something without any Makefile. Must be written in C/C++ rather C++. ...

Calling a Lua string with C

I'm trying to learn how to use Lua with C, so by now I want to try running a script without loading it from a file, since I don't want to be bothered with messing up with files. Can anybody tell me which functions do I need to call for executing a simple string or what ever? ...

Overloading embedded Python functions using PyArg_ParseTuple.

If I'm trying to overload an embedded Python function so that the second argument can be a long or an Object, is there a standard way to do it? Is this it? What I'm trying now (names changed to protect the innocent): bool UseLongVar2 = true; if (!PyArg_ParseTuple(args, "ll:foo", &LongVar1, &LongVar2)) { PyErr_Clear(); ...

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 statically typed scripting languages that can be embedded in a C++ application? ...

Pros/cons of embedded scripting environments?

There are several scripting environments available for .NET applications (e.g.this post). My question is, what are the pros/cons of using each of them? Examples include (but not limited to) PowerShell IronPython Lua JavaScript I am trying to decide which scripting tool to use in scientific applications to allow expert users to inte...

Embed a Python persistance layer into a C++ application - good idea?

say I'm about to write an application with a thin GUI layer, a really fat calculation layer (doing computationally heavy calibrations and other long-running stuff) and fairly simple persistance layer. I'm looking at building the GUI + calculation layer in C++ (using Qt for the gui parts). Now - would it be a crazy idea to build the pers...