duneroadrunner/SaferCPlusPlus
View on GitHub ↗ ★ 425 C++
A collection of safe data types that are compatible with, and can substitute for, common unsafe native c++ types
100 mentions on Hacker News by 6 people: 2 stories, 98 comments · first 2016-09-26 · latest 2026-08-03
20082026
-
…to (reasonable code in) the safe subset of Rust much more feasible than seems to be currently. [1] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master... [2] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master...
comment by safercplusplus · 2026-08-03 · in Rust project goals: Immobile types and guaranteed destructors -
…guessing an inappropriately low proportion of those resources are being invested in Fil-C. :) [1] https://github.com/duneroadrunner/SaferCPlusPlus-AutoTransla... [2] https://github.com/duneroadrunner/SaferCPlusPlus#norad-point... [3]…
comment by safercplusplus · 2026-07-26 · in Memory safety absolutists -
…that applies globally). [0] https://www.boost.org/doc/libs/develop/libs/safe_numerics/do... [1] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master...
comment by safercplusplus · 2026-07-10 · in Almost Always Unsigned -
…use-after-destruction, and they don't require the additional level of indirection either. [1] https://github.com/duneroadrunner/SaferCPlusPlus#norad-point...
comment by safercplusplus · 2025-07-20 · in The borrowchecker is what I like the least about Rust -
…arithmetic is challenging, but has been demonstrated to be solvable in the general case [2]. [1] https://github.com/duneroadrunner/SaferCPlusPlus#getting-sta... [2] https://github.com/duneroadrunner/SaferCPlusPlus-AutoTransla...
comment by safercplusplus · 2020-01-25 · in The C++ Lifetime Profile: How It Plans to Make C++ Code Safer -
…in the ballpark of traditional C++ [4]. [1] https://github.com/duneroadrunner/scpptool [2] https://github.com/duneroadrunner/SaferCPlusPlus#norad-point... [3] https://github.com/duneroadrunner/SaferCPlusPlus#registered-... [4]…
comment by safercplusplus · 2020-01-24 · in The C++ Lifetime Profile: How It Plans to Make C++ Code Safer -
…[2] (and compiler enforcement of their safe use [3]) are available in C++, though not standard. [1] https://github.com/duneroadrunner/SaferCPlusPlus#reference-c... [2] https://github.com/duneroadrunner/SaferCPlusPlus#tasyncshare... [3]…
comment by safercplusplus · 2019-12-30 · in A lot of complex “scalable” systems can be done with a simple, single C++ server -
…Though equivalent facilities are available in C++ [1][2] (and can now/soon be enforced[3]). [1] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master... [2] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master... [3]…
comment by safercplusplus · 2019-11-07 · in Comparing Parallel Rust and C++ -
…mispredictions go up with larger batch sizes? Wouldn't there be fewer branches per unit time? [1] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master...
comment by safercplusplus · 2019-09-12 · in Why is Rust slightly slower than C? -
…the Rust compiler) does. [1] https://devblogs.microsoft.com/cppblog/lifetime-profile-upda... [2] https://github.com/duneroadrunner/SaferCPlusPlus edit: grammar
comment by safercplusplus · 2019-04-23 · in Modern C++ Won't Save Us -
…performance cost of avoiding "unsafe" C++ elements is measurable, but reasonably modest [3]. [1] https://github.com/duneroadrunner/SaferCPlusPlus#registered-... [2] https://github.com/duneroadrunner/SaferCPlusPlus#norad-point... [3]…
comment by safercplusplus · 2019-04-16 · in Virtually Unlimited Memory: Escaping the Chrome Sandbox -
…[3] https://github.com/duneroadrunner/misc/blob/54204445bc099987... [4] https://github.com/duneroadrunner/SaferCPlusPlus#txscopeitem... [5] https://github.com/duneroadrunner/SaferCPlusPlus#make_xscope... [6] https://github.com/dun
comment by duneroadrunner · 2019-04-04 · in Cone Programming Langauge -
…thread [3], which adds a little extra functionality (and maybe convenience). [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#registered-... [2] https://github.com/duneroadrunner/SaferCPlusPlus#norad-point... [3]…
comment by duneroadrunner · 2019-04-03 · in Cone Programming Langauge -
…source code more versatile. And existing C programmers already "get" macros. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus-AutoTransla... [2] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master...
comment by duneroadrunner · 2019-03-19 · in Achieving Safety Incrementally with Checked C -
…migration approach. (And obviously supports "array view" type objects.) [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#safercplusp...
comment by duneroadrunner · 2019-03-18 · in Achieving Safety Incrementally with Checked C -
…of Rust programmers just start wrapping everything with RefCell s by default. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#exclusive-w...
comment by duneroadrunner · 2019-03-15 · in Why I rewrote the mesh generator of Dust3D from Rust to C++ -
…to the justification of deciding to continue to use C++ in some cases. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2019-03-15 · in Why I rewrote the mesh generator of Dust3D from Rust to C++ -
…the process. And where needed, maintain maximal performance as well [2]. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus [2] https://github.com/duneroadrunner/SaferCPlusPlus-BenchmarksG...
comment by duneroadrunner · 2019-03-07 · in Serious Chrome zero-day -
…forward) would be relatively modest. Performance shouldn't be an issue [5]. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus [2] https://github.com/duneroadrunner/SaferCPlusPlus#registered-... [3]…
comment by duneroadrunner · 2019-03-07 · in Serious Chrome zero-day -
…supports a data race safe subset of C++, vaguely analogous to Rust's. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#multithread...
comment by duneroadrunner · 2019-02-25 · in Fearless Concurrency: Clojure, Rust, Pony, Erlang and Dart -
…even be automated[2] for parts of the code that aren't performance critical. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus [2] https://github.com/duneroadrunner/SaferCPlusPlus-AutoTransla...
comment by duneroadrunner · 2019-02-12 · in Microsoft: 70 percent of all security bugs are memory safety issues -
…alternatives. (It is similarly practical to avoid data race prone elements[2].) [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus-BenchmarksG... [2] https://github.com/duneroadrunner/SaferCPlusPlus#multithread...
comment by duneroadrunner · 2019-01-10 · in The State of Software Security in 2019 -
…I suspect that adding it would make the language safer and easier to use. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#norad-point...
comment by duneroadrunner · 2019-01-07 · in Comparing Rust and JavaScript Ergonomics with a Simple Linked List -
…can be done incrementally with corresponding incremental safety benefits. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2018-12-30 · in Safe and Secure Drivers in High-Level Languages [video] -
…you can use an unrestricted smart pointer with run-time checking [3][4]. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#primitives [2] https://github.com/boostorg/safe_numerics [3]…
comment by duneroadrunner · 2018-11-04 · in A Guide to Undefined Behavior in C and C++ (2010) -
…reference as well. But others would be more qualified to make that assessment. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#multithread... [2] https://github.com/duneroadrunner/misc/blob/master/201/8/Jul... [3]…
comment by duneroadrunner · 2018-09-21 · in C++ Lifetime profile v1.0 posted -
…It does this by disabling "resize" operations on the vector while it exists. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#vectors [2] https://github.com/duneroadrunner/SaferCPlusPlus#make_xscope...
comment by duneroadrunner · 2018-06-18 · in Handles are the better pointers -
…make them memory safe (bounds and use-after-free) when compiled in C++ mode. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus/blob/master... [2] https://github.com/duneroadrunner/SaferCPlusPlus-AutoTransla...
comment by duneroadrunner · 2018-06-06 · in XNU kernel heap overflow due to bad bounds checking in MPTCP -
…that "love C++" (or their existing C++ code base), there's SaferCPlusPlus[1]. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2018-04-05 · in A meta-analysis of C++ projects -
…in the issues section[2]. [1] https://www.codeproject.com/Articles/1093894/How-To-Safely-P... [2] https://github.com/duneroadrunner/SaferCPlusPlus/issues
comment by duneroadrunner · 2018-03-16 · in A Usable C++ Dialect That Is Safe Against Memory Corruption -
…"collections" that you need. Don't hesitate to post any questions in the "issues" section[2]. [1] https://github.com/duneroadrunner/SaferCPlusPlus-AutoTransla... [2] https://github.com/duneroadrunner/SaferCPlusPlus/issues
comment by duneroadrunner · 2018-03-16 · in A Usable C++ Dialect That Is Safe Against Memory Corruption -
…to a minimum. Btw these advantages apply versus the Core Guidelines[2] as well. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus [2] https://github.com/duneroadrunner/SaferCPlusPlus#safercplusp...
comment by duneroadrunner · 2018-03-15 · in A Usable C++ Dialect That Is Safe Against Memory Corruption -
…For example, making your public functions function templates when necessary. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#safercplusp... [2] https://github.com/duneroadrunner/SaferCPlusPlus#the-problem...
comment by duneroadrunner · 2018-03-09 · in C++ Core Guidelines -
…of C++ that is more closely comparable to safe Rust than is conventional C++. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2018-01-25 · in Unsafe Zig Is Safer Than Unsafe Rust -
…wouldn't be able to match Rust's performance-safety combination in all cases. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus edit: edited the link
comment by duneroadrunner · 2018-01-20 · in Building a Website with C++ -
…memory-safe subset[1]. Recommended for anyone writing internet facing C++ code. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2018-01-14 · in Rust in 2018: easier to use -
…putting a copy of the scope pointer into "long term storage" (like Rust does). [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#scope-point... [2] https://github.com/duneroadrunner/SaferCPlusPlus#safely-pass...
comment by duneroadrunner · 2017-12-07 · in Modernize C++: Sink Functions -
…vector[2] that supports ipointers. Is this the sort of explanation you're looking for? [1] https://github.com/duneroadrunner/SaferCPlusPlus#nii_vector [2] https://github.com/duneroadrunner/SaferCPlusPlus#ivector
comment by duneroadrunner · 2017-11-26 · in Linked List Problems (2002) [pdf] -
…who take code safety seriously and those who remain interested in C++. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus [2] https://github.com/Microsoft/GSL/blob/1c95f9436eae69c9b93159... [3]…
comment by duneroadrunner · 2017-11-26 · in Carp, a compiled Lisp with type inference and a borrow checker -
…refer to the shared vector, so you can't access it in an // unsafe manner } [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#asynchronou...
comment by duneroadrunner · 2017-11-15 · in Fearless Concurrency in Firefox Quantum -
…an array being safely modified simultaneously from multiple threads[2]. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#asynchronou... [2] https://github.com/duneroadrunner/SaferCPlusPlus/blob/7e3574...
comment by duneroadrunner · 2017-11-15 · in Fearless Concurrency in Firefox Quantum -
…documentation is currently rather out-of-date, and a major update is coming.) [1] shameles plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2017-10-20 · in Pointer Free Programming and the Future of Nim -
…and implicit use of the "this" pointer. I.e. prohibit non-static member functions[1], right? [1] https://github.com/duneroadrunner/SaferCPlusPlus#practical-l...
comment by duneroadrunner · 2017-10-06 · in Building on Rock, Not Sand -
…(under construction, but functional) to do a lot of the conversion for you. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus [2] https://github.com/duneroadrunner/SaferCPlusPlus-AutoTransla...
comment by duneroadrunner · 2017-10-06 · in Building on Rock, Not Sand -
…using the safe, compatible substitutes in the SaferCPlusPlus[1] library. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2017-09-27 · in Why did we choose Rust to develop TiKV? -
…yet documented, but for those interested, example code can be found here[1].) [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus/blob/master...
comment by duneroadrunner · 2017-09-27 · in Abseil: C++ Common Libraries -
…issue). The mutex isn't documented, but it functions just as its name suggests. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#asynchronou... [2] https://github.com/duneroadrunner/SaferCPlusPlus/blob/master...
comment by duneroadrunner · 2017-09-27 · in Abseil: C++ Common Libraries -
…importantly, safety effectiveness. And it does address the data race issue. [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus
comment by duneroadrunner · 2017-09-22 · in Mrustc: a Rust compiler written in C++ -
…Apparently there is a C++ interpreter[2]. Anyone have any experience with it? [1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus [2] https://root.cern.ch/cling
comment by duneroadrunner · 2017-09-07 · in C++17 is formally approved