MRPT / mrpt

:zap: The Mobile Robot Programming Toolkit (MRPT)
https://docs.mrpt.org/reference/latest/
BSD 3-Clause "New" or "Revised" License
1.94k stars 630 forks source link

Evaluate chaiscript for expr library #728

Open jolting opened 6 years ago

jolting commented 6 years ago

https://github.com/ChaiScript/ChaiScript

c++14. Lots of test coverage Good documentation Very complete scripting language.

https://codedocs.xyz/ChaiScript/ChaiScript/LangGettingStarted.html

bergercookie commented 6 years ago

@jolting I've heard many nice things about ChaiScript. Is there a specific application we want to use it for or just integrate it and use it to evaluate string expressions?

jolting commented 6 years ago

Right now you can embed scripts in ini files for certain classes. chaiscript might be a good replacement for that. Mostly I think the c++ interface is a little nicer.

jlblancoc commented 6 years ago

@bergercookie right now it's used mainly for some reactive nav configuration files, where some entries are scripts on their own. See for example this).

Indirectly it's also used via the $eval{} keyword in CConfigFileBase, so any MRPT "config file" already allows scripting ;-) It's barely documented here: http://mrpt.ual.es/reference/devel/config_file_format.html

jolting commented 6 years ago

P.S. ChaiScript is Jason Turner's pet project. https://www.youtube.com/user/lefticus1 It's worth watching some of his videos if you have the time.

bergercookie commented 6 years ago

P.S. ChaiScript is Jason Turner's pet project. https://www.youtube.com/user/lefticus1 It's worth watching some of his videos if you have the time.

Oh, and I thought I'd heard of that guy before! I'm listening to his CppCast podcast every day to work! :)