Hacker News new | ask | show | jobs
by AnotherGoodName 179 days ago
The contactless chip in your credit card is a full computer that powers up via inductive charging when tapped. It then negotiates 2 way public/private key encryption to verify you. These usually run jme which requires a lot more power than the lunar lander.

Another good one is the many little computers on cars such as the TPMS sensor in each tyre valve.

1 comments

Well, they run javacard, which is a far cry from normal java or even jme.

No char, double, float or long types. No arrays with more than one dimension. New creates persistent objects in something like flash with no runtime garbage collection. No String, and in fact most of java.lang.* is missing, etc.

With all those limitations I wonder why they didn’t just use something like C…

I guess the portability of bytecode? A modern version might use WebAssembly instead which feels more suited as it’s much lower level (at least without the modern GC extensions)

It does still have object level memory safety, so it has that going for it still more than C or even a wasm based VM would.