CINT as scripting subsystem

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
User avatar
sleo
Gremlin
Posts: 171
Joined: Sun Jun 05, 2011 6:49 am
Location: Vodka Federation
x 18

CINT as scripting subsystem

Post by sleo »

http://root.cern.ch/drupal/content/cint

Have anybody worked with that? Is it worth looking as Lua alternative and makecint as toLua++ alternative?
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13

Re: CINT as scripting subsystem

Post by nikki »

IMO, for a scripting language, you'd want the dynamic typing, garbage collection etc. that Lua, Python or similar languages provide. Also they have pretty good ways to bind your C++ interface (boost.bind, luabind etc.).
User avatar
stealth977
Gnoll
Posts: 638
Joined: Mon Dec 15, 2008 6:14 pm
Location: Istanbul, Turkey
x 42

Re: CINT as scripting subsystem

Post by stealth977 »

Well, i found some comparison charts which shows CINT is median 270x slower than C++ code where python is only median 30x slower and C# Mono is only median 2.5x slower....
Ismail TARIM
Ogitor - Ogre Scene Editor
WWW:http://www.ogitor.org
Repository: https://bitbucket.org/ogitor
BTolputt
Greenskin
Posts: 121
Joined: Thu Feb 18, 2010 8:05 am
x 2

Re: CINT as scripting subsystem

Post by BTolputt »

If you're looking at speed, LuaJIT 2.0 is incredibly fast. In some benchmarks, it outperforms C/C++ (though admittedly, those are probably contrived examples). With the work Mike Pall has put into that virtual machine, it is an incredible addition to any game engine needing scripting - it is based on Lua 5.1 (meaning there is alot of experience and documentation out there), it runs on damned near everything (PPC, x86/x86_64, ARM, etc), and the speed hit is very small for a typeless, cross-paradigm language.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Re: CINT as scripting subsystem

Post by Kojack »

CINT seems like it might be useful for prototyping c code or something, but not as a general purpose scripting system.
There's a lot of scripting languages which have a c style syntax and are probably faster.
User avatar
sleo
Gremlin
Posts: 171
Joined: Sun Jun 05, 2011 6:49 am
Location: Vodka Federation
x 18

Re: CINT as scripting subsystem

Post by sleo »

Ok, CINT - high stability and very slow is for banking systems, LuaJIT for games.
How about AngelScript used in Ogitor? Or MonsterScript used in OpenMW?