C-Python-like-Decorators
papers
C-Python-like-Decorators | papers | |
---|---|---|
2 | 84 | |
157 | 591 | |
- | 1.7% | |
1.8 | 4.2 | |
over 3 years ago | 2 days ago | |
C++ | Perl | |
- | - |
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.
C-Python-like-Decorators
-
Golang-like defer operation in C++
When I learn a new programming language, I find little gems in them that I really wish C++ had. I've made a write-up before on making Python-like function decorators in modern C++ with no macro magic, but today I have been inspired by the Go programming language's defer keyword.
-
Are Metaclasses still coming to C++?
For example you could do a poor man's decorator by wrapping functions in C++: https://github.com/TheMaverickProgrammer/C-Python-like-Decorators
papers
-
Learn Modern C++
What's fun is, because everything is decided in papers, we can find out why! https://github.com/cplusplus/papers/issues/884
Accepted paper here: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p20...
> The proposed std::print function improves usability, avoids allocating a temporary std::string object and calling operator<< which performs formatted I/O on text that is already formatted. The number of function calls is reduced to one which, together with std::vformat-like type erasure, results in much smaller binary code (see § 13 Binary code).
Additionally,
> Another problem is formatting of Unicode text:
> std::cout << "Привет, κόσμος!";
> If the source and execution encoding is UTF-8 this will produce the expected output on most GNU/Linux and macOS systems. Unfortunately on Windows it is almost guaranteed to produce mojibake despite the fact that the system is fully capable of printing Unicode
- The insanity of compile time programming
- P1673 A free function linear algebra interface based on the BLAS
-
When will std::linalg make it into a new C++ release?
See https://github.com/cplusplus/papers/issues/557
-
C++ Papercuts
Bringing editions to C++ failed, and I am not aware of anyone trying to tackle the issues https://github.com/cplusplus/papers/issues/631
(I could be wrong though! I follow the committee more than you may guess, but not as much as to think I know everything about what's going on.)
-
Argonne National Lab is attempting to replicate LK-99
GitHub would not be relevant in this respect because:
* It's owned by a (single) commercial corporation, Microsoft.
* There is censorship both by content and in some respects by country of origin.
* The code is closed.
but otherwise it's an interesting idea.
The C++ standardization committee uses GitHub to track papers submitted to them, see:
https://github.com/cplusplus/papers
-
C++23: The Next C++ Standard
There was no non-approval. The facility needs more work, and the authors (and the committee) were focusing on getting print/format done first. I hope that the paper will be worked on again in the future. We will be happy to review it once there is a revision (see github for history)
- What C++ library do you wish existed but hasn’t been created yet?
-
2023-06 Varna ISO C++ Committee Trip Report — First Official C++26 meeting!
For more details on what we did at the 2023-06 Varna meeting, the [GitHub issue](https://github.com/cplusplus/papers/issues/328) associated with the paper has a summary.
-
Trip Summer ISO C++ standards meeting (Varna, Bulgaria)
You subscribe to the Github issue of the proposal: https://github.com/cplusplus/papers/issues
What are some alternatives?
GSL - Guidelines Support Library
circle - The compiler is available for download. Get it!
C-Golang-like-Defer - Cursed defer() method in C++ achieves similar results as Go's defer keyword.
compiler-explorer - Run compilers interactively from your web browser and interact with the assembly
defer.hpp - Go's defer implementation in C++17
C++ Format - A modern formatting library
LEWG - Project planning for the C++ Library Evolution Working Group
CPM.cmake - 📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.
tinyformat - Minimal, type safe printf replacement library for C++
FastAD - FastAD is a C++ implementation of automatic differentiation both forward and reverse mode.
rangesnext - ranges features for c+23 ported to C++20
mp11 - C++11 metaprogramming library