cling
igcc
Our great sponsors
cling | igcc | |
---|---|---|
19 | 4 | |
3,342 | 181 | |
2.1% | - | |
8.4 | 10.0 | |
16 days ago | about 3 years ago | |
C++ | Python | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 only |
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.
cling
- Cling 1.0 Released
- Cling: Interactive C++ Interpreter
-
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
-
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
-
Compiled and Interpreted Languages: Two Ways of Saying Tomato
Interactive C++ with Cling, https://blog.llvm.org/posts/2020-11-30-interactive-cpp-with-cling/, https://github.com/root-project/cling/, Relaxing the One Definition Rule in Interpreted C++, https://dl.acm.org/doi/10.1145/3377555.3377901 (PDF: https://www.researchgate.net/publication/339463915_Relaxing_the_one_definition_rule_in_interpreted_C)
-
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.
-
How to cling for execute code plugin?
Cling: https://github.com/root-project/cling
-
Do you use Wokwi to test/simulate/debug your ESP32/Arduino code, or are there other dev tools a better fit for the ESP32?
Wanting to just test pure c or c++ functions that are hardware independent -> (solution that I'm using): cling just in time compiler, gives a shell that you can just experiment with C++ expressions
-
gcc is pre installed but g++ not?
C++ source cannot contain a shebang, but you can make them executable with binfmt-misc, and have the kernel pass them to a C++ interpreter such as Cling upon execution. Pretty much the same as running Python or Bash scripts.
- Fête à bord d’un avion de Sunwing | L’organisateur s’explique sur l’origine de sa fortune
igcc
-
Interactive GCC (igcc) is a read-eval-print loop (REPL) for C/C++
Writes to a temporary file and compiles it: https://github.com/alexandru-dinu/igcc/blob/84f68c7056d0d996...
-
I Wrote a C++ REPL in 20 Lines of Code (2021)
I don't use it very often, but it's handy to try out syntax or certain snippets. At its core, it continuously updates a temporary file that gets send to gcc for compilation. Flags & libs can be specified in a config.
[1] https://github.com/alexandru-dinu/igcc
What are some alternatives?
termux-ndk - android-ndk for termux
xeus - Implementation of the Jupyter kernel protocol in C++
xeus-cling - Jupyter kernel for the C++ programming language
root - The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
femtolisp - a lightweight, robust, scheme-like lisp implementation
jsroot - JavaScript ROOT
cppreference-doc - C++ standard library reference
awesome-cpp - A curated list of awesome C++ (or C) frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff.
sectorlisp - Bootstrapping LISP in a Boot Sector
foth - Tutorial-style FORTH implementation written in golang
magic_get - std::tuple like methods for user defined types without any macro or boilerplate code