News for hackers. Stuff that matters.
Re:What makes WebAssembly fast? by Clubber on Tuesday February 28, 2017 @09:38PM (#13760475)
Typescript is a type safe language that "compiles" into javascript. The Microsoft implementation compiles on save, so you work in your file.ts and a program running somewhere fires when the file is saved and converts it to file.js which you would distribute.

I haven't used it yet, but the demo from Anders looked good. It's an attempt to fix the "loosey goosey" nature of javascript. I would be great if browsers supported it as a built in language.

https://channel9.msdn.com/posts/Anders-Hejlsberg-Introducing...

If you watch the video, you'll notice the argument notation is name: type rather than type name. I think Anders is reminiscing about his Delphi days.

Re:What makes WebAssembly fast? by TAForObvReasons on Wednesday March 01, 2017 @12:13AM (#13761357)
> If you watch the video, you'll notice the argument notation is name: type rather than type name. I think Anders is reminiscing about his Delphi days.

ActionScript and the proposed ECMAScript 4 also use the name:type notation, so there is definitely some prior art in the web sphere

Re:What makes WebAssembly fast? by kayoone on Wednesday March 01, 2017 @12:19AM (#13761391)
Thats not really what he asked though. If in the end a developer can work 98% in TS, do they really care if it runs as JS or something else if it solves their problems with the language ? I have heard from people that love TS, but surprisingly many that also prefer pure ES6 JS.
Re:What makes WebAssembly fast? by Clubber on Wednesday March 01, 2017 @08:00AM (#13763313)
The only concerns I would have is I believe you have to debug the javascript rather than the typescript.
Re:What makes WebAssembly fast? by thomasrognon on Wednesday March 01, 2017 @09:00AM (#13763647)
You can make the sourcemaps refer to the TypeScript code. I set breakpoints in TypeScript files and step through it all the time.