News for hackers. Stuff that matters.
Re:Hello-World iOS App in Assembly by saagarjha on Thursday October 30, 2025 @04:28AM (#45757628)
This is an excellent argument for not using assembly, actually
Re:Hello-World iOS App in Assembly by bilekas on Thursday October 30, 2025 @05:20AM (#45757931)
The argument is that learning assembly is useful, it gives some insights into what happens under the hood. That seems like a no brainer to me.

Would I use it for production iOS app, no, I don't hate myself that much.

Re:Hello-World iOS App in Assembly by saagarjha on Saturday November 01, 2025 @07:25AM (#45780839)
Learning assembly is useful, yes. Learning assembly by reading an app written in assembly…not so much.
Re:Hello-World iOS App in Assembly by flohofwoe on Thursday October 30, 2025 @05:54AM (#45758144)
It's still very educational. It shows how ObjC method calls work under the hood, because even calling objc_msgSend() from plain C involves a certain amount of non-obvious magic (because of the variable argument list and return types).

And tbh I'm kinda surprised how little assembly code it is, less than most UI framework hello-worlds in high level languages ;)

Re:Hello-World iOS App in Assembly by saagarjha on Saturday November 01, 2025 @07:25AM (#45780836)
You can just cast it to a function pointer of the right type and use it, the ABI is C-compatible