ChaiScript
cppast
Our great sponsors
ChaiScript | cppast | |
---|---|---|
7 | 2 | |
2,878 | 1,630 | |
0.7% | 1.1% | |
3.7 | 1.3 | |
about 2 months ago | 12 months ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ChaiScript
- Using C++ as a scripting language, part 6
-
How to use C++ as the core language for a Fantasy Console?
If you want to use C++ for scripting, take a look at Jason Turner's ChaiScript
-
Enabling C/C++ compilation in an application.
3) Similiar to 2, but use more common scripting languages: chai, cs-script, sol2 (c++ framework to embed lua)
-
ArkScript, a language designed to be used in C++ projects, now has macros
A few years back I actually went and made a ChaiScript based video game engine (https://16bpp.net/blog/post/masala-a-chaiscript-game-engine/). The end goal for it was to be able to make a Pacman like clone, but have all of the game logic implemented in ChaiScript. I actually found out as I added more realtime elements (implemented in ChaiScript) that it started to take much longer to process the game logic; the "game loop FPS" was under 60, which is not good. I actually proposition that ChaiScript move to a bytecode VM (https://github.com/ChaiScript/ChaiScript/issues/266), but I'm guessing that no movement was made on that front.
- Is it advisable to embed python in c++ ? Have anyone tried it, what is the best way to do it?
-
Looking for a codegen library that uses C++ for scripting
Maybe ChaiScript? It is not exactly what you are looking for, but very similar, in my opinion.
cppast
-
Adding reflection to C++ just to make a game work
I had a similar journey while working on my own custom game engine! I managed to persevere with "plan C" (or whichever was using libclang); after trying out cppast and getting severe NIH syndrome, I ended up with this: metacpp. Do not recommend.
-
Enabling C/C++ compilation in an application.
Here's an example library that uses the frontend: https://github.com/foonathan/cppast
What are some alternatives?
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
booleval - Header-only C++17 library for evaluating logical expressions.
V8 - The official mirror of the V8 Git repository
color_coded - A vim plugin for libclang-based highlighting of C, C++, ObjC
Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint
sdkffi - A code parser for C-Style header files that lets you to parse function's prototypes and data types used in their parameters.
squirrel - Official repository for the programming language Squirrel
celix - Apache Celix is a framework for C and C++14 to develop dynamic modular software applications using component and in-process service-oriented programming.
Wren - The Wren Programming Language. Wren is a small, fast, class-based concurrent scripting language.
sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
metacpp - Meta C++ Library and Tool