6 ms·
Past the boot, where it used a VGA/EGA/MDA-like font, the terminal font looks remarkably similar to Sun's console font. I love it! BTW, if the Amiga came out
by rbanffy 5y ago
Past the boot, where it used a VGA/EGA/MDA-like font, the terminal font looks remarkably similar to Sun's console font.
I love it!
BTW, if the Amiga came out with a Unix-like OS from the start (such as Coherent), it'd have been a game changer. With some (a lot, really) luck we could be all be running Unixes on different CPUs instead of Windows on x86's...
I also like that cursor keys are closer to where the mouse uses to be (for the right-handed, at least)
- zozbot234 5y ago> BTW, if the Amiga came out with a Unix-like OS from the start (such as Coherent), it'd have been a game changer. The first versions of the Amiga ran on the MC68000 processor which could not support a MMU, so no Unix there. AIUI, this became first possible with the MC68010, which however was quite uncommon early on.
- fulafel 5y agoMicrosoft sold Xenix for the 68000, I wonder how that worked given the often mentioned unix problem caused by inability of the processor to recover from bus faults. As for a MMU, I guess it's not a given that Unix requires paged virtual memory. Traditionally whole processes were swapped in and out.
- my123 5y agoXenix was also sold for the 8086.
- rbanffy 5y agoI learned C on a Unix-like OS, QNX, running on a 640K 8088 PC clone. It booted from a 360K floppy and had, in those 360K, a shell, vi and a C compiler.
- jacquesm 5y agoI still miss QNX. Rock solid, super responsive, very tight and a neat model to build scalable applications.
- rbanffy 5y agoI'm probably unhealthily attached to my Blackberry Q10 because of this.
- nullsmack 5y agoWow, I didn't know QNX was always so compact. I remember a demo disk released in '99 or '98 that would boot from one floppy into a graphical environment with a web browser and a few other things. It was really impressive on a single floppy.
- retrac 5y agoThe 8086 was the first microprocessor UNIX was ported to. Maybe unsurprising as the first 16 bit processor that could address more than 64 KB of RAM. 8086 segmentation was and is much-lamented, but it did enable a poor man's form of virtual memory. If the user process never touched the segment registers, the OS could move allocated code, stack and data blocks in RAM around transparently to the process. It also allows every process to assume it starts at address 0.
- throwawayboise 5y agoMinix also ran on the 8086/8088.
- ch_123 5y agoSome of the early 68k workstations, including the original Sun and Apollo hardware simulated an MMU by using an extra 68k. IIRC, in the event of a trap, the second CPU would kick in, set up some mappings, and then hand control back to the main CPU.
- retrac 5y agoThose workstations still had custom MMUs, and the 68K had most of the signals to work with an MMU. The issue was instruction recovery on exception, particularly page fault. With an instruction like move (a2)+, (a3) the processor first loads the value from memory at the address in a2, increments a2, then goes to store it at the address in a3. If a3 holds an invalid address, the processor faults halfway through the instruction. The problem is the 68000 doesn't store enough state anywhere to tell you how to rollback and attempt the whole instruction again. (Was a2 incremented already or not?) The dual 68K approach would keep the whole instruction pending on the other processor, in case it needed to be restarted, after resolving the page fault. And it was still possible to implement classic base-and-bounds swapping with a single 68K.
- rjsw 5y agoSome C compilers for the 68000 added an instruction to do a dummy read before doing any stack operations to trigger a fault in a way that it didn't matter to the instructions doing real work.
- zozbot234 5y agoThis is still done today to guard against stack overflows, in combination with unmapped "guard" pages.
- vidarh 5y agoIt was not entirely unable to recover from bus faults. It was unable to restart the instruction executing at the time correctly. So it was unusable for more complex setups without hacks like ch_123 mentions Apollo and others used where you'd have two CPU's and let one of them pause while the second handled paging. But if you were content with killing the offending process, you could do that with "just" a single 68000 CPU and a simple MMU. (on a side note, Apollo's OS was fascinating for the era [1]: "Certain efficiencies were gained by careful design; for example, the memory page size, network packet, and disk sector were all 1K byte in size. With this arrangement, a page fault could take place across the network as well as on the individual computer and Aegis file system was a single system of memory mapped files across the entire network. The namespace of the network was self discovering as new nodes (workstations) were added.") [1] https://en.wikipedia.org/wiki/Apollo_Computer https://en.wikipedia.org/wiki/Apollo_Computer
- rbanffy 5y agoApollos were amazing. Truly a lost treasure. It saddens me how some beautiful creations just died because of worse is better.
- fulafel 5y agoI thought restartable signal handling pretty ingrained - eg Bourne shell apparently used to handle memory allocation by trapping SEGV and calling brk() from the signal handler. I guess it's possible Xenix people just changed all the problematic bits in the port. A compiler assisted way also comes to mind, if the issue is just certain complex instructions - if you document that you can't use non restartable instructions (at least if you want to catch signals), maybe you could have the C compiler emit only a restartable subset of the ISA.
- vidarh 5y agoI can't tell whether or not Xenix was available for other M68k platforms than the Lisa. The Lisa had some sort of MMU. The SUN 1 also had a custom MMU for the 68k. As long as you're content with dealing with the restart problem either by disallowing it (crashing any process that you can't help by triggering a bus error for - optionally minimised by doing paging while halting the main CPU like the Apollo's did) or other awful hacks, you can still do some things with the MMU with the 68000 too. Here's details about the Lisa architecture that includes bits about the MMU and how it's handled in Lisa OS[1]. While it doesn't describe how XENIX did it, it gives some hints about which options might have been available to them: > Although instructions in the MC68000 processor are not generally restartable, we have empirically determined that the four instructions that access code segments, JMP, JSR, RTS and RTE are restartable. When one of these four instructions attempts to reference a code segment that is not currently present, it causes a bus error which traps to the OS. It would have been nice if this used compiler assistance. As only trapping those would mean ensuring that you insert one of them on every segment boundary if you want to be able to cross it, and also ensuring that you don't have any BRA/Bcc (relative branches/jumps or DBcc (relative branches/jumps with register decrement) instructions crossing segment boundaries. If XENIX did this too, then it'd allow relatively painless paging of code segments. It wouldn't be very hard do do, but give a strong incentive to try to pack functions into segments so that no basic blocks crosses segment boundaries. But it seems the Lisa's default OS required programmers to explicitly split a program into different code segments: > The division of a program into these named code segments is dictated by the programmer through commands to the Compiler and Linker. No idea if XENIX also required that, or if they tried to be smarter about it. It wouldn't seem that hard to at least have logic to allow the compiler to automate it, though I'd guess some might want to explicitly control to be able to trade off amount of memory pinned at a time vs. amount of jumps between code segments (potentially triggering paging) given that the maximum code segment size of 128KB was a rather sizeable chunk of a machine as constrained as that (maximum addressable memory of 2MB) > Because the instructions that reference data are not all restartable, the system does not do automatic swapping of data segments. The memory manager must swap in all data segments needed by a process before the process is allowed to execute. However, the OS gives programs the ability to unbind data segments that are not needed in the memory while a particular part of the program is executing. You could presumably still allow memory to grow with brk(), but trapping SEGV to decide when to not so much. Though maybe - a hack occurred to me just now (no idea if anyone did it) to allow some patterns like that work: Have the MMU trigger a "soft" error condition if you access within X bytes of an unmapped page, and trigger a normal interrupt in that case. A normal interrupt on the 68000 is triggered immediately after the instruction has executed, so as long as a single instruction doesn't touch memory both within and outside mapped data segments you can trigger the pager when it gets "close enough". That's enough to e.g. make the stack auto-extending, or to allow sequential writes that approach and cross a page boundary, as long as the applications are ok with SEGV's not being triggered precisely when a page boundary is crossed. You'd still not be free to page data segments out. But you could free stack segments pretty easily with some minor compiler assistance to communicate lower stack bound now and again. Your idea of only issuing restartable instructions might work, with the caveat that the M68k is exactly the wrong architecture to have to worry about that on given how heavily it relied on various complex addressing modes to make the code compact... A lot of common instruction patterns would become unviable. [1] https://www.researchgate.net/publication/2996607_The_Architecture_Of_The_Lisa-_Personal_Computer https://www.researchgate.net/publication/2996607_The_Archite...
- jacquesm 5y agoThe best thing about Xenix was the documentation, not the OS. I used that set for years after I stopped using Xenix.
- pjmlp 5y agoAlthough the team was full of UNIX heads, and they also went and created AMIX, thankfully Amiga OS wasn't another UNIX clone. We wouldn't never had the desktop development experience that keeps the Amiga nostalgy alive if that had been the case. Hardly anyone discusses hardware from UNIX clones beyond what CPU they might have used.
- rbanffy 5y ago> We wouldn't never had the desktop development experience that keeps the Amiga nostalgy alive if that had been the case. I know the Amiga GUI was way better than X, but that the development experience would be better is not a given. Unixes were always light-years ahead of anything else in development and automation tools. That, combined with a good set of APIs for all the custom hardware, would be extremely compelling. What would be much harder to do is direct hardware access. For that, you'd need to be running in runlevel 1 (which would make sense for a stand-alone computer).
- pjmlp 5y agoI think you mixed up UNIX with Xerox PARC, regarding being beyond everyone else, including the CLI experience.
- rbanffy 5y agoDeveloping for Windows felt nicer than developing for Amiga and I did both back then.
- pjmlp 5y agoI thought the whole point was how great UNIX was.
- rbanffy 5y agoDepends on what you are targeting. The bare Windows API was tragic, but you could avoid a lot of the low-level stuff with some care, and the Amiga felt much nicer - the events you'd deal with were much higher level, but the environment itself was not. Macs had a reasonable GUI designer (at least for dialog boxes). Where Unix excelled was in the rich tooling that didn't exist (or was poorly implemented) on other platforms - lex, yacc, grep, sed, m4, some source control versioning tools, pipes, etc - it was developed mostly for programmers, by programmers, so that's not surprising.
- bitwize 5y agoYeah, except no. AmigaOS was built on a lightweight, near-real-time, multitasking microkernel that was designed in tandem with the hardware and which a single person could understand in totality. There's no way something as amazing as the Amiga could be produced on a Unix base and still be affordable.
- rbanffy 5y ago> Yeah, except no. AmigaOS was built on a lightweight, near-real-time, multitasking microkernel So was QNX and QNX felt a lot like Unix and had tons of tools easily ported from Unix. It ran on an 8088 PC off a floppy disk. I now runs a lot of in-car entertainment and instrumentation systems (a nice home for an RTOS)
- zengargoyle 5y agohttps://news.ycombinator.com/item?id=28081181 https://news.ycombinator.com/item?id=28081181 The OS was close enough and wonderful under the hood. So many UNIX people bought one for home just because it was so easy to port UNIX code. I wrote Amiga apps on a Sun3/50 using Sun's compiler and just transferred the binary over to my machine. The Amiga Pascal software even had a special program included to transfer binaries over serial/parallel from a UNIX box (usually a Sun). You mostly just needed to link to a different crt.o / clib.
- tralarpa 5y agoMaybe I am missing some context here, but are we talking about AMIX or AmigaOS? I am asking because the latter never looked particularly UNIX-like to me. But maybe that's because I never worked with MS-DOS, so, being only familiar with Linux, Windows, and AmigaOS, I might be overestimating the difference between UNIX and AmigaOS. Edit: btw, the AmigaDOS developers manual says that there was also a cross compiler (and serial transfer tool) for MS-DOS. I am wondering whether anybody every used that.
- zengargoyle 5y agoI'm talking about AmigaOS. Bits and pieces were based on https://en.wikipedia.org/wiki/TRIPOS https://en.wikipedia.org/wiki/TRIPOS and the kernel itself had a lot of UNIXy sort of features. In the late 1980s if your work job is sitting in front of a Sun workstation you bought an Amiga for home instead of a Mac or DOS machine. I would dial my Amiga into work before going to work and remote shell in (rlogin/rsh/rcp) and just shuffle things back an forth without effort. One could do CS homework both on the Amiga and on the SunOS systems just by linking to a different library. I never even had a C compiler on my AMIGA, didn't need one. I can't imagine writing some code on UNIX and that trivially making it run on a Mac or DOS machine. People even build stub UNIX libraries for AmigaOS that faked the user/group/permissions and other bits of the UNIX experience. It was just a pleasant experience for those late 80s compared to the alternatives. AMIX is a whole different can of worms, they did that much later and I'd expect it was like porting between HP/UX, AIX, BSD etc. Probably pretty easy by then.
- bni 5y agoThe Amiga had to be sold with a minuscule amount of memory to have any chance in the home computer market. Memory at this time was very expensive and UNIX would have required too much of it.
- rbanffy 5y agoI'm not user that much memory would be needed in the lower end models. A home computer would run on single-user mode and that wouldn't need a lot of the extra memory structures a multi-user environment needs.
- reaperducer 5y agoFWIW, a mid-1980's high-end multi-user CP/M system I was looking at has 1 meg of RAM for four users: 64K for each user, and the rest to run the system. It was in the $8,000 range, without the terminals.
- rbanffy 5y agoAn Amiga 1000 came with 256K of RAM for a single user. The 500 came out with at least twice as much. The TRS-80 Model 16 came with 128K and Xenix, about five years before the 1000. A Unix-based Amiga 1000 would be completely feasible.
- deleted 5y ago[deleted]
- runjake 5y ago> With some (a lot, really) luck we could be all be running Unixes on different CPUs instead of Windows on x86's... But, we are doing this -- en masse. I get your jist, though.
- rbanffy 5y agoWe could be doing that since the 90’s…
- tyingq 5y agoAh, yeah. The Sun serif console font. https://virtuallyfun.com/wordpress/wp-content/uploads/2017/12/boot-prom-to-cd.png https://virtuallyfun.com/wordpress/wp-content/uploads/2017/1...
- beagle3 5y agoPart of the reason the Amiga was well received is it’s OS. It was exceptionally well designed, and everything except, I think, multiuser (which was missing) and process separation (which did not have proper hardware support at first, and not enough memory), was better than what Unix could offer at the time. Iirc, porting Unix software was actually very easy. I don’t think the non-Unix of AmigaOS is the reason we’re stuck with windows
- rbanffy 5y ago> I don’t think the non-Unix of AmigaOS is the reason we’re stuck with windows It was not, but if the Amiga users who ventured past the GUI and into the command line interface were used to Unix, it'd be a much more natural migration path for them to move to Unixes than it was to move to Windows (as most did). Also, if the Amiga was, even if by accident, positioned as an entry level Unix workstation, it'd certainly be very popular at computer labs everywhere. It cost a lot less than a diskless workstation back then.
- pjmlp 5y agoUNIX never had anything like AmigaDOS and the way it was extensible via dyanmic libraries for file formats, or the volume mounts as done on AmigaOS. All the UNIX ports, including the follow up AMIX, were a shadow of the multimedia capabilities of AmigaOS. Irix, NeXTSTEP and Sun NeWS are the only UNIX based experiences, that had remarkable hardware. All of them managed it, by being more than mere UNIX clones.
- rbanffy 5y ago> UNIX never had anything like AmigaDOS and the way it was extensible via dyanmic libraries for file formats That's true, but all that could have been added to Coherent. I'm stressing Coherent here because it was the cheapest Unix clone available back then. > All the UNIX ports, including the follow up AMIX, were a shadow of the multimedia capabilities of AmigaOS. That's a hardware enablement issue. The biggest drawback of Coherent (and most Unixes back then) was that it couldn't run from a floppy, so, the minimum viable Amiga would need a hard disk. It could be possible to slim it down, however, or, maybe, just adding a POSIX compatibility layer on top of the AmigaDOS base would suffice. My point is that, if Amiga users had an easier path towards Unixes or if universities got lots of Amigas instead of far fewer Unix workstations (for the same money), we'd have a somewhat different world right now.