MoofTCP – A modern replacement for MacTCP on 68k Macs

2 days ago (github.com)

As someone that also has a fondness for the old Macs, I absolutely love seeing projects like this. I love seeing an active, vibrant classic Mac community and new software for ancient machines. This is great!

  • a vibrant community of AI agents, I guess

    • the community of humans still exists! i've got several hard drive images and regularly fire up system 6.0.7 or 7.1 to tinker in THINK C.

      with a few simple modifications to minivmac, i have access to my host machine through toolbox calls.

      1 reply →

I built Flynn (well Claude did) and that's awesome you tested MoofTCP with it.

Coincidentally a couple of weeks ago I got annoyed my 512Ke couldn't go online and had Claude build talkip[1] which was fun and works surprisingly well.

1. https://github.com/ecliptik/talkip

  • Thanks (again) for Flynn! I use it just about daily now, and it's been inspirational to my agents in developing patterns for 68k dev. I will have to check out your talkIP stack. I hope my claude didn't entirely steal it.

    Given how hard it is to get the Classic online with 4MB, i can't imagine how big a PITA it is on the 512ke.

I remember dealing with MacTCP back in the mid 90s. It was a bit finicky and crash-prone.

On newer Power Macs it was replaced with a new architecture called Open Transport. That was a huge relief: it worked much better.

I love the project!

Would you consider adding in the WiFi network selector that JCS made as a desk accessory for the BlueSCSI, considering the BlueSCSI is going to be a very popular way that these old Macs are going to get networked up? It then becomes clean and simple one stop shop for getting online for a lot of old Macs?

See https://jcs.org/bluescsi for more info.

It's interesting that claude built its own stack. I remember using tinytcp back in the day on a few projects.

I wonder how "correct" this stack is. Interesting it also implemented arp as well. I can never tell if arp still is supported or not IRL!

I'd love to see claude build a bluetooth stack from scratch, given how bad I've heard the broadcom/qualcomm stacks are.

So disappointing to see no direct numeric comparisons with the original.

  • (I am the author - posting from an alt here)

    It's pretty tedious to compare - Have to run diags, take screenshots, set up watchers on a modern machine, run comparisons on the classic mac hardware, and then transfer those back from the mac to the modern machine (I haven't set up a network share solution for the mac yet, so each transfer is power down and transfer via SD card), run thru agent for validation and feedback, and repeat for each iteration.

    I went thru a few rounds of this (about 4 release candidates) before i decided that what I had was Good Enough and published it. I have noticed that Claude tends towards this "circumcizing the moquito" sometimes in the qa/validation phase.

    Here's what I was able to measure from the test log data that I did transfer across:

    | Measure | MoofTCP | MacTCP 2.1 |

    |---|---|---|

    | ACK of an echoed keystroke (median) | 2.8 ms | 4.5 ms |

    | ACK of an echoed keystroke (worst case) | 16.8 ms | 17.6 ms |

    | Delayed-ACK stall on interactive data | none | none |

    | Wikipedia Reader, follow a link | 51.7 s | 53.2 s |

    | Fetch 10 MiB over TAP | about 47–49 KB/s | about 49 KB/s |

    | Advertised TCP window | 8,192 | 4,220 |

    | Transmit stalls and retransmissions on the real Mac | 0 | not measured |

    • Do you have a good sense of what alllowed you to improve it so noticeably? Maybe fundamental design errors in the original, more modern algorithms available to you, or knowing where to skip (or remove from the hot path) functionality that goes rarely or totally unused?

      Our family Mac was the first machine I loved. Unfortunately I never got to use with so much as a modem, so I have no first hand experience with using MacTCP.

      1 reply →

    • Without seeing the memory saving metric and error bars, these are marginal improvements. Kudos on making a thing but I'm not seeing it. I also don't have a 68k mac though so maybe I don't see this being a big deal.

      8 replies →