Jump to content

Untrusted environment: Difference between revisions

Added C section.
(Added REXX)
(Added C section.)
Line 3:
 
The intention is that the definition is to be interpreted broadly; different languages will solve this task in very different ways and with (generally) incomparable results.
 
=={{header|C}}==
C is a double edged sword. It was designed to allow programmers to do virtually anything and everything. The ability to access memory at the bit level, embed assembly directly and yet be readable ( or unreadable ) by humans, resulted in a language which forms the foundation of the world as we know it.
 
In other words, there is no check. Users and programmers can do anything they want. There is no sandbox, no off-limits area. Unless it is explicitly forbidden by the compiler or the operating system, a C program without sufficient and necessary checks will result in 'unintended and unforeseen' consequences with the 'appropriate' inputs.
 
On the bright side, programming in C disciplines the programmer, nothing like a grueling boot camp or war time conscription to make one appreciate the niceties of a Java, Perl, Python or Haskell.
 
But try writing an operating system with them...
 
With great power, comes great responsibility. :)
 
=={{header|dc}}==
503

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.