ChaiScript
Inja
Our great sponsors
ChaiScript | Inja | |
---|---|---|
7 | 8 | |
2,878 | 1,532 | |
0.7% | - | |
3.7 | 4.2 | |
2 months ago | 28 days ago | |
C++ | C++ | |
GNU General Public License v3.0 or later | MIT License |
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.
Inja
-
Which library canI use for rendering html??
I like to use a template engine for rendering html. This way I could use my favourite html editor and add the information from c++ to it. There are some alternatives but I would recommend either mustache or inja. While I used mustache successfully in many projects inja has a more modern feel to it
-
How to write reflection for C++
Also, we need to somehow generate code based on the collected information. Template engines like go template, mustache, jinja, etc. are great for this. We'll write only a couple of templates, on which we'll generate hundreds of new source code files. I decided to use inja in this project. It's a sort of C++ port on jinja for Python.
-
Could Jinja scripting can be usefull in database manager?
After some researching, I found inja-library that partially support Jinja-templates and then I've implemented to my app sqlite-gui. But I still doubt whether such a scripting is needed.
-
Hacker News top posts: Feb 4, 2022
Inja: A Template Engine for Modern C++\ (19 comments)
- Inja: A Template Engine for Modern C++
- GitHub - pantor/inja: A Template Engine for Modern C++
- C++ template engine library, similar to jinja for Python
-
Looking for a codegen library that uses C++ for scripting
I've looked into a newer template engine like Inja, but my client isn't quite happy with that either. Inja allows you to write templates that you feed JSON data into:
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.
stx-btree - OBSOLETE, contained in https://github.com/tlx/tlx - STX B+ Tree C++ Template Classes -
V8 - The official mirror of the V8 Git repository
sparsepp - A fast, memory efficient hash map for C++
Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint
function2 - Improved and configurable drop-in replacement to std::function that supports move only types, multiple overloads and more
squirrel - Official repository for the programming language Squirrel
lexertl - lexertl: The Modular Lexical Analyser Generator
Wren - The Wren Programming Language. Wren is a small, fast, class-based concurrent scripting language.
Hashmaps - Various open addressing hashmap algorithms in C++
sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
Justinbobia - The Configurable Math Library