223 points · by classichasclass · 4y ago · 132 comments
> This is the SunOS 4.1.3 SUNSRC CD-ROM
which almost sounds like it was an officially distributed archive, somehow? I mean, I can't personally think of any reason for Sun to make a CD distribution of SunOS (was it called the OS/net gate yet?) for purely internal use, although maybe I'm just missing perspective, but the https://github.com/Arquivotheca/SunOS-4.1.3/blob/413/Copyrig... looks to my very-non-lawyer eyes like all-rights-reserved and 4.1.3 was well before opensolaris, so... leak of some kind?
Edit: Looking at the copyright file again, it has a part number. Did Sun license sunos? That certainly feels like it was meant for use outside of Sun, but doesn't really explain why/how
All of the proprietary unix vendors would sell source licenses to a greater or lesser extent. There's IRIX and AIX source trees out there if you go looking, licensed for university use back in the day.
> https://github.com/Arquivotheca/WinNT5_src_20201004 (Contents from "nt5src.7z") -> Repository unavailable due to DMCA takedown.
But, honestly, who tries to use a Microsoft web property to host the nt5src.7z?
And yet, https://github.com/Arquivotheca/WinCE-src_20201004 is still alive. Go figure.
Goes to show about how much Microsoft still cares about Windows CE, I guess.
>Private Shared Source Code is an optional component of the Windows Embedded Compact 7 Platform Builder toolkit that can be installed during the setup process.
https://www.microsoft.com/en-us/sharedsource/windows-embedde...
GWES and some drivers (eg. filesystems) were "Premium", but this repository doesn't contain it either.
The University/3rd party part was true even for Microsoft with NT and CE in the late 90s/early 00s. My little CS department got a CE dev kit with software, a device, and the source. I goofed around with it and was pretty quickly frustrated.
This also wanders into my memories of hating Sun version numbering and naming. SunOS grew SysV and became Solaris, but it was still SunOS. But it wasn’t. And then they preceded the Java-ism of the minor version being generally accepted as the major and conflictingly published materials both ways.
I feel bad for the devs where what they did made sense to them and then marketing took over. Naming and versioning are hard enough problems alone.
We can get into the weeds with blackbox firmware and what not, but it's darn useful to be able to look at the OS code to figure things out when it's acting weird.
As the other sibling comment here notes, we did that even if we didn't have the source code; we just looked at the Asm instead. People like Andrew Schulman and Matt Pietrek made themselves famous by doing that.
and here I am lazily blowing cache lines with `new Object()` in Java
Unfortunately value types are years away, if they ever land.
If you can prove that that a particular value never escapes the scope, it may be possible to allocate it on the stack instead which also reduces the amount of garbage collection needed later.
And other related reading:
https://web.archive.org/web/20120214195433/http://www.ibm.co...
https://www.javaadvent.com/2020/12/seeing-escape-analysis-wo...
https://vuls.cert.org/confluence/display/historical/CERT+Adv...
Sun Bug ID: 1059621 Synopsis: security hole created by installing sunsrc ... This makes it possible for users on that system to become root.
For `sun4c` kernel architectures (most SPARCs before multiprocessing), I'd try to get the source for 4.1.4. At least some of the older Sun-3 might need an older version, and I recall our Sun-386i systems were stuck at 4.0.x.
Then, unsurprisingly, the old Quantum SCSI disk was only happy enough to make grinding noises and no more. I found a guy making SATA to SCSI adapters meant for these old Suns and paired that to an SSD I had lying around. Hey, look, that now works too.
Finally, by setting up tftp, bootp, and NFS on a FreeBSD VM I was able to net boot the machine and install SunOS 4. My goodness, I had forgotten how slow the thing is, and how much has changed since the 1990s. I was able to get a bunch of more modern stuff to compile, but it was a fight every time.
Next I was going to drag out the old SGI Indigo, but haven't found the energy yet.
I'd be curious if you find a trove of the random open source SunView software from that era. A later SunSite mirror still up is at http://sunsite.informatik.rwth-aachen.de/cgi-bin/ftp.new/ftp... Starting from a Usenet archive, to find the names and original FTP sites of software might help. (Especially programs circa 1990 with names ending in "Tool". There was even a ToolTool.)
There's also commercial software. FrameMaker and Interleaf at the time were arguably nicer than 2022 Microsoft Word, for example.
https://www.sunmanagers.org/1992/0383.html
There were various remedies, including slapping the drive, and dropping it flat onto a desk a very short distance.
Specially because many insist in using their systems as if UNIX V6 was released yesterday, NextSTEP and macOS being the exception, which isn't any surprise given how Steve Jobs looked at UNIX workstations.
The thing I do not understand is why people favour updated 1970s-style UNIX, e.g. Linux and xBSD, when more modern sophisticated later Unixes are right there for the taking, such as Plan 9 and Inferno.
My cynical suspicion is that it's because they are just too hard to understand. I know that I struggle to myself. The conceptual model of '70s UNIX, and (to me) horrible primitive tools such as Vi, are easier to understand than the richer, smarter OSes of the '80s (Plan 9, with integrated networking, proper namespaces, and the whole LAN as your workstation) and '90s (Inferno, which also abstracts away CPU architectures and replaces C with something cleaner and safer).
The bit you’re maybe missing is how different the standard dev process was back then to accommodate how slow build infra was. You (or at least I) typically started compiling something and went for a coffee or whatever because it would take a l o n g time to build anything. So often teams would have a setup where each member had a low-power desktop that was basically just an x terminal and everyone would run their actual builds on a team buildserver. If you had a proper workstation it meant you could generally build your own code directly on your workstation meaning you weren’t contending for resources on the build server with everyone else. So I remember in one team back then one guy left who had a sparc 10 on his desk, so my buddy grabbed that, I swapped from my terrible lunchbox LX to nab my friend’s sparc 5 and suddenly local builds were a possibility for me, meaning a huge increase in productivity.
Nice clean OS's .. with RISC ops that failed on misalignd data which encourage clean cache aware coding styles and programs that pumped data through fast (or simply didn't work at all).
ie. Great dev boxes for cross platform coding - get it right on a Sun and it worked well pretty much across the POSIX space.
The commercial distributions tended to collect cruft without ever throwing any thing away(throwing things away may upset a paying customer that depended on the feature) linux is a cleanroom by comparison. and, as a good bsdite I consider linux an almost unusable mess.
Using SunOS 4 at the time on machines with masses of RAM and disk space was a bit like how vans changed with the first-gen Ford Transit - it was quick and light and you didn't have to stretch halfway across the cab to get 1st gear. You could order one with a radio, and not only that but you could actually *hear* the radio at 70mph. And - it actually did 70mph!
Comparing the SPARCStations we had back then to a modern Mac running OSX is a bit like comparing those first-gen Transits to a nice modern Merc Sprinter. It's still basically the same thing but it's a lot quicker and cleaner and the stereo has bluetooth and everything's bigger and faster and it's a hell of a lot cheaper.
By the 2000s the advantages had more or less vanished and the workstation SKUs were discontinued one by one.
(Probably it could also be a much less fun scenario than a Mac, with power tripping sysadmins handicapping usage, non-technical users having problems or feeling excluded, etc)
I've spent some time thinking about this, mostly in terms of "why do I like Solaris more than GNU/Linux, even in 2022?". I think it really does boil down to it being 1. a single coherent system, 2. including running on hardware that was designed to run it, 3. with paid support by a company that actually has skin in the game to make the thing work. (And in my case a certain amount of rose-tinted glasses.) IMO, the Bazaar can build amazing things at probably-lower cost (certainly lower per-party) and it has a diversity that is good, but the Cathedral can, in fact, Get Stuff Done and build a more coherent system. And when you're successfully selling workstations at $10k+ a pop you can afford to do high quality engineering:)
1: https://github.com/Arquivotheca/SunOS-4.1.3/blob/413/bin/log...
Who's going to step up?
I don't know for sure because I can't find any information about SunOS licensing, but I think it goes something like,
Oracle has acquired Sun Microsystems, Inc. ("Sun"), you acknowledge that in all cases where the reference is Sun, Oracle will fulfill these obligations as successor in interest to Sun.
When you think about the fact that it’s a log scale what we have now? It’s fucking impressive what people did with orders of magnitude less.
As an anecdote, this os and version was what Kevin Mitnick hacked at Netcom, leading to his eventual capture as detailed in “Takedown”.
/* * @(#)strops.c 1.1 92/07/30 Copyr 1985 Sun Micro
* Assorted string operations /
/
* Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0 /strcmp(s1, s2) register char
s1, s2;{
while (
s1 == s2++) if (*s1++=='\0')
return (0);
return (*s1 - *--s2);
}/* * Returns the number of * non-NULL bytes in string argument.
/strlen(s)
register char s;
{
register int n;
n = 0;
while (*s++)
n++;
return (n);
}https://github.com/Arquivotheca/SunOS-4.1.3/blob/413/games/f...
One of my former employers has millions of lines of code that just assume a bigendian architecture and play fast and loose with byte order as a result. They are probably not gonna port that code off SPARC any time soon. Eventually. But not soon.
So much depth in that statement
One tip you hear is to require a lawyer to be sworn in before a judge before you trust their claims.
In reality looking at this (or any other leaked on unlicensed code) "taints" you pretty much the same as looking at any other code, including -e.g.- GPL/MPL/Apache2, etc code, but you don't see anyone[0] nowadays saying to not look at such code (it used to be a thing back when people were cluelessly afraid of GPL though, but that was decades ago).
The "taint" isn't inherent, it comes from the possibility that you'd rewrite code you've seen so that it is mostly identical and be sued for it (and if that is the case is something that will only be decided by a court). If anything, IIRC when GNU was making their Unix replacement utilities back in the day they recommended people to implement them in as different from Unix a way as they could, but they didn't forbid people who were "tainted" by Unix to contribute to GNU (which, if you think about it, makes perfect sense considering the people who would contribute to it were most likely already Unix programmers). This sort of remains in the current GNU Coding Standards[1]
In fact you are "tainted" the same way by read and/or participating in any codebase that isn't fully owned by yourself - but if that was an actual problem in practice, no programmer would be able to join another company unless what they did there had absolutely nothing to do with any of the companies they worked at previously as experienced programmers would actually be liabilities[2]. Meanwhile in reality programmers jump between companies all the time with their experience being seen as an asset.
[0] don't take that literally, i'm certain some people would recommend against reading GPL/MPL/etc code, but they'd be a very tiny minority - and almost certainly driven by the same old FUDs
[1] https://www.gnu.org/prep/standards/standards.html#Reading-No...
[2] Yes, you can find anecdotes where that happened - John Carmack being sued by ZeniMax would be such a case - but those are very rare exceptions from litigious sue-happy companies and there are literally millions of professional programmers out there