Live data from Hacker News

It’s time to free JavaScript (2024)

javascript.tm

231–240 of 393 posts

Re: It’s time to free JavaScript (2024)

#231
post #146

Earlier quoted context omitted.

An important feature of TypeScript is identifying problems in your code before the user runs it, i.e. before a browser even comes into play.

No runtime type safety bites people often and in unexpected ways. It should just be standardized.

Sure, but that's an orthogonal concern. That sounds more like a call to standardise Zod.

Re: It’s time to free JavaScript (2024)

#232
post #208

Earlier quoted context omitted.

The fact that you wrote it wrong is hilariously ironic. JavaScript is simply the better term, and marketing is everything. Reminds me of Java's POJOs, which was a very simple pattern that no one used, until someone gave them a fancy name. ECMAScript is a horrible technical name. Might as well call it ACMEScript considering how willie e. coyote it feels to develop with it...

> Might as well call it ACMEScript considering how willie e. coyote it feels to develop with it... And it would feel just the same if it was named something else. It's just a name, who gives a damn?

> It's just a name, who gives a damn?

This is extremely ironic given that JavaScript was so named because people do give a damn about names so Netscape/Sun leveraged the Java success to push JS, hence they named it JAVAscript despite it having nothing to do with Java.

Re: It’s time to free JavaScript (2024)

#233
post #146

Earlier quoted context omitted.

An important feature of TypeScript is identifying problems in your code before the user runs it, i.e. before a browser even comes into play.

So? If supported natively by the browser the browser could compile it on download. You'll still get all the strong typing without have to wait for it to run. For example an error in a little used branch would cause an error before the branch even runs.

So then the user gets a type error in their face instead of the page loading? That doesn't really sound better than the developer getting that error while writing the code, which is what TypeScript currently does.

Re: It’s time to free JavaScript (2024)

#234

I actually think that people should rather use EcmaScript name instead of JavaScript, because it's a way better name (much less confusing, given that this lang doesn't have anything to do with Java anyway). I wish Oracle started suing people to force everyone to use the better name.

That’s not retrocompatible with all the .js files out there though. One possibility is thus just make some vocalic derivation, which align with well known spontaneous evolution of languages like ablaut[1]. Following that, and keeping the dance connotation, jive [2] is an option. Or closer on phonetic distance to java (/ˈd͡ʒɑː.və/), there is jovial (/ˈd͡ʒəʊ.vɪ.əl/ or /ˈd͡ʒoʊ.vɪ.əl/ or /ˈd͡ʒoʊ.vəl/)[3]. Might our jovia…

Why not Jayscript?

I see that there's something called that related to javascript already, but like -- very similar spelling, ".js" still works, we lose the Java confusion etc etc.

Re: It’s time to free JavaScript (2024)

#235

I actually think that people should rather use EcmaScript name instead of JavaScript, because it's a way better name (much less confusing, given that this lang doesn't have anything to do with Java anyway). I wish Oracle started suing people to force everyone to use the better name.

EcmaScript is an awful name. It sounds too similar to eczema or ectoplasm. Ugly name.

Nailed it. My brain always hears it as eczema script, which is never a good association.

Re: It’s time to free JavaScript (2024)

#236
post #179

Earlier quoted context omitted.

> because it's a way better name (much less confusing, given that this lang doesn't have anything to do with Java anyway). Probably if we were in the early 2000s this could have been a battle worth fighting. But considering we're in 2025 and probably more people are aware of JavaScript than Java at this point, even when you're deep in enterprise-land, I'm not sure it'd be less confusing. Anyways, you're about two dec…

From days of old... Invoking Applet Methods From JavaScript Code - https://docs.oracle.com/javase/tutorial/deployment/applet/in... and Invoking JavaScript Code From an Applet - https://docs.oracle.com/javase/tutorial/deployment/applet/in... Aside from the "Java is cool, name everything Java" in the early days - there was scripting between the browser and the applet using a language named JavaScript.

Eh, JavaScript wasn't the originally chosen name, it was LiveScript by Eich. I've never seen a justification for the name from anyone in the know, other than Eich's musing that Netscape wanted the "cool" factor. That "cool" factor was also why the original task of embedding scheme into the browser turned into a more C/Java-esque flavor.

Re: It’s time to free JavaScript (2024)

#237

1) Put JS in maintenance mode, don’t add any language features, only runtime 2) TS becomes the official mainline, whoever doesn’t like types can just keep writing as they did before, because valid JS is valid TS Problem solved, it’s not that difficult.

3) remove js and its derivatives from the internet, switch to lua or smth

OT, but I learned Lua this year in order to be able to write a mod for a game, and maybe this is due to it being a while since I last used a dynamic language regularly, but Lua really feels like it's basically what JavaScript was intended to be. Both use a map-like data structure for basically everything, with integer keys to make them act like arrays, function values to make them act as objects, but Lua using an explicit function call in `for ... in` loops avoided needing a separate construct to be added later on for iterating over arrays in order (or having to resort to manually iterating over the numbers rather than the array itself). Lua's module system reminds me a lot of how Node's `exports` works (although nowadays I understand there are other ways of importing/exporting stuff in JavaScript), and it's not obvious to me that the power of prototypes in JavaScript are worth the extra complexity over using the module system for the pre-ES6 model of OO that JavaScript used. I feel like Lua basically already has solved most of the stuff that JS has needed to add a lot of new features for in recent years. I imagine this is something that a lot of people were already aware of, but at least personally, even being cognizant of the flaws that JS had been trying to fix, I hadn't realized an already well-established language had a design that solved most of them without also having a lot of additional scope beyond what JS was trying to do (e.g. Python having full-fledged class-based OO) or at least superficially looking a lot different (e.g. some form of lisp, which I know had been at least talked about in the early web days as a potential option but might have faced more of an uphill battle for adoption).

Re: It’s time to free JavaScript (2024)

#238

Earlier quoted context omitted.

There was also beanshell if you remember, of course never as polished nor adopted like groovy but it was also fun to use.

Is groovy actually really "adopted" much of anywhere? I feel like for 99% of normal people, their only real exposure to it is as the DSL of gradle and jenkins. I can't imagine writing anything of substance primarily in groovy.

Rundeck uses it for its plugins. It might be like how people use lua for their main program's dynamic scripting except they know Java so they use groovy.

Re: It’s time to free JavaScript (2024)

#239
Deno is very good at marketing: they also have a nice page about the history of JS.

But just like with this JS trademark thing, it feels like they present themselves as spokespeople and spearhead for the whole JS community, which feels kind of misleading and grandiose.

The mentioned timeline site (link below) also has this issue: it slowly shifts focus from things like the first JS version, the creation of XMLHttpRequest, to later focusing on Deno milestones, as if these events would have had comparable impacts:

https://deno.com/blog/history-of-javascript

And that seems kind of dishonest and designed to nudge outsiders towards thinking Deno would be the default server runtime now, which doesn't seem to be true.

Re: It’s time to free JavaScript (2024)

#240
post #233

Earlier quoted context omitted.

So? If supported natively by the browser the browser could compile it on download. You'll still get all the strong typing without have to wait for it to run. For example an error in a little used branch would cause an error before the branch even runs.

So then the user gets a type error in their face instead of the page loading? That doesn't really sound better than the developer getting that error while writing the code, which is what TypeScript currently does.

Not to mention the penalty of the browser having to re-execute the type checking every time the files aren't loaded from cache.
Post reply on HN