r/programming • • Sep 29 '23

Was Javascript really made in 10 days?

https://buttondown.email/hillelwayne/archive/did-brendan-eich-really-make-javascript-in-10-days/
617 Upvotes

295 comments sorted by

View all comments

968

u/xenow Sep 29 '23

In a cave with nothing but scraps of iron.

437

u/josluivivgar Sep 29 '23

"how is typescript doing? is it done yet?"

"sorry sir, but the technology just isn't there"

"Brendan Eich WAS ABLE TO BUILD JAVASCRIP IN A CAVE... WITH A BOX OF SCRAPS"

114

u/arsenerei Sep 29 '23

Well, I'm sorry...I'm not Brendan Eich.

29

u/guest271314 Sep 29 '23

I don't think any programming language is done.

TypeScript developers asked maintainers to update the specification. The maintainers havn't done that yet.

51

u/josluivivgar Sep 29 '23

it's just an iron man reference/joke 🤣

→ More replies (2)

97

u/LmBkUYDA Sep 29 '23

My father-in-law is a developer. He is insanely gifted. We were looking at the javascript language together years ago and I asked him what it would cost to create it today. I will never forget his answer… 'We can’t, we don’t know how to do it.'"

56

u/sedatesnail Sep 29 '23

It would cost us ... everything.

18

u/SilasX Sep 29 '23

This guy snaps.

0

u/[deleted] Sep 29 '23

[deleted]

59

u/LmBkUYDA Sep 29 '23

No you don't understand. Javascript is like the Sistine Chapel. The expertise to craft such a language does not exist today.

0

u/[deleted] Sep 29 '23

[deleted]

→ More replies (2)

-26

u/PJ7 Sep 29 '23

I take it you're not a programmer. ^ ^

→ More replies (6)
→ More replies (2)
→ More replies (1)

26

u/SanityInAnarchy Sep 29 '23

We definitely could build the language. There are college courses that teach you how, and the initial interpreter was missing a ton of what we have now. (I mean, it was actually an interpreter, not a JIT-compiler.) And like the article says, the 10-day version didn't really have much of an API, so... yeah, literally anyone who has a CS degree should be able to build a toy language in a couple weeks.

What we couldn't do is the rest of it: Put it in all major browsers with a good API, and then use it to entirely change the way everyone builds and distributes client apps, to the point where even "native" desktop apps are Electron these days.

2

u/squishles Oct 01 '23

I mean you could no one's really stopping you from forking firefox and stuffing a lua script tag in that exposes a document/window api, really any object oriented language could be stuffed in that spot.

2

u/SanityInAnarchy Oct 01 '23

Technically no, nothing's stopping me from writing a whole browser from scratch, and IIRC the SerenityOS project is doing that.

Practically, it's a bit harder than that -- browsers are much bigger, and so are the APIs. There's a reason WASM doesn't even have access to the DOM, let alone WebGL or any of the other JS APIs over the years. (You can kinda bind WASM to those APIs... through a JS shim.)

Adoption is a real problem, too -- there have already been browser forks that included other lanugages (e.g. Dartium supported Dart as well as JS), but it's hard to imagine most users picking one up just because the scripting language is different. And why would you ever build a web app that only works in one obscure browser, when you could suck it up and use JS (or WASM or anything that transpiles to these) and your app works in all browsers?

JS had a much easier time: A site that used JS could do things that weren't possible with no scripting at all, and would be noticeably worse for the end-user if they needed a plugin like Java or Flash. If those only worked in Netscape, people might actually choose Netscape over IE for that reason. And despite Microsoft actually getting an antitrust lawsuit over bundling IE and Windows, you could just ignore IE and install Netscape -- these days, anything that isn't supported by Mobile Safari is completely unusable on iPhones, so even if people wanted to switch browsers for you, a lot of them actually can't.

0

u/Eirenarch Sep 30 '23

What we couldn't do is the rest of it: Put it in all major browsers with a good API, and then use it to entirely change the way everyone builds and distributes client apps, to the point where even "native" desktop apps are Electron these days.

You mean we couldn't shit all over the world of computing with our crap language that we built in 10 days? Maybe we've built mechanisms to prevent such a tragedy in the future

5

u/IrritableGourmet Sep 30 '23

There's a really interesting book called The Big Roads about the history and development of the interstate highway system in America (highly recommended read). There's a little anecdote right at the end about one of the primary engineers that worked on it who had been referenced throughout the book.

Much later in life, he had read about a project to move an entire lighthouse intact to protect it from coastal erosion and wanted to see it, but it was across the country and he couldn't fly for health reasons. His son agreed to drive with him, so they loaded up the car and went on a multi-day trip.

They arrive at the site while the workers were in the process of lifting the entire thing, the elderly engineer walks up to the fence, stares intently for a few minutes, then goes "I figured that's how they would do it. Well, let's go home."

1

u/Alone_Ad_7251 Dec 02 '24

seems like he wasn't as gifted afterall. javascript is a absolutely trash, many better languages have been created.

→ More replies (4)

13

u/Christostravitch Sep 29 '23

The prophecy foretold that the divine language would be created in ten days and ten nights, and a new framework to be created every ten days thereafter. And so it was.

1

u/TopLobsta Oct 18 '25

Brilliant, love it!

The End Of The Bloat Is Nigh!

https://github.com/starfederation/datastar

Goodbye neutron star node_modules, vite, nextjs, react and all that other crap.

→ More replies (9)