Live data from Hacker News

I ported Mac OS X to the Nintendo Wii

bryankeller.github.io

171–180 of 337 posts

Re: I ported Mac OS X to the Nintendo Wii

#171
post #75

Earlier quoted context omitted.

Tempted to necro a 5 year old reddit post just to tell that guy he was wrong, honestly

I wanted to, but no replies are allowed now :)

I tried messaging them and it says I'm not allowed to message them. Weird, never had that happen to me

Re: I ported Mac OS X to the Nintendo Wii

#172

Before figuring out how to tackle this project, I needed to know whether it would even be possible. According to a 2021 Reddit comment: There is a zero percent chance of this ever happening. Feeling encouraged, I started with the basics: what hardware is in the Wii, and how does it compare to the hardware used in real Macs from the era. I LOL'd

I almost think such projects are worth it just to immortalize comments like these. There's a whole psychology of wrongness that centers on declaring that not-quite-impossible things will definitely never happen, because it feels like principled skepticism.

Now tell me your opinion on P==NP being confirmed within 5 years.

Re: I ported Mac OS X to the Nintendo Wii

#173
post #47

Earlier quoted context omitted.

IOKit was actually built from the ground up for OS X! NeXT had a different driver model called DriverKit. I've never coded against either, but my understanding was they're pretty different beasts. (I could be wrong) That said, indeed, the abstraction layer here is delightful! I know that some NetBSD devs managed to get PPC Darwin running under a Mach/IOKit compatibility layer back in the day, up to running Xquartz on…

As I remember it, they were basically the same—but IOKit is C++ (with restrictions) because 3rd party developers didn't want to learn Objective-C. But that's a hazy, 20 year old memory.

Yes, you're right! I'm just dolt who's never checked what a .kext on OS X actually is.

I had been under the impression that DriverKit drivers were quite a different beast, but they're really not. Here's the layout of a NS ".config" bundle:

  ./CG6FrameBuffer.config/English.lproj
  ./CG6FrameBuffer.config/English.lproj/Info.rtf
  ./CG6FrameBuffer.config/English.lproj/Localizable.strings
  ./CG6FrameBuffer.config/CG6FrameBuffer_reloc
  ./CG6FrameBuffer.config/Default.table
  ./CG6FrameBuffer.config/Display.modes
  ./CG6FrameBuffer.config/CG6FrameBuffer
The driver itself is a Mach-O MH_OBJECT image, flagged with MH_NOUNDEFS. (except for the _reloc images, which are MH_PRELOAD. No clue how these two files relate/interact!)

Now, on OS X:

  ./AirPortAtheros40.kext/Contents
  ./AirPortAtheros40.kext/Contents/_CodeSignature
  ./AirPortAtheros40.kext/Contents/_CodeSignature/CodeResources
  ./AirPortAtheros40.kext/Contents/MacOS
  ./AirPortAtheros40.kext/Contents/MacOS/AirPortAtheros40
  ./AirPortAtheros40.kext/Contents/Info.plist
  ./AirPortAtheros40.kext/Contents/version.plist
OS X added a dedicated image type (MH_KEXT_BUNDLE) and they cleaned up a bit, standardized on plists instead of the "INI-esque" .table files, but yeah, basically the same.

Re: I ported Mac OS X to the Nintendo Wii

#174
post #49
post #17

In addition to the incredible engineering work here the OP casually flexes by showing the development happening _in an economy class airplane seat_.

I can't imagine concentrating on a complicated project like that on the go, but I went back to stare in awe at said picture and I think its a train or bus. Still a flex.

The picture with the black seats in on a train and the one with the green seats is on a plane.

Re: I ported Mac OS X to the Nintendo Wii

#176

Before figuring out how to tackle this project, I needed to know whether it would even be possible. According to a 2021 Reddit comment: There is a zero percent chance of this ever happening. Feeling encouraged, I started with the basics: what hardware is in the Wii, and how does it compare to the hardware used in real Macs from the era. I LOL'd

I almost think such projects are worth it just to immortalize comments like these. There's a whole psychology of wrongness that centers on declaring that not-quite-impossible things will definitely never happen, because it feels like principled skepticism.

I'm remindded of my favorite immortalized comment, "No wireless. Less space than a Nomad. Lame." Rob Malda of Slashdot, 2001, dunking on the iPod when it debuted.

Re: I ported Mac OS X to the Nintendo Wii

#177
post #17

In addition to the incredible engineering work here the OP casually flexes by showing the development happening _in an economy class airplane seat_.

I think it is a bus maybe? I can see out a window over some seats, and the overhead compartments don't really look like ones i've seen before.

That being said, that is absolutely amazing they brought a wii where ever they were going to write and debug this while traveling! That is dedication!

EDIT: nvm, there are multiple pictures of them traveling. First one looks bus like, second one look like an airplane.

Re: I ported Mac OS X to the Nintendo Wii

#178
Wonderful write up, thank you for sharing!

> In the end, I learned (and accomplished) far more than I ever expected - and perhaps more importantly, I was reminded that the projects that seem just out of reach are exactly the ones worth pursuing.

Couldn't agree more. I've had my own experience porting something that seemed like an intractable problem (https://news.ycombinator.com/item?id=31251004), and when it finally comes together the feeling of accomplishment (and relief!) is great.

Re: I ported Mac OS X to the Nintendo Wii

#180

Before figuring out how to tackle this project, I needed to know whether it would even be possible. According to a 2021 Reddit comment: There is a zero percent chance of this ever happening. Feeling encouraged, I started with the basics: what hardware is in the Wii, and how does it compare to the hardware used in real Macs from the era. I LOL'd

HN is not as bad but I think a lot of internet commenters do this because it gives them a little hit of superiority

Plus the internet basically equates cynicism with intelligence

There is somehow no concept of "ignorant cynicism"

Post reply on HN