IBM MVS 3.8j Community Edition (52-year old OS)

42 points by emersonrsantos 14 hours ago on hackernews | 19 comments

rbanffy | 13 hours ago

This is really solid work. A lot of z/OS concepts were already present in MVS, and this is one of the few OSs you can run on a mainframe without an IBM license.

pjmlp | 8 hours ago

Yeah, all mainframe and micro OSes are full of cool technologies, many still to be widely adopted, and thanks to AI overlords probably never will.

usr1106 | 8 hours ago

So what fun stuff could you do with this?

I was a trainee in IBM labs in 1987 and I remember my colleagues not being that proud of MVS. Called it pretty old stuff. VM/CVS was considered more interesting for hackers. And I don't think anybody would like to trade that in for Linux today.

Talking about developing something, not running banking batch jobs.

xxpor | 7 hours ago

>And I don't think anybody would like to trade that in for Linux today.

Disagree. They're a bit orthogonal, but I'd argue that IBM was _way_ ahead of their time with VM. It took 20+ years for x86 to catch up, and now the vast majority of x86 cpu cycles run VMs! The model eventually won with the cloud.

If x86 had been designed from the ground up to support VMs, it'd likely end up looking more like PowerVM, with the hypervisor baked directly into the firmware, and native secure DMA between a VM hosting the emulated devices and the workload VMs (cf. PowerVM and VIOS). A lot of people run Linux for KVM or HyperV, but if Power systems had been cheaper I think it had a lot of potential. Not exactly the S370 stuff you were probably working with, but close enough.

rbanffy | 6 hours ago

POWER is insanely powerful (no pun intended). I really wish IBM didn't treat it like a private club.

I'm also not sure how much IBM would be able to make POWER cheaper while still keeping the nice features - a lot of its power (haha) comes from the server-grade stuff that sits aroung the CPU. I don't think there is a POWER11 capable of talking directly to DDR5 memory.

That said, I live in Ireland and the used server market is very limited, but you can get a used 4 socket POWER8 with a terabyte of RAM for much less than a terabyte of DDR5, or even DDR3 would cost you.

https://www.bargainhardware.co.uk/ibm-power-e870-4u-rack-ser...

rbanffy | 6 hours ago

Well... This MVS comes with an HTTP server. I'm not really sure how it works, or how to make it useful, but, still, it's kind of cool. It also has FTP, so moving files to the emulated machine is a lot less inconvenient than via a 3270 session.

As for CP/CMS, not so long ago I made this:

https://rbanffy.github.io/fun-with-big-computers/fun-with-vm...

I really need to play more with MVS so I can write one for it. The big thing is that CMS is a single-user operating system, and MVS is multi-user, multi-tasking, with lots of functionality for examining its workloads. This version, which comes with all the nice add-ons from Tk5-, is much more comfortable than bare MVS was. The same applies to VM/370 CE, which is a lot nicer than bare VM/370 R6 (which is REALY bare.

sjreese | 12 hours ago

Good work. Any number of local tests can be run or just your JCL with TYPERUN=SCAN

LeoUnderwood | 11 hours ago

For context on why it's this particular release: MVS 3.8j is the last MVS version IBM distributed without copyright restrictions, which is why the hobbyist community standardized on it, usually running under the Hercules emulator. Earlier turnkey distributions like TK3, TK4- and more recently TK5 packaged it with a prebuilt sysgen, so it's interesting to see a project that makes the sysgen process itself reproducible. It predates MVS/XA, so it's limited to 24-bit addressing with a 16MB address space, which is a good reminder of how much of the later "above the line" machinery in z/OS exists to work around that boundary. Much of the JCL, dataset, and SMP-style tooling still carries over conceptually, which makes it a cheap way to learn mainframe basics.

bananamogul | 11 hours ago

I wish someone would do the work to make MVS 3.8j a proper 32-bit OS.

Admittedly, I have no idea what I would actually do with it.

[OP] emersonrsantos | 11 hours ago

There's the 31-bit https://mvs380.sourceforge.net/ - not 32-bit because of IBM XA original architecture.

Although the CPU is 32-bit, 31-bit was chosen for compatibility with legacy 24-bit, being the most significant (missing) bit the mode/control flag.

tliltocatl | 10 hours ago

AFAIK, there's no MVS sources available (only assembler output by PL/S compiler).

minipci1321 | 6 hours ago

Are there still the original PL/S statements as comments in these assembly sources?

twoodfin | 9 hours ago

So what’s the lineage of this? A modern packaging of free-as-in-beer IBM code?

JdeBP | 9 hours ago

Ah, the joy of Hacker News posts that point to GitHub repositories instead of an actual project home page!

You can get to https://jaymoseley.com/hercules/index.html from the repository, but it's buried under reams of other stuff in the doco, and you have to go via https://jaymoseley.com/hercules/installMVS/iMVSintroV8.htm .

Those two answer your questions as well as the What the Hell even is this? question from people who are sent straight into a set of Docker instructions.

twoodfin | 9 hours ago

Thanks. Any background on how this particular OS has been “deemed to be in the public domain”?

It looks more like IBM licensed / authorized it for public distribution.

JdeBP | 8 hours ago

It seems to be a bit of a dodge involving the 1976 U.S.A. Copyright Act and the fact that IBM didn't put a copyright notice on some of its softwares. It's not clear how people think that the dodge applies to something published 3 years after the Act took effect, making copyright declarations no longer required in order for copyright to apply.

* https://www.ibiblio.org/jmaynard/

Others are going off the fact that once upon a time IBM was handing out copies free of charge. But that is conflating price with copyright.

* https://cbttape.org/~jmorrison/mvs38j/hercules.html

In practical terms, I very much doubt that IBM is going to take any action after these projects have been around for a quarter of a century. But I also think that people are misrepresenting the copyright status.

JdeBP | 8 hours ago

Do we think that having the initials J.M. is a requirement for being involved in this stuff? (-:

xxpor | 7 hours ago

Oh so _that's_ why IBM makes sure to absolutely plaster its software with copyright notices now.

For example, when you install AIX it displays a full copyright for EVERY PACKAGE as it installs

shrubble | 8 hours ago

Federal money was taken to develop it, and any software developed by the government or because of gov funding, was considered public domain. Later, this changed.