logoalt Hacker News

jeswinyesterday at 9:01 AM1 replyview on HN

Yes performance is a big issue, and so is security (or the lack of it). I'm attacking this from another angle: https://github.com/tsoniclang/tsonic

Write TypeScript, compile to native code via CLR's NativeAOT. We're almost there, you can see some examples here: https://github.com/tsoniclang/proof-is-in-the-pudding

You get everything; real multithreading, stack allocated types, single binary output (x64, ARM64 for Linux/MacOS) etc.


Replies

intothemildyesterday at 11:15 AM

I cannot understand the idea of using JavaScript that compiles into "native code".

At what point do JavaScript developers need to realise that this is all convoluted, and begin to use languages better suited for the job.

You want something that can compile into a binary with multiple architectures, multithreading, types, etc? Please use a different language that's built from the ground up to achieve that.

You want something that was designed to add some sugar onto a website? Then yes JavaScript is probably best there.

Not everything needs to be written in this one language that's not designed for it. Just because you can, doesn't mean you should.

show 4 replies