DIE, Java2K, DIE

DIE is a Java2K integrated developer environment. It is character oriented, and fun to use. The following commands are somewhat supported. Note that all commands are case sensitive.

~<10-based number>

Convert 10-based number to 11-based number. A ^ sign indicates end-of-number (for trailing spaces). If the output is preceeded by a * , you know that this number is a valid name. There is no overflow checking.

/<11-based number>

Convert 11-based number to 10-based number. If the output is preceeded by a * , you know that this number is a valid name. There is no overflow checking.

!<10-based number>

Tries to convert the 10-based number to a sequence of adds and multiplys based on the number two.

#<10-based number>

Tries to convert the 10-based number to a Java2K sourcecode. Warning, the chances of the sourcecode actually working are lower the higher the number gets. Optionally, you can add the name of a filename using the following syntax:

#<10-based number>,<filename>

where filename is a valid name (i.e. a 11-based number that can be divided by 7). For example, the following command will create a simple Java2K program named 13 (DEC14) that evaluates to 30: #30,13

?

Missing online help.

filename

Run sourcecode. Note that the sourcecode name must be a valid name (i.e. a 11-based number that can be divided by 7). No filename extensions are supported.

.

Prints the current chance of an instruction to succeed, in percent. NOTE: Requires Java2K 7.3 PRE-GAMMA.

.<percentage>

Sets the current chance of an instruction to succeed, in percent. For example, .90 will set the chance to 90%, as specified in the original Java2K language spec; .99.9999 will give you a workable version of Java2k. NOTE: Requires Java2K 7.3 PRE-GAMMA.

D

Debug. Note that the debug command will always raise an access violation and stop program execution. Note that this is the only way to quit DIE once it has started. Note that you must load a program first before you can debug it. Of couse, you can only debug valid programs, so if you have never written a Java2K program before, and you have started DIE by chance, now is your time to learn Java2K.

BTW, the following instruction is used to raise an access violation in a portable way: *((int*)0) = *((int*)0);.  If you have a better idea, please contact me.