Not including esoteric languages like brainfuck etc.
I’ll start with RTL/2, a realtime language with an emphasis on (a) re-entrancy and (b) ugliness. The only example code I can find is this, from the Wikipedia page. Still, it was enough to bring back traumatic memories.
The
RTL/2 (or, at least the version that was inflicted on me) came with an unpleasant runtime environment that ran on a DOS PC, and you had to use a fearsomely unfriendly editor to write it. Needless to say, it gained little traction outside of the UK chemical industry and is totally dead now. I was taught it as part of a realtime module at university, some 30-odd years ago.
I’ll start with RTL/2, a realtime language with an emphasis on (a) re-entrancy and (b) ugliness. The only example code I can find is this, from the Wikipedia page. Still, it was enough to bring back traumatic memories.
Code:
TITLE Hello World;
LET NL=10;
EXT PROC(REF ARRAY BYTE) TWRT;
ENT PROC RRJOB() INT;
TWRT("Hello World#NL#");
RETURN(1);
ENDPROC;
The
EXT PROC
declaration is to pull in the TWRT
function from the standard library so we can output something. RRJOB()
is the equivalent of main()
.RTL/2 (or, at least the version that was inflicted on me) came with an unpleasant runtime environment that ran on a DOS PC, and you had to use a fearsomely unfriendly editor to write it. Needless to say, it gained little traction outside of the UK chemical industry and is totally dead now. I was taught it as part of a realtime module at university, some 30-odd years ago.