#cxx — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #cxx, aggregated by home.social.
-
Most C++ codebases aren't getting rewritten in Rust - but that doesn't mean the two can't work together.
At Oxidize 2026, @nicofee and Nicolas Qiu Guichard (@kdab) run a practical workshop on Rust/C++ interop using CXX: calling Rust from C++ and vice versa, integrating a Rust library into a CMake project, and pulling a C++ library into a Cargo build.
🔗 https://oxidizeconf.com/sessions/rust_and_c_plus_plus_can_be_friends
#Oxidize2026 #RustLang #CPlusPlus #Interop #CXX #SystemsProgramming
-
Most C++ codebases aren't getting rewritten in Rust - but that doesn't mean the two can't work together.
At Oxidize 2026, @nicofee and Nicolas Qiu Guichard (@kdab) run a practical workshop on Rust/C++ interop using CXX: calling Rust from C++ and vice versa, integrating a Rust library into a CMake project, and pulling a C++ library into a Cargo build.
🔗 https://oxidizeconf.com/sessions/rust_and_c_plus_plus_can_be_friends
#Oxidize2026 #RustLang #CPlusPlus #Interop #CXX #SystemsProgramming
-
Choosing between Zngur and CXX for Rust/C++ interoperability?
This detailed comparison explores their design philosophies, container support, trait objects, async capabilities, build systems, and real-world tradeoffs.
Full write-up: https://www.kdab.com/weighing-up-zngur-and-cxx-for-rustc-interop/
-
Choosing between Zngur and CXX for Rust/C++ interoperability?
This detailed comparison explores their design philosophies, container support, trait objects, async capabilities, build systems, and real-world tradeoffs.
Full write-up: https://www.kdab.com/weighing-up-zngur-and-cxx-for-rustc-interop/
-
I was fixing some #Krunner plugin to result better matches.
Being through my use of #Emacs also #Lisp guy made me want to go trough a list like in lisp,
with a while-let unfortunately #CXX doesn't have such a feature.
The first other result I got was about #rust. It does awfully look like lisp from that point of view.
Just the syntax is pretty weird seeing it from that angle. -
I was fixing some #Krunner plugin to result better matches.
Being through my use of #Emacs also #Lisp guy made me want to go trough a list like in lisp,
with a while-let unfortunately #CXX doesn't have such a feature.
The first other result I got was about #rust. It does awfully look like lisp from that point of view.
Just the syntax is pretty weird seeing it from that angle. -
This morning, I saw an exceptional ... Kopfball.
Admittedly, it is only stdexcept.
#cxx #programming -
This morning, I saw an exceptional ... Kopfball.
Admittedly, it is only stdexcept.
#cxx #programming -
std::move doesn't move anything: A deep dive into Value Categories
https://0xghost.dev/blog/std-move-deep-dive/ -
Anyone have a recommendation for a small (ideally single-file?) C++ Markdown parser library?
I have some Markdown files that I would love to export to various other formats, and don't want to reinvent the wheel if I don't have to. I don't need any support for HTML in Markdown.
Basically I'd love to feed Markdown into a function and be called back for each element (header, paragraph, link etc.), kinda like SAX does for XML?
-
Anyone have a recommendation for a small (ideally single-file?) C++ Markdown parser library?
I have some Markdown files that I would love to export to various other formats, and don't want to reinvent the wheel if I don't have to. I don't need any support for HTML in Markdown.
Basically I'd love to feed Markdown into a function and be called back for each element (header, paragraph, link etc.), kinda like SAX does for XML?
-
Vor 10 Jahren erschütterte ein Foto die Welt: Alan Kurdi, der 2-jährige ertrunken im Mittelmeer ebenso Bruder Ghalib u. Mutter Rehanna. Große Trauer u. Empörung.
Und die Politik bekannte: Wir müssen helfen!Gestern entscheidet die #BuReg, die Förderung für die zivile #Seenotrettung, 2 Mio. €, komplett zu streichen. Signal: Die Rettung von Leben ist Deutschland keinen Cent mehr wert.
Da muss die #Nächstenliebe der #Cxx-Parteien sein. 😡
#seaeye #MerzNichtMeinKanzler https://sea-eye.org/haushalt/?utm_source=mailchimp&utm_medium=newsletter&utm_campaign=NL_mittelkuerzung
-
Currently reading up on new C++20 concepts and I do see the advantages of the spaceship operator <=>. Saves quite a bit of operator coding.
But what about coroutines? What are real use cases? Are there some example projects out there, where the code is more readable and maintainable?
#cxx -
Currently reading up on new C++20 concepts and I do see the advantages of the spaceship operator <=>. Saves quite a bit of operator coding.
But what about coroutines? What are real use cases? Are there some example projects out there, where the code is more readable and maintainable?
#cxx -
I want to be your next #FediHire ! I've been a programmer since 1985 (as a child), I've been an IT professional since 1995 (pulling wires and swapping cards and configuring MS Windows). I graduated from University of Arkansas Fayetteville with a BS in CS in December of 2003. A full resume is available.
I currently require a 100% remote position. I cannot relocate from Cove, #Arkansas. I would prefer W-2 employment with a base salary of at least 130k USD/yr, plus some sort of retirement offering (401k or similar) and healthcare benefits (HDCP + HSA or similar).
I prefer something where I can be a high-performing individual contributor: reading, writing and improving source text the majority of my day, with some time spent knowledge-sharing with other developers -- learning and teaching. I'd like to work with #Haskell, #Purescript, or #Idris as the primary source language. I've previously delivered value in Haskell, #Javascript, #SQL, #Python, #Scala, #Java, #C, and #Cxx among others. I can be productive in almost any language (no PHP, please; I promised myself never again).
-
I want to be your next #FediHire ! I've been a programmer since 1985 (as a child), I've been an IT professional since 1995 (pulling wires and swapping cards and configuring MS Windows). I graduated from University of Arkansas Fayetteville with a BS in CS in December of 2003. A full resume is available.
I currently require a 100% remote position. I cannot relocate from Cove, #Arkansas. I would prefer W-2 employment with a base salary of at least 130k USD/yr, plus some sort of retirement offering (401k or similar) and healthcare benefits (HDCP + HSA or similar).
I prefer something where I can be a high-performing individual contributor: reading, writing and improving source text the majority of my day, with some time spent knowledge-sharing with other developers -- learning and teaching. I'd like to work with #Haskell, #Purescript, or #Idris as the primary source language. I've previously delivered value in Haskell, #Javascript, #SQL, #Python, #Scala, #Java, #C, and #Cxx among others. I can be productive in almost any language (no PHP, please; I promised myself never again).
-
🎉 Yay! We finally have reflection in C++26!
For me, as one of the contributors, this begun around 2009 when I started playing with macro-based hand-written reflection support.
-
🎉 Yay! We finally have reflection in C++26!
For me, as one of the contributors, this begun around 2009 when I started playing with macro-based hand-written reflection support.
-
Say, is there a trick in C++ to make to_string() work for any type?
If I have
using namespace std;
and then just write
to_string(foo)
it will prefer my local namespace's to_string(MyClass) and error when given an int, instead of picking std::to_string(int) for those.
Do I really have to add all variants of
inline string to_string(int n) { return std::to_string(n); }
to my namespace to be able to just say to_string(foo) for any type and make it work?
-
Say, is there a trick in C++ to make to_string() work for any type?
If I have
using namespace std;
and then just write
to_string(foo)
it will prefer my local namespace's to_string(MyClass) and error when given an int, instead of picking std::to_string(int) for those.
Do I really have to add all variants of
inline string to_string(int n) { return std::to_string(n); }
to my namespace to be able to just say to_string(foo) for any type and make it work?
-
Some nice additions for annotating C++ code to make it import better into Swift:
-
Some nice additions for annotating C++ code to make it import better into Swift:
-
Things I wish they fixed in C/C++:
When you init an instance variable from a parameter, you often copy-paste the name of the instance variable into the parameter. This allows you to accidentally forget editing code and generate perfectly compiling but wrong code like:
class Foo {
public:
int _bar;
Foo(int bar) : _bar(_bar) {}
};accidentally initializing a variable with itself instead of the parameter. (Thank goodness we have an "unused parameter” warning)
-
Things I wish they fixed in C/C++:
When you init an instance variable from a parameter, you often copy-paste the name of the instance variable into the parameter. This allows you to accidentally forget editing code and generate perfectly compiling but wrong code like:
class Foo {
public:
int _bar;
Foo(int bar) : _bar(_bar) {}
};accidentally initializing a variable with itself instead of the parameter. (Thank goodness we have an "unused parameter” warning)
-
When CMake likes building the project too much. #NotMine #cmake #cxx #develoment
cyberdoskel (@doskel.net) -
When CMake likes building the project too much.
#NotMine #cmake #cxx #develoment
cyberdoskel (@doskel.net)
RE: masto.doskel.net/users/doskel/… -
Anyone a master of #cxx/ #RustLang I'm having troubles linking the OpenImageIO_Utils library for some Rust bindings that I'm writing, and could use some help. Some more info here: https://github.com/dtolnay/cxx/issues/1472
-
Anyone a master of #cxx/ #RustLang I'm having troubles linking the OpenImageIO_Utils library for some Rust bindings that I'm writing, and could use some help. Some more info here: https://github.com/dtolnay/cxx/issues/1472
-
-
-
Been slowly working on a #libcosmic app. It's a presentation app for my ministry and church. I originally wrote it in #C++ and #QML, but have since rewritten part of the backend to #rust with the help of #CXX-QT. This still gave me a really tricky system and I decided to investigate rust ui libraries. Seeing #system76 develop #cosmic in rust with #iced, I decided to try it, and it's working quite nice thus far. Some rough edges, but I can't wait to see it come to fruition.
-
Been slowly working on a #libcosmic app. It's a presentation app for my ministry and church. I originally wrote it in #C++ and #QML, but have since rewritten part of the backend to #rust with the help of #CXX-QT. This still gave me a really tricky system and I decided to investigate rust ui libraries. Seeing #system76 develop #cosmic in rust with #iced, I decided to try it, and it's working quite nice thus far. Some rough edges, but I can't wait to see it come to fruition.
-
Some people, when confronted with a problem in C++, think:
"I know, I'll write a custom allocator!"
Now they've run out of memory to have more problems. So I guess that's doublegoodplusone?
-
Make the best of Rust and C++ and learn how to use them together effectively to make Qt applications safer and easier to maintain.
In this course, we'll cover:
/Use of Cargo (Rusts build system) with #CMake
/Accessing Rust code from C++ with #CXX (and vice-versa)
/Defining your #QObject types in Rust with CXX-Qt -
Make the best of Rust and C++ and learn how to use them together effectively to make Qt applications safer and easier to maintain.
In this course, we'll cover:
/Use of Cargo (Rusts build system) with #CMake
/Accessing Rust code from C++ with #CXX (and vice-versa)
/Defining your #QObject types in Rust with CXX-Qt -
My boys! We love testing, don't we? More #cpp / #cxx questions for you to sharpen your wits and train your legalese on. Because when it comes to regulations, it's important to not leave anything to chance, even more now that the military says they want to loooooove C++ (in a "why can't you be like Rust?" way).
So:
How to make sure the caller of your function does not ignore the result?
-
To my #cxx #cpp and #robotframework bubble: Is there any USEFUL documentation about how to debug C/C++ tests written in Robot? Like, how do I attach my gdb to inspect issues?
-
To my #cpp #cxx #cmake bubble: I have a project with an ExternalProject_Add, where I download binaries and headers using jfrog to my CMAKE_BINARY_DIR. Trying to add the includes via target_include_directories throws an error, as the jf download didn’t run just yet and the directory is missing. How can I work around this…?
-
C++‘s std::async is nice. But by golly are the compiler errors unreadable if you forget to wrap call by reference arguments in std::ref! Why is it that C++ compilers are always so obtuse?
int f( int &i ) {…}
void foo() { int i; auto fut=std::async(f,i); }
-> no type named 'type' in std::__invoke_result
Fix: std::ref(i)
#cxx -
Has anyone understood and is using <memory_resource> in C++17..?
#cxx #programming