Show HN: The Montana MiniComputer

(cs.montana.edu)

105 points | by recursivedoubts 1 day ago

9 comments

  • colingauvin 1 day ago
    I am a Bozeman resident, got my PhD from MSU and my wife works there. Really was not expecting to see something from MSU make the front page of HN, well, ever, really. This is pretty cool.
    • linuxlizard 1 day ago
      I did my MS-CS in Bozeman. I'm super excited to see MSU on HN FP as well! Very cool!
      • crabl 1 day ago
        Bozeman tech scene is popping off recently!
        • dboreham 1 day ago
          Waving from the Livingston side. There's quite a bit of cool stuff going on at MSU but you have to keep a look out for talks at MoR and on campus (typically in the winter/spring) to see it. Also the local IEEE chapter, although shamefully I think I've only made it to a couple of meetings in 25 years.
          • Go Cats!
          • This is cool! As someone who has TA'ed similar classes to this, I've noticed that students usually find classes that teach low level programming and assembly a drag. They often complain and find no interest in the material. Part of the feedback I've received on that is that 1) it's useless and 2) there is so much abstraction that it's hard to really understand what's going on if you already don't have a very strong mental model of how a computer works, which is not taught or expected in courses like these.

            I had the opportunity to play with an Altair 8800 clone and it seemed so much more intuitive there's not fifty layers of abstraction over how things like memory, I/O, etc. work, and you can inspect what's going on very easily. From looking at this project, it certainly feels similar, but much more easily accessible and programmable, while also really letting students get a feel for the organization of a computer without the abstraction. I really think this would help point (2). As for point (1), with easy graphics output, it's easy to do things like write games (like the aforementioned snake), and I think that would already make this a lot more fun than the kind of assembly and C code that the course I TA'ed wrote, such as "find the max of an array in memory using only assembly," or "implement a database to store information about courses in C."

            As a side note, it would be super cool to have things like CTFs that use the MTMC for pedagogical purposes, à la CMU's "Bomb lab"!

            I really hope that universities adopt either this or something like this for introductory computer organization and low level programming courses. I genuinely believe that it would make a big difference in students developing a passion for low level programming, and I'm really glad that this work was done.

            Side note: Java is honestly a great idea, since most students learn Java and thus the barrier of entry for contributing to this would be greatly reduced.

            • ted_dunning 1 day ago
              This is really nice work. Of course I, and probably 70% of all HN readers as well, have a bunch of nits to pick (in Java, memory too small, instruction set quibbles and so on) but this is still a very nice piece of work.

              One of the best measures of your success is the number of ideas for extension that immediately pop into my mind. Memory mapped I/O of various kinds. DMA controllers with memory mapped registers. A forth interpreter. A tinyGo port. Bigger memory. An emulator for a Raspberry Pi or Pico. A scheme interpreter and compiler. A simple memory management unit.

              • jbanes 1 day ago
                Ted! We met years ago when you visited Truven for a MapR sale. Really awesome to see you here. :)

                Many of the issues you're bringing up popped into my head when I started working with Carson on the project. But they've ended up being not a big deal. The machine is more than powerful enough to get through the lower level CS courses while being simple enough to be blindly obvious about how it all works.

                We're also cheating in a few areas like compiling graphics to a separate ROM space to keep the memory usage down.

                Carson and I have already chatted about eventually needing an MTMC-32 for Operating System Design classes. That would be the computer where Interrupts, TLBs, cache levels, pipelining, MMIO, block devices, etc, etc, etc would make sense. They'll be able tp build the Operating System themselves and figure out how to make it all work. And ideally share software with each other that they can compiler for their OS. (Like a TinyGo :))

                IMHO, this is an important step toward a suite of educational tools for the future.

              • jbanes 1 day ago
                Fun Fact: You can pass your starting patterns into the Life program. There are a bunch in /data. And you can make your own as long as they end in .cells

                My favorite is: life /data/galaxy.cells

                • rrenub 1 day ago
                  This is really cool! How can this be used to learn/refresh topics about low level programming? What do you recommend coding in this?
                  • ethan_smith 1 day ago
                    Try implementing a simple stack-based VM on it - it's a perfect stepping stone between assembly and higher-level languages while teaching you about memory management, instruction decoding, and execution flow all in one compact project.
                    • jbanes 1 day ago
                      There’s a built-in assembly editor with highlighting and intellisense autocomplete. Super easy to get started with coding assembly. AND you can run assembly directly from the command line. e.g. Type in “li t0 42” and 42 will be loaded into the t0 register.

                      Just pull up the Machine Specification for the full list of instructions and try it out!

                    • musicale 1 day ago
                      Cool. I wonder if some enterprising students (or others) might put together a physical hardware console that you could connect to a raspberry pi or fpga implementation?
                      • jbanes 1 day ago
                        We’re definitely hoping that happens at some point! One of my goals is to ensure the specs stay within the bounds of realistic hardware.
                      • sroerick 1 day ago
                        Hello sir, can we take your class on this?
                        • recursivedoubts 9 hours ago
                          i'm planning on posting some short videos introducing basic ideas of computing based on it, but to take the class you'll have to come to Montana State :)
                        • cushychicken 1 day ago
                          Fuck yeah. Very cool.

                          I got my EE degree from MSU and grew up in Bozeman. (I live in Boston now and I wonder every fucking day why I don’t live in Montana any more.)

                          This has a whiff of something Brock Lameres or Ross Snider would be involved in. Except for the Java part. Nobody at MSU did Java except the CS department lol.

                          • bsmith 1 day ago
                            "Woooo" Slaps chalk board. "Are you pumped for today's lesson?!" -Brock

                            Best classes ever.

                        • AnimalMuppet 1 day ago
                          A blinkenlights display? Sorry if this message is garbled; I need to wipe the drool off of my keyboard...

                          You pointed us to a video, but not to a URL where we can either download it or interact with it online. Are there such?