Boost logo

Boost Users :

From: Isaac Lascasas (pisiiki3_at_[hidden])
Date: 2008-08-17 13:03:26


Thanks for your proposal, I have not yet tested any c++ interpreter and I
don't know how fast these tools can execute the client code. It can be a
good alternative but I think it should exist a better alternative for
certain situations.

I'm more interested in fast execution of the embedded code than in instant
interpretation so the build time is not a problem. My objective is to write
a fast real time graphic effects prototyping tool and let the user
eventually write chunks of code in c++, for example to process a list of
thousands of items for a particle system as fast as if I rebuild the whole
thing with the new user code. In other words, the main problem I have is
that time-critical code can be placed inside this dynamic c++.

Regards,
Isaac Lascasas.

--------------------------------------------------
From: "Zeljko Vrba" <zvrba_at_[hidden]>
Sent: Sunday, August 17, 2008 6:41 PM
To: <boost-users_at_[hidden]>
Subject: Re: [Boost-users] building and calling "dynamic c++" from a
hostprogram

> On Sun, Aug 17, 2008 at 06:27:35PM +0200, Isaac Lascasas wrote:
>>
>> If you want to make a program that will let the user write "scripts"
>> directly in c++, how will you do it? I am strugling my mind these days
>> looking for a solution to this problem and I want to know if boost
>> already address this situation. My intuition tells me that the process
>> will probably consist on invoking bjam to build a dynamic lib with the
>> "script" and then call the built code in the host binary. But how can
>> this be done keeping it portable and clean? Obviously it won't work if
>> you don't have a build environment configured but anyway it may be a very
>> interesting feature.
>>
> There are some C++ interpreters, for example:
>
> Ch: http://www.softintegration.com/
> CINT: http://root.cern.ch/twiki/bin/view/ROOT/CINT
>
> That is, if you really want _scripts_, i.e., instantaneous interpretation
> like.
> If you're looking for precompiled plugins, you don't have to look further
> than
> DLLs.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net