r_cpp | Unsorted

Telegram-канал r_cpp - C++ - Reddit

-

Stay up-to-date with everything C++! Content directly fetched from the subreddit just for you. Join our group for discussions : @programminginc Powered by : @r_channels

Subscribe to a channel

C++ - Reddit

I built an open-source Order Matching Engine from scratch to understand how real exchanges work

My main goals were:

Learn how real-world matching systems work
Study low-latency design tradeoffs
Build something useful for other devs learning system design

I’d genuinely love feedback on:

Architecture decisions
Performance bottlenecks
What features would make this more production-ready

GitHub: https://github.com/PIYUSH-KUMAR1809/order-matching-engine

https://redd.it/1phdp7g
@r_cpp

Читать полностью…

C++ - Reddit

Recursion

Recursion is when you explain recursion using recursion.

#recursion #programming

https://redd.it/1ph7bdy
@r_cpp

Читать полностью…

C++ - Reddit

BEEP-8 – compile C++20 to a tiny ARM ROM and run it instantly in a browser

I’ve been working on a small side project called BEEP-8 and thought some C++ folks might find it interesting.

The idea is:

* you write C++20 (subset) against a small SDK
* cross-compile it to a ROM image for a tiny ARM-based “console”
* open a URL, point it at the ROM, and it runs immediately in your browser on PC or phone

No native install, no WASM glue – the browser is just hosting an emulator for a fixed virtual machine.

What the target looks like

* CPU: software ARMv4-ish core, integer-only, fixed 4 MHz “virtual clock”
* Memory: 1 MB RAM, 1 MB ROM
* Video: simple 8/16-bit-style VDP (tilemaps, sprites, 16-colour PICO-8-compatible palette)
* Audio: small tone/noise APU
* Input: buttons plus touch-friendly controls so it works on phones as well

From user code you never touch JS or WebGL; it just looks like a small C++ API plus some memory-mapped registers.

Toolchain / workflow

1. `git clone` [`https://github.com/beep8/beep8-sdk.git`](https://github.com/beep8/beep8-sdk.git)
* The repo includes a preconfigured GNU Arm GCC cross-compiler in-tree, so there’s no separate compiler install.
2. Write code in C or C++20 (integer-only environment) using the SDK headers.
3. Run `make` to build a `.b8` ROM for the virtual ARM machine.
4. Open [`https://beep8.org`](https://beep8.org) (or your own self-hosted copy), select the ROM, and it boots and runs in the browser at 60 fps.

Links

* Live console + sample games/demos (runs directly in the browser): [https://beep8.org](https://beep8.org)

SDK, toolchain, and source (MIT-licensed):
[https://github.com/beep8/beep8-sdk](https://github.com/beep8/beep8-sdk)

I’m curious what the C++ community thinks about this kind of target:

* Would you consider it a useful little playground for teaching C/C++ or for jams / prototypes?
* Any obvious changes you’d make to the API or build flow to make it nicer for C++ developers?
* If you were writing a small C++ library or demo for a 4 MHz ARM with 1 MB RAM, what would you build first?

Happy to answer questions or share more details about the toolchain and runtime if anyone’s interested.

https://redd.it/1pgjqdl
@r_cpp

Читать полностью…

C++ - Reddit

The worst programming language of all time

I didn't see it posted here yet. A 2 hour rant about C++

https://youtu.be/7fGB-hjc2Gc

"biggest takeaway from video is that somehow every single C++ feature has its own 400 page book dedicated exclusively to it"

It's hard to disagree with that comment.


https://redd.it/1pfx7zz
@r_cpp

Читать полностью…

C++ - Reddit

Division — Matt Godbolt’s blog
https://xania.org/202512/06-dividing-to-conquer?utm_source=feed&utm_medium=rss

https://redd.it/1pftyw9
@r_cpp

Читать полностью…

C++ - Reddit

Anyone else struggling with super slow CI builds lately?

Our CI pipeline has gotten ridiculously slow over the past few months. What used to be 5–10 minutes is now creeping toward 30+, and it’s blocking merges and killing our turnaround time. We’ve cleaned up configs, optimized a few modules, and even bumped our runners, but the performance bump didn’t last long.

Before we start rewriting half the build system, I figured I’d ask: is anyone using something that actually speeds up CI builds in a noticeable way?

https://redd.it/1pf7jwe
@r_cpp

Читать полностью…

C++ - Reddit

HPX Tutorials: Algorithms
https://www.youtube.com/watch?v=AnjEpOn78q8

https://redd.it/1pf09ap
@r_cpp

Читать полностью…

C++ - Reddit

Exploring an offline-first and P2P-oriented runtime design in C++20

I’ve been exploring some runtime design ideas in C++20, mostly around problems that appear in unreliable or unstable network environments.

The main concepts I’m experimenting with are:

offline-first execution (local-first state, fallback mode)
P2P communication between nodes
lightweight async HTTP handling
WebSocket-based messaging
a small middleware pipeline
a modular runtime structure instead of a large monolithic framework

I’m mostly curious about whether others in the C++ community have experimented with similar approaches (local-first systems, edge runtimes, distributed execution without strong cloud dependence).

If anyone has insights, prior work, design critiques, or papers worth reading, I would be glad to learn from them.

https://redd.it/1peppj9
@r_cpp

Читать полностью…

C++ - Reddit

Time in C++: Understanding std::chrono::steady_clock
https://www.sandordargo.com/blog/2025/12/03/clocks-part-3-steady_clock

https://redd.it/1pdw276
@r_cpp

Читать полностью…

C++ - Reddit

New Learning Path at Qt Academy | Creating Qt Quick User Interfaces
http://qt.io/academy/course-catalog?#creating-qt-quick-user-interfaces

https://redd.it/1pdvgc0
@r_cpp

Читать полностью…

C++ - Reddit

A distributed mkcert-like tool written in C++

Make your development environment fully TLS-enabled — regardless of whether you access it from localhost, remote SSH, or WSL, and whether you use a browser or curl. Everything should run over HTTPS without any security warnings.

Project URL: https://github.com/coderealm-atlas/cert-ctrl

Compiles on Linux, Windows, macOS, and FreeBSD. Any feedback is welcome.

https://redd.it/1pdkvh9
@r_cpp

Читать полностью…

C++ - Reddit

cpmop go to him

cp
mpp go to him

https://redd.it/1pdf94g
@r_cpp

Читать полностью…

C++ - Reddit

Interview with Timur Doumler: C++ Standards Committee member focused on low-latency/real-time audio programming and a contributor to C++ 26 contract assertions (ex-JetBrains, ex-JUCE framework, CppCast podcast host)
https://youtu.be/_ErQlwHJQL8?si=TbeN5MiQmXbXxG8R

https://redd.it/1pd7rux
@r_cpp

Читать полностью…

C++ - Reddit

What’s one tool you wish you discovered earlier as a developer?



https://redd.it/1pd5dja
@r_cpp

Читать полностью…

C++ - Reddit

Project idea to showcase my skills

I've been working as software engineer for 1 year now, and I worked mostly using python and rarely using cpp.
I'm not that proficient in cpp but I'd like to improve my skills and work on a personal project to advertise my skills ( I'm thinking about looking for another job ).
Are there any project ideas that could help me learn and showcase my skills ? it doesn't have to be something innovative or unparticular
for reference I work in automotive industry, but I don't mind switching.

https://redd.it/1pci2m2
@r_cpp

Читать полностью…

C++ - Reddit

CLion 2025.3 released
https://blog.jetbrains.com/clion/2025/12/2025-3-release/

https://redd.it/1phdx0v
@r_cpp

Читать полностью…

C++ - Reddit

Why everyone hates on C/C++ source generation?

It allows me to do magical reflection-related things in both C and C++

* it's faster than in-language metaprogramming (see zig's metaprog for example, slows down hugely the compiler) (and codegen is faster because the generator can be written in C itself and run natively with -O3 instead of being interpreted by the language's metaprogramming vm, plus it can be easily be executed manually only when needed instead of at each compilation like how it happens with in language metaprog.).

* it's easier to debug, you can print stuff during the codegen, but also insert text in the output file

* it's easier to read, write and maintain, usually procedural meta programming in other languages can get very "mechanical" looking, it almost seems like you are writing a piece of the compiler (for example

pub fn Vec(comptime T: type) type {
const fields = _std.builtin.Type.StructField{
.{ .name = "x", .type = T, .defaultvalue = null, .iscomptime = false, .alignment = 0 },
.{ .name = "y", .type = T, .defaultvalue = null, .iscomptime = false, .alignment = 0 },
.{ .name = "z", .type = T, .defaultvalue = null, .iscomptime = false, .alignment = 0 },
.{ .name = "w", .type = T, .defaultvalue = null, .iscomptime = false, .alignment = 0 },
};
return @Type(.{ .Struct = .{
.layout = .auto,
.fields = fields0..,
.decls = &.{},
.istuple = false,
}});
}

versus sourcegen script that simply says "struct {name} ..."

\* it's the only way to do stuff like SOA for now.. and c++26 reflection looks awful (and super flow)

However I made a post about it on both r/C
Programming and r/cpp and everyone hated on it

https://redd.it/1pgoc4y
@r_cpp

Читать полностью…

C++ - Reddit

Leadwerks Live Developer Chat 12/6/25
https://www.youtube.com/watch?v=iBb-3Jpy9Zw

https://redd.it/1pg2z77
@r_cpp

Читать полностью…

C++ - Reddit

Unable to job switch

Is anybody facing the same issue as me, not getting shortlisted anywhere. I am not sure what to do. I see my friends switching companies getting paid higher, they are coming from .net, python background. I personally feel that C++ jobs are getting reduced.

Although I am quite good at work still not able to find a better place for me that values my skills.

I am C++ dev having decent knowledge of Qt/QML.
Please share your thoughts.

https://redd.it/1pfw4hl
@r_cpp

Читать полностью…

C++ - Reddit

Where is std::optional<T&&>???

10 years ago we've got std::optional<T>. Nice. But no std::optional<T&>... Finally, we are getting std::optional<T&> now (see beman project implementation) but NO std::optional<T&&>...

DO we really need another 10 years to figure out how std::optional<T&&> should work? Is it yet another super-debatable topic? This is ridiculous. You just cannot deliver features with this pace nowadays...

Why not just make std::optional<T&&> just like std::optional<T&> (keep rebind behavior, which is OBVIOUSLY is the only sane approach, why did we spent 10 years on that?) but it returns T&& while you're dereferencing it?

https://redd.it/1pfk0ox
@r_cpp

Читать полностью…

C++ - Reddit

I built a Cargo-like package manager for C++ because I was sick of build system nonsense
https://github.com/Ammar-Alnagar/Cellion

https://redd.it/1pf33co
@r_cpp

Читать полностью…

C++ - Reddit

Exploring a local-first C++ runtime

I’m experimenting with a lightweight C++20 runtime focused on offline-first behavior, async HTTP, WebSockets, and optional P2P communication.
Still early, but I’m curious how others in the C++ world approach routing efficiency and local-first resilience in unstable network environments.

https://redd.it/1peswwz
@r_cpp

Читать полностью…

C++ - Reddit

Introducing asyncio - a new open-source C++23 coroutine network framework

https://github.com/Hackerl/asyncio

asyncio is a coroutine-based networking framework built on top of libuv. Developed using C++23, it supports Linux, Windows, Android, and macOS, making it compatible with four major platforms.

It is far from being just a toy — it is production-ready code. At my company, software built on top of asyncio is already running on tens of thousands of employee office PCs (Windows/macOS), and Linux servers in production environments are gradually adopting it.

Key Features of asyncio:
- Simple and elegant code: The codebase is designed to be clean and compact.
- Flexible and graceful sub-task management: Manage subtasks effectively and with finesse.
- User-friendly APIs: Borrowed design inspiration from multiple languages, making the APIs intuitive and easy to use.
- Well-designed interfaces: Ensures seamless interaction and borrowing ideas from numerous programming paradigms.
- Straightforward task cancellation: Task cancellation is easy and direct.
- Effortless integration with synchronous code: Integration with threads or thread pools is straightforward and smooth.

https://redd.it/1pep8ie
@r_cpp

Читать полностью…

C++ - Reddit

C++ Enum Class and Error Codes, part 3 · Mathieu Ropert
https://mropert.github.io/2025/12/03/enum_class_error_codes_part3/

https://redd.it/1pdvtuf
@r_cpp

Читать полностью…

C++ - Reddit

C++ Podcasts & Conference Talks (week 49, 2025)

Hi r/cpp! Welcome to another post in this series brought to you by Tech Talks Weekly. Below are all the C++ conference talks and podcasts published in the last 7 days.

1. **"How To Build Robust C++ Inter-Process Queues - Jody Hagins - CppCon 2025"** ⸱ +6k views ⸱ 26 Nov 2025 ⸱ 01h 03m 05s
2. **"Cutting C++ Exception Time by +90%? - Khalil Estell - CppCon 2025"** ⸱ +6k views ⸱ 28 Nov 2025 ⸱ 01h 05m 10s
3. **"Back to Basics: Master C++ Friendship - Mateusz Pusz - CppCon 2025"** ⸱ +2k views ⸱ 27 Nov 2025 ⸱ 00h 56m 53s
4. **"Optimize Automatic Differentiation Performance in C++ - Steve Bronder - CppCon 2025"** ⸱ +1k views ⸱ 01 Dec 2025 ⸱ 00h 59m 59s
5. **"Is Your C++ Code Leaking Memory? Discover the Power of Ownership-Aware Profiling"** ⸱ +1k views ⸱ 02 Dec 2025 ⸱ 00h 52m 02s tldw: -
6. **"Binary Parsing - C++23 Style! - Hari Prasad Manoharan - Meeting C++ 2025"** ⸱ +700 views ⸱ 26 Nov 2025 ⸱ 00h 46m 27s
7. **"PetriNet Studio - Architecting a SaaS Simulator in Modern C++ - Gabriel Valenzuela - Meeting C++2025"** ⸱ +300 views ⸱ 28 Nov 2025 ⸱ 00h 33m 11s

This post is an excerpt from the latest issue of ***Tech Talks Weekly*** which is a free weekly email with all the recently published Software Engineering podcasts and conference talks. Currently subscribed by +7,400 Software Engineers who stopped scrolling through messy YT subscriptions/RSS feeds and reduced FOMO. Consider subscribing if this sounds useful: *https://www.techtalksweekly.io/*

Let me know what you think. Thank you!

https://redd.it/1pdtuc7
@r_cpp

Читать полностью…

C++ - Reddit

Structured iteration (The C++ way)
https://thecppway.com/posts/structured_iteration/

https://redd.it/1pdkki3
@r_cpp

Читать полностью…

C++ - Reddit

std:: expected vs boost::system::result

Anybody ever compared and benched them? It looks like the boost version’s error type can be anything just like the STL version.

https://redd.it/1pddhg6
@r_cpp

Читать полностью…

C++ - Reddit

How to Benchmark C++ Code
https://codspeed.io/docs/guides/how-to-benchmark-cpp-code

https://redd.it/1pd7wob
@r_cpp

Читать полностью…

C++ - Reddit

C++20 Modules Support in Clangd

https://chuanqixu9.github.io/c++/2025/12/03/Clangd-support-for-Modules.en.html

https://redd.it/1pcyqe1
@r_cpp

Читать полностью…

C++ - Reddit

Latest News From Upcoming C++ Conferences (2025-12-02)

**OPEN CALL FOR SPEAKERS**

* **(NEW) CppCon Academy 2026** – CppCon Academy is asking for instructors to submit proposals for pre- and post-conference classes and/or workshops to be taught in conjunction with next year’s CppCon 2026.
* Workshops can be online or onsite and interested instructors have until January 30th to submit their workshops. Find out more including how to submit your proposal at [https://cppcon.org/cfp-for-2026-classes/](https://cppcon.org/cfp-for-2026-classes/)
* **ACCU on Sea 2026** – Interested speakers have until January 11th to submit their talks which is scheduled to take place on 17th – 20th June. Find out more including how to submit your proposal at [https://accuconference.org/callforspeakers](https://accuconference.org/callforspeakers)

**OTHER OPEN CALLS**

There are no other open calls at the moment

**TICKETS AVAILABLE TO PURCHASE**

The following conferences currently have tickets available to purchase

* **ACCU on Sea (15th – 20th June)** – You can buy super early bird tickets at [https://accuconference.org/booking](https://accuconference.org/booking) with discounts available for ACCU members.

**OTHER NEWS**

* **(NEW) C++Online 2026 Call For Speakers Closed** – The Call For Speakers for C++Online has technically closed. However, if you do have a last minute proposal (especially if it’s a workshop) then please contact [info@cpponline.uk](mailto:info@cpponline.uk) for further steps.
* **(NEW) C++Online 2026 Call For Reviews Open** – The C++Online team are looking for people to review talks that were submitted to be considered for the C++ Online 2026 programme. Please visit [https://speak.cpponline.uk/](https://speak.cpponline.uk/) and login or make an account to review the talks with reviews accepted until December 22nd.
* **CppCon 2025 Videos Now Releasing** – The CppCon videos are now being released. Subscribe to the CppCon YouTube channel to be informed when each video is released. [CppCon" rel="nofollow">https://www.youtube.com/@CppCon](CppCon" rel="nofollow">https://www.youtube.com/@CppCon)

https://redd.it/1pcfxua
@r_cpp

Читать полностью…
Subscribe to a channel