Show HN: GentleOS – A pair of hobby OSes for vintage 32-bit and 16-bit PCs
Posted by luke8086 10 days ago
Hello HN,
I've been working on a simple OS for tinkering and running bare metal apps on vintage PCs.
Since I couldn't quite decide whether to target pure 16-bit, or slightly more capable 32-bit machines, I ended up with two separate versions:
- GentleOS/32 (https://github.com/luke8086/gentleos32) works on i386+, requires 4MB of RAM and VGA display supporting 640x480x16 mode or any 256-color VESA mode.
- GentleOS/16 (https://github.com/luke8086/gentleos) works on 80186+, requires less than 192KB of RAM and a CGA display supporting 320x200x4 mode.
You can find more details in the repos.
Comments
Comment by mysterydip 8 days ago
Perfect. Nice to see a platform target stability instead of constantly reinventing itself and its APIs. Definitely want to give it a go!
Comment by iamnothere 8 days ago
You may get some interest from others in the retrocomputing/permacomputing sphere if you implement an Uxn emulator; it is extremely simple and can run on very limited hardware. https://100r.co/site/uxn.html
Vintage hardware would be a great host for Uxn programs, so I suspect this would generate some excitement.
Comment by luke8086 8 days ago
Comment by iamnothere 7 days ago
Comment by sandos 8 days ago
Now I feel like integrating that into various things....
Comment by nosioptar 8 days ago
Comment by sixothree 8 days ago
Comment by lproven 8 days ago
I had 2 different Librex 386SX laptops, with 4MB of RAM, on long-term loan from work around 1992. One was quite chunky, the 2nd was a slimline thing with an off-centre hinge.
I ran OS/2 2.0 on them both.
So I could run multiple DOS apps, and a WinOS2 VM containing Windows 3.0, meaning I could run Win16 apps as well. And native OS/2 apps, although I didn't have many.
Here's a pic of the original Librex:
https://books.google.im/books?id=tDwEAAAAMBAJ&pg=PA27&redir_...
And the 2nd model:
https://www.reddit.com/r/vintagecomputing/comments/10gepdd/l...
TL;DR
A 386 with 4MB is small now but at the time this was a fairly serious workstation-level PC. At the time my work desktop was a 386DX but it had only 1MB of RAM.
In its time a 4MB 386 could run any one of multiple multitasking 32-bit protected-mode OSes, including OS/2 2.x, SCO Xenix, Coherent 3 or 4, DR Concurrent DOS/386, and so on.
This was a high-end bit of kit and with one of these OSes, or even with Quarterdeck DESQview, it could multitask half a dozen large and demanding DOS apps, or maybe a couple of the still fairly new Windows apps such as WinWord 1, or Excel 2.
Comment by nosioptar 7 days ago
Its wild to me to think of how much old computers could do relative to new. WordPerfect for DOS was always responsive and quick wheb I used it. I've seen ms word cludge up machines that should have plenty of power to run a word processor.
Comment by lproven 7 days ago
OMG yes please. :-)
Yep, WP for DOS was quick. Rather clunky UI compared to MS Word for DOS, IMHO, but fast. A friend of mine used a simple method to demo its speed: on his cheap monochrome 286 home computer, he loaded the book he was working on -- one big file, a few hundred pages -- and just held down the cursor key to scroll through the whole thing. It kept the entire doc in RAM and the text just blurred as it zoomed through the entire book in under a minute.
Compared then (early 1990s) to Windows where a similar text took tens of minutes, as my faster computer struggled to load in pages of text from disk, render the fonts, etc.
In the late 1980s, Amstrad introduced new CP/M machines, the PCW range:
https://www.cpcwiki.eu/index.php/PCW
They sold for over a decade and shifted about 8 million units. A CP/M computer, in the early Windows era.
Maybe it's time to do that again: a very low-spec machine, but with a crisp e-ink screen and a great premium-grade mechanical keyboard, shipping with a modern FOSS DOS, a compilation of free DOS apps, and some nice friendly graphical launcher. Wrapped up as an easy appliance that doesn't do Internet stuff at all, but makes it trivially easy to save your work on USB media or zap it to modern devices wirelessly.
Form factor of a big late-20th-century laptop, with a massive battery so it can double as a power bank for your phone or something.
Comment by icedchai 8 days ago
Comment by NoGravitas 8 days ago
Comment by lproven 7 days ago
I attached a couple of big SCSI drives and ran Windows NT 3.51 Server on it. When not logged in, it only used a couple of megs of RAM for the OS so file serving performance was tolerable -- and the hardware was literally bulletproof. I dropped one down a flight of stairs in my first job. The computer survived but it knocked lumps out of the concrete stairs on the way down.
Comment by iberator 15 hours ago
I remember runnning a.out(elf predecessor) based linux on 2mb if ram in the past for example (slackware 3 i think).
This is generic question - not about Linux only
Comment by oso2k 7 days ago
Comment by sixothree 7 days ago
A 386 with 4MB was the bare minimum to run Windows 3.11, which is considered the first mainstream GUI for PCs. Technically they required 3 MB, but recommended 4 MB.
Topping it all off, you're being disingenuous by suggesting running OS/2 desktop applications with just 4 MB of RAM. OS/2 was _notoriously_ memory hungry. At the very least it required more RAM than Win 3.11 (which recommended 4 MB). While OS/2 required 4 MB, suggested 8 MB as a minimum, but really needed 16 MB to do anything remotely useful.
And for you to not remember that is pretty telling.
Comment by haspok 7 days ago
I guess my point is, 4MB was really a lot of memory around 1992, and fitting a windowing environment in 640K was more the norm, and not an especially outstanding feat. Just think about GEOS and how it ran on the C64... or the Amiga (with a preemptive OS running on 256KB), or the Atari ST...
Comment by lproven 7 days ago
Careful. You are confusing Windows 3.11 with Windows for Workgroups 3.11. They were different products, at different times.
This is why version 3.11 of the Linux kernel was called Linux For Workgroups:
https://www.linuxfoundation.org/blog/blog/linux-kernel-3-11-...
That "for Workgroups" meant a whole different OS with a networking layer, protocol stacks, additional dialog boxes in File Manager to map and disconnect network drives and more.
WfWg was both a client and a server.
The first version was WfWg 3.1 which could run on a 286.
The one everyone deployed was WfWg 3.11 which despite its minor version bump was a 32-bit only OS needing 4MB of RAM because it only supported 386 Enhanced Mode. This was the version to contain some of the new tech from the forthcoming Windows 4.0, codenamed "Chicago" and later named "Windows 95".
WfWg 3.11 had 32-bit File Access as well as 3.1's 32-bit Disk Access. 32bFA was internally VFAT.VXD and that's why the Linux FAT16/FAT32 driver is called `VFAT.`
It had a 32-bit network stack in a VXD as well, which optionally supported a LAN-only 32-bit TCP/IP stack.
http://www.thenetworkencyclopedia.com/entry/tcp-ip-32-for-wi...
Here's the README. :-)
If you want it for some unimaginable reason, here is a download:
https://winworldpc.com/product/microsoft-tcp-ip-32/tcpip-32-...
Comment by NoGravitas 7 days ago
With 8MB, it was still pretty easy to send it into swap storms, but the range of what I could multitask was greater. Eventually (very late) I replaced it with a 486 with 16MB, and OS/2 absolutely flew on it. Had lots of headroom beyond what I actually used at the time.
Comment by II2II 7 days ago
If you've ever used a 68000 based Macintosh, you were limited to 4 MB RAM and 1 MB seems to have been more typical. It's in a different league to be sure, black and white graphics and multitasking was optional prior to System 7 (and I don't think multitasking was shipped with the System Software until System 6). That removes a lot of the pressure on memory. On the other hand, you had early Amigas supporting both colour and multitasking. The 1000 shipped with 256 kB RAM and 256 kB ROM (though I think 512 MB RAM was more typical). For an Apples to Apples comparison, the original Macintosh had 128 kB RAM and 64 kB ROM.
Windows 3.x and OS/2 2.x were later in the game, so they were designed for systems with more RAM. They also supported virtual memory. That meant there was less pressure on developers to write memory efficient code. I'm not really qualified to judge realistic memory requirements for OS/2 since I only used Warp on a system with 16 MB RAM, but I recall many people using Windows 95 on systems with 4 MB RAM. The requirements for both operating systems were similar. It's also worth noting that Windows 3.11 was rather late in the game. The system requirements were climbing rather quickly at that point.
Comment by marssaxman 7 days ago
Comment by lproven 7 days ago
Comment by lproven 7 days ago
I didn't. I checked. I have not.
> go on to lecture me about things you have barely any grasp or memory of,
No, this is not true or accurate. It is a personal attack.
I am a tech professional and I was back then as well. I ran Windows 2.0 and deployed 3.0 in production; I deployed and supported Windows 3.0, 3.1, Windows for Workgroups 3.1 (a different product of little importance except historically), 3.11 (a minor service pack), Windows for Workgroups 3.11 (a totally separate product you don't even mention), as well as NT 3.1, 3.5, 3.51, 4, 2000, XP, Server 2003, Vista, and more.
By casually mentioning something that barely mattered -- Windows 3.11 -- you show me that you know less than me about this stuff, and which I recall vividly and clearly. I still run OS/2 today. I reviewed the current version, because yes it is still alive:
https://www.theregister.com/software/2023/09/04/arcaos-51-gi...
I interviewed the company founder:
https://www.theregister.com/software/2023/01/19/os/2-warp-on...
Contrary to your claims, you are attempting to lecture me and I am not putting up with that. I built and supported entire corporate networks of Windows for Workgroups 3.11 computers, and I found bugs in it I personally filed with Microsoft, before Microsoft even had a website.
Windows 3.11 merits a single paragraph on Wikipedia and even that is substantially incorrect.
https://en.wikipedia.org/wiki/Windows_3.1#Windows_3.11
It did not have any peer-to-peer networking: that is the editors confusing Windows 3.11 with the totally separate Windows for Workgroups 3.11. The distinguishing feature of WfWg is peer-to-peer networking.
You claims are factually incorrect.
Windows 3.11 was not the first mainstream GUI for PCs. Neither was Windows 3.1, a different earlier product. If anything it was DR GEM, which I have written about as well.
https://www.theregister.com/software/2022/08/04/the-many-der...
You'll find my name in the release notes for FreeGEM, because I was involved in that project in the 1990s.
Windows 3.0 was the first mainstream version of Windows.
I was there and told my boss he should order as many copies as he could get because it would sell out on the day of launch (May 1990). We had a queue outside the door before we opened at 9AM that morning. We had a grand total of 17 copies. They all sold in the first 2 minutes. I was right; he was wrong, and so are you.
Windows 3.11 or any from 3.0 to the final 3.2 did not require 4MB of RAM.
Windows 3.0, 3.1, 3.11 and Windows for Workgroups ran perfectly well in 2MB of RAM and did not require 4MB, which was a high-end PC in 1992. You can even force Win3.1 to start in 386 Enhanced Mode on a 1MB RAM PC (with the `/3` switch) and I did it at work almost every day.
3.0 ran fine in 1MB and 3.1 was perfectly usable in that little. As I recall, both wanted a minimum of 1MB for Standard Mode, the 286 protect-mode mode, but it could be forced with a command line switch (`/2` or `/s`) and 2MB for 386 Enhanced Mode.
https://forum.winworldpc.com/discussion/9906/windows-3-0-3-1...
OS/2 2.0 in 4MB was a normal config and it's what I used on all 3 or 4 of my machines which ran OS/2: two Librex ones and my own Sunrace 486DX50 (note, not DX2) laptop. I couldn't afford more memory.
You are dead wrong. I remember this very well indeed, thank you, and that's why I do things like go on stage and tell the world's largest FOSS conference that they're doing it wrong.
https://archive.fosdem.org/2018/interviews/liam-proven/
Sure, OS/2 2.0 as a protect-mode 32-bit OS would be better in 8MB and I am sure much better in 16MB, but I never even saw a PC with 16MB of RAM until over a year later. I deployed NT 3.1 in production in 1993, before its first service pack, and then I ordered that user (our brokerage's Head of Research, Eric) a 16MB PC and the thing cost over £5000.
My editor at PC Pro Magazine in 1995, Derek, got the first 32MB upgrade for any of our desktops, and that was so he could run the shiny new Windows 95.
I remember this stuff in a great deal more detail than you do, and what you think you remember is wrong. Every single number you cite is wrong, both version numbers and memory numbers.
Comment by Waterluvian 8 days ago
Comment by Aldipower 8 days ago
Comment by Aldipower 8 days ago
Comment by luke8086 8 days ago
Comment by Aldipower 7 days ago
Comment by luke8086 7 days ago
In case you have DOS installed on the hard drive, you can also use GRUB4DOS [1] - just put gentleos.elf on C:\, run grub.exe, then `kernel /gentleos.elf`. You may first need to comment out any upper memory managers from config.sys. A bit of an academic exercise since the kernel still won't fit into memory.
Btw. feel free to reach out to me on my profile email. I'll be busy with work for the rest of the week, but later I may look for some workarounds to get it running on 2 megs.
Comment by valleyer 8 days ago
Comment by ginko 8 days ago
Comment by RobotToaster 8 days ago
Comment by Aldipower 8 days ago
Comment by sillywalk 8 days ago
Also, there's an emulator for PS/1 machines at https://www.ibmulator.org/
Comment by luke8086 8 days ago
Comment by Aldipower 8 days ago
Comment by luke8086 8 days ago
Comment by Aldipower 7 days ago
Although, the floppy light does not turn off. Not sure, if this a problem with the OS or my hardware.
Comment by gunapologist99 8 days ago
Comment by wtallis 8 days ago
Comment by rasz 8 days ago
example how one looks like irl https://allegrolokalnie.pl/oferta/laptop-toshiba-t1800 https://www.youtube.com/watch?v=sxIc_UVKxvc
Comment by luke8086 7 days ago
- Letting it warm for a while
- Putting windows in the right places, because each one generates its own artifacts
- Setting background to dark with the white pattern
- Fiddling with the contrast knob and matching it with the right viewing angle
- Using 2x zoom
To be fair, the default photo app of iPhone 16 automatically reduced some of the artifacts. The only post-processing done myself in GIMP was very basic stuff like adjusting white balance, exposure and contrast.
Here you can see a few very quick-n-dirty photos I just took for comparison - https://imgur.com/a/6Xz6vc8
Comment by rasz 7 days ago
Comment by bor_real 8 days ago
Comment by rasz 8 days ago
Comment by luke8086 7 days ago
Btw. the QEMU screenshots are still in the repo in https://github.com/luke8086/gentleos32/tree/main/doc/appimg
Comment by hansvs 8 days ago
Comment by reconnecting 8 days ago
Comment by luke8086 8 days ago
Comment by tecleandor 8 days ago
Comment by MisterTea 8 days ago
Comment by gt0 8 days ago
Comment by phendrenad2 8 days ago
Comment by vortegne 8 days ago
Will be digging out some old hardware to test it out very soon, this is exciting!
Comment by iberator 16 hours ago
Why all modern(ish) kernels require 4MB of ram as a hardcoded value? Is it because of the ram page size or what?
Comment by amelius 8 days ago
Comment by pkphilip 7 days ago
Comment by nubinetwork 7 days ago
Comment by ajxs 7 days ago
Comment by j1greene 7 days ago
Comment by itomato 7 days ago
Comment by Dwedit 8 days ago
Comment by aktau 7 days ago
Seeing the screenshots I was kind of expecting this was a pre-emptive multi-tasking OS (forgetting what I read in the submission).
Things that thus surprised me on a cursory look:
- noticed krn_main() ends with `while (1);` [1]. I would've expected a "schedule" call or something. I assume there's no real busy loop burning CPU, maybe it's never meant to reach this code?
- I'm reminded of the "bare metal OS" when I see one of the apps call `krn_\*` functions directly [2].
[1]: https://github.com/luke8086/gentleos32/blob/main/kernel/main...[2]: https://github.com/luke8086/gentleos32/blob/ea691f14635c023d...
Comment by luke8086 7 days ago
> - noticed krn_main() ends with `while (1);` [1]. I would've expected a "schedule" call or something. I assume there's no real busy loop burning CPU, maybe it's never meant to reach this code?
Yeah, `gui_main()` takes over and is not supposed to return, so the code is unreachable. The loop is just an old idiom used in such places (e.g. [1]), though I've now replaced it with a comment and a call to `halt()` to better convey the intention.
> - I'm reminded of the "bare metal OS" when I see one of the apps call `krn_*` functions directly [2].
Yeah... but at least the kernel doesn't call the apps... which it could ;^)
[1] https://github.com/freebsd/freebsd-src/blob/main/sys/x86/x86...
Comment by neurocontrarian 6 days ago
Comment by ge96 8 days ago
Unusuable because of how small the keys are
Comment by Damjanski 8 days ago
Comment by mdct 8 days ago
Comment by kolesnikov-arch 8 days ago
Comment by mohammad_dev 10 days ago
Comment by xtiansimon 8 days ago
Comment by nosioptar 8 days ago
Computer programs are tools. It doesnt do anyone any good if they're unusable in the name of chasing moronic trends.
Comment by reconnecting 8 days ago
Old interfaces were far more practical for getting work done, and therefore obviously boring.
For me, as someone who is supposed to use technology as a tool and not as a source of amusement, the new interfaces of the major OSes feel unacceptable. But the other billion people chatting and scrolling are the real consumers, not me — and as a result, we now have the interfaces we have.
Comment by latexr 8 days ago
Comment by alterom 8 days ago
Software makers treat UIs the way auto makers treat paint and body styling.
Comment by luciferin 8 days ago
All that said, I truly miss the days when we had interface skinning. There was a skin for OS X called UNO that was absolute perfection in my eyes, and it was ported to an old version of Android back when skinning was a thing. There's nothing like it available now. Even GNOME is highly against theming and skinning now, apparently because they like breaking with every single release rather than maintaining an API/ABI and skinning support. The themes that were available for Windows XP were so much fun, even if you had to swap out DLLs to get them working.
Comment by zozbot234 8 days ago
Focus-group based and UX research was a lot more intense in the 1990s compared to today, and late 1990s UIs are still among the best available.
Comment by nosioptar 8 days ago
Material is what made me hate google. It makes everything so difficult. It doesnt even look good. It's a low contrast sea of modern bullshit.
I sincerely hope that the material designers go to hell when they die and are forced to use their own garbage designs for all eternity while those of us who dont suck can use properly designed software.
Comment by mftb 8 days ago
Comment by LastTrain 8 days ago
Comment by Aldipower 8 days ago
Comment by dang 8 days ago
Comment by darkwater 8 days ago
Comment by LastTrain 8 days ago
Comment by cestith 8 days ago
Comment by nosioptar 8 days ago
Comment by xtiansimon 7 days ago
Wow. I’ve been investigated.
If you don’t understand my comment, ok. It was offered with zero comment. What’s to understand?
If you’re saying you don’t understand the _juxtaposition_ of a fashion designer talking about trends in fashion, and how that language compares to the language surrounding trends in OS GUI. Well, then you can take the whole idea with the same regard I gave in making it. Do you see? It’s just an _idea_, and you’re welcome to reject it (-4 and counting).
Comment by shevy-java 8 days ago
I am all in favour of great projects, but why a differentiation between 32-bits or 64-bits? I don't understand that. Is a computer that is 32 bit or 64 bit, either way which, not worthy?
Edit: I understand a motivation if it is on simplicity choosing one or the other, but other than that I don't see why that should ever be a goal worthy to be pursued. Software should really "just work" no matter the number of bits and bytes.
Comment by luke8086 8 days ago
It only won't work on modern pure-UEFI systems because that would require writing full stack of USB drivers for keyboard and mouse, and that would be a huge task.
Comment by grebc 8 days ago
> Edit: I understand a motivation if it is on simplicity choosing one or the other, but other than that I don't see why that should ever be a goal worthy to be pursued. Software should really "just work" no matter the number of bits and bytes.
Not really how software works.
Comment by Aldipower 8 days ago
Just sold my SGI Indigo 2 for 900 $ ! Vintage 64 bit is absolutely a thing. :-)
Comment by amuradbegovic 8 days ago
Comment by trashb 8 days ago
Comment by Aldipower 8 days ago
Comment by nocman 8 days ago
Comment by RobotToaster 8 days ago
Comment by hnlmorg 8 days ago
Personally I’d have said it isn’t. But these terms are subjective.
Comment by rob74 8 days ago
(That distinction wasn't clear to me either, so I had to look it up - TIL).
Comment by hnlmorg 7 days ago
Just type the word “retro” into YouTube (for example) and you’ll see thousands of videos from hundreds of channels spanning decades talking about old games and computers.
Comment by pjc50 8 days ago
Comment by trashb 8 days ago
The last step (32-bit to 64-bit) can a bit of a can of worms especially on older platforms where 64-bit implementations can differ greatly and 32-bit "just works tm". 32-bit is quite well supported and has enough resources to make some interesting programs work without much hassle.
I think the author has made the decision not to support 64-bit mode due to needing to balance the complexity and usability of the project. It is a hobby project after all.
Since the author maintains a 16-bit and 32-bit for this project I suppose if you wanted you can always fork and maintain a 64-bit version if you wanted to.
Comment by ReptileMan 8 days ago