Scott Currie - Multiple language programming demo

Sign in to queue

Description

Scott Currie, program manager on the Visual C++ team likes fooling around with other languages too. Here he shows off a demo of mixing VB, C#, and C++ in the same application.

Very interesting! Cool demo too, it solves a popular puzzle game.

In a separate video he talks about what C++ does to exploit the .NET CLR.

Tag:

C++

Embed

Download

Download this episode

The Discussion

  • User profile image
    Manip
    Has the Quake demo been cut? Or can we expect it in the future?

    I suggested this.. everyone took the piss and said you can communicate between objects anyway.. Sad

  • User profile image
    Maurits
    It would have been nice to see a split-screen with the person on the left and screen-captures on the right - easier to follow.

    I have a sneaking suspicion I know how the cube solving algorithm works - start with a solved cube and make a random number of random moves.  Then, to solve it, make the moves backwards in reverse order. =) Flashy, but you can't use it to solve a real cube by entering the initial messy position.
  • User profile image
    Manip
    It wouldn't be *that* hard to write a real solver. At least as long as you didn't try to animate the entire process of finding the solution but instead the final solution.

    Not even nearly as hard as a basic chess AI.
  • User profile image
    The Channel 9 Team
    The quake demo is still coming. Over the next week.
  • User profile image
    Maurits
    Manip wrote:
    It wouldn't be *that* hard to write a real solver. At least as long as you didn't try to animate the entire process of finding the solution but instead the final solution.

    Not even nearly as hard as a basic chess AI.


    I suppose they might have had a cube-solving algorithm lying around.
  • User profile image
    CRPietschma​nn
    Sweet, being able to use multiple lanuages in the same project is awesome. I can't wait for this.

    One thing to take this to the next step is to make the IDE be able to convert the C# to VB.NET and VB.NET to C#. It would be awesome to do it in a way that a VB.NET developer could load the C# project, edit the code using VB.NET and then it saves it back in C#. Then the C# developer could go and edit it with C#. This would be very possible since C# and VB.NET only have syntax difference, there isn't anything you can do with C# that you can't with VB.NET and vice versa. This would achieve true language independance. I'm sure you could easily throw C++ in to the mix.
  • User profile image
    Steve411
    Ok, how about this.. next time you guys show us a samle of an app you do not use that camera, but use this nifty product instead:
     http://www.video-capture.info/

    Record the screen, and use the microphone to talk as you would with the camera you always use.. We would be able to see the screen which is good! nice video btw
  • User profile image
    rasx
    This is the second reason why C++ should be interesting to me. I'm getting the message here...
  • User profile image
    KSG
    Actually it's a real solver.  You can give it an arbitrary position (reads an XML file for start position) and it will solve it.  Of course some positions will take longer than others -- some much longer.

    Kang Su Gatlin
    Visual C++ Program Manager
  • User profile image
    KSG

    Right on RasX.  We hope to make this message loud and clear.  If there's anything we can do to make it clearer... let us know  Smiley


    Thanks,

    Kang Su Gatlin
    Visual C++ Program Manager

  • User profile image
    scobleizer
    Steve411: unfortunately the reason you can't see the screen is because of the compression we're using. We're putting these files down to 300 kbps. I'll try this out and see if we can use it someway, but it needs to spit out .WMV files that can be streamed at 300kbps or less.
  • User profile image
    Manip
    Couldn't you record the screen with an app.. record the interview with the normal camera.. digitally compress both (separately) and then combine them post compression? The reason this might work is because that compression algorithm has something to do with in/out of focusing.

    When can we expect Dolby surround sound? =)
  • User profile image
    PeterR
    Scott mentioned in this interview that by the time this video is published this sample cube application is uploaded to MSDN, but i can't find it

    Manip,
    why Dolby Surround if we can get Dolby Digital or DTS? Wink
  • User profile image
    Tom Servo
    Too bad only link.exe can link modules. I'd like AL to be able to do so too, so I can use that from my custom MSBuild files.
  • User profile image
    Maurits
    KSG wrote:
    Actually it's a real solver.  You can give it an arbitrary position (reads an XML file for start position) and it will solve it.  Of course some positions will take longer than others -- some much longer.

    Kang Su Gatlin
    Visual C++ Program Manager


    Sweet!  A general nxnxn cube solver?  Where can I get the code?
  • User profile image
    mattrmiller
    Very cool, but I can not find the source code. I would love to take a look at it and try it for myself. Any links?
  • User profile image
    Mike Dimmick
    If you want to do this in 1.x, try ILMerge. Much easier than the alternative, decompiling all the modules with ildasm then building a single binary with ilasm.

    I was very disappointed when I found this tool - I'd had that idea too but failed on the actual execution Wink

    I assume that partial classes must be written all in the same language - you can't have one part of a class written in VB and another in C++?
  • User profile image
    Steve411
    scobleizer wrote:
    Steve411: unfortunately the reason you can't see the screen is because of the compression we're using. We're putting these files down to 300 kbps. I'll try this out and see if we can use it someway, but it needs to spit out .WMV files that can be streamed at 300kbps or less.


     Thanks scrobleizer.
  • User profile image
    gswitz

    Scobleizer, I'm sure it's a stupid question, but why can't we have higher res?  Since we can download now, you could give us nice big pretty videos that weren't all blurry.


    I do appreciate all you do.  Thanks for it.  I like the blurry videos.

    Light...

  • User profile image
    mwirth
    yes, i love visual c++ !  Smiley

    exciting things happening with the vc++ project system. also the posts and videos of kang su gatlin about the power of c++/cli are awesome. i think we're on the right track with c++.
    any chance to see more videos with mr. gatlin, btw? compiler guys' talks are what keeps c++ people inspired Smiley

    keep up this outstanding work with channel9 ! it's just amazing to have such an insight into the different project groups.

    - martin.
  • User profile image
    scobleizer
    gswitz: bandwidth costs. Let's say I gave you the 2.1 megabits-per-second versions. Then our bandwidth costs would be seven times higher than they are now.
  • User profile image
    jsrfc58
    I'm a Twitter addict.  This is great!
  • User profile image
    Tom Servo
    jsrfc58 wrote:
    Why couldn't someone write a single "universal" compiler, and then have interchangeable "front-ends" (scanner/parser/etc.)

    I think the Phoenix thing is kinda what you're thinking about.

    http://channel9.msdn.com/ShowPost.aspx?PostID=13369
  • User profile image
    Maurits
    KSG wrote:
    Actually it's a real solver.  You can give it an arbitrary position (reads an XML file for start position) and it will solve it.  Of course some positions will take longer than others -- some much longer.

    Kang Su Gatlin
    Visual C++ Program Manager


    You are such a tease... Crying
  • User profile image
    happytrader
    Hello,

    thanks for this great demonstration.
    Scott Currie mentioned that source code for this
    would be posted on MSDN but I could not find anything
    after an extensive search.

    Could someone please provide me with a URL to the
    source code?

    Thanks in advance,
    Paddy

Add Your 2 Cents