ThePhD/sol2
View on GitHub ↗ ★ 5,173 C++
Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
10 mentions on Hacker News by 5 people: 0 stories, 10 comments · first 2021-05-24 · latest 2026-06-05
20082026
-
…On top of that, C++ allows to design very concise APIs. (One of my favorite examples is sol2: https://github.com/ThePhd/sol2 ). Library code involving templates, on the other hand, can be pretty complex and hard to read. Concepts and other…
comment by spacechild1 · 2026-06-05 · in C++: The Documentary -
…like Lua, hot reloading becomes trivial. sol2 is a really awesome Lua binding library for C++: https://github.com/ThePhD/sol2
comment by spacechild1 · 2026-03-02 · in Making Video Games in 2025 (without an engine) -
…able to set type hints in the bindings to use in some IDE, I can create stubs for it manually. [0]: https://github.com/ThePhD/sol2
comment by matusnovak · 2025-07-01 · in Pluto is a unique dialect of Lua with a focus on general-purpose programming -
PSA: if you are using (modern) C++, https://github.com/ThePhD/sol2 makes embedding Lua incredibly easy and straightforward.
comment by spacechild1 · 2025-01-17 · in Programming in Lua (first edition) (2003) -
…are many wrapper libraries that take care of all the stack manipulation. For example, I'm using https://github.com/ThePhD/sol2 to interface with C++ and the API is incredibly ergonomic.
comment by spacechild1 · 2024-12-26 · in Lua is so underrated -
Off topic, but this is the author of my favourite Lua C++ binding library ( https://github.com/ThePhD/sol2 ). Great guy!
comment by spacechild1 · 2021-12-30 · in Why the C Language Will Never Stop You from Making Mistakes -
…Consider, for example, the sol2[0] example usage code vs the actual source code itself[1]. 0. https://github.com/ThePhD/sol2 1. https://github.com/ThePhD/sol2/blob/develop/include/sol/func...
comment by moth-fuzz · 2021-12-07 · in Sayonara, C++, and Hello to Rust -
…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":…
comment by spacechild1 · 2021-12-01 · in Design Issues for Foreign Function Interfaces (2004) -
…based user interactivity — e.g. REPLs and scriptable config [4]. [1]: https://fennel-lang.org/ [2]: https://github.com/ThePhD/sol2 [3]: https://github.com/amethyst/rlua [4]: https://git.sr.ht/~ioiojo/include-fnl
comment by atweiden · 2021-06-09 · in Embedding Lisp in C++ – A Recipe -
…already have. So when exposing APIs there is much less friction. Truth to be told, there is also https://github.com/ThePhD/sol2 which looks great and something to consider. It makes binding things quite easier and gives you object-oriented…
comment by germandiago · 2021-05-24 · in My experience binding a couple of scripting engines with C++