Coffeehouse Thread

6 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Dart to TypeScript to JavaScript

Back to Forum: Coffeehouse
  • User profile image
    exoteric

    Since Dart can compile to Javascript but it also has optional static types like TypeScript wouldn't it be possible to have a Dart to TypeScript compiler? I guess it would make the work easier for the Dart folks and allow compiled Dart libraries to be integrated with other TypeScript libraries.

    Since Dart types are not required to make sense, only a subset of Dart programs probably make sense in TypeScript. It seems like an interesting tool that could be useful for both Microsoft, Google and the web community at large.

  • User profile image
    felix9

    you mean using TypeScript as the glue for Dart when developing in TS/JS ? like WinMDExp did for C# and C++/CX ? Smiley

    Actually I'm thinking about another use of TypeScript, as a metadata glue of JS, for consuming js in C#. like how WinMD file works for C# to consume WinRT. Smiley

    One usage of this is to make the WinRT circle complete, currently JS is consuming only, while C# and C++ can create components for others to use.

    There is a tool for winmd => ts, maybe they can also do it the other way.

    Another usage of this could be, if C# needs to interact with JS code, either on the client or server side, either as a CLR language or go through IL2JS, if its needed somehow, it can integrate with existing JS libraries, using TS as the metadata. Devil

    Strada is the Road.

    Oh its really messy, Tongue Out

  • User profile image
    JoshRoss

    @felix9: In one of the Charles interviews, the idea arose that the d.ts files were javascript equivalent of header files in C dialects.

    -Josh

  • User profile image
    Bass

    Personally an envision a pipeline like this in 5 years: Dart -> TypeScript -> JavaScript -> Prolog -> x86 machine code -> Linux -> Dart -> FORTRAN. All in the web browser.

    Half Life 3 will be written using this.

  • User profile image
    exoteric

    @felix That makes sense although I'd probably not use Javascript as a library foundation if I could avoid it. Dart to TypeScript to JavaScript looks mildly interesting to me though.

  • User profile image
    Harlequin

    , Bass wrote

    Personally an envision a pipeline like this in 5 years: Dart -> TypeScript -> JavaScript -> Prolog -> x86 machine code -> Linux -> Dart -> FORTRAN. All in the web browser.

    Half Life 3 will be written using this.

    I heard this too....3D Realms is taking the project over, and I think they quoted the game as "almost complete"...

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.