Bjarne Stroustrup announces C + + Core guidelines

Source: Internet
Author: User

This morning in he opening keynote at Cppcon, Bjarne Stroustrup announced the C + + Core guidelines (Gith Ub.com/isocpp/cppcoreguidelines), the start of a new open source project on GitHub to build modern authoritative guideline s for writing C + + code. The guidelines is designed to being modern, machine-enforceable wherever possible, and open to contributions and forking so That organizations can easily incorporate them into their own corporate coding guidelines.

The initial primary authors and maintainers is Bjarne Stroustrup and Herb Sutter, and the guidelines so far were develope D with contributions from experts at CERN, Microsoft, Morgan Stanley, and several other organizations. The guidelines is currently in a "0.6" state, and contributions is welcome. As Stroustrup said: "We need help!"

Stroustrup said: "You can write C + + programs that is statically type safe and has no resource leaks. You can do that without loss of performance and without limiting C + + ' s expressive power. This supports, the general thesis that garbage collection are neither necessary nor sufficient for quality software. Our core C + + guidelines makes such code simpler to write than older styles of C + + and the safety can be validated by tools That should soon is available as open source. "

From Stroustrup's talk Abstract:

In this talk, I describe a style of guidelines so can be deployed to help most C + + programmers ... The rules is prescriptive rather than merely sets of prohibitions, and about much more than code layout ... The core guidelines and a guideline support library Reference implementation would be open source projects freely available On all major platforms (initially, GCC, Clang, and Microsoft).

Although the repository is not officially announced until today, it is made public last week and was Noticed:cppcoregui Delines was the #1 trending repository worldwide on GitHub in Friday, and is currently the #1 trending repository Worldwid E for the past week, across all languages and projects.

Stroustrup also announced the other related projects.

Guideline Support Library (GSL): First, the C + + Core guidelines also specifies a small guideline suppo RT Library (GSL), a set of common types like Array_view and not_null to facilitate following the modern guidelines. An initial open source reference implementation contributed and supported by Microsoft are now available on GitHub at Githu B.com/microsoft/gsl. It's written in portable C + = should work on any modern compiler and platform, and have been tested on CLANG/LLVM 3.6 and GCC 5.1 for Linux, with Xcode and GCC 5.2.0 for OS X, and with Microsoft Visual C + + (Update 5) and for Windo Ws. This was both a supported library and an initial reference implementation; Other implementations by other vendors is encouraged, as is forks of and contributions to this implementation.

Checker Tool: Second, the C + + Core guidelines is designed to being machine-enforceable wherever possible, and include many rules that can be checked by a compiler, lint, or other tool. An initial implementation based on Microsoft's Visual Studio would be being demonstrated in several talks at Cppcon this week, in cluding Herb Sutter ' s Day 2 plenary session tomorrow morning. This implementation is made available as a Windows binary in October, with the intention to open source the implement ation thereafter. This too would become a supported tool and an initial reference implementation open to others; Other implementations by other vendors of compilers, linters, and other tools is encouraged.

A number of other Cppcon talks would go deeper into the related topics, notably the following talks by speakers who Collabo Rated on the guidelines effort:

Herb sutter:writing Good c++14 by Default (Tue 10:30am)

Gabriel Dos Reis:large Scale C + + with Modules:what should Know (Tue 2:00pm)

Neil macintosh:more Than lint:modern Static Analysis for C + + (Wed 2pm)

Neil macintosh:a Few Good types:evolving Array_view and String_view for Safe C + + Code (Wed 3:15pm)

Gabriel Dos reis:contracts for dependable C + + (Wed 4:45pm)

Eric Niebler:ranges and the future of the STL (Fri 10:30am)

(and more)

If you ' re at Cppcon this week, watch for those talks. If you aren ' t, like last year's event, Cppcon is again professionally recording all talks, and they would be freely av Ailable Online about a month after the conference.

Bjarne Stroustrup announces C + + Core guidelines

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.