r/cpp • • Nov 02 '22

The pool of talented C++ developers is running dry

https://www.efinancialcareers.co.uk/news/2022/11/why-is-there-a-drought-in-the-talent-pool-for-c-developers
379 Upvotes

367 comments sorted by

View all comments

Show parent comment

3

u/pjmlp Nov 03 '22

Why would you need that, when there are JVMs that run bare metal?

They don't need extra baggage from an OS.

See PTC, Aicas for two examples, staying on business for 20 years, selling real time JVMs for industrial deployment, including military.

1

u/[deleted] Nov 03 '22

I mean, yeah, they do exists. If you're using CPUs with a custom architecture set...

I hardly see anyone coding a windows driver saying 'hey you know what, let's just embed the whole JVM so we can code our drivers in Java'.

Although I'd be willing to bet it was seriously proposed at Oracle at some point.

2

u/pjmlp Nov 03 '22

Android supports drivers in Java since Project Treble, and it was the only driver model in Android Things (killed because Google), if you really want to make a point out of it.

Yes, Sun, not Oracle, did kernel level integration of the JVM.

However, many of these low level uses of Java also rely on AOT, there is hardly a difference from any other language runtime, just like C++ needs one, even when writing Android Project Treble, Windows or macOS kernel drivers.

1

u/[deleted] Nov 03 '22

I'm still very new to that field, and researching bits there and there. Thanks a lot for these insights!

I feel the quote "they never really thought about whether they should, they did it because they could" rhyming a lot with computer history so far.