I love to see Javascript used for stuff like this. It blew my mind that the James Webb Telescope uses a custom Javascript runtime for a lot of the onboard functions.
As a JavaScript hater, I admit they surely they do, but I'm still curious as to why it was the best choice. If it's a custom runtime, existing runtimes being reliable\secure\well understood by existing engineers isn't relevant. And it's not like they're adding in lots of external libraries either.
I found this comment:
https://news.ycombinator.com/item?id=19739454 " The language itself wasn’t so important as having adequate performance, robustness, memory use, reproducibility and extreme QC" but I still don't understand. Interesting they went with a language that doesn't even have integers. At least the comments on this reddit thread have some hilarious jokes: https://old.reddit.com/r/javascript/comments/wrtny3/the_jame... Looks like they released a paper, the abstract of which, indicates it's not a fully custom runtime, which would make more sense: https://ui.adsabs.harvard.edu/abs/2006SPIE.6274E..0AB/abstra... Unfortunately they want money to read the rest of it and I'm curious but not that curious, and I probably wouldn't understand it anyway.
no one's doubting it, but they still want to know the reason because it goes contrary to the expectations of most developers here, even the JavaScript fans
Not the parent, but I like seeing particular languages used for something like this because it may be a langauge that I am familiar with along with all of its libraries and tooling. This makes a project like this that interacts with hardware easier to acheive.
It's also intresting to see a language used in a way it's not intended to necessarily our for a creative/unique use. Why do people like to port doom to random devices, because it was never indended to run on those (and it's a challenge/meme at this point)
to speak to your example: my girlfriend's dad was a welder on aluminum boats. he is always excited to see aluminum boats, find out who built them, etc.
Sorry, late reply, but I think it's still worth answering.
I think Javascript is a really fun language. I've done a lot of embedded C and it can be... exhausting? I would love to try Javascript on an embedded system, IoT device, etc. I'll bet a lot of the most annoying stuff can be abstracted away pretty easily on modern hardware.
I think this could be useful as a NOC monitor. Mostly the display is static but if something goes wrong the display updates and the noise naturally draws your attention. No “alarm” necessary.
Nice. I also have a fondness for flip-dots. Started with Javascript controller for Hanover bus display (https://engineer.john-whittington.co.uk/2017/11/adventures-f...) and continued with the Alfa-Zeta modules following a commission to make the controller for a 256x56 one - 24 panels!
For that I used a Python module (https://github.com/tuna-f1sh/flipdot) and Python Flask/React based manager, with sequence info in a SQLlite db. Same outcome as your App with pre-loaded transitions and of course, Game of Life: https://engineer.john-whittington.co.uk/2020/04/game-of-life... It's my project TODO list to make a FPGA based direct HDMI controller for the Alfa-Zeta modules since refresh rate of the on-board firmware leaves a little to be desired.
Comments (121) 40 threads
Earlier commentsI love to see Javascript used for stuff like this. It blew my mind that the James Webb Telescope uses a custom Javascript runtime for a lot of the onboard functions.
I found this comment: https://news.ycombinator.com/item?id=19739454
" The language itself wasn’t so important as having adequate performance, robustness, memory use, reproducibility and extreme QC"
but I still don't understand. Interesting they went with a language that doesn't even have integers.
At least the comments on this reddit thread have some hilarious jokes:
https://old.reddit.com/r/javascript/comments/wrtny3/the_jame...
Looks like they released a paper, the abstract of which, indicates it's not a fully custom runtime, which would make more sense:
https://ui.adsabs.harvard.edu/abs/2006SPIE.6274E..0AB/abstra...
Unfortunately they want money to read the rest of it and I'm curious but not that curious, and I probably wouldn't understand it anyway.
Continue this thread — 2 replies
It would be like being excited at seeing someone using aluminum to build something over steel/wood/etc.
Continue this thread — 1 reply
I think Javascript is a really fun language. I've done a lot of embedded C and it can be... exhausting? I would love to try Javascript on an embedded system, IoT device, etc. I'll bet a lot of the most annoying stuff can be abstracted away pretty easily on modern hardware.
https://news.ycombinator.com/item?id=19739454
Still not sure why they chose JavaScript.
According to their paper it's a commercial JavaScript engine however:
https://ui.adsabs.harvard.edu/abs/2006SPIE.6274E..0AB/abstra...
For the unawares, the original video: https://www.youtube.com/watch?v=FtutLA63Cp8
My favorite version, also using real-life objects: https://www.youtube.com/watch?v=lT-fdnIK0k0 (HN discussion: https://news.ycombinator.com/item?id=39527559)
For that I used a Python module (https://github.com/tuna-f1sh/flipdot) and Python Flask/React based manager, with sequence info in a SQLlite db. Same outcome as your App with pre-loaded transitions and of course, Game of Life: https://engineer.john-whittington.co.uk/2020/04/game-of-life...
It's my project TODO list to make a FPGA based direct HDMI controller for the Alfa-Zeta modules since refresh rate of the on-board firmware leaves a little to be desired.
All comments shown.
Couldn't load more comments. Check your connection and try again.