Live data from Hacker News

The Mouse Programming Language

techtinkering.com

11–15 of 15 posts

Re: The Mouse Programming Language

#11
It seems like forth, with a lot of chopping to get the size down, and greatly simplify parsing.

However... it doesn't have stack manipulation, a dictionary, or the ability to handle strings in any fashion.

It's a cute little language, you can solve a lot of problems with it, but it's not the Forth you're looking for. ;-)

Re: The Mouse Programming Language

#12
post #3

don't see why you would you would use this over FORTH, which is IMHO much more readable and widely available on CP/M - or you can easily write your own.

IIRC they were roughly contemporaneous (forth was around longer, but mostly as something Chuck played with and most people didn't learn about until much later). In those days you couldn't just google for alternatives or hop on something like HN to see what other people were working on. So you wound up with all sorts of local variants on the same idea, and it was only years later (if ever) that people learned that they were working on similar ideas, unless 1) somebody published, 2) hallway chatter at a conference, 3) somebody knew somebody who knew somebody and you found out serendipitously. Very different vibe.

Re: The Mouse Programming Language

#13
Nice! Takes me down memory lane when my very first computer was a "Digital Group" Z-80 system I built from a kit with 10K of RAM! (8K memory board + 2K on the CPU board). Mouse was a faster and more compact than Tiny BASIC. It was also slightly less brain bending than Forth :-). I'll have to put it on my emulated IMSAI 8080.

It is fun to note the number of models of small languages that emerged from the early days of computing which would all fit in the L1 cache of a current processor. But they could also be used as an interesting way of doing GPU/APU macros. When I worked at Intel I implemented a simple interpreter like this to drive the compute element of the 82786 graphics chip that Intel had produced. As that 'engine' didn't have much stack support my interpreter was more like Mouse than Forth. It let me write simple exerciser tests for the chip like "fill a window region with a pattern" or "do cookie cutter blits between two regions."

I also find it fun when students learn a language like this and suddenly internalize the difference between "programming" and "computation". We joke you can write Fortran in any language but that joke is funny for me because it expressed the difference between someone who was programming by 'pattern matching' and people who were programming by 'expressing computation through language elements.' (yeah it sounds kind of snooty but it isn't, it is the difference between algorithms which can be expressed in any language vs using the statements of known programming language to similarly express that algorihm in a different language). The more ways you learn to express something I feel like the better you understand what is part of the algorithm vs what is part of the language syntax.

Re: The Mouse Programming Language

#14
post #5

Honestly, a port to a modern architecture, with more standard looking characters (like using # for comments instead of ~ and \n for newline instead of ! ) would be pretty interesting... It's amazing what that people used to be able to do with such limitations. 2k! I can barely make a CRUD app fit in 2G

Both the 1979 and 1983, C and Pascal versions, compile fine and work as expected using last versions of respectively TCC and Lazarus on windows 10.

http://mouse.davidgsimpson.com/mouse83/mouse83_c.txt http://mouse.davidgsimpson.com/mouse83/mouse83_pas.txt

http://mouse.davidgsimpson.com/mouse79/mouse79_c.txt http://mouse.davidgsimpson.com/mouse79/mouse79_pas.txt

Re: The Mouse Programming Language

#15

It seems like forth, with a lot of chopping to get the size down, and greatly simplify parsing. However... it doesn't have stack manipulation, a dictionary, or the ability to handle strings in any fashion. It's a cute little language, you can solve a lot of problems with it, but it's not the Forth you're looking for. ;-)

You’re right, it definitely doesn’t smell quite right. But it’s definitely related and very cute. I love seeing these kinds of minimalist ideas experimented in novel (to me) ways.
Post reply on HN