DEV Community

Discussion on: DISCUSS: JavaScript just DIED! What language should replace it?

Collapse
 
natalia_asteria profile image
Natalia Asteria

This is a simple question.

Typescript

Collapse
 
thalitadev profile image
Thalita G.

Typescript compiles to Javascript, so it'll die along with it. 😅

Collapse
 
natalia_asteria profile image
Natalia Asteria • Edited

Well, no.

Typescript is technically Javascript's son, so if the parents died, it would just be an orphan.

So, there is TypescriptToLua, it transpiles Typescript to Lua instead of JS. So if JS become too sucky and unusable, basically dead, we can use that.

And we can also make an engine that runs runtime Typescript (that would mean run-time type-checking etc), kinda like V8 but Typescript.

Thread Thread
 
thalitadev profile image
Thalita G.

I see, I didn't know of these options for Typescript! Especially TypescriptToLua sounds interesting, since that could make Lua the replacement for JS while still retaining TS.

Collapse
 
raguay profile image
Richard Guay

Not with Dino around. If Dino replaces the JavaScript engine in a browser, that would be TypeScript directly in the browser.

I remember the Tcl/Tk plugin for Netscape’s browser. That was fun!

Thread Thread
 
natalia_asteria profile image
Natalia Asteria

You mean Deno?

Thread Thread
 
raguay profile image
Richard Guay

yea, I’m a lousy speller. But, most engineers are.