Hacker GitHub

← All repos

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

Mentions per year 10 mentions · busiest year 2021 (5)
20082026
  1. …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
  2. …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)
  3. …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
  4. 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)
  5. …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
  6. Off topic, but this is the author of my favourite Lua C++ binding library ( https://github.com/ThePhD/sol2 ). Great guy!
  7. …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
  8. …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":…
  9. …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
  10. …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…