H
howard schwartz
I understood the original rationale for a `platform independent' Java language:
Once converted to bit code, standards were to be so uniform that, any java
virtual machine, on any OS would execute any Java program in identical
fashion. In essence a JVM would act like a shell interpreter. It occurred to
me that most modern program languages could be platform independent in
this sense, if every compiler and all libraries were rigorously standardized.
Every compile on every OS would produce an executable with identical
functionality.
But then came the internet. What, in heaven's name was the need to create
a script language (javascript) the could be embedded in a web page, or
a programming languages, interpreted by a local JVM on a local PC?
That is, why create mechanisms for Web pages to execute code right on
any user's PC, that could do anything an author wanted, e.g., delete files,
corrupt your boot sector, steal all kinds of information, add their website to
your f avorites, etc. etc. ?? The security problems are clearly horrendous.
What benefits outweigh the risks?
I have no problems with cgi scrpits (e.g., in Perl) that execute on the Web
server that, at worst can only send or request data from a PC.
Once converted to bit code, standards were to be so uniform that, any java
virtual machine, on any OS would execute any Java program in identical
fashion. In essence a JVM would act like a shell interpreter. It occurred to
me that most modern program languages could be platform independent in
this sense, if every compiler and all libraries were rigorously standardized.
Every compile on every OS would produce an executable with identical
functionality.
But then came the internet. What, in heaven's name was the need to create
a script language (javascript) the could be embedded in a web page, or
a programming languages, interpreted by a local JVM on a local PC?
That is, why create mechanisms for Web pages to execute code right on
any user's PC, that could do anything an author wanted, e.g., delete files,
corrupt your boot sector, steal all kinds of information, add their website to
your f avorites, etc. etc. ?? The security problems are clearly horrendous.
What benefits outweigh the risks?
I have no problems with cgi scrpits (e.g., in Perl) that execute on the Web
server that, at worst can only send or request data from a PC.