How to write device drivers in Javascript?

Leila Hamon picture Leila Hamon · Aug 22, 2012 · Viewed 7.8k times · Source

Is it possible to write hardware drivers in Javascript? What would be the steps required for such a task?

Also, I was unsure where to post this, so any suggestions regarding this are also welcome. I hope this is the accurate location for the question.

Answer

Rich Bradshaw picture Rich Bradshaw · Aug 22, 2012

No. Not really. I mean, you sort of could by writing something that compiles Javascript into C, but that would be pretty crazy. Bit like trying to use a spoon as a chainsaw.

Learn C. That is the right tool for the job.