Visual C++ and the Native Renaissance

Sign in to queue

The Discussion

  • User profile image
    pierremf

    In this talk, SteveT mentions another session about C++/CX, an in-depth C++ Metro talk (which happened the day after this session). Is this other session available somewhere? Thx.

     

  • User profile image
    pierremf
  • User profile image
    liux0229

    Great talk! One comment: you seem to imply that C++ is lower level than C#/Java? I'd disagree. C++ allows you to work on lower level stuff when you need to, but nothing prevents you from expressing and using higher level abstractions with C++ (e.g. a smart pointer is an abstraction over how memory is managed). 

    The plain C++ language itself (w/o the standard library) doesn't try to provide many things "out of the box", so without good libraries it takes longer to get to the same speed as some other languages because you'd have to take the time to build the necessary building blocks. On the other hand C++ does provide convenient mechanisms for you to express abstractions so you can easily build constructs that could be difficult to express in other languages.

    One example of this is using RAII to express lock/unlock semantics. C# has a built-in language feature "using" which does the same. The difference is that there are other semantics that share the same pattern with lock/unlock. You could easily express them with RAII in C++, but in C# you probably would need to resort to try...catch...finally because the language does not provide those "out of the box".

    (For the record I am a huge fan of C# too. There is just no total ordering over programming language virtues Smiley)

Add Your 2 Cents