Live data from Hacker News

macOS Internals

gist.github.com

111–120 of 146 posts

Re: macOS Internals

#111

That's great! Now, bonus time: Let's do something like that for SwiftUI.

I love the Swift Talk video series https://talk.objc.io . They've done a few reimplementations of SwiftUI components that helped me feel more like I understood those things.

I subscribe to them.

Well worth it.

Re: macOS Internals

#112
post #18

Earlier quoted context omitted.

Thanks for the note; I may tweak that. Does the Highlights section's intro, "These chronologically-ordered highlights…" help? —gist author

Yeah I’d find that clearer.

I mean, it already does say what I quoted. Would you change it?

Re: macOS Internals

#113
post #89

Earlier quoted context omitted.

I don’t know that code was always text, but I’m thankful to have been born in the days after programming assembly on punch cards was not the only way.

The early days of programming was also text in the form of pencil on paper, then the program was transferred to the machine in various manual ways, such as flipping toggle switches, followed by punch cards. But the actual process of writing programs was always text. Even before electronic computers people wrote down algorithms to be executed by themselves on paper, or by rooms full of people whose job title was ‘comp…

My first experience of programming was a 1970s 8085 kit with a hex keypad and a few digits of 7 segment LED display. The only book was Intel's technical reference manual for the 8085, and my first big project (a full year university project) involved conceiving the right program, writing it on paper in assembly language, hand assembling it, entering it as hex (a few hundred bytes). It worked first time because it pretty much had to work first time so I was very very careful.

Re: macOS Internals

#114

macOS probably doesn't get enough love from an OS design perspective. Over the years I've had reasons to work pretty closely with the guts of all of Linux, macOS and Windows and macOS is probably my favourite, design wise, although for some tasks you can't beat the flexibility and feature set of Linux. A few highlights that are lesser known: - XPC/Mach is a pretty reasonable IPC system that avoids the huge complexity…

> It's very weak that the OS has no way to keep apps up to date except via the store, which then introduces tons of other problems. /usr/bin/softwareupdate [1] [1] https://ss64.com/osx/softwareupdate.html

This updates the OS and related content.

Re: macOS Internals

#115
post #61
post #31

Earlier quoted context omitted.

Yes, a modern OS is a tangled mess of microservices.

They just don't communicate using JSON. I can see it now; Kernel JSON (aka kjson) support in the Linux kernel to attract Node developers.

Seriously I wish /proc was available as a tree of JSON documents as opposed to all these different ad hoc plain text formats. It would make using /proc a lot easier and more reliable

Re: macOS Internals

#116
post #60

Earlier quoted context omitted.

I agree with most of what you've said here, except: - Code signing. It's incredibly frustrating as a developer to try and codesign an application to pass gatekeeper, requiring multiple steps with very little information as to what's _actually_ going on or going wrong in the middle of it, including uploading your entire bundle to Apple and waiting an arbitrary amount of time for them to notarize it. > It's very weak t…

A core OS service in my books is an API that can be used by any app, can be adopted in a backwards compatible way and which is used by the in-house apps too. The App Store isn't an API or service, it can't be used by every app and the built-in macOS apps aren't necessarily store apps. Yes, it's Apple's strategy but I maintain that from a tech perspective it's a very weak one. Cryptography DX is always terrible on eve…

Personally, my biggest gripe with the Swift DX, or anything DX related on macOS, actually is with Xcode.

Re: macOS Internals

#117

Earlier quoted context omitted.

> It's very weak that the OS has no way to keep apps up to date except via the store, which then introduces tons of other problems. /usr/bin/softwareupdate [1] [1] https://ss64.com/osx/softwareupdate.html

This updates the OS and related content.

> and related content

That is a very interesting if not a prodigiously strained hand-wave of a solution to GGP's complaint, "that the OS has no way to keep apps up to date," as Safari, Mail, Contacts, Calendar, Maps, Music, Photos, Messages, FaceTime, Notes, Preview, TextEdit, KeyNote, Pages, Numbers, GarageBand, Quicktime Player, Activity Monitor, Terminal, Console, Disk Utility, and hundreds of other bundled applications, and including the tens of thousands of BSD userland utilities, as well as the AppStore itself, are packages managed by the package manager called Software Update, a Preference Panel in System Preferences, which is the GUI front end for /usr/bin/softwareupdate.

There is no package manager that exists on any platform that manages every application there is, but between softwareupdate, AppStore, and the only professional and stable third party package manager for macOS that exists, MacPorts —these three package managers can be employed to keep well over 2 million distinct installed packages up to date.

Re: macOS Internals

#118
post #59

Earlier quoted context omitted.

If you don't, would recommend listening to ATP, which he's a cohost on. Still a joy to listen to.

Used to listen to it. Stopped because I cannot stand Marco Arment.

His tendency to give moralizing lectures does weirdly conflict with his tendency to talk about his several different rich people hobbies but I think he eventually managed to suppress it.

Re: macOS Internals

#120
post #62
post #59

Earlier quoted context omitted.

Used to listen to it. Stopped because I cannot stand Marco Arment.

I am mostly fine with Marco but he introduces so much fluff and nonsense that I subconsciously avoid listening to ATP.

That seems to be in demand. They're sort of associated with relay.fm podcasts which I looked into and found that, while they're supposedly tech podcasts, they're actually just guys talking about everything that happened to them today.

(Oddest case being one with CGPGrey, who I think is a famous youtuber? But you wouldn't learn a single thing about this from listening to it. Instead they talked about some kind of planning notebook they invented for hours.)

I guess it's good if you want a parasocial relationship with a dad.

Post reply on HN