That's already happening with j2cl
https://github.com/google/j2cl
Java everywhere.
Also j2objc
https://github.com/google/j2objc
Write the logic in java and get it on iOS, web and android.
https://github.com/google/j2cl
Java everywhere.
Also j2objc
https://github.com/google/j2objc
Write the logic in java and get it on iOS, web and android.
Is this a case of worse-is-better? I think so.
A huge value prop for early (pre-1.5) Java was sandboxing, but it ended up being clunky, frustrating, and too slow for the browsers / dial-up modems of the era and lost its chance to be the sandbox of choice - leaving the door open for Javascript to win as the world's most widely deployed sandbox.