4 ms·
Sorry... what? The more I read this, the more asinine it sounds. Some definitions: - The Obj-C runtime is just a shared library that Swift links to on compila
by dlivingston 4y ago
Sorry... what? The more I read this, the more asinine it sounds.
Some definitions:
- The Obj-C runtime is just a shared library that Swift links to on compilation (/usr/lib/libobjc.A.dylib). The performance to call into it is identical for Swift and Obj-C.
- "Sure you could get better performance by writing your apps directly in Obj-C..." Swift code is native code. Cost to access the runtime is identical.
- There is one "hop" to go from Swift to the Obj-C runtime.
- There are >2 "hops" to go through the JS Bridge. https://hackernoon.com/understanding-react-native-bridge-concept-e9526066ddb8 https://hackernoon.com/understanding-react-native-bridge-con...
- claytongulick 4y ago> the more asinine it sounds. HN is better without personal attacks and insults.
- zapzupnz 4y agoThe comment was against the argument being made, not the user. Nothing personal about it.
- claytongulick 4y agoThat's an interesting take that I don't agree with. It could be extended to pretty much anything: "I'm insulting your clothes, not you". Calling something that a person says, or writes "asinine" is inflammatory. If I were to call your defense of it "naive, brain dead and utterly absurd" are you sure you wouldn't interpret that as a personal attack?
- zapzupnz 4y ago> Calling something that a person *says or writes* "asinine" is inflammatory Yes, inflammatory. But personal, no. > If I were to call your defense of it "naive, brain dead and utterly absurd" are you sure you wouldn't interpret that as a personal attack? Correct, because it's not personal. That would be attacking the quality of the argument, not me, although it would certainly be inflammatory. I certainly wouldn't take it well — but for a totally different reason than you originally specified. "Personal" and "inflammatory" are two different things.