C++ Scripting

Open-source C++ projects categorized as Scripting | Edit details

Top 16 C++ Scripting Projects

  • GitHub repo V8

    The official mirror of the V8 Git repository

    Project mention: How to manage files in an OOP project? | reddit.com/r/learnprogramming | 2021-11-18

    I agree with this, what you may do is pick a large and successful open source c++ project and mimick their structure. Here's the link to Google's V8 javascript engine (core of nodejs/Google chrome js engine) and my logic going forward would be "if it's good enough for a large company and a massive open source community it's probably good enough for me too" https://github.com/v8/v8

  • GitHub repo AutoHotkey_L

    AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.

    Project mention: AutoHotkey script for easier horse sprinting and braking (keyboard) | reddit.com/r/PCRedDead | 2021-12-01

    Install the current stable version of AutoHotkey from autohotkey.com.

  • Scout APM

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo CopyQ

    Clipboard manager with advanced features

    Project mention: When ctr+c acts as a cache cleaner in your brain | reddit.com/r/ProgrammerHumor | 2021-11-28

    CopyQ is a good one

  • GitHub repo sol2

    Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:

    Project mention: Design Issues for Foreign Function Interfaces (2004) | news.ycombinator.com | 2021-11-30

    Very interesting article!

    Unfortunately, it doesn't mention Lua, which in my opinion has one of the most elegant C APIs that I have seen. It is entirely stack based, which means you only need to work with primitive types, such as numbers, C strings and user provided opaque pointers. As a consequence, you never have to care about memory management because Lua doesn't even let you access the actual Lua objects.

    You want to create a table (= Lua's dictionary/array hybrid) and set a field "foo" to 5? lua_newtable() creates a new table and pushes it onto the stack. Then you push "foo" with lua_pushstring() and 5 with lua_pushnumber(). Finally you call lua_settable(), which pops the key and value from the stack, checks if the top of the stack contains a table, and if yes, sets the given field to the given value. The actual table structure is never exposed!

    This kind of stack manipulation might seem unusual and a bit unweildy, but what you get is safety. If you mess up the stack or perform illegal operations, Lua will call an error handler, but the VM should never crash. The stack API can be seen as the fundamental layer upon which people can create nice abstractions for their host language of choice. Examples are "sol2" for C++ (https://github.com/ThePhD/sol2) or "lupa" for Python (https://github.com/scoder/lupa)

    The public API is contained in "lua.h": https://github.com/lua/lua/blob/master/lua.h. "lauxlib.h" offers some useful helper functions: https://github.com/lua/lua/blob/master/lauxlib.h

    For comparison, this is Python's "Limited" C API: https://docs.python.org/3/c-api/stable.html#stable

    If you want to learn more about Lua's C API, have a look at section 4 in https://www.lua.org/manual/5.4/manual.html

  • GitHub repo ChaiScript

    Embedded Scripting Language Designed for C++

    Project mention: How to use C++ as the core language for a Fantasy Console? | reddit.com/r/cpp_questions | 2021-11-15

    If you want to use C++ for scripting, take a look at Jason Turner's ChaiScript

  • GitHub repo luau

    A fast, small, safe, gradually typed embeddable scripting language derived from Lua

    Project mention: Requesting r/Luau, it seems to be unused and private and I would like to open it for use for people with the recent open sourcing of Roblox's Luau programming language | reddit.com/r/redditrequest | 2021-11-29

    Nope, they use their own heavily modified version of Lua that has recently split off from Roblox: https://luau-lang.org

  • GitHub repo nbind

    :sparkles: Magical headers that make your C++ library accessible from JavaScript :rocket:

    Project mention: [AskJS] C++ -&gt; compile to both wasm for web and binary add-on for node.js? | reddit.com/r/javascript | 2021-01-29

    nbind aimed to do that, but it's difficult to maintain, and it didn't take off.

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • GitHub repo mtasa-blue

    Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.

    Project mention: Unrecognized option '/GENPROFILE', but linker in dev console recognizes it | reddit.com/r/VisualStudio | 2021-04-06

    Today I decided to try out PGO, see how much it would speed up the program I'm working on. I followed this guide from Microsoft's website.

  • GitHub repo v8pp

    Bind C++ functions and classes into V8 JavaScript engine

  • GitHub repo open-builder

    Open "Minecraft-like" game with multiplayer support and Lua scripting support for the both client and server

    Project mention: Some early gameplay from my voxel game: Wanderers | reddit.com/r/VoxelGameDev | 2020-12-28

    For example, in this Notch article, he discussed using trilinear interpolation to speed up noise evaluation as well as to smooth out rough parts. But I tested, and both of his problems actually came mostly from using too many noise octaves. Minecraft used 16 octaves for each noise channel, and 8 octaves for the blending noise, when just 5-6 and 2-3 would be enough. The rest of the speed problems could be solved by implementing something to skip noise evaluations when they wouldn't matter, at least above/below max/min biome height if not dynamic octave skipping. See this screenshot difference.

  • GitHub repo Ark

    ArkScript is a small, fast, functional and scripting language for C++ projects

    Project mention: Contributed to some OSSs with pull-requests in this year too. | dev.to | 2021-10-07
  • GitHub repo sfall

    Engine modifications for Fallout 2

    Project mention: MLS 1.16.0: preprocessing and icons | reddit.com/r/u_BGforge | 2021-07-29

    Data updates from RPU, sfall, IElib, IESDP.

  • GitHub repo luacxx

    C++11 API for creating Lua bindings

  • GitHub repo shpp

    Call c++ functions from a shell with any arguments of any types parsed automatically

  • GitHub repo scrift

    New generation shell and scripting language for everyone.

    Project mention: Fegeya ColoCat, pretty &amp; colorful con'cat'enate implementation. Written in C++17. | reddit.com/r/commandline | 2020-12-22

    It's Pop color scheme, If you asked the shell prompt It's Scrift, new generation shell project, Check it Out!

  • GitHub repo nelson

    Nelson numerical interpreter

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-12-01.

C++ Scripting related posts


What are some of the best open-source Scripting projects in C++? This list will help you:

Project Stars
1 V8 18,712
2 AutoHotkey_L 5,049
3 CopyQ 4,304
4 sol2 2,766
5 ChaiScript 2,427
6 luau 2,042
7 nbind 1,819
8 mtasa-blue 875
9 v8pp 713
10 open-builder 620
11 Ark 406
12 sfall 175
13 luacxx 137
14 shpp 94
15 scrift 47
16 nelson 36
Find remote jobs at our new job board 99remotejobs.com. There are 32 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives