Boost C++ | Open Source Libraries (@Boost_Libraries) header
Boost C++ | Open Source Libraries (@Boost_Libraries) profile picture

Open source C++ libraries: algorithms, data structures, concurrency, networking & more. Peer-reviewed, portable, battle-tested since 1998. https://www.nitter.cf/t.co/MhBwwXNH58

Global C++ Community
Joined March 2017
Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)Photo by Boost C++ | Open Source Libraries (@Boost_Libraries)
Level up your C++ skills! Sharpen your code with the latest from the Boost Libraries, powerful, peer-reviewed, and production-ready New in Boost: Bloom – High-performance Bloom filters → boost.org/libs/bloom Hash2 – Modern, flexible hashing library → boost.org/libs/hash2 MQTT5 – Next-gen MQTT protocol support → boost.org/libs/mqtt5 Explore all Boost libraries → boost.org/libs
5
2
1
31
13,269
The goal of ArrayFire is simple: make high-performance computing more productive. With one API, developers can target CPUs, OpenCL devices, and CUDA hardware while using optimizations that combine operations into efficient GPU kernels. That's the kind of abstraction that can make complex GPU computing much easier to use. Watch the short: youtube.com/shorts/V1tNuKLYU… #CPlusPlus #ArrayFire #GPUComputing #MachineLearning
1
1
15
1,120
Your code depends on Boost. Boost depends on you. Boost's 180+ libraries are free, peer-reviewed, and kept running by a small group of maintainers. Help fund the work behind every release. Your gift is tax deductible in the US. go.boost.org/4Bd45WM #cpp
2
2
14
755
C++ doesn't have to choose between flexibility and stronger guarantees. Profiles offer a way to progressively restrict the programs a compiler accepts, without changing the meaning of programs that satisfy the rules. The deeper idea is that guarantees can build on top of one another — creating a structured path toward safer C++. Discover the concept: youtube.com/shorts/UTIgryqsa… #CPlusPlus #Cpp #Programming #SoftwareEngineering
6
505
After 30+ years of C++ experience, what's one of the hardest challenges still facing developers in finance? Concurrency. The challenge isn't simply making code faster. It's ensuring that concurrent systems remain correct and reliable when real-world workloads become unpredictable. Discover why this matters: youtube.com/shorts/GT7CTYs5w… #CPlusPlus #Concurrency #SoftwareEngineering #Finance
12
654
1M rows. Only 200 countries and 5,000 cities, but std::string stores a copy in every row: 168 MB. One Boost library gets it down to 25 MB 🧵👇
1
2
29
1,912
Boost Blueprint 166: Boost.Flyweight boost::flyweightstd::string stores each distinct value once in a shared factory, and rows hold a handle. Result: 25 MB instead of 168 MB, and sizeof(Row) drops from 72 to 24 bytes (GCC 13 -O2, x86-64 Linux, glibc, libstdc++) Equality checks are pointer compares. The tradeoffs: values are immutable, and each construction costs a hash lookup plus a lock by default. Best for read heavy, repetitive data. For multithreaded code, concurrent_factory with no_locking and no_tracking skips the global factory lock Level up your C++ architecture. Follow @Boost_Libraries for the #BoostBlueprint series #cpp
1
13
462
Zero-cost abstractions don't have to cost literally zero. Andreas Fertig offers a useful way to think about abstraction in performance-sensitive C++: if an abstraction costs less than the alternative of implementing the same thing by hand, it can still be a win. The important thing is understanding what lies behind each option — including allocations, exceptions and other costs that may matter in embedded environments. 🎥 Watch the interview: youtu.be/SR6vdOLM0GY #Cpp #EmbeddedSystems #Performance #SoftwareDesign
2
17
967
10,000 std::threads, each yielding 10 times: 893 ms Same work on one OS thread: 171 ms How? 🧵👇
1
2
34
2,403
Boost Blueprint 165: Boost.Fiber Fibers are lightweight threads scheduled by your program, not the kernel. boost::fibers::fiber works like std::thread, with join, detach, mutex, condition_variable, future and channels. Switching fibers just swaps a few registers, no trip into the kernel. Result: 171 ms vs 893 ms (GCC 13 -O2, x86-64 Linux, glibc, 2 vCPUs) The catch: if one fiber blocks in a system call, every fiber on that thread waits. Pair fibers with asynchronous I/O; running fibers on a thread pool can alleviate, but not completely eliminate this limitation Level up your C++ architecture. Follow @Boost_Libraries for the #BoostBlueprint series #cpp
1
15
440
One of C++'s biggest strengths is also one of its biggest challenges: You can work directly with existing data. Aliasing makes that possible, enabling powerful abstractions and efficient systems programming. But it also means developers have to reason carefully about lifetimes, references, and shared access. That's the C++ trade-off. Watch the short: youtube.com/shorts/28rP0EBV0… #CPlusPlus #SystemsProgramming #Cpp #MemorySafety
8
601
if (std::fabs(a - b) < 1e-9) Looks safe, it isn't At 1e10, it's a == b in disguise. At 1e-12, it calls values 5x apart "equal" An absolute epsilon is right at exactly one scale, and your code never specifies which. There's a better way 🧵👇
2
1
18
1,898
Boost Blueprint 164: Boost.Math boost::math::float_distance(a, b) counts the ULP steps from a to b. relative_difference and epsilon_difference scale the gap by the values themselves, so a tolerance of 4 epsilons represents the same relative precision at 1e10 and at 1e-12 Near zero, relative error is the wrong question: choose an absolute floor there on purpose. Boost.Test's BOOST_TEST supports relative tolerances too Level up your C++ architecture. Follow @Boost_Libraries for the #BoostBlueprint series #cpp
1
9
322
Code reuse is valuable—but every dependency has a cost. In his work modernizing the Boost Graph Library, Arnaud Becheler explored how reducing dependencies can improve compile times, simplify audits, and make issues easier to investigate. These improvements don't necessarily require advanced metaprogramming; they require careful engineering and measurement. Discover how practical maintenance work can make a widely used C++ library better for its users. 🎥 Watch the CppCon presentation: youtu.be/Nr7iV9w28cA #Boost #Cpp #SoftwareArchitecture #PerformanceEngineering
9
547
Scope Creep. Rubber Duck Debugger. Cache Invalidation. Backlog Grooming. If you've worked in software development, those names might sound painfully familiar. Now imagine them as collectible cards! Boost: The Card Game turns real software-development concepts and inside jokes into game mechanics. It's a playful celebration of the world of C++ and software engineering. See the cards and their effects in action: youtu.be/Ai2RdX37odo #SoftwareDevelopment #BoostCCG #cplusplus #DevHumour
7
510
Think of libraries as standing on the shoulders of giants. 🏗️ Instead of spending engineering time implementing and maintaining common functionality, you can build on top of work that has already been developed by an established community. That's exactly the kind of leverage C++ libraries can provide. youtube.com/shorts/f_VwqV4wS… #CPlusPlus #Boost #OpenSource #Programming
6
514
The real power of CUDA C++ is bringing CPU and GPU execution together. You can keep standard C++ running on the CPU while using GPU execution for computationally intensive workloads — all within the same application. The first step is understanding what each processor is actually designed to do. Explore the short: youtube.com/shorts/RCrw_dItn… #CPlusPlus #CUDA #GPUComputing #HPC
4
456
If your concurrency architecture is difficult to explain, it may be difficult to trust. Structured concurrency helps make task lifetimes, cancellation, and shutdown behavior explicit. The result can be an architecture that reads more like a state machine, with clear rules for what happens when operations finish or sessions stop. Readable architecture is a powerful engineering advantage. ▶️ youtube.com/shorts/4gG9HMOx-… #StructuredConcurrency #ModernCpp #SoftwareDesign #Concurrency
10
616