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

Audio Plugin Conventions

Hi all, am creating an audio plugin using the VST SDK. But the query applies to other frameworks also.

Basically, the way these plugins work leads me down some strange coding ways, for example extremely long switch statements (50+ cases) for parameter handling, classes with 100 getters and setters. I was wondering how others handle these strange parts that are simple but become cumbersome purely through amount-of-text.



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

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

C++ - Reddit

Cpp and DSA from scratch in 6 months

Hi,

Can anyone recommend good resources for learning C++ and Data Structures & Algorithms (DSA) from scratch?

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

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

C++ - Reddit

BlueSky

# Is there an active community of C++ programmers on BlyeSky? Do you use this social network?

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

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

C++ - Reddit

2025 AsiaLLVM Developers' Meeting Talks
https://www.youtube.com/playlist?list=PL_R5A0lGi1ADKfJbzpA0rMDCb5T3QGe5k

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

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

C++ - Reddit

why c++ is slower than rust

Quick C++ Benchmarks

#include <benchmark/benchmark.h>
#include <vector>
#include <algorithm>
#include <random>
#include <memory>

// -------------------- virtual function --------------------
struct Shape {
    virtual double area() const = 0;
    virtual ~Shape() = default;
};

struct VSquare : public Shape {
    double side;
    VSquare(double s) : side(s) {}
    double area() const override { return side side; }
};

struct VRectangle : public Shape {
    double width, height;
    VRectangle(double w, double h) : width(w), height(h) {}
    double area() const override { return width
height; }
};

// -------------------- function table --------------------
struct ShapeVTable {
    double (area)(const void);
    void (destroy)(void);
};

struct ShapeView {
    const ShapeVTable vtable;
    void
object;

    ShapeView(const ShapeVTable _vtable, void object)
        : vtable(
vtable), object(object) {}
    ShapeView(ShapeView&& other) noexcept
        : vtable(other.vtable), object(other.object) {
        other.object = nullptr;
    }

    ~ShapeView() {
        if (object) vtable->destroy(object);
    }

    double area() const {
        return vtable->area(object);
    }
};

void generateVShapes(std::vector<VSquare>& squares, std::vector<VRectangle>& rectangles, size
t count) {
    std::mt19937 rng(42);
    std::uniformrealdistribution<> dist(1.0, 100.0);
    squares.clear();
    rectangles.clear();
    for (sizet i = 0; i < count / 2; ++i) {
        squares.emplace
back(dist(rng));
        rectangles.emplaceback(dist(rng), dist(rng));
    }
}

struct Square {
    double side;
    double area() const { return side * side; }
};

struct Rectangle {
    double width, height;
    double area() const { return width * height; }
};

double square
area(const void obj) {
    return static_cast<const Square
>(obj)->area();
}
void squaredestroy(void* obj) {
    delete static
cast<Square>(obj);
}
const static ShapeVTable square_vtable = { square_area, square_destroy };

double rect_area(const void
obj) {
    return staticcast<const Rectangle*>(obj)->area();
}
void rect
destroy(void obj) {
    delete static_cast<Rectangle
>(obj);
}
const static ShapeVTable rectvtable = { rectarea, rectdestroy };

void generateShapes(std::vector<Square>& squares, std::vector<Rectangle>& rectangles, size
t count) {
    std::mt19937 rng(42);
    std::uniformrealdistribution<> dist(1.0, 100.0);
    squares.clear();
    rectangles.clear();
    for (sizet i = 0; i < count / 2; ++i) {
        squares.emplace
back(dist(rng));
        rectangles.emplaceback(dist(rng), dist(rng));
    }
}

// -------------------- Benchmark:虚函数 --------------------
static void BM
VirtualFunction(benchmark::State& state) {
    sizet count = state.range(0);
    std::vector<VSquare> squares;
    std::vector<VRectangle> rectangles;

    for (auto
: state) {
        generateVShapes(squares, rectangles, count);

        std::sort(squares.begin(), squares.end(), (auto a, auto b) {
            return a.area() > b.area();
        });
        std::sort(rectangles.begin(), rectangles.end(), (auto a, auto b) {
            return a.area() > b.area();
        });

        std::vector<std::uniqueptr<Shape>> top5;
        size
t i = 0, j = 0;
        while (top5.size() < 5 && (i < squares.size() || j < rectangles.size())) {
            double areaSq = (i < squares.size()) ? squaresi.area() : -1;
            double areaRect = (j < rectangles.size()) ? rectanglesj.area() : -1;
            if

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

C++ - Reddit

Trip report: C++ On Sea 2025
https://www.sandordargo.com/blog/2025/07/02/cpponsea-trip-report?ref=dailydev

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

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

C++ - Reddit

My first tutorial blog for c++ beginners

Hey guys,

I finally posted my first tutorial for beginners! (https://answer-repo.com/blogposts/1)

Sharing my knowledge and thoughts is something I’ve always wanted to do, but I kept putting it off.

I’m excited to get started and would love to hear your thoughts and feedback.

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

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

C++ - Reddit

Learning C++

Hello everyone,

I recently started learning C++, about two days ago. I created my first project today, a number guessing game — which i'm proud of, but not satisfied with. However, I was wondering how long does it take for an average guy to learn C++ enough to start working on games and softwares. Everywhere i look, i see different answers and i'm very confused.
[I have worked with other programming languages and worked on personal projects before.\]

Have a pleasant time.

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

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

C++ - Reddit

C++26 Reflection as polyfill Clang plugin

I am exceptionally far from being expert in the Clang plugins ecosystem, and just wondering about an idea to have a Clang plugin with the reflection feature only which can be used for older C++ versions like C++20. Is it possible, even is it make sense? Thanks in advance

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

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

C++ - Reddit

Why "procedural" programmers tend to separate data and methods?

Lately I have been observing that programmers who use only the procedural paradigm or are opponents of OOP and strive not to combine data with its behavior, they hate a construction like this:

struct AStruct {
int somedata;
void somemethod();
}

It is logical to associate a certain type of data with its purpose and with its behavior, but I have met such programmers who do not use OOP constructs at all. They tend to separate data from actions, although the example above is the same but more convenient:

struct AStruct {
int data;
}

void Method(AStruct& data);

It is clear that according to the canon С there should be no "great unification", although they use C++.
And sometimes their code has constructors for automatic initialization using the RAII principle and takes advantage of OOP automation

They do not recognize OOP, but sometimes use its advantages🤔

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

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

C++ - Reddit

Latest News From Upcoming C++ Conferences (2025-07-01)

This Reddit post will now be a roundup of any **new** news from upcoming conferences with then the full list being available at [https://programmingarchive.com/upcoming-conference-news/](https://programmingarchive.com/upcoming-conference-news/)

**EARLY ACCESS TO YOUTUBE VIDEOS**

The following conferences are offering Early Access to their YouTube videos:

* **ACCU Early Access Now Open (£35 per year) -** Access 60 of 90+ YouTube videos from the 2025 Conference through the Early Access Program with the remaining videos being added over the next 2 weeks. In addition, gain additional benefits such as the journals, and a discount to the yearly conference by joining ACCU today. Find out more about the membership including how to join at [https://www.accu.org/menu-overviews/membership/](https://www.accu.org/menu-overviews/membership/)
* Anyone who attended the ACCU 2025 Conference who is NOT already a member will be able to claim free digital membership.
* **C++Online (Now discounted to £12.50)** \- All talks and lightning talks from the conference have now been added meaning there are 34 videos available. Visit [https://cpponline.uk/registration](https://cpponline.uk/registration) to purchase.

**OPEN CALL FOR SPEAKERS**

The following conference have open Call For Speakers:

* **ADC (Closing Soon)** \- This has been extended and interested speakers have until **July 6th** to submit their talks. Find out more including how to submit your proposal at [https://audio.dev/call-for-speakers/](https://audio.dev/call-for-speakers/)
* **C++ Day** \- Interested speakers have until **August 25th** to submit their talks. Find out more including how to submit your proposal at [https://italiancpp.github.io/cppday25/#csf-form](https://italiancpp.github.io/cppday25/#csf-form)

**TICKETS AVAILABLE TO PURCHASE**

The following conferences currently have tickets available to purchase

* **Meeting C++** \- You can buy online or in-person tickets at [https://meetingcpp.com/2025/](https://meetingcpp.com/2025/)
* **CppCon** \- You can buy regular tickets to attend CppCon 2025 in-person at Aurora, Colorado at [https://cppcon.org/registration/](https://cppcon.org/registration/).
* **ADC** \- You can now buy early bird tickets to attend ADC 2025 online or in-person at Bristol, UK at [https://audio.dev/tickets/](https://audio.dev/tickets/). Early bird pricing for in-person tickets will end on September 15th.
* **C++ Under The Sea** \- You can now buy early bird in-person tickets to attend C++ Under The Sea 2025 at Breda, Netherlands at [https://store.ticketing.cm.com/cppunderthesea2025/step/4f730cc9-df6a-4a7e-b9fe-f94cfdf8e0cc](https://store.ticketing.cm.com/cppunderthesea2025/step/4f730cc9-df6a-4a7e-b9fe-f94cfdf8e0cc)
* **CppNorth** \- Regular ticket to attend CppNorth in-person at Toronto, Canada can be purchased at [https://store.cppnorth.ca/](https://store.cppnorth.ca/)

**OTHER NEWS**

* **CppCon 2025 Early Bird Now Finished** \- You can still buy regular tickets to attend CppCon 2025 in-person at Aurora, Colorado at [https://cppcon.org/registration/](https://cppcon.org/registration/).
* **CppCon 2025 Attendance Support Ticket Program Now Open** \- Free tickets to CppCon 2025 (excluding transportation and lodging) are available for people who would not be able to attend otherwise. For more information including how to apply visit [https://cppcon.org/cppcon-2025-attendance-support-ticket-program/](https://cppcon.org/cppcon-2025-attendance-support-ticket-program/)
* **ADC 2025 Call For Posters Now Open** \- Anyone interested in presenting an online and/or in-person poster at ADC can fill out the following application forms:
* Online Posters: [https://docs.google.com/forms/d/e/1FAIpQLSeJkXEzb--rWX-LBUErWA0gyfUX\_CXBCUYF5fwg\_agDwMppeQ/viewform?usp=dialog](https://docs.google.com/forms/d/e/1FAIpQLSeJkXEzb--rWX-LBUErWA0gyfUX_CXBCUYF5fwg_agDwMppeQ/viewform?usp=dialog)
* Physical Posters:

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

C++ - Reddit

A Dynamic Initialization Deep-Dive: Abusing Initialization Side Effects
https://www.lukas-barth.net/blog/dynamic_initialization_deep_dive_plugin_registration/?s=r

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

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

C++ - Reddit

C++ Show and Tell - July 2025

Use this thread to share anything you've written in C++. This includes:

* a tool you've written
* a game you've been working on
* your first non-trivial C++ program

The rules of this thread are very straight forward:

* The project must involve C++ in some way.
* It must be something you (alone or with others) have done.
* Please share a link, if applicable.
* Please post images, if applicable.

If you're working on a C++ library, you can also share new releases or major updates in a dedicated post as before. The line we're drawing is between "written in C++" and "useful for C++ programmers specifically". If you're writing a C++ library or tool for C++ developers, that's something C++ programmers can use and is on-topic for a main submission. It's different if you're just using C++ to implement a generic program that isn't specifically about C++: you're free to share it here, but it wouldn't quite fit as a standalone post.

Last month's thread: https://www.reddit.com/r/cpp/comments/1l0m0oq/c_show_and_tell_june_2025/

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

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

C++ - Reddit

C++ Jobs - Q3 2025

Rules For Individuals
---------------------

* **Don't** create top-level comments - those are for employers.
* Feel free to reply to top-level comments with **on-topic** questions.
* I will create top-level comments for **meta** discussion and **individuals looking for work**.

Rules For Employers
-------------------

* If you're hiring **directly**, you're fine, skip this bullet point. If you're a **third-party recruiter**, see the extra rules below.
* **Multiple** top-level comments per employer are now permitted.
+ It's still fine to consolidate multiple job openings into a single comment, or mention them in replies to your own top-level comment.
* **Don't** use URL shorteners.
+ [reddiquette][] forbids them because they're opaque to the spam filter.
* **Use** the following template.
+ Use \*\*two stars\*\* to **bold text**. Use empty lines to separate sections.
* **Proofread** your comment after posting it, and edit any formatting mistakes.

Template
--------

\*\*Company:\*\* [Company name; also, use the "formatting help" to make it a link to your company's website, or a specific careers page if you have one.]

\*\*Type:\*\* [Full time, part time, internship, contract, etc.]

\*\*Compensation:\*\* [This section is **optional**, and you can omit it without explaining why. However, including it will help your job posting stand out as there is extreme demand from candidates looking for this info. If you choose to provide this section, it must contain (a range of) **actual numbers** - don't waste anyone's time by saying "Compensation: Competitive."]

\*\*Location:\*\* [Where's your office - or if you're hiring at multiple offices, list them. If your workplace language isn't English, please specify it. It's suggested, but not required, to include the country/region; "Redmond, WA, USA" is clearer for international candidates.]

\*\*Remote:\*\* [Do you offer the option of working remotely? If so, do you require employees to live in certain areas or time zones?]

\*\*Visa Sponsorship:\*\* [Does your company sponsor visas?]

\*\*Description:\*\* [What does your company do, and what are you hiring C++ devs for? How much experience are you looking for, and what seniority levels are you hiring for? The more details you provide, the better.]

\*\*Technologies:\*\* [Required: what version of the C++ Standard do you mainly use? Optional: do you use Linux/Mac/Windows, are there languages you use in addition to C++, are there technologies like OpenGL or libraries like Boost that you need/want/like experience with, etc.]

\*\*Contact:\*\* [How do you want to be contacted? Email, reddit PM, telepathy, gravitational waves?]

Extra Rules For Third-Party Recruiters
--------------------------------------
Send modmail to request pre-approval on a case-by-case basis. We'll want to hear what info you can provide (in this case you can withhold client company names, and compensation info is still recommended but optional). We hope that you can connect candidates with jobs that would otherwise be unavailable, and we expect you to treat candidates well.

Previous Post
-------------

* [C++ Jobs - Q2 2025](https://www.reddit.com/r/cpp/comments/1jlqssk/c_jobs_q2_2025/)

[reddiquette]: https://support.reddithelp.com/hc/en-us/articles/205926439-Reddiquette

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

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

C++ - Reddit

GitHub - wxRTCFD_Code: Real-time Computational Fluid Dynamics (C/C++, wxWidget)
https://github.com/skhelladi/wxRTCFD_Code

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

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

C++ - Reddit

Non-blocking asynchronous timeout

I understand std::future has blocking waitfor and waituntil APIs but is there a way to achieve timeout functionality without blocking?
Thank you!

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

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

C++ - Reddit

Learning and practicing cpp

Hi everyone, I am about to start my journey learning cpp and I need your help . I saw that everybody here recommend learncpp.com but I wonder where should I practice, I have prior knowledge to programming but I want to build strong foundations for my career . Please recommend me resources for learning and practice

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

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

C++ - Reddit

Looking for C++ projects for portfolio

Hi. I’ve been working as a software engineer for 5 years now. I know the ins and outs of web and mobile development with React, Nextjs and React Native.

However, I’ve actually had a dream of working for Supercell for quite some time. 99% of their engineering positions require extensive knowledge of C++.

It’s probably a difficult switch to the gaming industry, but I’m looking for a few semi small projects to kind of get the feel for C++ and common tools used in that industry. What do i need to learn to make the switch (terms and tools), and what projects would help me get there? Any common games people make for example?

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

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

C++ - Reddit

(areaSq >= areaRect && i < squares.size()) {
                top5.pushback(std::makeunique<VSquare>(squaresi++));
            } else if (j < rectangles.size()) {
                top5.pushback(std::makeunique<VRectangle>(rectanglesj++));
            }
        }

        benchmark::DoNotOptimize(top5);
    }
}
BENCHMARK(BMVirtualFunction)->Arg(1000)->Arg(10000)->Arg(100000)->Arg(1000000)->Arg(10000000);

// -------------------- Benchmark:rust dyn trait like --------------------
static void BM
RustDynTraitLike(benchmark::State& state) {
    sizet count = state.range(0);
    std::vector<Square> squares;
    std::vector<Rectangle> rectangles;

    for (auto
: state) {
        generateShapes(squares, rectangles, count);

        std::sort(squares.begin(), squares.end(), (auto a, auto b){
            return a.area() > b.area();
        });
        std::sort(rectangles.begin(), rectangles.end(), (auto a, auto b){
            return a.area() > b.area();
        });

        std::vector<ShapeView> top5;
        sizet i = 0, j = 0;
        while (top5.size() < 5 && (i < squares.size() || j < rectangles.size())) {
            double areaSq = (i < squares.size()) ? squares[i].area() : -1;
            double areaRect = (j < rectangles.size()) ? rectangles[j].area() : -1;
            if (areaSq >= areaRect && i < squares.size()) {
                top5.push
back(ShapeView{ &squarevtable, new Square(squares[i++]) });
            } else if (j < rectangles.size()) {
                top5.push
back(ShapeView{ &rectvtable, new Rectangle(rectangles[j++]) });
            }
        }

        benchmark::DoNotOptimize(top5);
    }
}

BENCHMARK(BM
RustDynTraitLike)->Arg(1000)->Arg(10000)->Arg(100000)->Arg(1000000)->Arg(10000000);







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

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

C++ - Reddit

Trying to put together a video curriculum for "improving your C++"

Suppose you were a co-worker of a recently-hired junior C++ developer. They've just come out of university, or have had a little programming experience but not with C++ mostly, and now they've been hired. And also suppose, that they will be working in a less-than-ideal environment, e.g. a lot of old legacy code, some other developers whose fluence in modern C++, community norms / "core guidelines", awareness of important FOSS C++ libraries etc. is lacking, code design corner-cutting due to racing towards deadlines etc.

So, you want to try and offer them a perspective, or some educational experience or material, on plying their trade better.

Of course there is more than one approach to going about this, and one-on-one interaction is offer more effective than pointing people in the directin of some self-study, but - I felt that a lot of the recorded, publicly-available talks regarding C++ and its ecosystem have been rather useful and inspiring to me over the years; and - they are relatively easy to experience passively, at one's own pace, with limited requirements from a "mentor" or "proselytizer" behind them.

So, I thought I would try to curate some sort of a loose "curriculum" of such video talks, presented in order - and which doesn't teach people the language basics, but is rather only intended to deepen and widen understanding, hone and polish skills, and inspire mindsets, ideas and sensibilities.

But this is not easy to do, because:

There are just so many available by now! Just the main C++ conferences over the past decade offer hundreds of items; and possible items can come from further afield (like the very nice and well-focused [Stop writing classes](https://www.youtube.com/watch?v=o9pEzgHorH0) talk, which I've found myself sending people, even though it's from PyConf and doesn't mention C++ at all).
A lot of talks/sessions partially cover the content of other talks; and even if the intersection can be small for two videos, when you get to a slate of 10, you can easily find something that's half-covered by the combination of the other items you've found worthwhile.
Even impressive, inspiring talks gradually become a bit dated, as the language evolves. I do want content encouraging people to make use of language constructs introduced in C++11 and C++14, for example; and I remember Herb Sutter's 'tasting' talk from 2014, [Modern C++: What you need to know](https://www.youtube.com/watch?v=TJHgp1ugKGM) - but there have been three new standard versions published since then, so it is now only "Some of what you need to know".


So, my question/request:

Have you had experience putting together a "video curriculum" like this? That you could perhaps share in whole or in part?
If you had to pick a limited number of such video segments, which would obviously not cover every aspect of the language - what would you recommend as particularly likely to inspire programmers better, and to sink in to their minds andf memories?
Do you have any methodical advice regarding my curation process?




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

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

C++ - Reddit

I built a 5MB cron in C++

Standard cron uses 20MB+ RAM and wasn't designed for containers. My C++ alternative uses only 5MB, has structured logging, prevents hanging jobs, and is actually easier to configure (NO external library).

The Problem with Standard Cron in Containers:

Consumes 15-20MB RAM + spawns multiple processes
Cryptic configuration syntax (0 */4 * * * anyone?)
Basic logging that tells you nothing useful
Not designed for containerized environments
Jobs can hang indefinitely

My Solution - ChronoCraft:

Instead of: 0 23
/path/to/cleanup.My syntax: {23, 0, CronFrequency::DAILY, 0, 0, "./Jobs/cleanup", "Daily cleanup"}

What makes it better:

5MB total RAM usage (vs 20MB+ for standard cron)
Self-documenting config \- no more googling cron syntax
Structured logging with execution times and proper error handling
Auto-timeout \- jobs can't hang your system
Single process \- perfect for Docker containers
Thread-safe logging system



GitHub: https://github.com/GiuseppePuleri/NanoCron/

Give me a feedback pls!

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

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

C++ - Reddit

Why does every simple C project need a PhD in CMake sorcery?

I just wanted to compile a hello world, not summon Beelzebuild with a 200-line CMakeLists.txt. Meanwhile, Python folks just sneeze and their script runs. We suffer so they may mock us. Join me, brothers and sisters, in laughing through the pain of dependency hell!

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

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

C++ - Reddit

Clion Free For Non Commercial Use

I am not a student but i am a self learner and i dont know how can i use CLion for non commericial use as it requires a student or teacher

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

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

C++ - Reddit

Is RAII necessary? Can I just use new/delete in new projects?

Is it necessary to learn and use std::unique_ptr, std::shared_ptr, and std::weak_ptr or can I use new/delete instead? Which is better, recommended convention nowadays?

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

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

C++ - Reddit

[https://docs.google.com/forms/d/e/1FAIpQLScI4gxxwkQNiyANMuluaCSE39C1ZhQOES3424YW8jK9tA291A/viewform?usp=dialog](https://docs.google.com/forms/d/e/1FAIpQLScI4gxxwkQNiyANMuluaCSE39C1ZhQOES3424YW8jK9tA291A/viewform?usp=dialog)
* **ADC 2025 Talk Reviews Coming Soon** \- Anyone interested in reviewing talk proposals for ADC 2025 should sign up to the newsletter at [https://audio.dev/newsletter/](https://audio.dev/newsletter/)
* **C++ Under The Sea Workshops Announced** \- The workshops have now been announced for C++ Under The Sea 2025. More information can be found at [https://cppunderthesea.nl/workshops-2025/](https://cppunderthesea.nl/workshops-2025/) and note that separate registration is required to attend the workshops.
* **Provisional Meeting C++ Schedule Now Available** \- More information about the schedule can be found at [https://meetingcpp.com/meetingcpp/news/items/The-end-of-ealry-bird-tickets-and-a-first-schedule.html](https://meetingcpp.com/meetingcpp/news/items/The-end-of-ealry-bird-tickets-and-a-first-schedule.html)
* **ADC Call For Online Volunteers Now Open** \- Anyone interested in volunteering online for ADCx Gather on Friday September 26th and ADC 2025 on Monday 10th - Wednesday 12th November have until September 7th to apply. Find out more here [https://docs.google.com/forms/d/e/1FAIpQLScpH\_FVB-TTNFdbQf4m8CGqQHrP8NWuvCEZjvYRr4Vw20c3wg/viewform?usp=dialog](https://docs.google.com/forms/d/e/1FAIpQLScpH_FVB-TTNFdbQf4m8CGqQHrP8NWuvCEZjvYRr4Vw20c3wg/viewform?usp=dialog)
* **CppCon Call For Volunteers Now Open** \- Anyone interested in volunteering at CppNorth have until August 1st to apply. Find out more including how to apply at [https://cppcon.org/cfv2025/](https://cppcon.org/cfv2025/)

Finally anyone who is coming to a conference in the UK such as C++ on Sea or ADC from overseas **may now be required to obtain Visas to attend**. Find out more including how to get a VISA at [https://homeofficemedia.blog.gov.uk/electronic-travel-authorisation-eta-factsheet-january-2025/](https://homeofficemedia.blog.gov.uk/electronic-travel-authorisation-eta-factsheet-january-2025/)

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

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

C++ - Reddit

Project Template: Simple platform-independent R wrapping of C/C++ libraries with dependencies (OpenCL, OpenGL, ...)

I've created a CRAN-ready project template for wrapping C or C++ libraries in a platform-independent way. The goal is to make it easier to develop hardware-accelerated R packages or wrap your C/C++ code more easily in an R package using Rcpp and CMake.

📦 GitHub Repo: cmake-rcpp-template

✍️ I’ve also written a Medium article explaining the internals and rationale behind the design:
mail_17803/building-hardware-accelerated-r-packages-with-rcpp-and-cmake-a-practical-template-114d13b08a97">Building Hardware-Accelerated R Packages with Rcpp and CMake

I’d love feedback from anyone working on similar problems or who’s interested in streamlining their native code integration with R. Any suggestions for improvements or pitfalls I may have missed are very welcome!

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

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

C++ - Reddit

Vscode debug console showing garbage

I'm following the tutorial here, and after adding a breakpoint and running, the output of my debug console is showing garbage like

\001\e[1m\002\001\e[31m\002stopped\001\e[0m\002\001\e[34m\0020x55555555666a\001\e[0m\002 in \001\e[1m\002\001\e[33m\002main\001\e[0m\002 (), reason:\001\e[1m\002\001\e[35m\002BREAKPOINT\001\e[0m\002\n\001\e[1;38;5;240m\002\342\224\200\342\224\200\342\224\200\342\224\

Here's what chatgpt says:

>

>The output you're seeing like:

>\\342\\224\\200\\342\\224\\200\\342\\224\\200... \\e[0m\\002\\n

>…means your program is emitting UTF-8 characters and ANSI escape codes — things like:

>Box-drawing characters (\\342\\224\\200 is "─")

>ANSI color codes (\\e[0m is "reset formatting")

>This happens when:

>You’re printing Unicode box characters or using a library/tool that formats output (like ncurses, htop, etc.)

>Your terminal or output window does not support or render ANSI/UTF-8 correctly, so it shows raw escape codes and byte sequences.

I've done various things suggested by stackoverflow and chatgpt, such as adding the following lines to the suggested places in tasks.json and launch.json, but the output never changes.

"text": "set charset UTF-8"

"text": "set style enabled off"

"text": "set pagination off"

"-fdiagnostics-color=never"

Can someone help me here?

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

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

C++ - Reddit

Blogs urls for studying c++

I have been given a task to train a intern for 2 months , I have got on the topic of oops c++ , I want him to understand through innovative articles not just code as it gets boring from him as he is not from computer background, please suggest me some.

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

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

C++ - Reddit

Experience converting a large mathematical software package written in C++ to
C++20 modules -- using Clang-20.1
https://arxiv.org/pdf/2506.21654

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

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

C++ - Reddit

Case of Subnormals in Audio Code - Attila Haraszti - https://youtu.be/jZO-ERYhpSU

Core C++

2025-06-02 - 2025-06-08

Messing with Floating Point :: Ryan Baker - [https://www.youtube.com/watch?v=ITbqbzGLIgo](https://www.youtube.com/watch?v=ITbqbzGLIgo)
Get More Out of Compiler-Explorer ('godbolt') :: Ofek Shilon - https://www.youtube.com/watch?v=\_9sGKcvT-TA
Speeding up Intel Gaudi deep-learning accelerators using an MLIR-based compiler :: Dafna M., Omer P - [https://www.youtube.com/watch?v=n0t4bEgk3zU](https://www.youtube.com/watch?v=n0t4bEgk3zU)
C++ ♥ Python :: Alex Dathskovsky - https://www.youtube.com/watch?v=4KHn3iQaMuI
Implementing Ranges and Views :: Roi Barkan - [https://www.youtube.com/watch?v=iZsRxLXbUrY](https://www.youtube.com/watch?v=iZsRxLXbUrY)

2025-05-26 - 2025-06-01

The battle over Heterogeneous Computing :: Oren Benita Ben Simhon - https://www.youtube.com/watch?v=RxVgawKx4Vc
A modern C++ approach to JSON Sax Parsing :: Uriel Guy - [https://www.youtube.com/watch?v=lkpacGt5Tso](https://www.youtube.com/watch?v=lkpacGt5Tso)

Using std::cpp

2025-06-23 - 2025-06-30

Contemporary C++ - Bjarne Stroustrup - https://www.youtube.com/watch?v=IkTimIZUCgg

2025-06-16 - 2025-06-22

Closing Keynote: C++ as a 21st century language - Bjarne Stroustrup - [https://www.youtube.com/watch?v=1jLJG8pTEBg](https://www.youtube.com/watch?v=1jLJG8pTEBg)
Known pitfalls in C++26 Contracts - Ran Regev - https://www.youtube.com/watch?v=tzXu5KZGMJk

2025-06-09 - 2025-06-15

Push is faster - Joaquín M López Muñoz - [https://www.youtube.com/watch?v=Ghmbsh2Mc-o&amp;pp=0gcJCd4JAYcqIYzv](https://www.youtube.com/watch?v=Ghmbsh2Mc-o&amp;pp=0gcJCd4JAYcqIYzv)
Cancellations in Asio: a tale of coroutines and timeouts - Rubén Pérez Hidalgo - https://www.youtube.com/watch?v=80Zs0WbXAMY

2025-06-02 - 2025-06-08

C++ packages vulnerabilities and tools - Luis Caro - [https://www.youtube.com/watch?v=sTqbfdiOSUY](https://www.youtube.com/watch?v=sTqbfdiOSUY)
An introduction to the Common Package Specification (CPS) for C and C++ - Diego Rodríguez-Losada - https://www.youtube.com/watch?v=C1OCKEl7x\_w

2025-05-26 - 2025-06-01

CMake: C'mon, it's 2025 already! - Raúl Huertas - [https://www.youtube.com/watch?v=pUtB5RHFsW4](https://www.youtube.com/watch?v=pUtB5RHFsW4)
Keynote: C++: The Balancing Act of Power, Compatibility, and Safety - Juan Alday - https://www.youtube.com/watch?v=jIE9UxA\_wiA

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

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