2 ms·
This is an excellent argument for not using assembly, actually
by saagarjha 1y ago
This is an excellent argument for not using assembly, actually
- bilekas 1y agoThe 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.
- saagarjha 1y agoLearning assembly is useful, yes. Learning assembly by reading an app written in assembly…not so much.
- flohofwoe 1y agoIt'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 ;)
- saagarjha 1y agoYou can just cast it to a function pointer of the right type and use it, the ABI is C-compatible