TypeScript 0.9 released
blogs.msdn.com
blogs.msdn.com
Pretty much everyone came out impressed. Typescript is just JS with type hints, and neat warnings if you send a function something which its signature doesn't expect.
You can make a JS project a Typescript one immediately, adding type hints as you go, which for large projects is damn useful. The output, however, is pure regular old JS.
It's just like a CSS preprocessor, but for JS - transparently adding some optional awesomeness.
It works on Linux/Mac and SublimeText (albeit you don't get all the VS Intellisense stuff IIRC) too. I'm looking forward to trying it on a new project.
TypeScript is entirely different thing. It adds a layer of static analysis to the language, which does not end in the code that actually runs. Generally everything you type in Coffee has an equivalent in compiled JS; it is not so with TypeScript, where you can write pages of code which won't be visible in the compiled JS.
CS and TS have different goals and are different things, and the only thing they have in common is that they both "transpile"/compile some language to another. Hardly a similarity that makes them very close.
Actually I would appreciate TypeScript implementation on top of Coffee (or the other way around, whichever would be simpler). There is a dialect of CS that supports contracts (you really, really should start using contracts anyway), but that's yet another thing that cannot hope to replace static verification of certain things in programs.
Btw, TypeScript also aiming to fix context problem so in callbacks 'this' keyword is always related to parent class.
Btw, based on typescript discussions, they are going to implement async/await functionality too.
I was primarily a curly-brace developer for 10 years, but changed my mind after a few years of Python, Ruby and Lua. Now I actually think these languages look better than the curly-brace family.
How do you think does it fit in with ES6? I feel like we're coming to a point in time where there should be a major shift in how we write javascript in a modern way -- so far my thought process has been that Coffescript is a nice stopgap before ES6 and the dust has almost settled enough to write ES6 first sorta..
Bit of a ramble. Interesting times.
A programming language works with a text editor? Wow!
It is running on Linux/Mac/Windows (node.js module).
And already has support in all major IDE (Visual Studio, IntelliJ) and text editors (Sublime, Emacs, ..)
I appreciate the effort, (I can't say the same for other Microsoft projects), but it's still not fun to play with typescript in emacs (as opposed to more mature projects like Python, C or, of course, Lisp).
https://github.com/tomsdev/brackets-typescript-code-intel
Still early
So there's this related open source project seeking to optimize the performance of Node.js apps running on IIS and hosting them on Azure. https://github.com/tjanczuk/iisnode/wiki We've seen some interesting performance gains by supplanting Node.js's HTTP implementation with the in-kernel HTTP stack, http.sys. http://tomasz.janczuk.org/2012/08/the-httpsys-stack-for-node...
Disclosure: I work for Microsoft. I personally found this interesting.
(C) http://www.typescriptlang.org/
Btw, I've used it a lot, feel free to ask any questions.
The only thing is - to get a best you need to prepare. If you using some library, I should find (or write, or generate) proper definition file for this library (Interface). But when you get all together - you have a lot of happy hours of coding :)
Is there any legal reason why someone couldn't create a plugin for those Java ides to compile TypeScript?
http://www.jetbrains.com/idea/webhelp/typescript-support.htm...
http://www.jetbrains.com/idea/whatsnew/
http://www.jetbrains.com/idea/webhelp/typescript-support.htm...
This is the same as IDEA, but focused on Web Development and releasing new features much-much faster.
But best support offers MIcrosoft's Visual Studio. You could try Visual Studio Web Express (http://www.microsoft.com/visualstudio/eng/products/visual-st...) if you are using Windows. It's totally free.
But the Typescript project has some things going for it:
1. It's open source.
2. It's closely aligned with EC6, the upcoming Javascript standard.
3. It's compatible with existing Javascript libraries.
4. It's useful as it is, to add type checking to Javascript. It doesn't require a massive growing ecosystem to remain viable.
5. The compiler outputs standard idiomatic Javascript, which you could take and run with if you no longer wanted Typescript.
And, yes, there's a Visual Studio plugin for it if that's your cup of tea.
Only if you are lucky enough to be using 2012 already.
I've been using Vim and the browsers' F12.
Either Silverlight or WPF should be the favored Windows desktop development environment. Instead, they are both EOL and the incomplete Metro environment is the current way to do Windows desktop development.
In fact, if you are a Microsoft developer, you've lost Win32, MFC, ATL, WinForms, WPF, and Silverlight. The Windows desktop developer currently is waiting to see how Metro improves.
As a developer in the Microsoft ecosystem - I have lost nothing and only gained new choices at each turn of events. That's because we run Windows internally and so do all of our clients and partners. Now tell me which one of those kits I can't use to build an app for them?
Windows RT is DOA so I'm safely ignoring Metro and it's lame sandbox...at least until general purpose computers are outlawed :)
Without Win32 there is no Windows shell, touch first or not... There is no Visual Studio, Office, Photoshop, Premiere, etc, etc... You can have something new, different and still have what has always been there. This is what compatibility is all about... Can you run Windows 7 (and Windows XP) applications on Windows 8? Yes, of course you can.
Don't mistake the things you can't do in the WinRT environment (Win32 APIs you can't call, for example) with the end of those things (and what they are a part of)... MFC shipped a new version in 2012. WPF is at version 4.5. ATL is just a "high" level way to program COM just like WinRT, in fact... You don't need ATL any time you program to a COM-based ABI. You don't need WPF to build XAML-based WinRT apps. On x86 machines, there is a desktop for a reason and the reason is the same as it's always been.
Funny on my installed Visual Studio I can create projects for all those technologies. How have I lost them?
Static typing alone is not sufficient to make asm.js a good target for a language, I think.
http://channel9.msdn.com/Blogs/Charles/Anders-Hejlsberg-Stev...
I've been using dynamically typed languages consistently since 2005, but I'm curious to give TypeScript a try to see how it feels. The last statically typed language I used was Java (2004), and that was not a wholly pleasant experience.
[1]: https://github.com/tomsdev/brackets-typescript-code-intel [2]: http://brackets.io/
If you don't want to recompile it every time, you could just use better-require module: https://github.com/olalonde/better-require
- Follow EcmaScript6 development path
- Using NodeJS as the base for the language service
- Providing plugins for various editors
- Be superset of JavaScript - you can (almost) directly drop any JS code to TypeScript
After all these years it almost looks like Microsoft has learnt its lessons and sees there is more than Windows Server out there.