Hello World, H2D2 style

Now that my experimental programming language, H2D2, includes the all important server part, I thought that I'd better record an example of the traditional 'Hello World' program:

Although these programs are very trivial, it shows that I can now do H2D2 programming from my browser. It's the server part which compiles the source into bytecode and then executes the program in timeslices. So the actual code is running inside the server and we're just seeing the output in the browser (alongside the source code of course). Since I recorded this in a coffee shop before work this morning, the H2D2 server was running locally inside Xcode on my Mac, for convenience. But I would be able to do the same thing even if the server was running elsewhere, like on my TP-Link router.

Considering that the whole H2D2 language is written in C, I think that's pretty good going. It seems reasonably fast and I don't even think I have the compiler optimisations turned on. Obviously there is a little bit of JavaScript doing the HTTP posts between the browser and the server. But I really do need to write some better code examples, which should be things that don't involve the Mandelbrot set for a change...

UPDATE: one of the "better code examples" I mention above can now be seen here.

PDP-11/53: Hello World

So, I managed to find a proper "Hello World" program for my PDP-11 on the internet. It can be typed into ODT without too much effort. This is what happened when I typed it into my machine:

1000/XXXXXX 042510
1002/XXXXXX 046114
1004/XXXXXX 020117
1006/XXXXXX 047527
1010/XXXXXX 046122
1012/XXXXXX 020504
1014/XXXXXX 005015
1016/XXXXXX 000000
1020/XXXXXX 012701
1022/XXXXXX 001000
1024/XXXXXX 112100
1026/XXXXXX 001406
1030/XXXXXX 105737
1032/XXXXXX 177564
1034/XXXXXX 100375
1036/XXXXXX 110037
1040/XXXXXX 177566
1042/XXXXXX 000770
1044/XXXXXX 000000
@RS/XXXXXX 340
@1020GHELLO WORLD!

001046
@

As you can see, I'm using this to disable interrupts and start it:

RS/340<cr>
1020G

It's a useful little test. I now know that my machine is capable of running programs, which is good.

So my next step is to try an RT11 boot disk so that I can attempt to run an operating system.  The ultimate goal is to run Unix rather than RT11, but you've got to start somewhere...