Skip to main content

api for dangerous things

5 replies [Last post]
Joined: 2003-06-19

Everyone knows that programming for nuclear or medical facilities is hard, so I think we should move trust out of the programmers' arena and into Sun's: let's add javax.nucular.* and javax.medical.* so we can trust our apps to manage real energy and health systems.

I guess might work too...

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-17

In many Smalltalk VMs (at least old ones without much safety belts), you can actually execute code like this:

true becomes: false

... and watch the VM freeze or crash, because it really does what you asked; 'becomes:' is a super-power-hacker's method that performs object mutation, and in this case it scans the entire VM and replaces all true values by false values.

Joined: 2004-10-11

How about javax.politics.*? Politics is dangerous and it sure could use some trustworthiness... :-)

Joined: 2004-03-18

Heres a start
package javax.politics;
class Boolean {
public static final boolean TRUE = false;
public static final boolean FALSE = true;
public static final Boolean.MAX_VALUE = PROBABLY;
public static final Boolean.MIN_VALUE = UNLIKELY;
public static boolean truth(Context c) { ... }
public static abstract final Justice justice();

Joined: 2003-08-12

You should probably make an abstract base class which has a default implementation that always return false for truth(..). This is the default after all... :)

Joined: 2004-10-11

But you're really funny guy :-)