Better HN
topnewbestaskshowjobs
Log inSign up

BudVVeezer

1,059 karma · joined Feb 7, 2010 (16y ago) · 190 submissions

Submissions

1.

Using Sarif with Clang and CodeSonar(blogs.grammatech.com ↗)

1 points · by BudVVeezer · 7y ago · discuss

2.

Structure and Distribution of an Unrecognized Interstitium in Human Tissues(nature.com ↗)

1 points · by BudVVeezer · 8y ago · discuss

comment 9y ago · link · parent

The title is incorrect, it's WG23, not WG32.

4.

Fall ISO C++ standards meeting (Albuquerque)(herbsutter.com ↗)

1 points · by BudVVeezer · 9y ago · discuss

comment 9y ago · link · parent

> __they don't want these things next to where they live__.

Which is the precise definition of Not In My Back Yard...

comment 9y ago · link · parent

It's consistent with for (init; condition;) {} and solves a problem like:

if (std::vector<int> v = f(); !v.empty()) { // Use v }

without requiring an extra compound statement to limit the scope and lifetime of v.

comment 9y ago · link · parent

Not quite.

It was submitted for PDTS (proposed draft technical standard), which means it goes out for balloting to ISO national bodies. That balloting either succeeds (at which point you have a Techincal Specification) or it comes back to the committee with comments that the committee then has to respond to (and then another round of balloting happens). Once it's accepted as a Technical Specification, it's still not part of the C++ International Standard. That's a decision the committee comes to at their own pace, much like what happened at this meeting where the Concepts TS was accepted (as amended) into the IS.

Think of a TS somewhat like a beta. There's no assurance that the contents of the TS will go into the IS at all or in the exact form it was originally specified in, but that's certainly the hope when the TS is published.

comment 9y ago · link · parent

The clang-tidy tool has some C++ Core Guideline checks under the cppcoreguidelines module.

comment 9y ago · link · parent

Some of these rules are currently in clang-tidy, but the coverage is by no means comprehensive. Patches always welcome. :-)

comment 9y ago · link · parent

What's considered critical or difficult to discover is a bit subjective, but:

It's easy to forget that alignment is important on some architectures (other than for performance reasons), so be careful when using placement new: https://www.securecoding.cert.org/confluence/display/cpluspl...

This may seem obvious, but even the C++ committee got this one wrong when they created auto_ptr (which has since been removed from the standard): https://www.securecoding.cert.org/confluence/display/cpluspl...

This one is totally obvious but has a stunning number of ways you can fail to adhere to it, some of which look reasonable at first blush: https://www.securecoding.cert.org/confluence/display/cpluspl...

11.

Software Engineering Institute Makes CERT C++ Coding Standard Freely Available(sei.cmu.edu ↗)

179 points · by BudVVeezer · 9y ago · 24 comments

comment 9y ago · link · parent

Yes and no. Many compilers support #pragma once, but whether your build environment handles it is another matter. Having your headers on network drives, or having symlinks to your headers, etc can cause issues with #pragma once handling (depending on the implementation) that can often be hard to track down, especially if building with multiple compilers. Include header guards do not have these issues.

comment 9y ago · link · parent

Is it the /d1reportSingleClassLayoutXXX flag, described here?

https://blogs.msdn.microsoft.com/vcblog/2007/05/17/diagnosin...

14.

DoJ, DoA, and DoI to Rethink Dakota Access Pipeline(justice.gov ↗)

2 points · by BudVVeezer · 10y ago · discuss

15.

History of Labor Day(dol.gov ↗)

2 points · by BudVVeezer · 10y ago · discuss

16.

A huge crack is spreading across one of Antarctica’s biggest ice shelves(thestar.com ↗)

211 points · by BudVVeezer · 10y ago · 104 comments

comment 10y ago · link · parent

You are forgetting attributes, which can be empty and are grammatical sequences (so you can add them infinitely).

[[]][[]][]()[[]][[]]{}();

18.

9.99999 reasons why .9999 (repeating) = 1(youtube.com ↗)

4 points · by BudVVeezer · 10y ago · discuss

comment 10y ago · link · parent

Ah, that's right, ranges was a new work item planned for TS (but still not planned for IS in C++17).

comment 10y ago · link · parent

The author may be a bit confused as to what C++17 will be. Modules will be in a TS, most likely. Transactional memory, concepts, ranges, and filesystem are already in published TSes (not planned for the IS in this round). Out of the list presented, only fold expressions and __has_include are actually already voted in for C++17 itself. The rest are in various stages of standardization (mostly TSes) and are not guaranteed to ever become part of the IS (though hopefully many will).

21.

Mapping Police Violence(mappingpoliceviolence.org ↗)

1 points · by BudVVeezer · 10y ago · discuss

22.

Clang with Microsoft CodeGen in VS 2015 Update 1(blogs.msdn.com ↗)

118 points · by BudVVeezer · 10y ago · 37 comments

23.

VC++ turns 20 (2013)(channel9.msdn.com ↗)

1 points · by BudVVeezer · 10y ago · discuss

24.

Festival of Bad Ad Hoc Hypotheses(bahfest.com ↗)

2 points · by BudVVeezer · 11y ago · discuss

25.

RegEx match open tags except XHTML self-contained tags(stackoverflow.com ↗)

1 points · by BudVVeezer · 11y ago · discuss

26.

Ship of Theseus(en.wikipedia.org ↗)

46 points · by BudVVeezer · 11y ago · 50 comments

comment 11y ago · link · parent

Boost is a very large project with varying degrees of API quality, and so when you say it depends on boost, I wonder "the good parts (any, variant, stuff that usually gets looked at for standardization)" or "the bad parts (Spirit, etc)". Also, as others have said, it's a huge dependency that generally raise a red flag (for performance and compile time).

28.

Type Casting Verification: Stopping an Emerging Attack Vector [pdf](usenix.org ↗)

8 points · by BudVVeezer · 11y ago · discuss

comment 11y ago · link · parent

I would highly recommend looking at the CERT C Coding Standards, which are available for free: https://www.securecoding.cert.org/confluence/display/c/SEI+C...

One thing to note, they split them into recommendations and rules. Recommendations are more stylistic and open to debate, whereas violations of rules generally result in definite security concerns.

1234567