ChaiScript
Wren
Our great sponsors
- SonarCloud - Analyze your C and C++ projects with just one click.
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Revelo Payroll - Free Global Payroll designed for tech teams
- Onboard AI - Learn any GitHub repo in 59 seconds
ChaiScript | Wren | |
---|---|---|
7 | 41 | |
2,798 | 6,496 | |
0.9% | 1.0% | |
0.0 | 0.0 | |
3 months ago | about 1 month ago | |
C++ | Wren | |
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
is it like https://chaiscript.com/?
-
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.
Wren
-
loxcraft: a compiler, language server, and online playground for the Lox programming language
Bob Nystrom also has a blog, and his articles are really well written (see his post on Pratt parsers / garbage collectors). I'd also recommend going through the source code for Wren, it shares a lot of code with Lox. Despite the deceptive simplicity of the implementation, it (like Lox) is incredibly fast - it's a great way to learn how to build production grade compilers in general.
This is very nice! Well done! Can you open an issue on the wren lang repository and mention this? https://github.com/wren-lang/wren Wren is also written by Bob Nystrom and the implementations share a lot of things.
-
Bevy 0.10: data oriented game engine built in Rust
Only kind of unrelated ... Every time I see the Bevy logo I'm reminded of Wren language https://wren.io/
-
Most important language features not touched in the book "Crafting Interpreters"?
Check out the source to Wren: https://wren.io. It’s from the author of Crafting Interpreters and builds directly on what’s discussed in the book (essentially a more complete Lox) and adds several additional types, including an array.
- Why does Rust have parameters on impl?
- Liberating the Smalltalk lurking in C and Unix
-
What are some good C programs I can read through?
The best C code I have ever read is that of wren.
-
Wren is a small, fast, class-based concurrent scripting language
Well, basically I copied the second link from https://github.com/wren-lang/wren/wiki/Language-Bindings just randomly; I didn't think to check the release date to be honest with you, my bad.
The other Rust projects seems more updated, like https://github.com/Jengamon/ruwren was last updated in May 9.
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.
V8 - The official mirror of the V8 Git repository
LuaJIT - Mirror of the LuaJIT git repository
Duktape - Duktape - embeddable Javascript engine with a focus on portability and compact footprint
squirrel - Official repository for the programming language Squirrel
sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
luacxx - C++11 API for creating Lua bindings
ChakraCore - ChakraCore is an open source Javascript engine with a C API. [Moved to: https://github.com/chakra-core/ChakraCore]