←back to thread

169 points pabs3 | 1 comments | | HN request time: 0.243s | source
Show context
sanskarix ◴[] No.45756787[source]
This kind of thing is how you actually learn what's under the hood. Everyone's building with React Native and Flutter, which is fine until something breaks. Then you're stuck Googling black magic. Starting from assembly teaches you the real cost of abstraction.
replies(8): >>45757063 #>>45757628 #>>45758058 #>>45758840 #>>45758893 #>>45759007 #>>45760502 #>>45761692 #
saagarjha ◴[] No.45757628[source]
This is an excellent argument for not using assembly, actually
replies(2): >>45757931 #>>45758144 #
1. flohofwoe ◴[] No.45758144[source]
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 ;)