#cpp11
One thing that has been a mystery to me is that cpp11 protects the continuous token by R_PreserveObject(), but never calls R_ReleaseObject(). Why doesn't this cause memory leak...? #rstats

github.com/r-lib/cpp11/...
cpp11/inst/include/cpp11/protect.hpp at 05c888b0c6f49e7b252b79b028e4719e6d5b299d · r-lib/cpp11
cpp11 helps you to interact with R objects using C++ code. - r-lib/cpp11
github.com
April 17, 2025 at 1:49 PM
cpp11 vs rcpp vs extendr
February 24, 2026 at 12:12 AM
I had ChatGPT convert an R-based parser into cpp11 for a 15x speedup. It feels so good when you get a win like that
January 10, 2026 at 8:24 PM
Wouldn't it be great to write easy-to-read code that your compiler loves?

Templates help you to generate clean code. Discover essential tips and tricks on how to use them in my latest book:

Paper: https://amazon.com/dp/…
E-book: https://fertig.to/btmp…

#cpp11 #programming #book #cplusplus
July 20, 2026 at 3:57 PM
“please help me translate this r loop into fast cpp11 code” was a good one i just had
October 23, 2025 at 1:03 AM
Check out my new C++ research tools!

Disclaimer: I used AI exclusively for this. I wanted to see how far I could push the tools.

1) LaTeX to markdown: github.com/lefticus/cpp...
2) Diff tool of per-stable-name of the markdown

cppevo.dev/diffs/cpp11-... to see how has evolved!
GitHub - lefticus/cppstdmd: Converter for C++ Standard Latex into Human Readable Markdown
Converter for C++ Standard Latex into Human Readable Markdown - lefticus/cppstdmd
github.com
November 16, 2025 at 6:22 PM
after writing out a working parser in R, i asked chatgpt to translate the tokenizer to cpp11 and got a 3x speed increase. (of course, i reviewed the output and have the two parsers unit testing against each other)
October 13, 2025 at 5:40 PM
Did I just hand-write an implementation of #cpp23 std::expected for use in #cpp11 ? Very, very yes.

Is it complete? No. But it is functional enough.

Am I pleased with it? Also very yes!

Will I use it in #ProjectSpecialK? I dunno, maybe. We'll see.
July 20, 2025 at 6:07 PM
Wouldn't it be great to write easy-to-read code that your compiler loves?

Templates help you to generate clean code. Discover essential tips and tricks on how to use them in my latest book:

Paper: https://amazon.com/dp/…
E-book: https://fertig.to/btmp…

#cpp11 #programming #book #cplusplus
January 19, 2026 at 3:37 PM
Two good options: {rextendr} and {savvy}. They’re analogous to the {rcpp} and {cpp11} packages, respectively.
July 18, 2025 at 4:19 PM
Wouldn't it be great to write easy-to-read code that your compiler loves?

Templates help you to generate clean code. Discover essential tips and tricks on how to use them in my latest book:

Paper: amazon.com/dp/3949323074
E-book: leanpub.com/notebookcpp-...

#cpp11 #templates #book #cplusplus
Notebook C++: Tips and Tricks with Templates
Amazon.com: Notebook C++: Tips and Tricks with Templates: 9783949323072: Fertig, Andreas, Panter, Franziska: Books
amazon.com
February 17, 2025 at 10:21 AM
Released v1.4.0 of PhysUnits-CT-Cpp11.

Now features a nonstd-lite alike GitHub test workflow.

As long as it lasts :)

Quantities and units library (P3045) is on its way to standard C++.

wg21.link/p3045 .

github.com/martinmoene/...

#cpp #cpp11 #cpp
GitHub - martinmoene/PhysUnits-CT-Cpp11: A small C++11, C++14 header-only library for compile-time dimensional analysis and unit/quantity manipulation and conversion
A small C++11, C++14 header-only library for compile-time dimensional analysis and unit/quantity manipulation and conversion - martinmoene/PhysUnits-CT-Cpp11
github.com
February 14, 2026 at 3:41 PM
string-bare - C++ string algorithms for C++11 and later.

An early version with tests for `char` character type.

Still pondering on an API for similar functions that support using `std::regex`.

#cpp #cplusplus #cpp11

github.com/martinmoene/...
GitHub - martinmoene/string-bare: C++ string algorithm library (WIP)
C++ string algorithm library (WIP). Contribute to martinmoene/string-bare development by creating an account on GitHub.
github.com
August 26, 2025 at 6:32 PM
C++ Insights - Episode 75: The Ref-Qualifier That Saves You from Undefined Behavior

In this episode, you'll learn how req-qualifers save you from undefined behavior.

https://youtu.be/rKiLxJuEjDY

#cppinsights #cpp #cpp11
C++ Insights - Episode 75: The Ref-Qualifier That Saves You from Undefined Behavior
youtu.be
June 17, 2026 at 7:10 PM
looks like i'm on the bleeding edge of Nix + CUDA now, lol
July 23, 2025 at 4:58 PM
it's cool that the R cpp11 package started using claude and now we can't build packages
July 1, 2026 at 10:40 AM
thank you! it entirely just was I needed Agent mode!🙏 @njtierney.bsky.social suggested yesterday, my lovely agent has just written a compensive todo for next steps with the C++ cpp11 binding project (on a VM where I traditionally use rstudio, connected to from my laptop), and now it's building that
December 22, 2025 at 10:08 PM
C++ Insights - Episode 72: Why you should never call a virtual member function in a constructor

In this episode, you'll learn by example why you should never call a virtual member function from a constructor.

https://youtu.be/_ZvNJciCXeE

#cppinsights #cpp #cpp11
C++ Insights - Episode 72: Why you should never call a virtual member function in a constructor
youtu.be
March 18, 2026 at 6:35 PM
🍻 physunits 🍻

C++ header-only for Physics unit/quantity manipulation and conversion

🔗 https://github.com/martinmoene/PhysUnits-CT-Cpp11

#homebrew #newpkg #macos #linux #formula
April 28, 2025 at 12:48 PM
And that’s not the end of it. C++ can also be with cpp11. Julia with JuliaCall. Python (though you shouldn’t waste time on this) with reticulate. Java with rJava.

I’m sure there are more, these are just the few that come to mind
August 14, 2025 at 10:17 PM
C++ Insights - Episode 74: Why move requires noexcept in C++20

In this episode, you'll learn why noexcept is crucial for move operations of a class.

https://youtu.be/d7CzCSrPp60

#cppinsights #cpp #cpp11
C++ Insights - Episode 74: Why move requires noexcept in C++20
youtu.be
May 20, 2026 at 7:02 PM
If there's anyone interested in swaps... of bytes: bit-lite now supports 'm.

#cpp #cpp98 #cpp11 #cpp20 #cpp23

github.com/martinmoene/...
Release 1.0.0 · martinmoene/bit-lite
Release 1.0.0 of bit lite adds C++23 byteswap(). To be expanded. Additions: Changes: Fixes:
github.com
October 6, 2025 at 6:24 PM
Finally introduced a converting constructor for C++11 in my take of (nonstd) variant with its idiosyncratic typelist to support C++98.

Hope to release v3.0.0 'really soon'.

Back to the future or something :)

#cpp #cpp98 #cpp11 #cpp17

github.com/martinmoene/...
GitHub - martinmoene/variant-lite: variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library.
variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library. - martinmoene/variant-lite
github.com
October 1, 2025 at 11:39 AM