C ++ Master Herb Sutter joins Microsoft, facing CodeProject talking.

zhaozj2021-02-08  530

Herb Sutter is secretary of the ISO / ANSI C standards committee, is an accomplished author and C expert, and has just joined Microsoft in the Developer and Platform Evangelism Division. Herb will be primarily engaged in liaising with the C developer community, and will also BE Working in Product Planning and Design of Visual C .NET.

Since Herb Is New To The Microsoft Fold I Grabbed A Few Minutes (Well, Hours) of His Time So We Could Get Aquainted with WHO HE IS, What HE DOES, AND What, EXACTLY, IS HAPPENING WITH IUR BELOVED VISUAL C .

.

Well, I've been doing mainly a lot of C writing, teaching, and consulting, and the C community is very important to me By the way, I'm going to continue doing those things;. That community contact is why Microsoft saw A Good Fit To Hire Me, And They Want Me To Keep Doing IT.

So what is that today? Well, right now I'm secretary of the ISO / ANSI C standards committee, and I've participated actively in that committee since 1997. I'm also writing four columns about C , mostly in C / C Users Journal where I'm also half of the magazine's editorial board, reviewing and editing other authors' articles and recommending what should be published and what needs work. I've got two C books out with Addison Wesley, Exceptional C and More Exceptional C And I'm Working on Two More, One With Andrei Alexandrescu. Everything I Write, Except for the final version of material in the books, gets posted free for public recaping on my website, www.gotw.ca. i've Also been a moderator of the primary Internet newsgroup for the C language, comp.lang.c . moderated, since its inception in 1995.Again, all of that's going to continue. What's new is that I'm now also going to be Microsoft's liaison With the C Community on All Platforms, Not Just Windows, To Keep The Visual Stu Dio .NET Team in touch with the community and makess................

What Made you decide to join microsoft? Did The same room to convening you or limited you pursue microsoft?

I'll admit that it would have been a lot less tempting two years ago, back when Microsoft did not seem all that interested in Standard C . But in the past 12 to 18 months I've noticed a real change in priorities at Microsoft , as they've resumed joining us at the committee meetings and as they've started contributing to the community and started making noticeable progress with their product's standards conformance. I discovered, to our mutual pleasure, that now not only is conformance to the existing 1998 C Standard AS Important to Them AS It Is To Me, But That They Want To Keep Tracking The Next-Generation C Standard Whose Development Is Just Underway.What Will Be Your Role At Microsoft?

My job is to be Microsoft's liaison with the C community. "The community" includes the standards committee, C conferences, and developers on all platforms. After all, Microsoft is naturally interested in making their tools appealing to everyone, even those who aren ' t using them yet, and conformance is an important part of making migration possible. There are many reasons, plus my own pre-existing personal ones, to be committed to fulfilling today's C standard and assisting the future development of the standard. A rising tide Floats All Boats, And Standards Conformance Is Good for Everyone.

I hope to make a noticeable mark in the produter. So now I need to give you a heads-up about Something That I want to be very clear about, and name "why" and "hen "i will be pushing for language extensions in Microsoft's C even before the product is fully compliant to today's standard Let me put it in perspective and then lay out my personal agenda:... Microsoft intends to conform 100% to Standard C as soon as possible Period, no question It will not all be in the next release, although many conformance improvements will be. admittedly there's some catching up to do and it can not all happen in a week or a month or a dot release. But it will happen, and as soon as possible.

Having said that, let me tell you the two groups of conformance-related features that are the most important to me, because they're what the C community consistently tell me they need: My one "must-have" feature group consists of everything Needed to conform 100% To Current Standard C (A.KA. C 98). My Other "Must-Have" Feature Group Is Key Extensions That We as a community knowledge Know Perfectly Well We need, But Which Are Missing In C 98, usually due to just oversights or mistakes -. yes, we standards guys are just humans, and we sometimes miss stuff too some of these are just obvious omissions that will certainly appear in some form in the next version of the standard (aka C 0x).

Here's the punchline: To me, those are not two lists, where you do everything on the first list (C 98 conformance) before you start working on the second (key necessary extensions) To me, those things all make up one. list, that then gets prioritized so we can put as many of the most important things as possible into each release. that means that you can bet I will be pushing hard to get some key extensions beyond C 98 into the product even before we finish all the things to conform to C 98, because frankly some of the extensions are more important to the Standard C community than some missing C 98 features. We're definitely going to do all of C 98, no question But if I have my way we're going to do it in the order that will benefit the global C community the most quickly -. that's my assigned vested interest to promote within Microsoft, that we deliver what the global community needs as quickly as WE CAN.

Let me give you a concrete example: Visual Studio .NET (Visual C version 7.0) does not yet have support for the "export" keyword which is in the C 98 standard, nor does it have typedef templates which are not in (As I'll Point Outardard). (AS I'll Point Out in A Second, Nobody else Has Either of Those Features YET, Either.) I Will Be Pounding on The Table During Every Design Meeting You'll Find Me in To Put Typedef templates into the product before support for "export" simply because typedef templates are a lot more important Even though typedef templates are not in C 98, that's just a bad oversight;. I do not know of an expert in the world who does not agree that typedef templates are obviously needed, and needed more than "export". On the other hand, as of our interview today, there's not a single released C compiler in the world that supports "export" (Microsoft is not Alone Here!) And the Community IS Hardly Clamoring for It. Edison Design Group and Their Licensee Comeau Have An "Export "-Capable compiler in beta and will be shipping sometime soon, which I think is great, but if you sit me down at a table and put" export "beside typedef templates in front of me, I'll choose typedef templates every time, even though they're not officially in C 98, because key community libraries like Boost and Loki would really benefit from them; hey, the standard itself had to do that funky alloator :: rebind hack just because we did not have typedef Templates, And The Standard Even Says So! Here's A Direct Quote: "The Template Class Member Rebind ... Is Effectively A Template Typedef"

!. We'll do "export" Too, Of Course, Butfirst Things first.don't get me Wrong, I'm Certainly Not Pushing for a lot of extensions, and ceertainly not any Anything Where there isn . 't already a clear need and some community agreement and when I propose those features within Microsoft, it will be after I've already talked with the world's top experts about how important they are and how they should be specified; I hate half- baked homebrew misfeatures and that's certainly not what I'm after here I'm pushing for a handful of carefully chosen and carefully implemented extensions that the community is clamoring for, and which are not proprietary but rather the opposite:. things we already know are . certain or likely to come in C 0x and which we hope all compiler vendors will provide too A standards committee can sometimes be inventive, but mostly it's supposed to standardize existing practice; I want to help Microsoft help the standard by providing just that "EXISTI ng practice in the field "for these key upcoming features. Indeed, by trying to carefully wield Microsoft's product as a leader in this way I personally hope to help move the whole community forward on all compilers and platforms, as other products are encouraged to implement Them Too, Which Will Benefit Everybody No Matter Whose Tools They're Using.

Bluntly, I Have My WAY, THEN PEOPLE ARE Going to Ask, "How Come Microsoft Put Extension x Into the next version of vs.net, WHEN TOE HAVEN 'EVEN FINISHED CONFORMING TO C 98 yet?", And i Hope the ask That Because If do the I've Done My Job. No Worries, Full C 98 Compliance with "Export" and the Kitchen Sink is Coming On Apace, and Will Get Done, No Question. But if i since my way we'll do that whole unified wish-list of C 98 and pre-C 0x standard features in the order that best serves the community, because that community priority is what I'm being paid to push inside the company.As' Community Program Manager 'will you be involved directly with the community? in what way? Will you be providing more of a direct link for the community and Microsoft itself? Can I pass all the' how do I do X in C 'Questions I get from readers on to you? please?

Yes, LOTS, YES, NO OH PLEASE NO, AND NOT EVEN IF You Say Pretty Please, Respective. Ahem. Seriously, Though Some Questions Are Okay, But At Least Get People To Read The C FAQ (www.parashift.com/c -faq-lite) and my website (www.gotw.ca) First to See eti the the ALREADY A Well-KNown Answer.

It's my job to know what the community wants. That's why I'm going to continue speaking and listening to attendees at conferences, in my private independent consulting, on the public newsgroups, in email conversations with readers of my columns and books, over coffees And Dinners at Standards Meetings with the Top Gurus and with with the Other Vendors, And everything else I'm already doing.

C developers are still not getting as much love from Microsoft as VB.NET or C # developers. Is this something you hope to change? How? That may have been more true until recently. I've seen some changes already in the past six months , and I'm looking forward to seeing more. There's no question that Microsoft is investing in C , internally and externally. Look for further Microsoft community participation by contributing to platform-neutral community libraries and in other ways.

What do you see AS C 's role in a .NET WORLD?

C is still by far the Most Powerful Language In The .NET Universe, and The One That More Commercial Windows Apps Are Written In. That's Not Likey to Change Anytime Soon.

What do you see AS The FUTURE OF C Overalll?

C continues to be relevant, dominant, and in widespread and still-growing use The C standard and standardization process also continues to be relevant -. Committee membership and participation has increased since the first standard was published in 1998, and lately we've had more countries represented at our ISO meetings than ever before Usually the opposite happens when a standard is completed and the committee goes into maintenance mode for a while -. companies stop sending people, because they all have their own work to do after all But not. here: even while we were in maintenance mode for several years, ISO / ANSI membership has pretty much never been stronger, and all the vendors, including Microsoft, are there together actively working on the next-generation C 0x standard whose work is Now getting understand.

Managed extensions for C have received a lukewarm reception from many developers. What do you feel Microsoft can do to make MC more approachable for the typical C developer? For one thing, MC has to support more of Standard C . There is (how can I Say this politely) Room for more overlap. There, I think there. I think there .net is good for C .

Do you really believe That .NET IS Good for C ? Why?

I do. I'm Hopeful That It Can Contribute Something Valuable, Perhaps Even Beyond Windows-based Platforms.

Here's a for-instance: Within the standards committee and the standards process, I've seen several key recurring questions and wishes since C 98 was passed Three of them are:. A) "? What about standardizing thread support"; b ) "What About Compiling C to the JVM?"; and c) What about a portable gui library, something Basic That Will Help with teaching? "I thinking it's very interesting this .NET Provides All three, and more, and that it Makes Those Things Available To C Programs. in Particular, Well Before I Had Any Idea I Would Come To Microsoft, I'D THOUGHT THAT. NET WAS "a Lot More of Course). IF We Could Get Better convergence between "Managed C " and "Standard C ," which is something that the team as a whole and Stan Lippman in particular are working on right now, this whole thing could get really interesting and there might be some useful standard technology to offer here Someday IF The C Committee Wants Any Parts of It. I'm Saying That With My "Committee- member "hat on, not my" Microsoftie "hat on. After all, this very possibility is one of the cool ideas that hooked me into wanting to participate with Microsoft and see what I could be part of contributing to the committee and the community, because like everyone else I've been looking for answers to those same three questions, and here's a technology that's already being standardized (in ECMA and soon ISO), and look, it works with C ! Well, with a lot of C , anyway . We'll Have To Seeh How It Goes, Thought. I don't think it's any shape yet to submit it; we '

d pretty much have to be able to run nearly all of Standard C on .NET just to have a proof-of-concept starting point that the committee would be interested in. It's a goal. We want to contribute where we can.But C developers on all platforms wants these kinds of things -. threads, running on a VM, a managed GUI library Windows-based developers have a lot of it today, and I know that the Visual Studio .NET team are working hard to make it better SO That You Don't have to Give Up So Much Of Standard C To Get Those Benefits.

Why SHOULD C DEVELOPERS BE EXCITED ABOUT What Microsoft IS Doing FOR C ?

Besides the .NET stuff I just talked about, which I think has potential to help C as a language, Microsoft is also interested in contributing more, and more often, to the C community. Part of my job is to make sure that stuff that Microsoft has been developing in Research can start more regularly getting submitted openly to community libraries like Boost, so that developers on all platforms can benefit from them. We're working hard on that. Pardon me, I've got to go beat on some Lawyers' Heads About That; Back in A Sec.

How Large Is THE C Community?

Depends how you count, but the best numbers I keep seeing put the global developer community at something like 9.5 million people, and those using C at about 3 million of that. That's well ahead of Java in nearly all studies I've seen, by the way, usually by a factor of 1.5-to-1 or 2-to-1. And showing C still modestly growing, also by the way. All without aggressive marketing, yet again by the way. The reports of C 's demise have been , Well, "exaggerated." What sets The C Community Apart from other Types of developers?

C developers need power and know how to use it. I've always said you should use the best language for the job, and I've used dozens of languages ​​professionally. Depending on how you count languages, I've probably used a dozen Professional IN The Past Year. People Who Want to Write Efficient, Tight, Fast Code Offen TEND To Choose C Because It Lets You Get The Job Done with Powerful Code But Without Sacrificing Efficiency.

People who want mature, stable compilers and tools often tend to use C because it's been around a while and the tools and libraries are plentiful and solid. Commercial client-side application development with more than a few screens, most kinds of server-based software , and most kinds of libraries are all done more often with C than with other languages, according to the best numbers I've seen and according to my own experience as a developer and as a consultant who shows up at other developers' shops.

How Will C Evolve Going Forward? What Is Microsoft's Role in Determining this?

The coming C 0x standard will heavily emphasize additions to the library, not to the core language. Expect to see a few well-chosen core language extensions, such as typedef templates, but not any huge fundamental changes like templates and exceptions were in their day. In the standard library, on the other hand, do expect many extensions, from obvious low-hanging fruit like hash-based containers and threading support to possibly things as big as a VM model or a basic GUI library, and lots of useful stuff in between. to get some idea of ​​what kinds of things you might see, check out Boost (www.boost.org), although I hasten to add that we on the committee are looking for input from the whole community, don ' t think Boost has some inside slam-dunk track.Along with the other C vendors and experts, Microsoft will continue as an active participant in the ISO / ANSI C committee, contributing its people's expertise to help formulate and refine proposals that will improve the coming C 0x STA ndard. It also wants to contribute technologies or research of its own, if the committee thinks that those facilities will help the C language's evolution. Microsoft is now committed to supporting the community and being an active participant and contributor.

What's currently happening with c ? What's the late gossip?

C 0x, Man! It's a whole new standard outlace! OR, At Least, IT Will Be Once We're Done. Give US A Few Years, It's Just Getting Underway Now. At The Most Recent Standards Meeting, Held in october 2001, we already started considering the first batch of potential additions to the C standard library. There were seven proposals, from threading support to hash-based containers, all of them fairly self-contained and smallish ones to start with (well, okay , the threading one is not that small) There's a lot more exciting stuff on the way;. that's just the beginning I've recently started writing a new column for C / C Users Journal called "The New C " that will cover. these topics, and in fact already has detailed many of the above - see the links on my Publications page, www.gotw.ca/publications, that are tagged "TNC " (the acronymized column name) .No matter how many statements are made About C 's Rosy Future, Perssimists Continually Use Same Statements to Conclude That C Is Dead HOW WOULD you respond to the pessimists?

I recently read an interview with some C guy, and when he was asked about the size of the C community, he said something like: 'Depends how you count, but the best numbers I keep seeing put the global developer community at something like 8.5 Million People, And Those Using C at About 3 Million of That. That's Well Ahead of Java in Nearly All Studies I've seen, by the Way, Usually By a factor of 1.5-to-1 or 2-to-1. and SHOWING C Still Modestly Growing, Also by the Way. All The Reports Of C 's Demise Have Been, Well, "EXAGGERATED."' I Think He's Got A Point.

转载请注明原文地址:https://www.9cbs.com/read-314.html

New Post(0)