Get the latest tech news

Scpptool – a tool to enforce a memory and data race safe subset of C++


scpptool is a command line tool to help enforce a memory and data race safe subset of C++. - duneroadrunner/scpptool

The main differences between "traditional C++" and the safe subset that this tool enforces are probably the restrictions on raw pointers/references and the method for accessing elements in dynamic containers (such as vectors). This syntax for addressing sublifetimes might be considered a little messy (and maybe error prone), but results from the fact that, in the source text, our annotations are placed after the declarations rather than the directly after the types they might correspond to. Note that the mse::rsv::make_xscope_pointer_to() function, which allows you to obtain a scope pointer to the resulting object of any eligible expression, is not listed in the documentation of the SaferCPlusPlus library, as without an enforcement helper tool like this one, it could significantly undermine safety.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of data

data

Photo of Memory

Memory

Photo of race

race

Related news:

News photo

Banning TikTok Won’t Keep Your Data Safe. Pompous billionaires, authoritarian regimes, and opaque oligarchs are hoarding our data. Only an alternative online ecosystem will stop them. (gift link)

News photo

The Fall of StackOverflow: A Data-Driven Analysis

News photo

BlackSuit ransomware stole data of 950,000 from software vendor