I Love that New Syntax Smell

C++ articles, code snippets, musings, etc. from Andy RichIf this is your first time here, you may want to check out my blog introduction.

  • I Love that New Syntax Smell

    QA Mode

    • 5 Comments
    This will be the first post in a new category, “A day in the life.“ Through these posts, I hope to provide some background into what QA for the compiler team is like. Hopefully, you won't think I'm a bungling idiot. So, to get the ball rolling, I thought I might try and give a bit of perspective as to how we sometimes stumble across bugs....
  • I Love that New Syntax Smell

    Status, aggregate initialization of CLI arrays

    • 0 Comments
    This is a quickie . I have some other blog posts about interesting material on the horizon, but I'm always wary of posting information without knowing whether I'm going to violate NDA by writing about it. There should be a real flurry of activity when...
  • I Love that New Syntax Smell

    The CLR team is looking for a few good people

    • 0 Comments
    Joel just posted over on his blog that the CLR team has some open headcount - they're looking to fill a few positions. I can say that working for Microsoft has been one of the most challenging and rewarding experiences of my short life (pay no attention...
  • I Love that New Syntax Smell

    C++/CLI operators

    • 0 Comments
    A bit of background. You may recall CLI operators in Managed Extensions: op_Equality, op_Addition, ... so on and so forth. To be sure, not the friendliest set of operators ever, as you had to remember what their names were in order to overload them. ...
  • I Love that New Syntax Smell

    CmdLiner - a break from Windows Forms

    • 3 Comments
    This will be the third time I tried to start this post. Let's see if I get derailed yet again, or if I can actually finish it this time and get it up on the blog. To break from the monotony of Windows Forms, I'm uploading a snippet that wasn't originally...
  • I Love that New Syntax Smell

    loc - my own simple .NET version of the unix 'which' facility

    • 6 Comments
    As is often the case, I wrote a small program to do something useful for myself. I have a (Win32) copy of the unix “which” utility, but I wanted something that would simultaneously search my path, include, and lib environment variables. What...
  • I Love that New Syntax Smell

    The array template

    • 4 Comments
    Some background. In Managed Extensions, the CLI Array was exposed using the keyword __gc [] . If you wanted a CLI array of, say, ten int s named arr , you did: int arr __gc [] = new int __gc [10]; . Then, access into the array worked much like native...
  • I Love that New Syntax Smell

    Simple stack code

    • 12 Comments
    We've got a code sample today, of a simple integer stack implemented using Whidbey C++.  I'll implement it using three pieces of code: stack.h - definition of the stack stack.cpp - implementation of the stack main.cpp - driver...
  • I Love that New Syntax Smell

    Hello World from Windows Forms!

    • 0 Comments
    It begins... This will be a new series of articles. I'll start with some ports of existing samples (from here ), and move into some original material. I want to take a Managed C++ (and specifically a Whidbey C++) approach to Windows Forms, and investigate...
  • I Love that New Syntax Smell

    Introduction

    • 2 Comments
    ...or, "Do we really need another blog?"...
  • I Love that New Syntax Smell

    Whoops.

    • 0 Comments
    Sometimes, its good to check the blogs.msdn.com aggregator . I was linked by Five Testers from VC today, whom I kept meaning to link, except that I could never remember what their URL is. One of them is my boss's boss, and the guy who convinced me that...
  • I Love that New Syntax Smell

    PtrToStringChars v2 remix

    • 1 Comments
    A while back, in order to get some code to compile, I had to update PtrToStringChars (found in vcclr.h) to work in the new Whidbey C++. In case anyone wants this, I've posted my implementation (and a small main() to drive it) here: p2sc.zip . ...
  • I Love that New Syntax Smell

    Why you ought not pre-jit, and why it sometimes makes sense.

    • 0 Comments
    So, Raj asks: Thanks for the explanation but what is the deal with the IL and JIT. Why not just prejit the code? Why not pre-jit the code? Class, you didn't do the required reading . :) Actually, there are a couple of optimization reasons why...
  • I Love that New Syntax Smell

    Welcome to my blog, V2. (72% recycled material.)

    • 7 Comments
    A bit about myself.   I'm an SDET (Software Design Engineer in Test) working on the front end of the Visual C++ compiler.  My day-to-day tasks include running tests, investigating results, submitting bugs, and writing tests to provide extra coverage on...
  • I Love that New Syntax Smell

    Ain't said nothin' in a while, but some old posts are now available.

    • 0 Comments
    Where you been? Yes, it's true, I've been fairly silent. But I assure you, my reason(s) are good. Mostly, I've been skiing in Colorado, or really busy. But I'm back at work, and once I catch up on the email, there will be more tasty posts from yours truly...
  • I Love that New Syntax Smell

    The native heap/managed heap barrier

    • 2 Comments
    Garrett asks: You mentioned: class A{}; array ^ arr = gcnew array (10);. Are you saying that whidbey will support this? What is it doing to the native pointer? Boxing? Managed array of native pointers to native objects? This didn't work in Everett...
  • I Love that New Syntax Smell

    Clarifications on the array template, and some about the CLR namespaces

    • 1 Comments
    Garrett returns with some observations: Damn Cool. My only reservation is that it doens't *resemble* a native array, but that's ok too :) In some ways that is far better than the alternative. I was never quite thrilled about the cryptic nature of...
  • I Love that New Syntax Smell

    Mono, more on cross-platform

    • 4 Comments
    Mono (very different from mono ), is, at its core, an implementation of the Common Language Specification - which we purposefully made public domain through ECMA . Mono is pretty cool, too, and I'm personally glad to see it. They even praise the standard...
  • I Love that New Syntax Smell

    Dave strikes again, a basic description of how .NET works.

    • 2 Comments
    Dave asks: i have tried some UI examples in the book, but it was quite slow. when I execute the program, it takes 1.5-2seconds to see the window on the screen, on the other hand plain win32 api creates window before 1st second. doesn't .net generate...
  • I Love that New Syntax Smell

    More questions, more clarifications.

    • 3 Comments
    Garrett asked some further questions that were also good.  Good enough, in fact, that I didn't know the answers.  So I went down the hall and asked Brandon .  I'll paraphrase what Brandon told me here. 1. What about partial types? What are partial...
  • I Love that New Syntax Smell

    Will .NET be available for non-Windows platforms?

    • 3 Comments
    I thought this deserved a post, and not be buried in a comment.  Dave asks: Wow! it seems you are empowering c++ for CLR. will .net be available for non-windows platforms? IT ALREADY IS!   Being Microsoft, you'd think .NET would be a Windows...
  • I Love that New Syntax Smell

    A little Q&A

    • 2 Comments
    Reader Dave asks: I am using Visual Studio 7.0 (2002?). I turn on my computer in the morning, and run it until midnight and my visual studio is always open. however, it consumes 60-150MB Virtual memory, specifically when i use VisualPerl (I usually...
  • I Love that New Syntax Smell

    That crazy GC Heap

    • 1 Comments
    ...or, "Hey! My data ain't garbage!"...
  • I Love that New Syntax Smell

    The ref type

    • 1 Comments
    There are two major CLR types that we expose in Whidbey: ref and value . I'll talk about ref types here, and about value types later. So, what is a ref type?   This is the same type that was exposed in Managed Extensions as __gc . ...
  • I Love that New Syntax Smell

    Whidbey and Managed Extensions, clarifications.

    • 3 Comments
    Garrett Serack made some comments on my last blog entry that I thought were interesting enough to share with everyone.  He asks: And how about forward source-level compatability between .net 1.1 and whidbey? Is the current batch of Managed C++ gonna...
Page 2 of 3 (55 items) 123