3 ms·
> 2 performance cost of a managed language like Java It can be a lot worse too. Java lacks the ability to have really compact data structures and can not lean
by bArray 5y ago
> 2 performance cost of a managed language like Java
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-to-use-llvm-assembly-directly/7773347 https://stackoverflow.com/questions/7773194/is-it-possible-t...
- Jalad 5y ago> strcpy in C is Turing complete Maybe GP meant printf [0]? [0] https://www.ioccc.org/2020/carlini/index.html https://www.ioccc.org/2020/carlini/index.html
- chombier 5y ago> strcpy in C is Turing complete I was curious too, but my google-fu did not succeed. The closest I found is about printf being Turing-complete [1], which is also new to me. [1] https://www.ioccc.org/2020/carlini/index.html https://www.ioccc.org/2020/carlini/index.html
- PaulHoule 5y agoIt’s not the strcpy that’s Turing complete, it’s the return afterwards… this is not true about PASCAL and many other programming languages.