Coffeehouse Thread

7 posts

is MSFT planning a Dart like language?

Back to Forum: Coffeehouse
  • User profile image
    SteveRichter

    Is Microsoft planning to have C# compile down to javascript code so that C# code can run in the browser? Pretty much like what I understand Dart does?

    Just read Dart does not support Tuples. https://groups.google.com/a/dartlang.org/forum/?fromgroups#!topic/misc/yih2CeeSBnI

    and no extension methods, at least as of Oct, 2011: http://code.google.com/p/dart/issues/detail?id=13

     

     

     

     

  • User profile image
    vesuvius

    @SteveRichter: (Roslyn + TypeScript) = Dart

    Not sure if there is an overwhelming financial benefit for Microsoft, though the ECMAScript fans are sure to be vocal.

    I think you may want to rephrase; so that C# code can run in the browser?

  • User profile image
    wsdotnet

    I have been looking at Dart for sometime now, as a full time c# dev, i really like it.

    It has a lot of .Net like features in it (Base Class Library. But I really would wish Microsoft would "Dart" in c#.

    One of the things that really struck me, good thing, is that it has a built in "Jquery" like system and binding. It's very XAML like and it takes care of browser incompatibilities.

    I think if Google ends up using for GMail or some other google services, it might get some traction.

  • User profile image
    SteveRichter

    @vesuvius: to monetize a web language have hooks to azure and bing.

    Dart, as I understand it, compiles to .js which then runs in the browser. Would C# be able to do the same?

    I see Dart is not statically typed ( guessing ) . Is that a requirement of a DOM language? Maybe have it statically typed where all the HTML5 attributes are pre defined. And if you introduce new attributes to the HTML tags you have to declare them somehow to the classes the language uses to represent the DOM objects?

     

  • User profile image
    Charles

    @SteveRichter: Dart is optionally typed (if you want static typing, you can have it, else dynamic by default). JS as a compiler target is nothing new for C# (Script# has been around for a while). Erik Meijer's IL2JS project is now open source (I believe).

    Dart compiles to JS out of necessity as all browsers besides Chrome do not ship with the Dart VM... So, when you want to program with Dart and target web clients (besides Chrome), then JS is the only option as the compiler target (same is true in the C# case and a myriad of other languages that compile to JS).

    TypeScript is the approach Microsoft is taking to turn JS into a statically typed (at design time only...) language with several basic OO features built in (classes, interfaces, etc...). TypeScript is a superset of JavaScript. Creating a new language (with no relationship to JS) isn't something we're doing.

    C

  • User profile image
    SteveRichter

    That is really neat to know. Thank you. So what am I missing? Why is Script# not a big deal? And what does Dart provide ( other than the Dart VM ) that Script# does not?

  • User profile image
    Charles

    @SteveRichter: I'm not sure it's not a big deal, as many folks use Script# today. Dart represents a new programming language (and model) for building applications for the web (this includes running on the client and the server). Dart is an approach to try something new, to start from the ground up, with a new language, compiler, runtime and framework. The design is informed by the web (and what the language designers see as missing from current tools like JavaScript). I haven't spent much time with Dart so that about sums up my understanding it.

    C

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.