Jump to content

Herb Sutter

From Wikipedia, the free encyclopedia

Template:Short description Template:Third-party

File:Professional Developers Conference 2009 Technical Leaders Panel 7.jpg
Sutter in 2009

Herb Sutter is a prominent C++ expert. He is also an author of several books on C++ and was a columnist for Dr. Dobb's Journal.

Education and career

Sutter was born and raised in Oakville, Ontario, and studied computer science at Canada's University of Waterloo.[1]Template:Third-party inline

From 1995 to 2001 he was chief technology officer at PeerDirect where he designed the PeerDirect database replication engine.[1]Template:Third-party inline

He joined Microsoft in 2002[2] as a platform evangelist for Visual C++ .NET,Template:Cn rising to lead software architect for C++/CLI.[3][4] In recent years Sutter was lead designer for C++/CX and C++ AMP.[4] In November 2024, after 22 years at Microsoft, Sutter left to join Citadel Securities.[5]

Sutter has served as the chair of the ISO C++ standards committee since 2002.[6][3][4]

In 2005, Sutter published an article titled "The Free Lunch Is Over"[7] that claimed that microprocessor serial-processing speed was reaching a physical limit leading to two main consequences:

  • Processor manufacturers would focus on products that better support multithreading (such as multi-core processors), and
  • Software developers would be forced to develop massively multithreaded programs as a way to better use such processors.

The article is seen as highly influential in subsequent system design.[8][9][3]

Cpp2

Template:Infobox programming language Cpp2 is an experimental alternative syntax for C++ created by Herb Sutter, first developed in 2021 and announced in September 2022.[10][11][12] Rather than a separate language, it is an alternative syntax that is transpiled down to standard C++ using the cppfront compiler (whose name is a reference to the Cfront compiler, which was created by Bjarne Stroustrup to transpile C++ down to C), uses the usual C++ Standard Library, and allows compatibility and coexistence with standard C++ syntax. Unlike standard C++ itself, Cpp2 code is order-independent (a function may be called earlier in a file even if its declaration appears later in the file).[13] In addition, it advertises increased program safety (such as memory safety) over standard C++.[14]

The following is a Hello World program in Cpp2:

<syntaxhighlight lang="cpp"> main: () -> int = {

   std::println("Hello, world!");

} </syntaxhighlight>

A basic example with a type, is the following. In Cpp2, data members are private by default, while methods are public by default, but can otherwise be specified with <syntaxhighlight lang="cpp" inline>private</syntaxhighlight>/<syntaxhighlight lang="cpp" inline>protected</syntaxhighlight>/<syntaxhighlight lang="cpp" inline>public</syntaxhighlight>.[15]

<syntaxhighlight lang="cpp"> using std::string;

Person: type = {

   name: string;
   getName: (this) = { return name; }

}

main: (args) -> int = {

   john: Person = ("John Doe");
   std::println("Hello, (john.getName())$!");

} </syntaxhighlight>

Cpp2 has its own reflection[16] and contract[17] systems that predate the native C++ reflection and contract systems (added in C++26), with support for metaclasses (a feature Sutter has also proposed for inclusion into standard C++).[18]

Bibliography

References

Template:Reflist

Template:Authority control

  1. ↑ 1.0 1.1 {{#invoke:citation/CS1|citation |CitationClass=web }}
  2. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  3. ↑ 3.0 3.1 3.2 {{#invoke:citation/CS1|citation |CitationClass=web }}
  4. ↑ 4.0 4.1 4.2 Template:Cite news
  5. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  6. ↑ Template:Cite news
  7. ↑ Template:Cite magazine
  8. ↑ Template:Cite news
  9. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  10. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  11. ↑ Template:Cite book
  12. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  13. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  14. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  15. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  16. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  17. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
  18. ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}