News for hackers. Stuff that matters.
Re:Brendan Eich on the Lex Fridman Podcast [video] by skissane on Sunday February 14, 2021 @06:37PM (#26137369)
It would be an interesting parallel universe to visit, where the Web runs on VBScript instead of JS. Would we have had node.vb?

VBScript, the syntax is aesthetically less pleasing, but there is no reason why it couldn't do anything that JavaScript can do, if more verbosely. (Of course, the semantics are inferior as well, but if VBScript had taken off, its semantics would likely have been improved at some point.)

Re:Brendan Eich on the Lex Fridman Podcast [video] by AzzieElbab on Sunday February 14, 2021 @08:26PM (#26138024)
I count myself lucky because I don’t really know vbscript. Does legacy vb have a notion of first order functions and async?
Re:Brendan Eich on the Lex Fridman Podcast [video] by skissane on Sunday February 14, 2021 @08:39PM (#26138103)
No it doesn't. But there is every reason to expect those features would have been added at some point if VBScript had been more popular.

Indeed, if we look at VBScript's cousin, VB.NET, we find both first order functions and async functions, at least in its newer versions.

(Keep in mind that those features weren't present in older versions of JavaScript either. Async functions were only added in ECMAScript 2016. First order functions have been there from the start, but ECMAScript 2015 greatly improved the syntax for anonymous functions with its introduction of arrow syntax.)

Re:Brendan Eich on the Lex Fridman Podcast [video] by BrendanEich on Sunday February 14, 2021 @09:17PM (#26138318)
In the multiverse of madness, you are welcome to the universe where we had jquery.vbs ;-).
Re:Brendan Eich on the Lex Fridman Podcast [video] by the_only_law on Sunday February 14, 2021 @09:18PM (#26138320)
> to the universe where we had jquery.vbs ;-)

I'm genuinely terrified.

Re:Brendan Eich on the Lex Fridman Podcast [video] by AzzieElbab on Monday February 15, 2021 @10:55AM (#26143861)
by async I did not mean syntax sugar. More like way to do async via continuations/callbacks
Re:Brendan Eich on the Lex Fridman Podcast [video] by skissane on Monday February 15, 2021 @02:47PM (#26146420)
If all you mean by "async" is callbacks, then VBScript already has those.

In VBScript that runs under Windows Script Host, callbacks are implemented using the WScript.ConnectObject method.

(I'm not sure about VBScript running under IE or classic ASP, if they could use the same method or had to use a different one. But anyway, if VBScript can do it in one context but not another, that would be a deficiency they could have easily fixed if there were a demand.)