339 points · by Aloha · 5y ago · 132 comments
I plan to do a writeup about it, and the experience of developing for old macs, once I finish the 1.0 release
edit: btw, this is my first project for the classic Mac OS, I hope to inspire others to also jump in, retro68 is a very usable toolchain (big thanks to Wolfgang Thaller/autc04)
I'm writing this comment from the LC III using w3m over ssh :)
I think my own LC III has either 12MB or 20MB.
Edit: I think I started to reply before your edit. Retro68 sounds amazing!
I use retro68 on linux, which is a modern GCC toolchain, so it's just like developing any other C/C++ (well, without some nice debugging tools, and with the added complexity of the mac OS resource stuff)
- SE/30
- Docked Duo 280c
- 7100/80
- PowerComputing PT Pro 250
- NeXT TurboStation
My primary Linux workstation is where I browse for old software and download it, then I get at stuff from the vintage Macs via FTP using either Interarchy or Fetch.
Rather than run a bunch of Ethernet cables all over the place I put little Ethernet to Wifi bridge adapters on them. Works great.
> Rather than run a bunch of Ethernet cables all over the place I put little Ethernet to Wifi bridge adapters on them. Works great.
That's genius, thanks for the tip.
That, by itself alone, would have been amazing.
I don't miss the lack of memory protection of classic Mac OS, but I do miss everything else.
I also think the OS, technically, was preemptive multitasking, but ran all ‘normal’ code in a single preemptive task (https://groups.google.com/g/comp.sys.mac.programmer.help/c/f...)
I also vaguely remember the kernel had some memory protection enabled.
Of course, almost none of that mattered for typical user-space programs.
I think you can emulate 9.2 just fine, but it's been a while since I played with this things.
https://www.screensaversplanet.com/screensavers/after-dark-f...
Seems to work fine on Windows 10, just not across multiple screens
My first PC was a 50mhz 486 with 8MB RAM, and I ran X11 + various things (netscape, xemacs, etc.) on it without a whole lot of issues.
by getting my hands dirty with the system, I'm impressed by the way things were designed for the wimpiest processors (and also getting a lot of insight into the flaws of the OS that were exposed as machines became more powerful)
[0] The web is good, actually. It sucks, but it's also pretty good.
I've programmed on very slow hardware in the past, and the only thing I miss from those days is my hairline.
Is modern encryption a challenge to those old machines? Is it because of specialized encryption hardware or sheer brute force?
Or is it just this implementation that's slow?
I used telnet back in the 68k days.
Ooooooh yeah. It's got some serious overhead on single core systems several-hundred-megahertz systems without the instructions that are used to accelerate encryption these days. AES is what modern CPUs use to help with that. It wasn't until Power7+ before encryption was accelerated on that class of CPUs. The latest Mac to use Power CPUs was discontinued 6 years before that.
for interactive use, compared to rendering to the display and pushing the packet out the crypto overhead is going to be minuscule
doing the initial key exchange before timeout is barely possible for a 68030 at 16MHz, takes the better part of a minute!
of course, on the later PPC machines it's a complete non-issue
I've used modern encryption/mac routines on small embedded micro's and they seem reasonably efficient. Couple of operations per byte. They have to be fast because they are used for decrypting stuff like streaming video. I think an exception is password hashing algorithms which are slow by design.
That said some of the older algorithms are really inefficient. Hundreds of ops per byte.
This tool is relying on libssh2 for its SSH implementation core. chacha20-poly1305 and ed25519 are both extensions and are not included.
As for encryption, can you use a preshared key instead of public key?
blitting from a buffer onto the screen is, indeed, pretty fast, I've been experimenting with it and have some ideas for speeding things up
I remember Apple II's dominating when I was in school back in the 1980's. Then in the 1990's when I was in college, all I remember seeing anywhere were PC's. DOS and then Windows for the masses, and this new thing called Slackware Linux for many of us in the CS department.
In the 2000's I started hearing about Macs, but only for creative domains like Photoshop or video editing. Then the Intel CPU switch happened, and today I'm on a MacBook just like pretty much every other programmer I know.
What was Apple's "niche", and who was their "base", back in the 1990's?
They've also always had a decent base in the creative space-- Photoshop 1.0 being a Mac app had a big impact. Scully's mismanagement of the company meant a lot of people dumped the company in the mid-1990s, though; Jobs' return, the OSX transition, and the Intel switch were all necessary to bring the Mac division back up to where it is today.
It used to be really hard to get printer output to look the same on the page as what you saw on the screen, and the small details matter when people are laying out a complicated magazine (or whatever) page and need text to flow around images and other design elements. There was a whole Adobe-vs-everyone battle over things like outline (as opposed to bitmap) font technology since they controlled the standard for PostScript fonts as used by printers like LaserWriter: https://en.wikipedia.org/wiki/PostScript_fonts#Type_1
Then Apple created TrueType, and it is the biggest feature of System 7 that I never see anyone talk about: https://en.wikipedia.org/wiki/TrueType
Then still lots of back and forth over things like Adobe's multi-master fonts vs TrueType GX which despite being part of the "failed" QuickDraw GX actually lives on in OpenType today:
https://en.wikipedia.org/wiki/Multiple_master_fonts
https://atadistance.net/2016/09/20/truetype-gx-model-lives-o...
https://tidbits.com/1994/09/26/preliminary-practical-primer-...
---
e: "magazine page" is what always comes to mind because it makes me think of the Diehard GameFAN story:
http://www.hardcoregaming101.net/gamefan/GameFAN.htm
"he calls the layout artist (which was probably Jacob Riskin or George Weising at the time), 'my trusty [Macintosh] Quadra operator'. What an assface."
"The MPW Shell command language was based on the Unix csh language, but was extended to support the main features of the Macintosh GUI. It had simple commands to create menus, dialogs (prompts), and new shell windows. The cursor could be controlled, and MPW scripts or tools could easily be attached to a menu item. Command key shortcuts could be specified. Window size and location could be controlled. These features were popular in commercial production environments, where complicated build and packaging processes were all controlled by elaborate scripts."
Macsbug[0] which was an optional install was much more feature-rich, but it was still just a debugger and not actually a command line environment.
Other than that, great work.