patterns
cling
patterns | cling | |
---|---|---|
8 | 19 | |
643 | 3,347 | |
- | 1.0% | |
0.0 | 8.4 | |
over 4 years ago | about 13 hours 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.
patterns
-
Language design bullshitters
std::visit, std::holds_alternative, std::get, ... and this library disagree with you.
-
A new privilege escalation vulnerability in the Linux kernel, enables a local attacker to execute malware on vulnerable systems
I agree, good syntax makes it better, and even with something pretty good by C++ standards Rust still feels a lot less busy (interestingly the library I linked is the precursor to a candidate for addition to C++23).
-
C++23: The <expected> header; expect the unexpected
mpark/patterns
-
Python switch statement ftw (finally)
What? C++ will get pattern matching even later than python (C++23)
-
Was your first day with Python just like that?
Match...case is not a replacement to switch statements. It's something called Pattern Matching. It's pretty common in functional languages (Haskell had pattern matching since forever) but it's becoming more mainstream nowadays. Rust has pattern matching and there are proposals to add pattern matching to C++ and JavaScript.
-
Talking Async Ep1: Why C++20 is the Awesomest Language for Network Programming
The variant approach was chosen with half an eye towards the pattern matching proposal. For example:
-
match(it): A light-weight header-only pattern-matching library for C++17.
So is this just a copy of https://github.com/mpark/patterns or what?
-
Cpp be kinda a asshole about memory
What C++ does not do but Rust does, is functional-style pattern matching of these options, as seen in languages like Scala (2004), Haskell (1990) and Standard ML (1983) since seemingly forever. Worth noting is that there are some pretty impressive libraries out there that does this for C++ too, and it's currently a proposal for C++23.
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
What are some alternatives?
talking-async - Example programs for Talking Async videos
termux-ndk - android-ndk for termux
proposal-pattern-matching - Pattern matching syntax for ECMAScript
xeus-cling - Jupyter kernel for the C++ programming language
scelta - (experimental) Syntactic sugar for variant and optional types.
femtolisp - a lightweight, robust, scheme-like lisp implementation
C11parser - A correct C89/C90/C99/C11/C18 parser written using Menhir and OCaml
cppreference-doc - C++ standard library reference
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
mal - mal - Make a Lisp