Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
jbz
@jbz@indieweb.social  ·  activity timestamp last week

⏰ Time in C++: Understanding <chrono> and the Concept of Clocks // Sandor Dargo

https://www.sandordargo.com/blog/2025/11/19/clocks-part-1-intro-to-chrono

#cpp #programming

  • Copy link
  • Flag this post
  • Block
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp last week

#CppRant #Cpp

I wish... I wish I was coding in modern cpp, not a more than decade old version.

I just stumble onto a very stupid case were I have two header files with the same guard. (from 2 different "modules".) (yes the architecture is kinda wack but honestly I've seen way worst. )

It wouldn't have happened with actual modules. ( At least I hope... otherwise what is even the point ? )

  • Copy link
  • Flag this post
  • Block
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp last week

Do you really still need it in C++26 ?

Can't C++ get a better switch ? Does it has one nobody told me about ?

#Cpp

Ambraven :verifinking:​
@Ambraven@social.mochi.academy replied  ·  activity timestamp last week

If you still want to keep the old broken switch around, can we at least get a new better version?

Like call it match or something... And make it work with strings while you're at it.

#Cpp #cppRant

  • Copy link
  • Flag this comment
  • Block
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp last week

I really hate the need for the "break" keyword in c++ switch...

#C++ #C++Ranting

Ambraven :verifinking:​
@Ambraven@social.mochi.academy replied  ·  activity timestamp last week

Do you really still need it in C++26 ?

Can't C++ get a better switch ? Does it has one nobody told me about ?

#Cpp

  • Copy link
  • Flag this comment
  • Block
Rachel Wil Singh ~ Moos-a-dee
@Moosader@mastodon.gamedev.place  ·  activity timestamp 2 weeks ago

Christmas Horse gamedev stream:
https://www.youtube.com/watch?v=v-PhiNiZ_mI

#CPP #SFML #ChristmasHorse

Christmas Horse C++/SFML gamedev - Rachel's weekend project stream
  • Copy link
  • Flag this post
  • Block
Claudius Link boosted
Peter Sommerlad
@PeterSommerlad@mastodon.social  ·  activity timestamp 3 weeks ago

Interesting story about a bug when porting a game to VR and reminds me of discussions in WG21 LWG about rounding modes for floating points #CPlusPlus #CPP

https://mastodon.gamedev.place/@TomF/115589875974658415

  • Copy link
  • Flag this post
  • Block
Peter Sommerlad
@PeterSommerlad@mastodon.social  ·  activity timestamp 3 weeks ago

Interesting story about a bug when porting a game to VR and reminds me of discussions in WG21 LWG about rounding modes for floating points #CPlusPlus #CPP

https://mastodon.gamedev.place/@TomF/115589875974658415

  • Copy link
  • Flag this post
  • Block
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp 3 weeks ago

Ah, donc en C++ on peut avoir ça:

A& B::getA() { <some code> }
const A& B::getA() const { <the same exact code> }

et ça choc personne... Bien bien bien...

#cpp #JppCommentCestPasseALaCodeReviewCa

  • Copy link
  • Flag this post
  • Block
Frédéric Jacobs boosted
Martin Geisler
@mgeisler@ohai.social  ·  activity timestamp 4 weeks ago

My old #Rust in #Android team just published a blog post showing Android continues to improve #security by pushing for more memory safe code: https://security.googleblog.com/2025/11/rust-in-android-move-fast-fix-things.html

The results are amazing: Android now writes more Rust than C++, and the **Rust changes land faster** due to fewer revisions and faster code reviews. Medium and large changes are **rolled back about 4 times less** than changes written in C++.

#rustlang #cpp #productivity #safety #vulnerability

Google Online Security Blog

Rust in Android: move fast and fix things

Posted by Jeff Vander Stoep, Android Last year, we wrote about why a memory safety strategy that focuses on vulnerability prevention in ...
  • Copy link
  • Flag this post
  • Block
Martin Geisler
@mgeisler@ohai.social  ·  activity timestamp 4 weeks ago

My old #Rust in #Android team just published a blog post showing Android continues to improve #security by pushing for more memory safe code: https://security.googleblog.com/2025/11/rust-in-android-move-fast-fix-things.html

The results are amazing: Android now writes more Rust than C++, and the **Rust changes land faster** due to fewer revisions and faster code reviews. Medium and large changes are **rolled back about 4 times less** than changes written in C++.

#rustlang #cpp #productivity #safety #vulnerability

Google Online Security Blog

Rust in Android: move fast and fix things

Posted by Jeff Vander Stoep, Android Last year, we wrote about why a memory safety strategy that focuses on vulnerability prevention in ...
  • Copy link
  • Flag this post
  • Block
jbz
@jbz@indieweb.social  ·  activity timestamp last month

🎉 Qt Creator 18 Released With Experimental Support For Development Containers - Phoronix

「 Most notable with Qt Creator 18 is introducing experimental support for development containers. For projects shipping a "devcontainer.json" file, Qt Creator can support automatically creating a Docker container for it 」

https://www.phoronix.com/news/Qt-Creator-18-Released

#qtcreator #qtdev #cpp #programming

Qt Creator 18 Released With Experimental Support For Development Containers

Qt Creator 18 is now available as the latest version of this Qt/C++-focused integrated development environment.
  • Copy link
  • Flag this post
  • Block
Sos Sosowski
@sos@mastodon.gamedev.place  ·  activity timestamp last month

Hey, what's the C++ version of the K&R C book? The most basic reference with no fluff?

I need to pick up C++ again soon and last time I used it it was still C++98.

#cprogramming #cpp

  • Copy link
  • Flag this post
  • Block
jbz
@jbz@indieweb.social  ·  activity timestamp 2 months ago

🦀 Why we didn't rewrite our feed handler in Rust | Databento Blog

「 We recently faced an interesting decision: what language should we use to rewrite our market data feed handler? Despite Rust's growing popularity in fintech and our own successful use of it in other systems, we chose C++ 」

https://databento.com/blog/why-we-didnt-rewrite-our-feed-handler-in-rust

#rust #cpp

  • Copy link
  • Flag this post
  • Block
Ambraven :verifinking:​
@Ambraven@social.mochi.academy  ·  activity timestamp 2 months ago

Looking into std::variant in c++17.

Is this the cpp "new" way to do union types?

What are the advantages ?

#Cpp #programming

  • Copy link
  • Flag this post
  • Block
HoldMyType
@xameer@mathstodon.xyz  ·  activity timestamp 3 months ago

CPP is a C preprocessor, but it is common to use it in Haskell. That leads to a number of issues.

It can mess with haskell code.

#CPP doesn’t understand Haskell code, instead it assumes C code. It is free to remove insignificant (for C, not for Haskell) whitespace, expand macros in Haskell comments and strings or mess with identifiers that contain ' or #.

It leads to unnecessary recompilation.

Every time you change your .cabal file, e.g. add new module, or update dependencies, cabal regenerates cabal-macros.h file. Then the recompilation checker pessimistically decides to recompile all modules with CPP enabled.

It makes automatic code analyzing and transforming harder.

#haskell
http://blog.haskell-exists.com/yuras/posts/stop-abusing-cpp-in-haskell.html

  • Copy link
  • Flag this post
  • Block
Alex Akselrod boosted
saxnot ➡️ HOA, GPN
@saxnot@chaos.social  ·  activity timestamp 4 months ago

Looking for a new work place starting in 2026Q1.
Remote and/or near #Hannover / #Braunschweig

Senior Software Developer, primarily in #Java / #Kotlin but I know a few other langs from #CPP, #Batch, #AndroidDev to #CSharp and I'm experienced enough to know programming is about communcating with fellow humans and every other computer thing can be learned shortly.
I can't stress how unimportant the lang is.

Queer, CCC, degree of disability
BoostOKBoostOKBoostOK, Thanks!
#fedihired #hireme

  • Copy link
  • Flag this post
  • Block
saxnot ➡️ HOA, GPN
@saxnot@chaos.social  ·  activity timestamp 4 months ago

Looking for a new work place starting in 2026Q1.
Remote and/or near #Hannover / #Braunschweig

Senior Software Developer, primarily in #Java / #Kotlin but I know a few other langs from #CPP, #Batch, #AndroidDev to #CSharp and I'm experienced enough to know programming is about communcating with fellow humans and every other computer thing can be learned shortly.
I can't stress how unimportant the lang is.

Queer, CCC, degree of disability
BoostOKBoostOKBoostOK, Thanks!
#fedihired #hireme

  • Copy link
  • Flag this post
  • Block
Alex Akselrod boosted
賢進ジェンナ
@kenjen@pdx.social  ·  activity timestamp 4 months ago
  • Software engineer/developer
    - Preference for 3rd shift, but if I can work anywhere, I'll find a place to live to fit your schedule.
    - holistic software development("full stack")
    - References out the wazoo, especially from my most recent position.
    - Any language, but I'm practiced in Java, #cpp , HTML, CSS, like #rust , and have professional exp. in Java, SQL, PL/SQL, and BASH
    - English, #日本語 , #suomi , Français, et Español.

    #getfedihired #nonprofit #opensource

  • Copy link
  • Flag this post
  • Block
賢進ジェンナ
@kenjen@pdx.social  ·  activity timestamp 4 months ago
  • Software engineer/developer
    - Preference for 3rd shift, but if I can work anywhere, I'll find a place to live to fit your schedule.
    - holistic software development("full stack")
    - References out the wazoo, especially from my most recent position.
    - Any language, but I'm practiced in Java, #cpp , HTML, CSS, like #rust , and have professional exp. in Java, SQL, PL/SQL, and BASH
    - English, #日本語 , #suomi , Français, et Español.

    #getfedihired #nonprofit #opensource

  • Copy link
  • Flag this post
  • Block
Kat Marchán 🐈
@zkat@toot.cat  ·  activity timestamp 4 months ago

Dear C++ #CPP people: how do you actually fucking do this? It seems bad enough that I need to have two overloads just to allow for the "no args" version.

But that template overload fails at link time because of an undefined symbol???

UPDATE: It’s because I needed to define it in the header file itself, not just declare it

void info(std::string_view out) {
  ::sys::log::f_log_log(::sys::log::LogLevel::Info,
                              static_cast<std::string>(out));
}
template <class... Args>
void info(std::format_string<Args...> fmt, Args &&...args) {
  ::sys::log::f_log_log(::sys::log::LogLevel::Info,
                              std::format(fmt, std::forward<Args>(args)...));
}
void info(std::string_view out) { ::sys::log::f_log_log(::sys::log::LogLevel::Info, static_cast<std::string>(out)); } template <class... Args> void info(std::format_string<Args...> fmt, Args &&...args) { ::sys::log::f_log_log(::sys::log::LogLevel::Info, std::format(fmt, std::forward<Args>(args)...)); }
void info(std::string_view out) { ::sys::log::f_log_log(::sys::log::LogLevel::Info, static_cast<std::string>(out)); } template <class... Args> void info(std::format_string<Args...> fmt, Args &&...args) { ::sys::log::f_log_log(::sys::log::LogLevel::Info, std::format(fmt, std::forward<Args>(args)...)); }
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login