News for hackers. Stuff that matters.
Re:The James Webb Space Telescope Runs JavaScript, Apparently by cstross on Friday August 19, 2022 @10:29AM (#32521401)
I got to visit the control centre while it was under construction back in 2016 (I think: I was one of the guests at an SF convention, hence the special group tour). One factoid that stuck with me was they also considered micro-Python, but Javascript won because it supported floats. They were looking for an embeddable scripting language that astronomers could reasonably be expected to learn or already use for directing observations, so it had to be compact, very popular or ubiquitous, expected to remain so throughout the working life of the telescope, and easy to learn. (It was to be used not by CS grads but by astronomers.)

It's a cut-down subset of the language and bolted down to prevent idiots installing random packages off the internet on an irreplaceable $10Bn instrument.

Re:The James Webb Space Telescope Runs JavaScript, Apparently by nameistaken on Friday August 19, 2022 @06:23PM (#32526728)
> It's a cut-down subset of the language and bolted down to prevent idiots installing random packages off the internet on an irreplaceable $10Bn instrument.

Webb-pack? Amirite?! Heyoh!

Re:The James Webb Space Telescope Runs JavaScript, Apparently by nine_k on Friday August 19, 2022 @04:07PM (#32525431)
It seems that the choice of what would work reasonably on the hardware while being orbit-programmable and not esotheric boils down to JS, Lua, Scheme, and Forth. The latter two have a steeper learning curve. Between JS and Lua, the former has more implementations, and by far more widely known.
Re:The James Webb Space Telescope Runs JavaScript, Apparently by Evidlo on Friday August 19, 2022 @11:20AM (#32522090)
As far as I'm aware, JS was chosen long before Micropython or node existed.
Re:The James Webb Space Telescope Runs JavaScript, Apparently by skybrian on Friday August 19, 2022 @11:36AM (#32522327)
Is there a document describing the language subset they picked?
Re:The James Webb Space Telescope Runs JavaScript, Apparently by cxr on Friday August 19, 2022 @12:06PM (#32522755)
Re:The James Webb Space Telescope Runs JavaScript, Apparently by skybrian on Friday August 19, 2022 @06:42PM (#32526918)
Thanks! Those are good links.

Unfortunately the manual is rather vague; it’s not clear what the ScriptEase language extensions to JavaScript are, versus adding more objects and methods, which I wouldn’t consider to be changing the language.

I am not sure what they are talking about with this page about lifetimes: <https://brent-noorda.com/nombas/us/devspace/manual/c/html/TH...>

Re:The James Webb Space Telescope Runs JavaScript, Apparently by cstross on Friday August 19, 2022 @11:43AM (#32522428)
Not sure (but probably yes): I seem to recall ECMAScript was mentioned, not sure what version number.
Re:The James Webb Space Telescope Runs JavaScript, Apparently by sentientslug on Friday August 19, 2022 @12:12PM (#32522845)
Yes, in the article it says "Nombas ScriptEase 5.00e"