zlacker

[parent] [thread] 157 comments
1. siwata+(OP)[view] [source] 2025-12-04 10:58:11
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.
replies(23): >>phplov+r >>andix+n1 >>stuart+E1 >>rs186+73 >>embedd+93 >>pansa2+c3 >>nacoza+D3 >>falcor+X3 >>suyash+i4 >>re-thc+q6 >>throwi+ee >>wouldb+gh >>wat100+Bh >>petese+Bi >>somegu+Vo >>psycho+Jp >>gianca+eq >>nextac+lq >>nunobr+eu >>dtagam+Du >>halapr+cD >>culi+e21 >>elAhmo+Ra1
2. phplov+r[view] [source] 2025-12-04 11:02:08
>>siwata+(OP)
That boat sailed soooo many years ago tho. Oracle has no business claiming javascript as a trademark.
replies(2): >>cies+n3 >>eastbo+bh
3. andix+n1[view] [source] 2025-12-04 11:11:38
>>siwata+(OP)
What we use nowadays is actually ECMAScript and not JavaScript. We just call it JavaScript.
replies(1): >>muvlon+qk
4. stuart+E1[view] [source] 2025-12-04 11:15:01
>>siwata+(OP)
Apart from anything else, ECMAScript is a mouthful! Eeh-cee-emm-ay-script. Five syllables.
replies(5): >>tietje+Y1 >>mbirth+02 >>mattke+92 >>hn_thr+x2 >>sph+17
◧◩
5. tietje+Y1[view] [source] [discussion] 2025-12-04 11:17:30
>>stuart+E1
Don't most people just pronounce it Eck-ma?
◧◩
6. mbirth+02[view] [source] [discussion] 2025-12-04 11:17:56
>>stuart+E1
Since the association renamed itself to “Ecma International” in 1994, I believe we can just call it Eck-mah-script.
◧◩
7. mattke+92[view] [source] [discussion] 2025-12-04 11:19:29
>>stuart+E1
It's a genuinely terrible name.

Maybe it should just be pronounced eck-ma-script so it's got the same number of syllables as ja-va-script.

replies(2): >>lionko+o9 >>art0rz+U9
◧◩
8. hn_thr+x2[view] [source] [discussion] 2025-12-04 11:23:09
>>stuart+E1
And it sounds like a skin condition.
replies(1): >>biofox+s5
9. rs186+73[view] [source] 2025-12-04 11:27:12
>>siwata+(OP)
Who are "people"? How would all of this start?

In terms of standard, the specs already use "ECMAScript" and don't even mention JavaScript (https://github.com/tc39/ecma262/), although TC39 website does use it frequently. I guess they could officially recommend people stop using "JavaScript", but I doubt they care.

Otherwise, the petitioner Deno here is only a small part of the ecosystem and barely controls anything (and really nobody other than TC39 controls anything, which is good). They (or anyone else) can't just shout "stop saying JavaScript!" and expect people to follow.

Not to mention JavaScript is a simple, easy to pronounce word compared to ECMAScript despite the baggage, which is probably why they chose it in the first place.

Let's say the "JavaScript" name is officially deprecated somehow. People will continue to use the name for as long as it exists.

So Deno's petition tackles these problems, addresses the root cause and appears to be legally viable. That is the "right thing to do" here. Avoiding the name does not solve the problem. It never does.

10. embedd+93[view] [source] 2025-12-04 11:27:44
>>siwata+(OP)
> 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 decades too late to this discussion :/

replies(3): >>hereti+Gk >>shagie+Ay >>bartre+6Q
11. pansa2+c3[view] [source] 2025-12-04 11:27:55
>>siwata+(OP)
> people should rather use EcmaScript name instead of JavaScript

Or go back to calling it “LiveScript”

replies(1): >>DrScie+5c
◧◩
12. cies+n3[view] [source] [discussion] 2025-12-04 11:29:34
>>phplov+r
Oracle is in the business of bullying others using their big legal dept.

We all know this.

> Oracle has no business claiming javascript as a trademark.

You think so. That's okay. But ultimately it is up to a judge to decide. Right?

I agree with the EcmaScript. Just ditch the stupid name. Get all the petition signers to agree an move on. Fuck Oracle. Fuck JavaScript (it's nothing like Java anyway).

replies(1): >>mcny+R5
13. nacoza+D3[view] [source] 2025-12-04 11:30:36
>>siwata+(OP)
Our trade has a solid tradition of terrible names for programming languages. They are ALL bad. The whole Ekmuhscrip.js schism fits perfectly. Yes, this is our circus, and these are our monkeys.
replies(2): >>Towawa+6f >>Octoth+qp
14. falcor+X3[view] [source] 2025-12-04 11:32:54
>>siwata+(OP)
But everyone already calls it JS. I think the transition would have been so much easier if the official name started with "J".
replies(8): >>dkerst+o4 >>petre+T5 >>ljlole+S9 >>dsnr+Lc >>codeli+Fi >>linhns+0D >>mbork_+4W >>9rx+O91
15. suyash+i4[view] [source] 2025-12-04 11:35:26
>>siwata+(OP)
The irony is I belive the JavaScript creator wtnted to latch to Java's popularity to called it JavaScript and now both Java and JavaScript are owned by Oracle and they want the name but not want to change is to ECMAScript, it's real official name.
replies(3): >>jemmyw+d7 >>embedd+g8 >>ndiddy+Eg
◧◩
16. dkerst+o4[view] [source] [discussion] 2025-12-04 11:35:44
>>falcor+X3
Just rename it to "JS" (jay-ess) and forget about having the letters stand for anything.
replies(2): >>1bpp+Rz >>lepton+ff1
◧◩◪
17. biofox+s5[view] [source] [discussion] 2025-12-04 11:44:54
>>hn_thr+x2
Flaky when under pressure? Irritating results? Sites look and feel better without it?

Sounds appropriate to me.

◧◩◪
18. mcny+R5[view] [source] [discussion] 2025-12-04 11:47:38
>>cies+n3
> But ultimately it is up to a judge to decide. Right?

I think we are getting a rude awakening about what is legal versus what is actually right are not always the same thing. There are some the horrible, horrible things here and the laws need updating, as opposed to us simply saying this is for a judge to decide and there is nothing else we can do.

I am ok with ditching the JavaScript name. I understand this cuts the problem entirely. However, there are other problems we have that we can't bypass so easily.

We need copyright terms to be much reduced. We need CFAA fully repealed and not replaced by anything. We need to abolish software patents. There is a lot we need to do that will likely take a century to accomplish and that's likely being too optimistic.

What we can't do is leave everything up to the judges because clearly even if we get a favorable ruling today, the precedent can be removed by another stroke of a pen.

replies(2): >>embedd+T8 >>cies+LS
◧◩
19. petre+T5[view] [source] [discussion] 2025-12-04 11:47:39
>>falcor+X3
Like JunoScript or JangoScript? JavaScript is just very outdated ECMAScript.
replies(3): >>discom+e9 >>Nuclea+4e >>j16sdi+hF2
20. re-thc+q6[view] [source] 2025-12-04 11:51:42
>>siwata+(OP)
Switch everything natively to Typescript.
replies(2): >>DrScie+oc >>solumu+G71
◧◩
21. sph+17[view] [source] [discussion] 2025-12-04 11:54:56
>>stuart+E1
It should've been called AcmeScript. The association with Wile E. Coyote would've been fitting.
replies(1): >>somegu+jp
◧◩
22. jemmyw+d7[view] [source] [discussion] 2025-12-04 11:55:51
>>suyash+i4
Well the creator wanted to call it livescript. The creating company (Netscape) wanted the Java association.
◧◩
23. embedd+g8[view] [source] [discussion] 2025-12-04 12:03:26
>>suyash+i4
> and now both Java and JavaScript are owned by

"Now" makes it sound like this is a recent acquisition of the JavaScript trademark. Oracle obtained it in 2009 as a result of the Sun purchase and if I remember correctly, Sun initially was issued the trademark back in the 90s sometimes.

replies(2): >>brabel+ep >>iberat+Nf1
◧◩◪◨
24. embedd+T8[view] [source] [discussion] 2025-12-04 12:07:04
>>mcny+R5
> I think we are getting a rude awakening about what is legal versus what is actually right are not always the same thing.

I'm not sure who "we" are here (Americans perhaps?), but humanity as a whole have known this for a long time, and acted accordingly. This is why presidents in some countries have the right to pardon people, as just one very evident example. That the USA exists as a country today is another example, which at the time when they were trying to create it, was clearly illegal, but since winners write history, still a "good" action.

The the laws aren't 100% unambiguous and strict is also another example, so there is room for interpretation, as something can be "by the book legal" but because of the clear evil motivations and "ignoring the spirit of the law", still be illegal. Of course, highly dependent on the country and lots of counter-examples.

◧◩◪
25. discom+e9[view] [source] [discussion] 2025-12-04 12:09:45
>>petre+T5
soulJaboy Script
◧◩◪
26. lionko+o9[view] [source] [discussion] 2025-12-04 12:10:37
>>mattke+92
It is pronounced like that, typically
◧◩
27. ljlole+S9[view] [source] [discussion] 2025-12-04 12:13:41
>>falcor+X3
JECMAScript
◧◩◪
28. art0rz+U9[view] [source] [discussion] 2025-12-04 12:13:46
>>mattke+92
I've only ever heard it pronounced as "EcmaScript" not E-C-M-A Script"
◧◩
29. DrScie+5c[view] [source] [discussion] 2025-12-04 12:31:27
>>pansa2+c3
I'm not changing all the extensions on my files :-)

Just go with the flow - call it js.

◧◩
30. DrScie+oc[view] [source] [discussion] 2025-12-04 12:33:43
>>re-thc+q6
Last phase of embrace, extend, extinguish eh?

https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguis...

◧◩
31. dsnr+Lc[view] [source] [discussion] 2025-12-04 12:36:10
>>falcor+X3
JabbaScript
replies(1): >>truels+LE2
◧◩◪
32. Nuclea+4e[view] [source] [discussion] 2025-12-04 12:46:00
>>petre+T5
How is it outdated?
replies(1): >>masfue+5j
33. throwi+ee[view] [source] 2025-12-04 12:47:12
>>siwata+(OP)
It’s simply not a better name. If it was, it would’ve caught on by now.
◧◩
34. Towawa+6f[view] [source] [discussion] 2025-12-04 12:52:49
>>nacoza+D3
But some of us get to be pretty looking penguins in this circus of ours.
◧◩
35. ndiddy+Eg[view] [source] [discussion] 2025-12-04 13:03:41
>>suyash+i4
If you read the original JavaScript press release ( https://web.archive.org/web/20020808041248/http://wp.netscap... ), it's mainly intended as a language to write glue code so Java applets (where the real application logic would go) can interact with a webpage:

> With JavaScript, an HTML page might contain an intelligent form that performs loan payment or currency exchange calculations right on the client in response to user input. A multimedia weather forecast applet written in Java can be scripted by JavaScript to display appropriate images and sounds based on the current weather readings in a region. A server-side JavaScript script might pull data out of a relational database and format it in HTML on the fly. A page might contain JavaScript scripts that run on both the client and the server. On the server, the scripts might dynamically compose and format HTML content based on user preferences stored in a relational database, and on the client, the scripts would glue together an assortment of Java applets and HTML form elements into a live interactive user interface for specifying a net-wide search for information.

> "Programmers have been overwhelmingly enthusiastic about Java because it was designed from the ground up for the Internet. JavaScript is a natural fit, since it's also designed for the Internet and Unicode-based worldwide use," said Bill Joy, co-founder and vice president of research at Sun. "JavaScript will be the most effective method to connect HTML-based content to Java applets."

This was all actually implemented. JavaScript functions could call Java applet methods and vice versa (see https://docs.oracle.com/javase/8/docs/technotes/guides/deplo... ). Of course over time everyone abandoned applets because of all the security problems, and JavaScript became a good enough language to write application logic directly in it. Still, there's more meaning behind the name than it just being a cynical marketing move.

replies(4): >>cubefo+Hj >>mikepu+Yj >>lowerc+8o >>jerf+Xy
◧◩
36. eastbo+bh[view] [source] [discussion] 2025-12-04 13:07:05
>>phplov+r
Or let Oracle trial everyone for the number of processors they have on their JavaScript machines.
37. wouldb+gh[view] [source] 2025-12-04 13:07:40
>>siwata+(OP)
EcmaScript just sounds icky.
replies(1): >>crazyg+4n
38. wat100+Bh[view] [source] 2025-12-04 13:09:17
>>siwata+(OP)
It’s unfortunate that it sounds like some sort of skin disease.
39. petese+Bi[view] [source] 2025-12-04 13:16:25
>>siwata+(OP)
> I actually think that people should rather use EcmaScript name instead of JavaScript

Take it to Twitter

◧◩
40. codeli+Fi[view] [source] [discussion] 2025-12-04 13:16:40
>>falcor+X3
JuicyScript
◧◩◪◨
41. masfue+5j[view] [source] [discussion] 2025-12-04 13:19:58
>>Nuclea+4e
I guess the argument is that technically JavaScript is still stuck on version 1 or some other low number. The language that has evolved is ECMAScript.
◧◩◪
42. cubefo+Hj[view] [source] [discussion] 2025-12-04 13:23:55
>>ndiddy+Eg
> Of course over time everyone abandoned applets because of all the security problems,

Haha, or because it froze the whole browser for a few seconds upon loading. Unlike Macromedia Flash by the way.

replies(1): >>phanta+Tl
◧◩◪
43. mikepu+Yj[view] [source] [discussion] 2025-12-04 13:25:00
>>ndiddy+Eg
The language now called Groovy would have been JavaScript if the name wasn’t already taken.
replies(1): >>brabel+1p
◧◩
44. muvlon+qk[view] [source] [discussion] 2025-12-04 13:28:30
>>andix+n1
If enough people call it JavaScript, it is JavaScript. Yes really. Even in a legal sense (and deno are arguing this is already the case).
◧◩
45. hereti+Gk[view] [source] [discussion] 2025-12-04 13:29:34
>>embedd+93
> probably more people are aware of JavaScript than Java at this point

All the same, I probably get as many calls from recruiters to fill Java positions as I do JS positions. I've never used the former, and explaining it is always awkward!

replies(3): >>master+Sm >>Goblin+oo >>singhr+wu
◧◩◪◨
46. phanta+Tl[view] [source] [discussion] 2025-12-04 13:38:54
>>cubefo+Hj
I had a flash ad take 100% of my cpu back around 2005 or so. It wasn’t even trying to be malicious, just a poorly made ad. That was the day I stopped allowing any site exceptions in my ad blocker.

Of course 100% of that cpu is probably 1/10 of one core on any of my modern machines, so an ordinary and not-broken ad laden page routinely eats several times as many cycles now. Progress!

replies(1): >>morale+rp
◧◩◪
47. master+Sm[view] [source] [discussion] 2025-12-04 13:46:05
>>hereti+Gk
I would tell them they are wasting your time by not offering you fitting jobs. It's on them to know what they are looking for, not on you
◧◩
48. crazyg+4n[view] [source] [discussion] 2025-12-04 13:47:39
>>wouldb+gh
I still cannot read it without immediately seeing a contraction of eczema.
replies(1): >>somegu+5p
◧◩◪
49. lowerc+8o[view] [source] [discussion] 2025-12-04 13:54:25
>>ndiddy+Eg
Happenstance, but that press release you linked to was December 4, 1995 - exactly 30 years ago today!
◧◩◪
50. Goblin+oo[view] [source] [discussion] 2025-12-04 13:56:09
>>hereti+Gk
For normal people Java is a short way to say JavaScript.
replies(4): >>spider+3s >>thfura+vE >>__del_+uA2 >>opem+Iv5
51. somegu+Vo[view] [source] 2025-12-04 14:00:22
>>siwata+(OP)
EcmaScript is an awful name. It sounds too similar to eczema or ectoplasm. Ugly name.
replies(8): >>spider+ds >>eureki+js >>code_f+eA >>newsof+ZJ >>kstrau+qM >>godsha+w71 >>truels+BE2 >>rangun+To3
◧◩◪◨
52. brabel+1p[view] [source] [discussion] 2025-12-04 14:00:58
>>mikepu+Yj
Haha completely agree, it is the "scripting language" made in the image of Java! It's a great language by the way!
replies(1): >>nunobr+Bu
◧◩◪
53. somegu+5p[view] [source] [discussion] 2025-12-04 14:01:14
>>crazyg+4n
Yes! I said this same thing in a separate comment! It sounds like Eczema Script
◧◩◪
54. brabel+ep[view] [source] [discussion] 2025-12-04 14:02:07
>>embedd+g8
You should consider reading the article.
replies(1): >>embedd+UJ
◧◩◪
55. somegu+jp[view] [source] [discussion] 2025-12-04 14:02:45
>>sph+17
That’s actually the perfect name for it!
◧◩
56. Octoth+qp[view] [source] [discussion] 2025-12-04 14:03:10
>>nacoza+D3
> Yes, this is our circus, and these are our monkeys.

In this case, it's Oracle's circus and we are the monkeys.

◧◩◪◨⬒
57. morale+rp[view] [source] [discussion] 2025-12-04 14:03:15
>>phanta+Tl
Websites can also use 100% of your CPU as well.

You might not be aware, but this is a trivial thing to do.

58. psycho+Jp[view] [source] 2025-12-04 14:04:45
>>siwata+(OP)
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 jovial·script enjoy our life.

[1] https://en.wikipedia.org/wiki/Indo-European_ablaut

[2] https://en.wiktionary.org/wiki/jive

[3] https://en.wiktionary.org/wiki/jovial

replies(3): >>roywig+Sq >>psycho+bt >>jrm4+vL
59. gianca+eq[view] [source] 2025-12-04 14:08:02
>>siwata+(OP)
I am going to sound crazy, but, if Microsoft would free up TypeScript and every browser added native TypeScript features to JavaScript… and then we all just started calling it TypeScript. Maybe? Then you would see native ts files. Oracle will never give up JS. The funny thing is the number of people who confuse Java and JS.
replies(8): >>shevy-+sq >>Vinnl+7r >>friend+aD >>michae+OF >>culi+G21 >>morshu+Ab1 >>ozim+Qg1 >>hajile+NE1
60. nextac+lq[view] [source] 2025-12-04 14:08:24
>>siwata+(OP)
Filename extension is .js, mime type is text/javascript, millions of people call it javascript. I don't see this changing anytime soon

Unrelated but, the JavaScript capitalization is so odd

replies(1): >>rdiddl+0L
◧◩
61. shevy-+sq[view] [source] [discussion] 2025-12-04 14:08:53
>>gianca+eq
From experience, corporations usually don't give the general public any trademarked name. I assume TypeScript is trademarked right now; and I doubt Microsoft would ever liberate this. So in this regard, the corporations act in the same manner - selfish.
replies(3): >>Someon+gs >>onioni+gx >>george+KC
◧◩
62. roywig+Sq[view] [source] [discussion] 2025-12-04 14:11:28
>>psycho+Jp
.js, short for jecmascript, easy
replies(1): >>Goblin+Ls
◧◩
63. Vinnl+7r[view] [source] [discussion] 2025-12-04 14:12:36
>>gianca+eq
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.
replies(2): >>lelant+vt >>array_+PB
◧◩◪◨
64. spider+3s[view] [source] [discussion] 2025-12-04 14:18:24
>>Goblin+oo
I have never heard anyone do that. Do “normal” people even discuss JavaScript?
replies(2): >>array_+5C >>sltkr+QD2
◧◩
65. spider+ds[view] [source] [discussion] 2025-12-04 14:19:07
>>somegu+Vo
Obligatory: https://james-iry.blogspot.com/2009/05/brief-incomplete-and-...

> 1995 - Brendan Eich reads up on every mistake ever made in designing a programming language, invents a few more, and creates LiveScript. Later, in an effort to cash in on the popularity of Java the language is renamed JavaScript. Later still, in an effort to cash in on the popularity of skin diseases the language is renamed ECMAScript.

◧◩◪
66. Someon+gs[view] [source] [discussion] 2025-12-04 14:19:25
>>shevy-+sq
If browser makers offered to put it in the browser if the name is freed, I bet they could be convinced. The main problem right now, is that there isn't a major push to add TS to the browser.
replies(1): >>gianca+Ts
◧◩
67. eureki+js[view] [source] [discussion] 2025-12-04 14:19:48
>>somegu+Vo
Thought I was the only one seeing the resemblance (also flegma)
◧◩◪
68. Goblin+Ls[view] [source] [discussion] 2025-12-04 14:22:33
>>roywig+Sq
JabbaScript
replies(1): >>nunobr+Nu
◧◩◪◨
69. gianca+Ts[view] [source] [discussion] 2025-12-04 14:23:18
>>Someon+gs
The way I'm proposing it, technically it would be to make JS and TS kind of the same thing, but not fully, as someone else mentioned the goal of TS is still to tell the user (developer) about issues before the code runs. However, if done right TS files still get interpreted like normal JS, and technically you would want to compile them and not put them in the browser "raw" but you could still call it TS.
◧◩
70. psycho+bt[view] [source] [discussion] 2025-12-04 14:24:53
>>psycho+Jp
Also jiva (/ˈd͡ʒiːvə/) is an option.

https://en.wiktionary.org/wiki/jiva

https://www.youtube.com/watch?v=UmO4zvq9HtE

◧◩◪
71. lelant+vt[view] [source] [discussion] 2025-12-04 14:26:30
>>Vinnl+7r
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.

replies(1): >>Vinnl+oL
72. nunobr+eu[view] [source] 2025-12-04 14:30:20
>>siwata+(OP)
I'm from the java world and it is basically java. Sure that it can do a lot more, for the most part any java developer will fell at home with the exception of lacking a robust static typing and the IDEs aren't really as good to spot syntax errors. I mean no shade to javascript developers, you just get used to a very robust building environment over there.
◧◩◪
73. singhr+wu[view] [source] [discussion] 2025-12-04 14:31:47
>>hereti+Gk
To be frank this is a service to you. No company you want to work at has a recruiter that doesn't understand the difference (a fully AI recruiter would be better than this experience).
◧◩◪◨⬒
74. nunobr+Bu[view] [source] [discussion] 2025-12-04 14:32:21
>>brabel+1p
There was also beanshell if you remember, of course never as polished nor adopted like groovy but it was also fun to use.
replies(1): >>mikepu+BA
75. dtagam+Du[view] [source] 2025-12-04 14:32:34
>>siwata+(OP)
I think most of us just call it JS now. And we really write mostly TS anyway.
replies(1): >>xxs+vv
◧◩◪◨
76. nunobr+Nu[view] [source] [discussion] 2025-12-04 14:33:28
>>Goblin+Ls
Would actually paint a very descriptive state about the ecosystem.
◧◩
77. xxs+vv[view] [source] [discussion] 2025-12-04 14:38:34
>>dtagam+Du
that would be very culturally/industry specific. Personally, I do call it javascript.
replies(1): >>freedo+zA
◧◩◪
78. onioni+gx[view] [source] [discussion] 2025-12-04 14:46:59
>>shevy-+sq
TFA says Microsoft offered the JScript trademark to be used in place of JavaScript, so there’s some indication of willingness to give up a trademark.
◧◩
79. shagie+Ay[view] [source] [discussion] 2025-12-04 14:54:24
>>embedd+93
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.

replies(2): >>zdragn+tM >>bartre+oQ
◧◩◪
80. jerf+Xy[view] [source] [discussion] 2025-12-04 14:55:53
>>ndiddy+Eg
The story is somewhat more complicated than that and not amenable to a simple summary, because there are multiple entities with multiple motivations involved. Keeping it simple, the reason why the press release babbles about that is that that is corporate Netscape talking at the height of the Java throat-forcing era. Those of you who were not around for it have no equivalent experience for how Java was being marketed back then because no language since then has been backed by such a marketing budget, but Java was being crammed down our throats whether you like it or not. Not entirely unlike AI is today, only programmers were being even more targeted and could have been seeing more inflation-adjusted-dollar-per-person spend since the set of people being targeted is so much smaller than AI's "everyone in the world" target.

This cramming did not have any regard for whether Java was a good solution for a given problem, or indeed whether the Java of that era could solve the problem at all. It did not matter. Java was Good. Good was Java. Java was the Future. Java was the Entire Future. Get on board or get left behind. It was made all the more infuriating for the fact that the Java of this time period was not very good at all; terrible startup, terrible performance, absolutely shitty support for anything we take for granted nowadays like GUIs or basic data structure libraries, garbage APIs shoved out the door as quickly as possible so they could check the bullet point that "yes, java did that" as quickly as possible, like Java's copy-of-a-copy of the C++ streaming (which are themselves widely considered a terrible idea and an antipattern today!).

I'm not even saying this because I'm emotional or angry about it or hate Java today. Java today is only syntactically similar to Java in the 90s. It hardly resembles it in any other way. Despite the emotional tone of some of what I'm saying, I mean this as descriptive. Things really were getting shoveled out the door with a minimum of design and no real-world testing so that the Java that they were spending so much marketing money on could be said that yes! It connected to this database! Yes! It speaks XML! Yes! It has a cross-platform GUI! These things all barely work as long as you don't subject them to a stiff breeze, but the bullet point is checked!

The original plan was for Java to simply be the browser language, because that's what the suits wanted, because probably that's what the suits were being paid to want. Anyone can look around today and see that that is not a great match for a browser language, and a scripting language was a better idea especially for the browser in the beginning. However, the suits did not care.

The engineers did, and they were able to sneak a scripting language into the browser by virtue of putting "Java" in the name, which was enough to fool the suits. If my previous emotional text still has not impressed upon you the nature of this time, consider what this indicates from a post-modern analysis perspective. Look at Java. Look at Javascript. Observe their differences. Observe how one strains to even draw any similarities between them beyond the basics you get from being a computer language. Yet simply slapping the word "Java" on the language was enough to get the suits to not ask any more questions until much, much later. That's how crazy the Java push was at the time... you could slip an entirely different scripting language in under the cover of the incredible propaganda for Java.

So while the press release will say that it was intended to glue Java applets, because that's what the suits needed to hear at that point, it really wasn't the case and frankly it was never even all that great at it. Turns out bridging the world between Java and Javascript is actually pretty difficult; in 2025 we pay the requisite memory and CPU costs without so much as blinking but in an era of 32 or 64 MEGAbyte RAM profiles it was nowhere near as casual. The reality is that what Javascript was intended to be by the actual people who created it and essentially snuck it in under the noses of the suits is exactly what it is today: The browser scripting language. I think you also had some problems like we still have today with WASM trying to move larger things back and forth between the environments, only much, much more so.

We all wish it had more than a week to cook before being shoved out the door itself, but it was still immensely more successful than Java ever could have been.

(Finally, despite my repeated use of the term "suits", I'm not a radical anti-business hippie hacker type. I understand where my paycheck comes from. I'm not intrinsically against "business people". I use the term perjoratively even so. The dotcom era was full of bullshit and they earned that perjorative fair and square.)

replies(2): >>iberat+je1 >>iberat+2f1
◧◩◪
81. 1bpp+Rz[view] [source] [discussion] 2025-12-04 15:00:49
>>dkerst+o4
Would be nice if Microsoft hadn't taken JScript
replies(1): >>WorldM+bD
◧◩
82. code_f+eA[view] [source] [discussion] 2025-12-04 15:02:26
>>somegu+Vo
the fact that it sounds bad out loud is its undoing
◧◩◪
83. freedo+zA[view] [source] [discussion] 2025-12-04 15:04:31
>>xxs+vv
Yeah definitely cultural. IME it's called JS only in chat as a shortcut. IRL people say "javascript"
◧◩◪◨⬒⬓
84. mikepu+BA[view] [source] [discussion] 2025-12-04 15:04:35
>>nunobr+Bu
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.

replies(3): >>xxs+1E >>dizhn+UM >>roeger+Rl2
◧◩◪
85. array_+PB[view] [source] [discussion] 2025-12-04 15:10:38
>>Vinnl+7r
No runtime type safety bites people often and in unexpected ways. It should just be standardized.
replies(1): >>Vinnl+aL
◧◩◪◨⬒
86. array_+5C[view] [source] [discussion] 2025-12-04 15:11:55
>>spider+3s
I think normal people are actually aware what JS and HTML are. Most people are more tech savvy than we give them credit - or credit they might give themselves.
replies(3): >>dec0de+GF >>Capric+tP >>Izkata+QA2
◧◩◪
87. george+KC[view] [source] [discussion] 2025-12-04 15:16:17
>>shevy-+sq
If you can find the clip on you tube where he says it, it's even funnier. But sadly also true.

https://simonwillison.net

◧◩
88. linhns+0D[view] [source] [discussion] 2025-12-04 15:17:43
>>falcor+X3
I'm impartial towards JS, but I've heard others call it JunkScript.
◧◩
89. friend+aD[view] [source] [discussion] 2025-12-04 15:18:48
>>gianca+eq
For years we said bring something sane to browsers instead of trying to salvage js. At this point, though, why don't they just implement DOM bindings in wasm and make internets a better place overnight?
replies(2): >>chpatr+gR >>gianca+z61
◧◩◪◨
90. WorldM+bD[view] [source] [discussion] 2025-12-04 15:18:51
>>1bpp+Rz
Microsoft themselves have even suggested the community could take over the name JScript if they want and offered the trademark to community groups.
91. halapr+cD[view] [source] 2025-12-04 15:19:05
>>siwata+(OP)
No person calls it EcmaScript. They should just call it Jay Es and be done. "JavaScript" is an ugly name too.
◧◩◪◨⬒⬓⬔
92. xxs+1E[view] [source] [discussion] 2025-12-04 15:23:34
>>mikepu+BA
>I can't imagine writing anything of substance primarily in groovy.

That's solely based on a poor imagination, not trying...

replies(1): >>nunobr+sI
◧◩◪◨
93. thfura+vE[view] [source] [discussion] 2025-12-04 15:26:06
>>Goblin+oo
I don't think I've ever met one of these people.
◧◩◪◨⬒⬓
94. dec0de+GF[view] [source] [discussion] 2025-12-04 15:32:34
>>array_+5C
I think normal people don't know the difference between google and a web browser. Even many of the ones that used to understand the difference forgot some time after their primary computing device became a locked down phone.
replies(1): >>boolea+yd1
◧◩
95. michae+OF[view] [source] [discussion] 2025-12-04 15:33:09
>>gianca+eq
> The funny thing is the number of people who confuse Java and JS.

Is it? My experience in the past decade is that there are more memes about people who confuse the 2 than people that confuse the 2.

replies(1): >>jjkacz+Xq1
◧◩◪◨⬒⬓⬔⧯
96. nunobr+sI[view] [source] [discussion] 2025-12-04 15:49:57
>>xxs+1E
Have to agree with the previous person. Never saw a relevant project made from Groovy. Even with Beanshell I've included it a few times in other projects for basic scripting/customization within the app but groovy? Never in 15 years to now.
replies(2): >>mikepu+kS >>brabel+xx5
◧◩◪◨
97. embedd+UJ[view] [source] [discussion] 2025-12-04 15:56:57
>>brabel+ep
You should consider including whatever point you are trying to make in the comment itself, instead of just a swipe without any details.
replies(1): >>brabel+Xt3
◧◩
98. newsof+ZJ[view] [source] [discussion] 2025-12-04 15:57:23
>>somegu+Vo
Agreed. WebScript would be better.
replies(1): >>mr_toa+VA1
◧◩
99. rdiddl+0L[view] [source] [discussion] 2025-12-04 16:03:55
>>nextac+lq
Everything seemed to be Pascal case back then.
◧◩◪◨
100. Vinnl+aL[view] [source] [discussion] 2025-12-04 16:04:40
>>array_+PB
Sure, but that's an orthogonal concern. That sounds more like a call to standardise Zod.
◧◩◪◨
101. Vinnl+oL[view] [source] [discussion] 2025-12-04 16:05:38
>>lelant+vt
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.
replies(2): >>zdragn+5N >>lelant+rh1
◧◩
102. jrm4+vL[view] [source] [discussion] 2025-12-04 16:06:13
>>psycho+Jp
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.

replies(1): >>Izkata+fB2
◧◩
103. kstrau+qM[view] [source] [discussion] 2025-12-04 16:10:57
>>somegu+Vo
Nailed it. My brain always hears it as eczema script, which is never a good association.
◧◩◪
104. zdragn+tM[view] [source] [discussion] 2025-12-04 16:11:04
>>shagie+Ay
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.
replies(3): >>chucka+e01 >>shagie+o31 >>bigfis+GR1
◧◩◪◨⬒⬓⬔
105. dizhn+UM[view] [source] [discussion] 2025-12-04 16:12:59
>>mikepu+BA
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.
◧◩◪◨⬒
106. zdragn+5N[view] [source] [discussion] 2025-12-04 16:13:40
>>Vinnl+oL
Not to mention the penalty of the browser having to re-execute the type checking every time the files aren't loaded from cache.
◧◩◪◨⬒⬓
107. Capric+tP[view] [source] [discussion] 2025-12-04 16:24:15
>>array_+5C
Maybe 1 in 10000 people who aren't developers.
replies(1): >>array_+F21
◧◩
108. bartre+6Q[view] [source] [discussion] 2025-12-04 16:26:21
>>embedd+93
Yeah, I agree with you. I remember being annoyed by the name in 1999 because, as you say, JavaScripts's not got much to do with Java other than both languages being superficially C-like... but I don't see it as being confusing for more time than it takes to read introductory tutorials for each language.

There are more important battles to fight.

◧◩◪
109. bartre+oQ[view] [source] [discussion] 2025-12-04 16:28:18
>>shagie+Ay
I actually used this back in the day: once at university, and then again for a telecoms project in my first job.

But it doesn't mean there's much commonality - beyond superficially C-like syntax - between the languages, and certainly not between their "standard libraries" (aka the browser APIs in JavaScript's case).

◧◩◪
110. chpatr+gR[view] [source] [discussion] 2025-12-04 16:31:51
>>friend+aD
TypeScript is a really decent language though, I wouldn't feel happier or more productive using Fortran or whatever. Its type system is actually really powerful which is what matters when it comes to avoiding bugs, and it's easy to write functional code with correct-by-construction data. If you need some super optimized code then sure that's what WASM is for but that's not the problem with most web apps, the usual problem is bad design, but then choice of language doesn't save you. Sure TS has some annoying legacy stuff from JS but every language has cruft, and with strict linting you can eliminate it.

It's also better if there's one ecosystem instead of one fragmented with different languages where you have to write bindings for everything you want to use.

replies(3): >>9rx+Hh1 >>int_19+ao2 >>friend+cn3
◧◩◪◨⬒⬓⬔⧯▣
111. mikepu+kS[view] [source] [discussion] 2025-12-04 16:36:35
>>nunobr+sI
I think embedding and testing/plugins/DSLs really is the main use-case. It's a terrible fit for a CLI tool if you've got to wait for a JVM to boot up, especially in a world where people are now used to those kinds of things being instantaneous rust or go binaries.
◧◩◪◨
112. cies+LS[view] [source] [discussion] 2025-12-04 16:38:50
>>mcny+R5
Completely agree. But that's more of a general matter than this specific matter.

Judges is the best we have. US has juries, not sure if that makes it better.

More importantly we need to criminalize lobbying in order to get control back over "our democracies" (what ever that still means today).

◧◩
113. mbork_+4W[view] [source] [discussion] 2025-12-04 16:55:37
>>falcor+X3
JarJarScript.
◧◩◪◨
114. chucka+e01[view] [source] [discussion] 2025-12-04 17:14:04
>>zdragn+tM
Sun was pushing it as a way to script Java applets. Might have even worked out if LiveConnect (the interface layer between Java and JS) wasn't such buggy trash.
replies(1): >>johann+ZT1
115. culi+e21[view] [source] 2025-12-04 17:23:04
>>siwata+(OP)
Ah yes, "European Computer Manufacturers Association"-script
◧◩◪◨⬒⬓⬔
116. array_+F21[view] [source] [discussion] 2025-12-04 17:25:14
>>Capric+tP
Idk both of my parents do any they're not devs - they don't even have a pc or laptop, they just have a phone.

But they DO work in an office, and use a web browser for 8 hours a day.

◧◩
117. culi+G21[view] [source] [discussion] 2025-12-04 17:25:17
>>gianca+eq
Native type annotations in ecmascript is a serious proposal that gained some traction for quite a while but seems to have fallen off

https://github.com/tc39/proposal-type-annotations

◧◩◪◨
118. shagie+o31[view] [source] [discussion] 2025-12-04 17:27:25
>>zdragn+tM
> Java applets can invoke JavaScript functions present in the same web page as the applet. The LiveConnect Specification describes details about how JavaScript code communicates with Java code.

https://docs.oracle.com/javase/tutorial/deployment/applet/in...

> LiveConnect is a feature of web browsers which allows Java applets to communicate with the JavaScript engine in the browser, and JavaScript on the web page to interact with applets. The LiveConnect concept originated in the Netscape web browser, and to this date, Mozilla and Firefox browsers have had the most complete support for LiveConnect features. It has, however, been possible to call between JavaScript and Java in some fashion on all web browsers for a number of years.

https://www.oracle.com/java/technologies/javase/liveconnect-...

--

The naming appears to be confused.

https://web.archive.org/web/20101115234856/http://www.oracle...

> Improved Java/JavaScript communication. The bridge between the JavaScript engine in the web browser and the Java programming language has been completely reimplemented. The new implementation is backward-compatible and features improved reliability, performance and cross-browser portability, for both Java calling JavaScript as well as JavaScript calling Java. Formerly Mozilla-specific "LiveConnect" functionality, such as the ability to call static Java methods, instantiate new Java objects and reference third-party packages from JavaScript, is now available in all browsers.

The "LiveConnect" relating to the original LiveScript maybe? And that LiveConnect was a Netscape/Mozilla driven thing.

My point was more one of "JavaScript was the glue between applets and the HTML page itself early in the development of the language."

Renaming LiveScript to JavaScript and promoting the LiveConnect functionality wasn't an unreasonable thing at the time.

◧◩◪
119. gianca+z61[view] [source] [discussion] 2025-12-04 17:41:06
>>friend+aD
I love WASM, I do appreciate that it is slowly but reasonably growing into its final destination.
◧◩
120. godsha+w71[view] [source] [discussion] 2025-12-04 17:45:31
>>somegu+Vo
I don't know, I kind of like the name EctoScript. Although if it were me I'd just rename it WebScript and be done with it.
◧◩
121. solumu+G71[view] [source] [discussion] 2025-12-04 17:46:02
>>re-thc+q6
Please. The name JavaScript makes me cringe. We now have something much better in name and functionality, let’s just kill JS.
◧◩
122. 9rx+O91[view] [source] [discussion] 2025-12-04 17:56:12
>>falcor+X3
JSONScript
123. elAhmo+Ra1[view] [source] 2025-12-04 18:01:29
>>siwata+(OP)
EcmaScript is a terrible name, there is no way people will call JS that. How do you even pronounce it? What does it mean? What is it?
◧◩
124. morshu+Ab1[view] [source] [discussion] 2025-12-04 18:06:00
>>gianca+eq
Was going to say the same thing. I'm fine just using Typescript with types disabled (which is not the same as using TS without specifying types)
◧◩◪◨⬒⬓⬔
125. boolea+yd1[view] [source] [discussion] 2025-12-04 18:15:47
>>dec0de+GF
Can confirm. My wife (who is a very normal person) was using bing the other day and when I pointed it out she asked me what I was talking about and pointed to the chrome browser icon in the taskbar. The level of confusion is almost unfathomable to us.
◧◩◪◨
126. iberat+je1[view] [source] [discussion] 2025-12-04 18:19:32
>>jerf+Xy
wow. Do you have blog? You could totally write a book. Great style and verbose.
◧◩◪◨
127. iberat+2f1[view] [source] [discussion] 2025-12-04 18:23:18
>>jerf+Xy
Btw. What's your 3 favorite languages then?
◧◩◪
128. lepton+ff1[view] [source] [discussion] 2025-12-04 18:24:12
>>dkerst+o4
Or how about just "J", like "C", and "B" before it.
replies(1): >>dkerst+ux1
◧◩◪
129. iberat+Nf1[view] [source] [discussion] 2025-12-04 18:25:45
>>embedd+g8
Well for the majority of us here, Sun acquisition by Oracle was just few years ago. It was a canon event and we still think about it hehe
◧◩
130. ozim+Qg1[view] [source] [discussion] 2025-12-04 18:30:39
>>gianca+eq
I think that’s not crazy at all. You can run TypeScript in Node already and you can run Playwright scripts directly in TypeScript. Next logical step is that browsers start running it directly.
◧◩◪◨⬒
131. lelant+rh1[view] [source] [discussion] 2025-12-04 18:33:33
>>Vinnl+oL
> So then the user gets a type error in their face instead of the page loading?

The alternative is not "User sees no error", it's "user sees the error at runtime".

In which case, yeah, having the user see the type error is vastly preferable to having the user see a runtime JS error.

replies(1): >>Vinnl+QZ4
◧◩◪◨
132. 9rx+Hh1[view] [source] [discussion] 2025-12-04 18:35:10
>>chpatr+gR
> Its type system is actually really powerful which is what matters when it comes to avoiding bugs

It is really powerful as compared to Javascript. It is even really powerful as compared to most other languages people normally use. But not very powerful as compared to languages that have 'proper' type systems. Typescript still relies on you writing tests for everything.

The type system is a huge boon for the developer experience, of course. It enables things like automatic refactoring that make development much more pleasant (although LLMs are getting better at filling that void in dynamically typed languages). But it doesn't save you from bugs in a way that the tests you have to write anyway won't also save you from. And those same tests would also catch the same bugs in Javascript, so you're in the same place either way with respect to that.

◧◩◪
133. jjkacz+Xq1[view] [source] [discussion] 2025-12-04 19:26:15
>>michae+OF
Heh - it depends on the "Project Damagers" you have to work with...
◧◩◪◨
134. dkerst+ux1[view] [source] [discussion] 2025-12-04 19:54:39
>>lepton+ff1
Already taken https://en.wikipedia.org/wiki/J_(programming_language)
◧◩◪
135. mr_toa+VA1[view] [source] [discussion] 2025-12-04 20:09:56
>>newsof+ZJ
That’s always been my favorite proposal. WebScript is short and to the point.
◧◩
136. hajile+NE1[view] [source] [discussion] 2025-12-04 20:25:38
>>gianca+eq
Only if you change TS to have actually sound types and it enables good performance instead of enabling you to craft extraordinarily convoluted types for stuff that you should have never written in the first place.

Put another way, I'm fine with the TS syntax (and use TS because there aren't other choices), but the TS semantics aren't a good long-term solution.

◧◩◪◨
137. bigfis+GR1[view] [source] [discussion] 2025-12-04 21:28:05
>>zdragn+tM
Oh man what a world it would be if browsers just interpreted scheme (or something close) instead of javascript
replies(1): >>int_19+Xn2
◧◩◪◨⬒
138. johann+ZT1[view] [source] [discussion] 2025-12-04 21:41:47
>>chucka+e01
And if Java wouldn't have been such a big beast. The startup times for the runtime and memory usage were way too high for a good experience for most user's machines.
◧◩◪◨⬒⬓⬔
139. roeger+Rl2[view] [source] [discussion] 2025-12-05 00:18:37
>>mikepu+BA
Rackspace used (uses?) it.
◧◩◪◨⬒
140. int_19+Xn2[view] [source] [discussion] 2025-12-05 00:34:27
>>bigfis+GR1
The original design for <script> was supposed to be extensible, and IE of all things actually allowed any "active scripting" engine to be used, so for a brief time you had things like Perl and Tcl as scripting languages, but only on Windows.

We'll probably get there again with wasm, eventually. But it's taking a very long time.

◧◩◪◨
141. int_19+ao2[view] [source] [discussion] 2025-12-05 00:35:33
>>chpatr+gR
Its type system is also full of holes because it has to be compatible with JavaScript, being a superset.
replies(1): >>chpatr+CD3
◧◩◪◨
142. __del_+uA2[view] [source] [discussion] 2025-12-05 02:18:08
>>Goblin+oo
sometimes we make silly errors for years or decades and no one spots them. if you've been saying you hate java bloat/frameworks/whatever and meaning you hate javascript bloat/frameworks/whatever, people would probably agree with both. no one would be the wiser.
◧◩◪◨⬒⬓
143. Izkata+QA2[view] [source] [discussion] 2025-12-05 02:21:25
>>array_+5C
Yes for normal teenagers in the early 2000s or so (MySpace encouraged experimentation and there were many sites where people would upload copy/pastable javascript snippets for their sites), outside of that group I'm not so sure.
◧◩◪
144. Izkata+fB2[view] [source] [discussion] 2025-12-05 02:24:49
>>jrm4+vL
Half a memory - wasn't the Internet Explorer implementation called JScript?
◧◩◪◨⬒
145. sltkr+QD2[view] [source] [discussion] 2025-12-05 02:47:55
>>spider+3s
It’s an Albany expression.
◧◩
146. truels+BE2[view] [source] [discussion] 2025-12-05 02:55:17
>>somegu+Vo
The ectoplasm name makes me want to make a "Don't cross the fs.createWriteStream()s" joke.
◧◩◪
147. truels+LE2[view] [source] [discussion] 2025-12-05 02:56:13
>>dsnr+Lc
Java no barter
◧◩◪
148. j16sdi+hF2[view] [source] [discussion] 2025-12-05 03:02:33
>>petre+T5
Just like SSL vs TLs
◧◩◪◨
149. friend+cn3[view] [source] [discussion] 2025-12-05 09:49:51
>>chpatr+gR
> It's also better if there's one ecosystem instead of one fragmented with different languages where you have to write bindings for everything you want to use.

This argument is slightly backwards. This is essentially the argument used for "javascript in the backend" and "let's package the whole browser as application runtime so we can use javascript". The core of the argument is that javascript is ipso facto the best language/runtime to write any code in, including refactoring existing codebases. Bringing javascript out of the browser also means you have to write bindings for javascript and recreate the existing ecosystems anyway.

Even if you approach this from "single codebase across runtimes" angle, the conclusion to bridge the gap between browsers and languages with existing codebase, expertise and ecosystems is much more reasonable than rewrite everything in javascript.

replies(1): >>chpatr+oD3
◧◩
150. rangun+To3[view] [source] [discussion] 2025-12-05 10:04:02
>>somegu+Vo
How is ecma related with eczema, eczema has more syllables and it has a "z" in the middle that makes it completely different for crying out loud.
◧◩◪◨⬒
151. brabel+Xt3[view] [source] [discussion] 2025-12-05 10:48:03
>>embedd+UJ
> "Now" makes it sound like this is a recent acquisition of the JavaScript trademark. Oracle obtained it in 2009 as a result of the Sun purchase and if I remember correctly, Sun initially was issued the trademark back in the 90s sometimes.

They explained that in detail in the article. You don't need to remember correctly, you need to read the article. People who comment like you without doing the bare minimum, i.e. read what they're commenting on, should stop and think, what do you think you're contributing by doing that??

◧◩◪◨⬒
152. chpatr+oD3[view] [source] [discussion] 2025-12-05 12:02:48
>>friend+cn3
Everything is already written in JavaScript. If we had WASM from the start and dozens of languages with different APIs we wouldn't be better off.
◧◩◪◨⬒
153. chpatr+CD3[view] [source] [discussion] 2025-12-05 12:04:15
>>int_19+ao2
Sure, the type system isn't perfect but it still beats 90% of mainstream languages in use today.
◧◩◪◨⬒⬓
154. Vinnl+QZ4[view] [source] [discussion] 2025-12-05 18:39:57
>>lelant+rh1
In my mind, the alternative is running TypeScript while writing and at build time. Type checking at runtime is at best redundant, and at worst an excuse to skip type checking and have it blow up in the users' face.
replies(1): >>lelant+nK8
◧◩◪◨
155. opem+Iv5[view] [source] [discussion] 2025-12-05 21:09:46
>>Goblin+oo
You mean ab-normal, I guess
◧◩◪◨⬒⬓⬔⧯▣
156. brabel+xx5[view] [source] [discussion] 2025-12-05 21:20:08
>>nunobr+sI
We use the Spock Framework for testing. It's the best testing framework in the JVM, no joke.
◧◩◪◨⬒⬓⬔
157. lelant+nK8[view] [source] [discussion] 2025-12-07 07:04:27
>>Vinnl+QZ4
> In my mind, the alternative is running TypeScript while writing and at build time.

Right now, sure.

But if TS is supported natively in the browser, wouldn't your editor highlight the errors as you type? In which case the chance of deploying a broken TS file to the browser is minimal - you'll have to go out of your way to do so, like writing the TS file in plain notepad.

To go even further, having TS supported in the browser does not mean that you are forced to abandon your build step(s). You are still free to run a build step that either:

1. Does the full compilation to JS, and that's what gets deployed.

or

2. Just lints the file, and has the original TS file deployed.

Nothing in "Native TS in the browser" enforces a no-build-step dev process; it just makes it optional.

There's also the fact that, if JS is no longer the target (either browser-byte-code or native-code will be the target), then type-checking can be improved even further because there will be no requirement to allow things purely due to JS compatibility.

Finally, there's an awfully large number of optimisations that can be done if JS is not the target and native-code is.

I'm not seeing any downside here.

replies(1): >>Vinnl+V89
◧◩◪◨⬒⬓⬔⧯
158. Vinnl+V89[view] [source] [discussion] 2025-12-07 12:46:19
>>lelant+nK8
Yeah that's kinda the point; you get all that, unless you don't run the build-step/in-editor dev process. And the only reason to make that step optional, is to not run it, which is a worse experience.

So I'm not necessarily saying it's a bad thing, it's just that I don't see the point. And given that there's the major downside of having to go through the standards process, both now and in the future, which will likely involve breaking changes and making it harder to update, I don't see it happening. (Edit: I should add that I do think the "types as comments" proposal makes sense. I do see the advantage of being able to run TS code without a build step. It's just the part where we'd throw an error in the user's face that I don't see providing value to anyone.)

I do think TC39 is progressive enough to be OK with changes to JS if those would allow TS to have more effective type checking (as long as they're backwards compatible, of course, which would also be the case if TS got incorporated into JS), so I don't think it's necessary for that.

Performance improvements enabled by optimisations would be nice, but I believe I heard that no major gains would be expected there, especially compared to something like WASM.

[go to top]