Better HN
topnewbestaskshowjobs
Log inSign up

joaquintides

241 karma · joined Jan 18, 2014 (12y ago) · 77 submissions

Submissions

1.

Boost.Container: comparing different deque implementations(boostedcpp.net ↗)

2 points · by joaquintides · 7mo ago · discuss

comment 8mo ago · link · parent

Abstract: Many people hate math, some programmers do too. We hold that this hate stems from a reductionist view of mathematics as merely rule application: number crunching, equation solving and the like. But programming is more akin to mathematical creation, and writing a well designed, neat program can be as exhilarating as devising a new little math theory. In this talk we'll investigate how the mathematical mind approaches the world, and how developing a mathematical inclination can help you be a better C++ programmer. Presentation: https://github.com/joaquintides/usingstdcpp2026

comment 8mo ago · link · parent

Vinnie Falco, creator of Boost.Beast, shares the origin story behind two new coroutine-based networking libraries, Corosio and Capy. While designing Beast2 as a C++11 networking library, Falco repeatedly sought design advice from Peter Dimov, who had one persistent answer: just use coroutines. Determined to prove him wrong, Falco set out to learn coroutines, implement his own task type, and benchmark it against ASIO.

The results surprised him. Initial benchmarks confirmed his suspicion that coroutines performed poorly, but after applying optimizations like a recycling allocator, performance improved dramatically. Under more realistic, higher-abstraction scenarios, coroutines actually beat ASIO - because composed operations built from nested operation states accumulate costly move constructions and memory copies as structs grow, while a coroutine handle remains just a pointer. What began as a mission to discredit coroutines became the foundation for two new libraries.

https://github.com/cppalliance/corosio https://github.com/cppalliance/capy

4.

A proof of concept of a semistable C++ vector container(github.com ↗)

30 points · by joaquintides · 11mo ago · 9 comments

comment 1y ago · link · parent

Levers that matter: Backend: std::vector (default) or boost::container::small_vector for small buffer optimization and fewer heap hits. Block: choose an unsigned type that matches your CPU/cache tradeoffs (e.g., 64-bit on x64). Maintainability: API stays the same—operator&, |, ^, shifts, resize/shrink_to_fit. Add reserve for predictable growth.

6.

Match Block Size to CPU / Cache with Boost.DynamicBitset(boost.org ↗)

1 points · by joaquintides · 1y ago · 1 comment

comment 1y ago · link · parent

Boost.Decimal by Matt Borland and Chris Kormanyos has been accepted! Implementation of IEEE 754 and ISO/IEC DTR 24733 Decimal Floating Point numbers. Thanks to Review Manager John Maddock.

Repo: https://github.com/cppalliance/decimal

Docs: https://develop.decimal.cpp.al/decimal/overview.html

8.

Boost.Decimal Has Been Accepted(lists.boost.org ↗)

2 points · by joaquintides · 1y ago · 1 comment

comment 1y ago · link · parent

Abstract: Push and pull are the two main paradigms when it comes to data processing. In this talk, we'll discuss both approaches from an abstract point of view, compare them for expressivity and efficiency, review some prominent C++ examples and propose a push-based approach that outperforms C++ ranges, sometimes by a wide margin. We end the talk by discussing how coroutines blur the boundaries between push and pull and what it would take for them to be a compelling option for high-performance data processing.

Presentation and associated material:

https://github.com/joaquintides/usingstdcpp2025

10.

Push is Faster [using std:cpp 2025] [video](youtube.com ↗)

1 points · by joaquintides · 1y ago · discuss

11.

C++20 Modules and Boost: A Prototype(anarthal.github.io ↗)

1 points · by joaquintides · 1y ago · discuss

comment 2y ago · link · parent

Iteration has been improved since, and now we’re beating Abseil on iteration plus erasure:

https://github.com/boostorg/boost_unordered_benchmarks/tree/...

13.

New Boost website ready for launch(boost.io ↗)

2 points · by joaquintides · 2y ago · discuss

comment 2y ago · link · parent

Unlike regular hash functions, so-called perfect hash functions guarantee that no collisions ever happen, that is, every two distinct keys map to different hash values, which allows for the construction of hash tables with strict O(1) performance. This seemingly impossible feat comes with the tradeoff that the set of elements must be known in advance prior to table initialization. In this talk we'll review the basics of perfect hashing theory, explain some of the most common algorithms found in the literature, review some C++ perfect hashing libraries and learn how perfect hashing can be used to improve the efficiency of our programs.

Video: https://youtu.be/yOo6GnbKzp8

Presentation: https://github.com/joaquintides/usingstdcpp2024/raw/main/Per...

Repo: https://github.com/joaquintides/usingstdcpp2024

15.

Natvis for Boost:Unordered_map(blog.ganets.ky ↗)

2 points · by joaquintides · 2y ago · discuss

123