Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocaml for embedding
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-07-08 (21:02)
From: Gaspard Bucher <gaspard@t...>
Subject: ocaml for embedding
Hi List !

I'm writing an open source signal processing tool (mainly used for art
projects). Basically objects are connected together through slots and send
values to each other. Currently, objects are either C++ classes or Lua
scripts that can be edited live (live coding), but the API is scripting
language agnostic. This means that with the proper bindings (basically an
"eval" method and a way to "call" inside the language), anything is

I think it would be a shame to not support at least one functional language
in rubyk and it would be quite fun to have an application with different
languages talking together, each one being used for what it does best. So my
questions are:

1. Is it possible to embed an ocaml compiler ? (something that eats
std::string and produces a callable thing)
2. How would an interface between C++ and a compiled script work ? (passing
values, getting return values)

Thanks for any thoughts,


PS: signal processing tool: