|

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 our beloved Visual C++.
So Herb - can you give us a quick rundown of your background and what you
were doing before signing on with Microsoft.
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 versions of material in
the books, gets posted free for public reading 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
Studio .NET team in touch with the community and make sure that what the
community needs gets into the product.
What made you decide to join Microsoft? Did they have to convince you or did
you pursue Microsoft?
I'll admit that it would have been a lot less tempting two
years ago, back when Microsoft didn't 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
product. So now I need to give you a heads-up about something that I want to be
very clear about, and namely "why" and "when" 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 won't all be in the next release,
although many conformance improvements will be. Admittedly there's some catching
up to do and it can't 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 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 (a.k.a. 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) doesn't yet have support for the
"export" keyword which is in the C++98 standard, nor does it have
typedef templates which are not in the C++98 standard. (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 aren't in C++98, that's just a bad oversight; I don't know of an
expert in the world who doesn't 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
didn't have typedef templates, and the standard even says so! Here's a direct
quote: "The template class member rebind … is effectively a template
typedef"! That's just way more important. We'll do "export" too,
of course, but first things first.
Don't get me wrong, I'm certainly not pushing
for a lot of extensions, and certainly not 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 "existing 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, if I have my
way, then people are going to ask, "how come Microsoft put Extension X into
the next version of VS.NET, when they haven't even finished conforming to C++98
yet?", and I hope they ask that because if they do then 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 have 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, respectively. 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 if there's 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 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 likely to change anytime soon.
What do you see as the future of C++ overall?
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 underway.
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 that was subtle enough. The team is hard at work on these kinds of issues.
I think that .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 think it's very interesting that .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 better JVM" (plus 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 see how it goes, though. 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 professionally
in the past year. People who want to write efficient, tight, fast code often
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
standard. 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 latest gossip?
C++0x, man!
It's a whole new standard out there! 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
isn't 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, pessimists
continually use these 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 without aggressive marketing, yet
again by the way. The reports of C++'s demise have been, well,
"exaggerated." '
I think he's got a point.
| You must Sign In to use this message board. |
|
| | Msgs 1 to 25 of 166 (Total in Forum: 166) (Refresh) | FirstPrevNext |
|
|
 |
|
|
Hi, I actually i done crystal reports in windows apps but, i dont know how to implement crystalreports in using Asp.net2.0 with C#.Can you plz tel me how to implement crystalreports using Asp.net2.0 with C#.plz tel me.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Even before 7.0 was released, we started getting all this crap about the standard not being (largely) met until 7.1 came out. That is, we still have to wait until yet another piece of vapour-ware makes it into the real world. When Microsoft actually releases a standard C++ compiler, let me know. Until then, don't waste my time with this baloney - I certainly will not be wasting my money on the current release...
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
The idea of mc++ as an end in itself - rather than just a stepping stone between C++ and C# - is quite interesting.
Hopefully, under the guidance of Herb - MS will focus on improving mc++ (and the compliance of the C++ compiler) in version 7.1.
But I thought that MSIL was fundamentally ill-suited to C++ (eg. MI, templates)? Can this be changed?
TomM
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
Hummm. MS care about a standard that it didnt write?
Well, this article gives me some hope. I look forward to seeing VC7.1.
Tom.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Attend a C++ standards meeting. I was pleasantly surprised to see a lot of commitment from MS at the one I attended. Of course I attended the one hosted by MS, but I didn't get the feeling that that had anything to do with it. Further, most of the folks on the committee were sensing the same changes that I did. The conclusion being reached, with out any inside knowledge, was that something had changed in the management (such as someone leaving) that allowed the developers to assert their strong feelings that the standard was important.
William E. Kempf
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Microsoft have for the last several years by their actions and words basically told us C++ developers "piss off, you're unwanted, use VB or something - besides, we're too incompetent to create a C++ compiler".
The reason they got their C++ compiler to a decent state at all at the time (around 1995? take or leave a few years) was that they managed to buy Borland C++ developers. On their own they were a total disaster up to that buy.
Some years later they released MSVC 6.0, the newest and greatest. Well what do you know, it was basically a service-pack for MSVC 5.0 (and also using the HTML MSDN-viewer that made the old Media Viewer MVB look and act like heaven! Have you ever seen a slower help-system on Windows than their HTML stuff?).
Then they, righfully, got flamed and bashed all over the place for creating a "C++" compiler with such lousy support for the C++ language, that it a year after its release was the laughing stock and you could read in post after post to e.g. c.l.c++.m "It's MSVC", "MSVC bug", "Microsoft compiler bug"... After many years of this abuse and proven inability and unwillingness to care about C++, obviously it's more than hard to respect or believe in that company when it comes to C++ compilers (judging from the microsoft.public.dotnet.languages.vc NG VC7 is also a pig, and it seems there's a growing mass that deliberately stays away from it at least another dot-release until, if ever, MS get their act together).
Now they in quick succession hires (previously?) credible people to do... Exactly what? Convince people they're committed to C++? Calm the masses? Put oil on the waves?
Are they (MS) really expecting us to believe that they are seriously trying to conform to an international standard, when they during their whole existance only displayed their good for one thing, and making compilers isn't one of those things?
If, becuse I'd be a damned fool to say "when", they ever display something resembling a C++ 98 compiler, I can bet my furry ass that it's after the C++0x standard has been ratified.
They are proven liars, cheaters, monopoly, incompetent, and just about every other foul word you can come to think of. Do they expect us to hang on to their crap with just the hope that these people will change anything?!
Herb: I'm truly sorry to see you have to go this way, but I guess we all have to eat...
--- - Any 'net transmitted diseases are promoted by Microsoft
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Too bad this rant doesn't have much to do with reality.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Take a valium, and call me in the morning.
Mike Nordell wrote: They are proven liars, cheaters, monopoly, incompetent, and just about every other foul word you can come to think of. Do they expect us to hang on to their crap with just the hope that these people will change anything?!
If you feel this strongly, why are you here ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Everything you say is true, but maybe things will change. I guess we will have to wait and see what version 7.1 looks like. Then we will know if Sutter sold out.
BTW, funny isnt it that MS is all you say it is, and yet here we all are. I guess we all sold out.
TomM.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
TomM wrote: I guess we all sold out.
I don't see it as selling out. I'm a mercenary - absolute loyalty to the highest bidder. For many, many years now, the jobs have been with VC++, so that's where I've been. I started on Borland Turbo C 1.0 (DOS). If there was more work there, I'd be in the Borland camp. For that matter, if it was where the jobs were, I'd be coding for Macs. I love programming, but this ain't religion - it's how I pay my bills. When I'm feeling philosophical, I go home, take the phone off the hook and code what I feel like playing with. However, I look after my livelihood not with idealism, but with common sense.
I must say one other thing. I often disagree with what they do, or how they do it. However (er, much like America), they seem to be the company that everyone loves to hate, primarily because they were so hugely successful. When they were the half dozen scruffy looking hippies going up against IBM, we all loved them because they were chasing the American Dream. However, once they achieved it (the little guy kicks Big Blue's tail), we hate them. So who's the hypocrite here?
A business, any business, has one goal and priority - profitability. That's why they exist. Market domination and the elimination of competition is a path to that goal. Business is war. Microsoft didn't create that reality - they just have to cope with it. You can be sure that their competition would have done exactly the same to them were they able.
Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Actually, a good portion of what he said wasn't true. VC 6 predated the standard, so claiming it wasn't standards conforming is a bit off. In point of fact, when released it came closer to the then draft standard then any other C++ compiler on the Windows platform. Even starting with VC 5 they had hired Mr. Plauger, an industry recognized C++ expert and member of the standards committee, to develop their standard library. These facts don't fit with the claims made by the OP.
In more recent years I've felt like MS had given up on C++, and in general in the past standards were only good so far as MS could find a way to make them help their bottom line (in other words, I believe VC++ became as standards conforming as it did with VC 5 and 6 in order to gain market share over Borland, and once that was accomplished we saw the diminishing interest in the standard).
As for Mr. Sutter selling out... not a chance. Again, many on the standards committee are sensing a change in MS, and this, I'm sure, is what compelled him to join. I suppose it's possible that MS is snowing us (I don't think so... I've talked to enough key people to believe otherwise), but if that's the case it just means Mr. Sutter was fooled, not that he sold out. I think you should be more careful with accusations like this... it's one thing to level it at a company and quite another to do so at an individual in a public forum.
BTW, the scuttlebut is that 7.1 compiles a lot of the Boost libraries with out the need for the current VC hacks, and if this is true there's no reason to question if they are striving for compliance.
William E. Kempf
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I did C++ for about 7-8 years and a really love it. But now, in the company I work for, there was a shift to C#. Personaly I didn't like COM and I don't like MC++, because that it's not c++, it's pure garbage. But as I must do a living I must work in C#...
I don't think that Microsoft has plans for c++, as they keep throwing to us all this .Net thing...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Um... nice article - and, yeah, you know the moustache looks ok, you know...
But no mention of partial template specializations? Hmmm...
You know, you have to respect the guys who write these compilers. Not easy stuff. And there are aspects of compiling templated constructs that must be absolutely grotty.
I've often wondered if its just an approach that MS decided on in its template compilation design that makes PTS even more difficult.
Moot I guess.
Again, nice article. Good luck!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Heh, the article would be 50 pages long if Chris tried to ask about ever user's gripe.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Tim Smith wrote: Heh, the article would be 50 pages long if Chris tried to ask about ever user's gripe.
But hey! That's his job! I mean that's what we pa-
oh... yeah...
...never mind.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
hehehehe
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
It's already been stated that PTS is working, and Loki compiling at Microsoft internally. Herb may have thought it was old news - we are guarenteed PTS in the first service pack which is due mid year AFAIK.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
While working on a MSVC port of Loki, me and a few others before me, stumbled upon a (perhaps accidental) M$ extention of C++ templates. The M$ compilers allow you to specialize nested template classes, which can be used a work-around for the lack of PTS in many (though not all) cases.
You can implement any PTS of the 'partially-specified template paremeters' flavor; but you cannot implement the 'special behavior with this combination of parameters'. With that you turn to aggregation, MI, and overloaded functions. Very messy compared to the straight-forward PTS implementations... but it can be done.
- Magmai Kai Holmlor
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
What Herb and, in another interview, Stan are telling the C++ community about the new MS direction sounds (perhaps too) good, but how can we see if they - MS - stay on track? My evaluation criteria are mostly a consequence of my reasons for using C++ in the first place.
I like to use C++ because it is "The Language of Choice" (pun intended):
I) C++ allows us to "write efficient, tight, fast code" without having to choose >between< performance and other design qualities, but >among< all of them, e.g. better performance against runtime flexibility, w/o loss of abstraction (like using templates instead of inheritance in some places).
II) C++ serves us well if we have to create modules/components wich can be used in totally different contexts even if they have to be closely integrated. (This is what Loki etc. is all about.)
III) C++ will allow us to combine many different generic components which can closely interact without loss of performance or type safety.
Now, what do I want to see in the "ultimate VC++ system":
1) I want to be able to cleanly separate code which directly uses .Net from code which doesn't. It should also be possible to port libraries like ACE and QT to .Net so some code can even use .Net functionality without knowing of it. (And, of course, without performance penalty.) Some .Net functionality must be available with standard library bindings, e.g. special IOStreams, standard conforming i18n, Iterators for data access etc.
2) I want to be able to use all this funky, cool new template metaprogramming stuff, eg. in the Loki, Blitz, MTL, FACT or FC++ libraries, so: a) VC++ must compile them flawlessly b) it must create fast code, eliminating the abstraction penalty of e.g. maybe dozens of layers of inline functions c) it must compile and link any template jungle blazingly fast d) debugger and profiler must give us easy and flexible access to template specific information, e.g profiles of >all< instantiations of a template function vs. profiles of >specific< instantiations e) error messages from template code need to became legible, IMHO we need some kind of expandable/navigable/configurable hypertext system
3) I want to use true multi-paradigm design and programming techniques productivly, so code (class) browsers, wizards etc. need to became template aware and have to support generic programming as effectively as OO
4) I want to design and program more agile, so i would need tools which allow better restructuring of project/modules/configurations and fast refactoring of source code (a refactoring browser for C++ is long overdue, and maybe integrating unit test could be made easier)
These points definitly comprise a tough order, an I am aware of some of the reasons why they have not been realized yet, or may even be seen as totally unrealistic, but this is what C++ is all about: If you don't like it, write tools for "easier" languages.
If you - or someone else - manages to achieve all this, we could paraphrase Winston Churchill: "Never in the field of" ... C++ programming ... "was so much owed by so many to so few."
Just my 2 cents,
Uwe
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Uwe Schnitker wrote: Loki, Blitz, MTL, FACT or FC++ libraries, so:
An interin compiler release at MS$ already compiles fully this libraries, expect this on sp1.
Uwe Schnitker wrote: ACE and QT to .Net
What ! QT sucks! Any library that uses a proprietary sistem of Event Dispatching que must pass for their custom (moc) compiler is totally idiot,c++ is the most powerfull language, and they're much more cleaner solutions to this kind of GUI dispatch. AFAIK Delphi 6 and Kylix uses QT, but Borland replaced this evil Event dispatching for a their own,so it doesn't need to be compiled every time we add a Event/Signal Slot to the class
I'm currently studying ACE, it's a very powerfull framework, also a complex one, and will be interesting if the C++ and pattern gurus that designed it, ported it to .NET .
In all other aspects I tend to agree with you on a 100% margin.
Cheers,
Joao Vaz
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
>Joao Vaz wrote: >> Uwe Schnitker wrote: >> Loki, Blitz, MTL, FACT or FC++ libraries, so: >An interin compiler release at MS$ already compiles fully this libraries, expect this on sp1.
That's really nice, great, formidable, whatever ...
>> ACE and QT to .Net >What ! QT sucks!
IMHO, it has a nice architecture and a sound OO design. It is powerfull, versatile, flexible and yet very easy to use. Quite a feat.
>Any library that uses a proprietary sistem of Event Dispatching que must pass for their custom (moc) compiler is totally idiot,
No! It's a pain in the neck, and it's definitely a wrong idea according to the principles and philosophy of modern C++. But it was/is a viable way to support broken compilers, and it was a quite sensible design solution in the context of "classic" (pre-modern) C++, which is where most C++ programming is done today, whether we like it or not.
>c++ is the most powerfull language,
You're so right ...
> and they're much more cleaner solutions to this kind of GUI dispatch.
Definitely!
The "signal/slot" approach should be integrated into a generic, policy-based callback system, working with generic functors, both of them also supporting non-intrusive use. ("Andrei ...")
I'd suggest - and I'll try it in my own, future work - to encapsulate all this unholy QT stuff in a small part of the application, just like other legacy stuff. (Definition: Legacy code is code written in a way you don't happen to like.) And I'll wait and hope for the future - unfortunately, working on a full-blown portable GUI framework isn't something I'll get into in the near future.
>In all other aspects I tend to agree with you on a 100% margin.
("blush")
Have fun,
Uwe
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Uwe schnitker wrote: The "signal/slot" approach should be integrated into a generic, policy-based callback system, working with generic functors, both of them also supporting non-intrusive use. ("Andrei ...")
Quite a nice idea, it the trolltech guys listen to you ... Perhaps in QT4 ?
Uwe schnitker wrote: full-blown portable GUI framework isn't something I'll ge | | | | | |