3 ms·
JVM is a different category of VM, it's memory model and bytecode don't fit languages such as C/C++/Rust at all ( AFAIK it doesn't even have unsigned integer op
by rubber_duck 6y ago
JVM is a different category of VM, it's memory model and bytecode don't fit languages such as C/C++/Rust at all ( AFAIK it doesn't even have unsigned integer operations).
- The_rationalist 6y agoKotlin offer unsigned integers. Graalvm support c/c++ could in theory support rust too.
- alex7o 6y agoThere is a an example of rust using graalvm on their website. I have tried it and it works.
- brabel 6y ago> Kotlin offer unsigned integers. As an experimental feature... I had to use it on one of the projects I work on because using signed bytes was driving me crazy, but I had to suppress warnings for experimental features (and will have to pay the price if they change the feature somehow, as they tend to do with experimental features).
- rubber_duck 6y agoJVM is turing complete so it can run any language, the point is efficiency
- pjmlp 6y agoThey are faked via signed arithmetic, because the JVM does not support them anyway.
- pjmlp 6y agoCLR, mainframe language environments and now lost tech like some phone VM, do support C and C++ like languages.
- rubber_duck 6y agoHe was talking about JVM specifically, part of the benefit of WASM is portability, CLR is getting better in this regard with .net core but that's a recent development (I don't see how phone VMs compare) CLR also has an object model and a memory model that's not very friendly to unmanaged languages, hence C++/CLI, and the runtime is not very lightweight for embedding purposes
- pjmlp 6y agoSymbian had a CLR port actually, and then there was PocketPC/Windows CE compact framework.