Live data from Hacker News

Show HN: Flight Instruments in Snap SVG and JavaScript

fl7b8.csb.app

11–20 of 38 posts

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#13
post #9

Very nice work! Unfortunately it appears Snap.svg has been sunsetted and has not been updated for a few years.

Too bad, was only a thin wrapper at best though. Maybe time for a new open source SVG library.

What’s considered the goto one now days?

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#14

Imagine the next jumbo jet using avionics rendered on Electron.

I could have done without that thought thank you.

* your plane crashes because the avionics computer OOM’s because you’re running chrome

* your plane crashes because JS decides that the pitch angle is suddenly NaN and plows the plane into the ground.

* your plane won’t take off, because there’s been yet another NPM dependency breakage because someone got annoyed and removed their single line “right pad” package, which causes the avionics to break because some dependency 400 layers down the tree used it to align an ad that displays on the command line at startup

* the plane crashes because in an emergency the pilots couldn’t find the instrumentation they were looking for, because the UI was updated for the 15th time that month and that disk has been removed “because A/B testing showed nobody clicked on it”.

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#16
Hey, they look great & realistic!

Possible issue with the Altimeter. I'm not sure if this was meant as an accurate simulation, or just a technical demonstration of what is possible with the component, but I've noticed that the Altimeter pressure setting (small window) is changing on its own as the altitude hand sweeps around.

That never happens, the altimeter setting is a fixed setting set by the pilot used to calibrate the altimeter readout to be relative to a known/shared pressure setting.

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#17
post #9

Very nice work! Unfortunately it appears Snap.svg has been sunsetted and has not been updated for a few years.

Too bad, was only a thin wrapper at best though. Maybe time for a new open source SVG library.

d3 would be the obvious choice to me. I have only taken a cursory look at your code but strikes me that it could be fairly straight forward to rewrite it using d3.

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#19

Hey, they look great & realistic! Possible issue with the Altimeter. I'm not sure if this was meant as an accurate simulation, or just a technical demonstration of what is possible with the component, but I've noticed that the Altimeter pressure setting (small window) is changing on its own as the altitude hand sweeps around. That never happens, the altimeter setting is a fixed setting set by the pilot used to calibr…

Looks like the site is demoing the altimeter reading changing as the setting is changed. Note the altitude is changing properly with respect to altimeter setting.

Re: Show HN: Flight Instruments in Snap SVG and JavaScript

#20

Imagine the next jumbo jet using avionics rendered on Electron.

I could have done without that thought thank you. * your plane crashes because the avionics computer OOM’s because you’re running chrome * your plane crashes because JS decides that the pitch angle is suddenly NaN and plows the plane into the ground. * your plane won’t take off, because there’s been yet another NPM dependency breakage because someone got annoyed and removed their single line “right pad” package, whic…

* the plane crashes because there was an undiscovered bug in an important library whose sole maintainer is currently in a penal colony.
Post reply on HN