News for hackers. Stuff that matters.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by leetharris on Tuesday June 25, 2024 @12:46PM (#40790697)
This is so cool.

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.

Re:Show HN: I built a large JavaScript powered flipdisc disp... by bigstrat2003 on Tuesday June 25, 2024 @03:59PM (#40792906)
That's horrifying. Javascript doesn't belong anywhere near anything which isn't a web page, and even then it's questionable.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by phist_mcgee on Tuesday June 25, 2024 @06:41PM (#40794528)
Maybe the engineers at NASA know what they're doing?
Re:Show HN: I built a large JavaScript powered flipdisc disp... by ClassyJacket on Tuesday June 25, 2024 @09:31PM (#40795576)
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.

Re:Show HN: I built a large JavaScript powered flipdisc disp... by phist_mcgee on Tuesday June 25, 2024 @09:39PM (#40795611)
It's a very readable paper. The paper's DOI is 10.1117/12.671403, and you can read it for free on Sci Hub.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by ClassyJacket on Wednesday June 26, 2024 @12:26AM (#40796379)
Thanks. Yeah, I thought of that, but I'm at work at a place where I very much should not be having Sci Hub in my browsing log.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by tetris11 on Wednesday June 26, 2024 @04:40AM (#40797748)
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
Re:Show HN: I built a large JavaScript powered flipdisc disp... by spankalee on Tuesday June 25, 2024 @12:53PM (#40790769)
The SpaceX Dragon capsule touchscreens run an HTML/JS app built using web components (Polymer) :D
Re:Show HN: I built a large JavaScript powered flipdisc disp... by risenshinetech on Tuesday June 25, 2024 @04:21PM (#40793134)
Why do you love to see a particular language used for something?

It would be like being excited at seeing someone using aluminum to build something over steel/wood/etc.

Re:Show HN: I built a large JavaScript powered flipdisc disp... by aembleton on Tuesday June 25, 2024 @05:38PM (#40793961)
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.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by pengaru on Tuesday June 25, 2024 @06:35PM (#40794478)
tribes
Re:Show HN: I built a large JavaScript powered flipdisc disp... by sbarre on Wednesday June 26, 2024 @07:35AM (#40798769)
What a cynical take, especially here in a community that should be celebrating novel uses of technology, whether it would be your choice or not.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by verbalstoner on Wednesday June 26, 2024 @02:11PM (#40802760)
There is nothing new about using JS for UI, as that is the only place it belongs.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by bl4ckneon on Tuesday June 25, 2024 @10:33PM (#40795870)
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)
Re:Show HN: I built a large JavaScript powered flipdisc disp... by beaugunderson on Wednesday June 26, 2024 @12:21AM (#40796350)
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.
Re:Show HN: I built a large JavaScript powered flipdisc disp... by leetharris on Tuesday July 02, 2024 @05:32PM (#40860625)
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.

Re:Show HN: I built a large JavaScript powered flipdisc disp... by ClassyJacket on Tuesday June 25, 2024 @09:32PM (#40795580)
That's mind blowing, so I looked it up.

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...