News for hackers. Stuff that matters.
Re:Announcing TypeScript 1.0 by axefrog on Thursday April 03, 2014 @01:33AM (#7521130)
Agreed, TypeScript is great, but the compiler is excruciatingly slow. I have to segment my app into multiple sub-build areas and only build a subset at a time, which is annoying because I frequently end up making small changes outside of that subset of code. My app is only around 25000 lines of code and a full compilation still takes around 50-60 seconds which, in a JavaScript workflow, is a lot of friction.
Re:Announcing TypeScript 1.0 by rplnt on Thursday April 03, 2014 @04:28AM (#7521568)
I was expecting something in the order of minutes. Seeing as I work at a place where full build used to took about three hours on a server. I see how it's not ideal though.
Re:Announcing TypeScript 1.0 by prawks on Thursday April 03, 2014 @11:35AM (#7523535)
In a typical Javascript workflow, near-instant feedback is the baseline.

I really like how Facebook's Hack has a local file system monitor which incrementally compiles on file changes. I haven't used it yet, but it sounds like a nearly ideal compromise.

Re:Announcing TypeScript 1.0 by rictic on Thursday April 03, 2014 @01:23PM (#7524412)
Typescript has a command line option for this as well.

As far as I can tell, the language would also support a non-validating mode that would be more or less instantaneous (the transformations it performs are all local, and none of them involve knowledge of the types involved).

Re:Announcing TypeScript 1.0 by prawks on Thursday April 03, 2014 @02:14PM (#7524827)
Neat, I'll need to look into that.
Re:Announcing TypeScript 1.0 by Spiritus on Thursday April 03, 2014 @07:03AM (#7522028)
I've never actually used TypeScript until today, but just the tutorial code takes forever to compile, this snippet took 2 seconds for example, whaaat??

    interface Person {
        firstname: string;
        lastname: string;
    }

    function greeter(person: Person) {
        return 'Hello, ' + person.firstname + ' ' + person.lastname;
    }

    var user = {firstname: 'John', lastname: 'Doe'}

    document.body.innerHTML = greeter(user);
It's a shame really, because it looks like a really cool project.
Re:Announcing TypeScript 1.0 by wildpeaks on Thursday April 03, 2014 @08:48AM (#7522416)
It seems there is a minimum time of 2 seconsd to compile anything because even a simple console.log('Hello'); one-liner also takes 2 seconds.
Re:Announcing TypeScript 1.0 by camus2 on Thursday April 03, 2014 @04:24AM (#7521557)
Agreed, TypeScript is great, but the compiler is excruciatingly slow.

This. at least the js one. Maybe VS is bundled with a Typescript compiler written in C# , i dont know,but clearly the javascript one is damn slow.

Re:Announcing TypeScript 1.0 by dmck on Thursday April 03, 2014 @09:32AM (#7522646)
Visual Studio uses the same compiler written in TypeScript/JavaScript. The Visual Studio integration is done in C# but only for interop with the Visual Studio APIs, there is only one version of the TypeScript compiler.

I know when Palantir was developing Eclipse tools for TypeScript they posted to the Codeplex project regarding performance issues and the team from MS responded with suggestions about caching and only recompiling the minimal targets necessary.

Re:Announcing TypeScript 1.0 by olegbl on Thursday April 03, 2014 @04:29PM (#7526321)
Strange, I'm able to compile 12k lines of code (that's output) in 5.2 seconds. Running this on a watch + autoreload process, so 6 seconds after I hit save, the results show up in my web browser. I do remember 0.9.1 being excruciatingly slow though. Edit: forgot to mention, I'm using the NPM package
Re:Announcing TypeScript 1.0 by rpwverheij on Thursday April 03, 2014 @07:42AM (#7522138)
It takes under 5 seconds for me to compile my project of about 5000 lines. So it's not really a problem for me yet, though I agree it would be if the waitingtime where to become any longer. Besides that, I've also been really enjoying developing in Typescript!
Re:Announcing TypeScript 1.0 by jeremiep on Thursday April 03, 2014 @08:34AM (#7522355)
Same here for a project three times this size. Still I find it extremely slow compared to CoffeeScript I was using before. I'm used to saving the file and instantly refreshing the browser/rebooting node.js.