foone , Englisch
@foone@digipres.club avatar

There's an alternate universe where Netscape Navigator embedded Lua instead of inventing js, and I'm not sure if that's a better world or not.

yujiri ,
@yujiri@freeradical.zone avatar

@foone my guess is it's slightly better

suetanvil ,
@suetanvil@freeradical.zone avatar

@foone

Having spent far too much of my life overthinking this, I will now share:

  1. Lua hadn't really made it to North America by 1995; the go-to extension language at the time was Tcl or a Lisp dialect. (Perl was an option but not really suited to embedding, and Python was this new thing nobody used.)

  2. Java was THE HYPE in 1994; JS has its syntax because management wanted that similarity.

So the obvious design for JS is OOP Lisp with C syntax. And that's what we got, only bad.

stib ,
@stib@aus.social avatar

@foone Yeah, but what if python?

enkiv2 ,
@enkiv2@eldritch.cafe avatar

@foone

Honestly, being embedded in web browsers might have basically ruined scheme too.

me ,
@me@m.nevkontakte.com avatar

@foone having used both, they are remarkably similar from the 10000ft altitude. So, I think that universe would be mostly indistinguishable from the one we live in.

crmsnbleyd ,
@crmsnbleyd@emacs.ch avatar

@foone will write a post abt this if that's okay. One day, maybe a thriller novel as wrll

larsmb ,
@larsmb@mastodon.online avatar

@foone Client-side PHP.

amberage ,
@amberage@eldritch.cafe avatar

@foone ok google is lua statically typed? no? no better then

thejpster ,
@thejpster@hachyderm.io avatar

@foone there’s another universe where VBScript was the winner

foone OP ,
@foone@digipres.club avatar

@thejpster that's definitely a worse world

darkling ,
@darkling@mstdn.social avatar

@foone And the much closer one where they invented JS, but used scheme and S-expressions instead of C-style syntax.

Farbs ,
@Farbs@mastodon.social avatar

@foone I'm probably wrong, but I like to think that if they started by embedding Lua they would have just stopped there, instead of doing whatever JS is now.

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine