4 ms·
Of course, eliminating buffer overflows is orthogonal to using a virtual machine.
by eru 11mo ago
Of course, eliminating buffer overflows is orthogonal to using a virtual machine.
- writebetterc 11mo agoNo, it's not? Using a VM is one way of preventing buffer overflows, it's not orthogonal.
- eru 11mo agoYou can prevent buffer overflows even when you don't use a VM. Eg it's perfectly legal for your C compiler to insert checks. But there are also languages like Rust or Haskell that demand an absence of buffer overflows. You can design a VM that still allows for buffer overflows. Eg you can compile C via the low-level-virtual-machine, and still get buffer overflows. Any combination of VM (Yes/No) and buffer-overflows (Yes/No) is possible. I agree that using a VM is one possible way to prevent buffer overflows.
- bhaak 11mo agoYou also got a language easier to use and learn than C/C++. With universities almost immediately jumping to Java as an introductory language you got way more potential employees.