Whitesmiths Idris for Atari ST now with TCP/IP and Games!

(This is a guest post by Antoni Sawicki aka Tenox)

Last December I wrote about Whitesmiths Idris for the Atari ST running on Hatari. At the end I said that with a working system and a C compiler we should be able to port some cool apps. Well, we did! First came aclock. Now Idris also has TCP/IP, a bunch of games and even a web browser!

TCP/IP! Idris now talks TCP/IP over the ST’s serial port, using SLIP. You can telnet out, ping and look up names. You can also telnet in: telnet localhost 2323 gives you another Idris login. On your computer a small bridge connects the serial port to libslirp, user-mode NAT like in QEMU, so no admin rights are needed. It is slow, about 0.7 KB a second, but it works! Fun fact: RFC 1055, which describes SLIP, is dated June 1988. This Idris kernel says May 1988!

Games! We made five games for X10R4: xmerge (like 2048), xpop (a bubble breaker), xsnake, xdrop (falling blocks) and xsoko (sokoban with the 24 levels of ttysokoban). They are all written in C and built on Idris itself, with the Whitesmiths compiler. All black and white, of course! My ttysokoban runs on the console too.

Web browser! Archaic is a tiny web browser for X10. It shows pages rendered by my WRP (Web Rendering Proxy), which runs on your computer and does all the HTTPS, JavaScript and CSS. Start wrp, then type archaic in an xterm. Yes, you can browse Wikipedia from a 1988 Unix clone on an 8 MHz 68000!

Behold! Whitesmiths Idris 3.14 with X10R4 on an emulated Atari Mega ST:

X10R4 on Whitesmiths Idris on an emulated Atari Mega ST: two xterms and xclock, ls /usr/X/bin listing the X programs and games, and uname -a showing idris atari 3.15 a 68k
X10R4 on Idris, with the games in /usr/X/bin

Atari Mega ST, 68000 at 8 MHz, 4 MB RAM, TOS 1.02, 640x400 mono, 80 MB ACSI hard disk, Hatari 2.6.1-devel

Let’s look at some cool apps!

Idris console: host and ping virtuallyfun.com over SLIP, who showing a telnet login on ttyp1, and netstat showing a TCP connection from 10.0.2.2
Pinging virtuallyfun.com from 1988
Idris X10R4 on an emulated Atari ST: two xterms, one with telnet to telehack.com showing its command list, the other with telnet to nethack.alt.org watching a NetHack game on dungeon level 1
Telnet in X10: telehack.com and nethack.alt.org, watching a NetHack game
Idris X10R4 on an emulated Atari ST: the Archaic web browser with picture buttons, showing Wikipedia's article on Idris through WRP, under two xterms with uname -a and xclock
Idris reading about itself on Wikipedia, in Archaic
xmerge, a 2048 style game, in X10R4 on Idris with score 164, next to an xterm showing uname -a
xmerge
xpop, a bubble breaker style game, in X10R4 on Idris with score 72, next to an xterm showing uname -a
xpop
xsnake in X10R4 on Idris with score 30, next to an xterm showing uname -a
xsnake
Animation: xdrop, a falling blocks game, being played in X10R4 on Idris
xdrop
xsoko, a sokoban game, at level 24 of 24 in X10R4 on Idris, next to an xterm showing uname -a
xsoko
ttysokoban on the Idris console, level 24 of 24 with 4 boxes
ttysokoban on the console
An xterm on Idris: a hello world typed in with cat, compiled with the Whitesmiths C compiler, and run
Whitesmiths C: Hello World compiles in about 35 seconds!

There is more under the hood: MicroEMACS, the Idris editor e, kermit, cu and compress. The network and game sources are on the disk too, in /src/net and /src/games. The Hatari in the kit has 3 fixes for the serial port. Without them there would be no network.

Thanks to Thorsten Otto for the disk image, Christian Zietz for the Idris loader, 9nut for the floppy images, and the Hatari team!

As usual I have prepared a ready to run, portable image with Hatari binaries for Linux, macOS and Windows. Just unpack and run run.sh (or run.cmd on Windows). run.sh answers the boot questions by itself. With run.cmd type 1, then xidris.314, then press Ctrl-D. Log in as root, there is no password. To start X type /usr/X/bin/xstart.

Download: https://files.42718.net/mirror/tenox/os/idris/virt/atarist-idris314-hatari.tar.lz

Game sources: https://files.42718.net/mirror/tenox/os/idris/src/atarist-idris-games-src.tar.lz

Source (my Hatari fork): https://github.com/tenox7/hatari branch rs232-txempty

Have Fun with Virtualization!

Leave a Reply