Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Comment Re:What about unsafe code (Score 1) 461

excuse me, but have you ever written a java program?

it's possible to write 'unsafe' code in java too...

come on, think about it.
EVERY language has to allow the possibility to write native (out of the sandbox) code.

otherwise how do you want to write ANYTHING that interfaces with the underlying machine?

in java, you use JNI (java native interface).

you mark a method in your class as 'native' and implement it in C.

and yes, if you do something stupid in that C code,
THE WHOLE JAVA VIRTUAL MACHINE WILL CRASH!

in .NET you have multiple options to write native code as far as i know..

but you know what?

it's NOT important.

because when you execute .NET code, you can restrict your virtual machine to only run safe-code.

so when you try to run a .NET program that contains unsafe code, it will not start.

afaik there's something similar in the java world.

so this whole 'java is more safe because .net has _unsafe_ is complete bullshit.

Slashdot Top Deals

An adequate bootstrap is a contradiction in terms.

Working...