magic_get
cling
Our great sponsors
magic_get | cling | |
---|---|---|
9 | 19 | |
192 | 3,301 | |
- | 2.2% | |
8.2 | 8.6 | |
4 months ago | 7 days ago | |
C++ | C++ | |
Boost Software License 1.0 | GNU General Public License v3.0 or later |
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.
magic_get
-
What is a good way to iterate through struct contents?
Maybe this: https://github.com/apolukhin/magic_get
-
Minimum viable declarative GUI in C++
No RTTI required, but the types are required to be aggregates (no constructors defined). It's possible to count the number of members using SFINAE by trying different numbers of inputs to the aggregate constructor using a type that's castable to anything, and then enumerate the members with a similar trick (or use structured binding to pull them out directly). I think he uses magic_get which is the most popular library for this trick.
-
Serdepp 0.1.2 Released
Neat! Have you considered using magic_get?
-
Getting information about classes, methods and variables in C++?
It is possible with some hacks https://github.com/apolukhin/magic_get
cling
-
Interactive GCC (igcc) is a read-eval-print loop (REPL) for C/C++
More recent activity, but based on clang: https://github.com/jupyter-xeus/xeus-cling https://github.com/root-project/cling
Similar to Cling[1] from ROOT.
-
It's 2023, so of course I'm learning Common Lisp
> The repl driven workflow is amazing and the lisp images are rock solid and highly performant.
do people not realize that basically everything vm/interpreted language has a repl these days?
https://www.digitalocean.com/community/tutorials/java-repl-j...
https://github.com/waf/CSharpRepl
https://pub.dev/packages/interactive
not to mention ruby, python, php, lua
hell even c++ has a janky repl https://github.com/root-project/cling
-
dont want online ones
Want to see your mind blown? Check out cling, a (sort of) C and C++ interpreter (it's a REPL). Or the work in progress, live-developed clauf, a real C interpreter.
- Fête à bord d’un avion de Sunwing | L’organisateur s’explique sur l’origine de sa fortune
-
Interpreter vs Compiler
"Exclusively" may be a tough claim. C++ has the Cling interpreter, for example. You could say that "most C++ implementations are compilers". My understanding with Python is that it is challenging to write a compiler for because it's a "dynamic" language. For example, it's possible to create a new datatype at runtime, or even to build strings and tell the interpreter to execute them as source code.
-
Python switch statement ftw (finally)
https://root.cern/cling/ https://github.com/root-project/cling
-
Getting information about classes, methods and variables in C++?
cling(https://github.com/root-project/cling) a c++ interpreter may help, or you can use an IDE or https://en.cppreference.com/ (on duckduckgo you can search directly on it with the !cpp bang, or use firefox 'add a keyword for this search' feature which is really great)
-
Wisp: A light Lisp written in C++
It has been done several times, at least.
http://www.hanno.jp/gotom/Cint.html
https://github.com/root-project/cling
https://www.softintegration.com
You can argue whether some of those are strictly interpreters, versus just a REPL hooked up to a compiler (as in the case of Cling). But they do exist.
What are some alternatives?
termux-ndk - android-ndk for termux
pfr - std::tuple like methods for user defined types without any macro or boilerplate code
xeus-cling - Jupyter kernel for the C++ programming language
femtolisp - a lightweight, robust, scheme-like lisp implementation
sectorlisp - Bootstrapping LISP in a Boot Sector
cppreference-doc - C++ standard library reference
foth - Tutorial-style FORTH implementation written in golang
mal - mal - Make a Lisp
OpenSceneGraph - OpenSceneGraph git repository
rellic - Rellic produces goto-free C output from LLVM bitcode
serdepp - c++ serialize and deserialize adaptor library like rust serde.rs