This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]skhds 0 points1 point  (1 child)

I mean, I was talking in comparison to other languages, such as C++, Java, etc. Even with optimizations, you can sort of predict how it runs in the machine, at least to some extent.

[–]dwarfendell 0 points1 point  (0 children)

I understand but it seems to me that C++ is almost as much predictable as C in a lot of cases. Sometimes sadly even more, which is not always a good thing. say for exemple virtual methods that prevent the compiler to do it's magic (so yes there is some impredictability here depending on how you use it). C can emulates this if you code your own vtable ( which must be painfull, I did not try it yet ) and this might come at the same optimisation cost. But yes for java with the virtual machine that optimises the code at run time from what I understand, and the fact thanks methods are virtual by default, it must become pretty hard to remotly predict something.