modern-cpp-features
cppfront
modern-cpp-features | cppfront | |
---|---|---|
47 | 91 | |
20,206 | 5,688 | |
0.9% | 1.1% | |
6.4 | 9.3 | |
5 months ago | 15 days ago | |
Python | C++ | |
MIT License | 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.
modern-cpp-features
-
Ask HN: Catching Up on C++?
Just go through this https://github.com/AnthonyCalandra/modern-cpp-features and you should be fine.
If you also like thorough explanations and graphs, there's https://hackingcpp.com/ that could answer many questions you might have.
By the way, just in case, bookmark this online C++ reference https://eel.is/c++draft/ for diving in deep waters.
Good luck!
-
C++23: The Next C++ Standard
I'm a little 10 years out from writing C++ professionally and I found this cheat sheet[0] useful. Basically if you have an inkling of the concept you're looking for, just search on that cheat sheet to find the relevant new C++ thing. Specifically for me, we used Boost for smart pointers which are now part of the stdlib, and threads are now part of the stdlib as well.
[0] https://github.com/AnthonyCalandra/modern-cpp-features
- E-Book Kindle sau PDF (engleză) despre C++
-
What proportion of C++ used more often than others?
A more productive way to go about it would be to ask "What are the features in each version of C++ past C++11 that I should care about the most?" instead. In that case you could take a look at things like https://github.com/AnthonyCalandra/modern-cpp-features and https://github.com/mortennobel/cpp-cheatsheet, see what appeals to you, ignore what does not.
-
What's the best book to learn C++?
Looks like there's a version history here
-
Extended C++ education for advanced/seasoned developers
As someone suggested cppcon and c++ talks, also I would reccomend reading this: https://github.com/AnthonyCalandra/modern-cpp-features and all things in the papers section in this: https://en.cppreference.com/w/cpp/compiler_support
- Brushing up
-
What are some good books to learn more about the C++ ecosystem?
I've already done a bit of research which has led me to the The Definitive C++ Book Guide & List. From that, I've decided to go over The C++ Programming Language (4th Edition) to learn C++11 and then this GitHub repo to learn the remaining C++14/17/20 features.
-
Ask HN: Is C++ making a comeback? “modern C++” versus Golang/Rust/Zig/Nim?
clickable:
"Welcome back to C++ - Modern C++" https://learn.microsoft.com/en-us/cpp/cpp/welcome-back-to-cp...
"21 New Features of Modern C++ to Use in Your Project" http://www.vishalchovatiya.com/21-new-features-of-modern-cpp...
"What is modern C++"? https://www.reddit.com/r/cpp_questions/comments/tgs6ir/what_...
"C++ is the next C++" https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p26...
"modern c++ features" https://github.com/AnthonyCalandra/modern-cpp-features
C++ 23 to introduce module support "https://www.infoworld.com/article/3662808/c-plus-plus-23-to-..."
"C++ 2023" https://en.wikipedia.org/wiki/C%2B%2B23
- Functie ca valoare intr-un map
cppfront
-
21st Century C++
> And I'm left wondering, is this just how C++ is? Can't the language provide tooling for me to better adhere to its guidelines
Well, first, the language can't provide tooling: C++ is defined formally, not through tools; and tools are not part of the standard. This is unlike, say, Rust, where IIANM - so far, Rust has been what the Rust compiler accepts.
But it's not just that. C++ design principles/goals include:
* multi-paradigmatism;
* good backwards compatibility;
* "don't pay for what you don't use"
and all of these in combination prevent baking in almost anything: It will either break existing code; or force you to program a certain way, while legitimate alternatives exist; or have some overhead, which you may not want to pay necessarily.
And yet - there are attempts to "square the circle". An example is Herb Sutter's initiative, cppfront, whose approach is to take in an arguably nicer/better/easier/safer syntax, and transpile it into C++ :
https://github.com/hsutter/cppfront/
- Herb Sutter's Cppfront 0.8.0
- Cppfront v0.8.0
-
Trip C++Now 2024 – think-cell
I’m not fond of adding an increasing number of specific compiler options for memory-safety. I love -faddress=sanitizer or -fsanitize. But the historically growing number of warning which need to be turned on is an issue. For example the options -Wconversion, -Wsign-conversion and -Warith-conversion shall be default with C++26. And if your code doesn’t compile use either an older revision or turn it deliberately off (saying: I’m aware, read the handbook, I take the risk).
I want some of not all the ideas of CPP2/cppfront[1] in C++XX. Finally using #unsafe when needed, like Rust. C++ does evolve over decades, more like other languages.
[1] https://github.com/hsutter/cppfront
-
GCC 14.1 Release
CPP2/cppfront:
https://github.com/hsutter/cppfront
I hope we see this in C++26 as optional mode i.e. #safe and #unsafe and same for #impdef or so.
-
Compilation of gripping C++ conference talks from 2023
C++23 is done. But C++ is not! In this talk, the author shares his personal perspectives on an ongoing and very active evolution of C++, updates on his cppfront experimental compiler, and why compatibility is essential to the further success of the C++ development.
- Show HN: a Rust Based CLI tool 'imgcatr' for displaying images
- Cpp2 and cppfront – An experimental 'C++ syntax 2' and its first compiler
-
C++ Safety, in Context
https://github.com/hsutter/cppfront
But his side project at Microsoft didn't gain traction with gcc, clang, etc and everybody else in the industry. So at this point, the C++ committee will be perceived as "so far behind" ... because there's nothing for them to vote on.
- Cppfront: Experimental C++ Syntax 2 –> Syntax 1 compiler
What are some alternatives?
OOP-in-C - Simple and memory-efficient implementation of OOP in C suitable for real-time embedded systems.
carbon-lang - Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
vim-c-cpp-modern - Extended Vim syntax highlighting for C and C++ (C++11/14/17/20/23)
jakt - The Jakt Programming Language
functools - Functional tools in Go 1.18 using newly introduced generics
exotracker-cpp