|
|
|
|
|
by PaulHoule
1559 days ago
|
|
Well, many people don’t want to pay the factor of 2 performance cost of a managed language like Java and strcpy in C is Turing complete and most code has to portable to at least x86 and ARM (often both 32 and 64 bits) so assembly is out… |
|
It can be a lot worse too. Java lacks the ability to have really compact data structures and can not lean in too much into the hardware acceleration without becoming incompatible. You can't exactly set `--fast-math`. Shame GCJ got dropped.
> strcpy in C is Turing complete
Not something I've heard of - is this an abuse of Unicode?
> most code has to portable to at least x86 and ARM (often both 32 and 64 bits) so assembly is out…
(I've not looked into this deeply) - It should in theory be possible to offer translation from one architecture to another, but I guess it is much more effort than it is worth.
Seems like if you could translate your assembly into LLVM equivalent assembly (or just use it directly), you could then build for the target architecture [1].
[1] https://stackoverflow.com/questions/7773194/is-it-possible-t...