Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
On my way to becoming a Developer for IOS !!!!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vansmith" data-source="post: 1421110" data-attributes="member: 71075"><p>Oh, I can appreciate different syntax. In fact, I find <a href="http://en.wikipedia.org/wiki/Vala_(programming_language)" target="_blank">Vala's</a> syntax to be a nice blend of curly brace languages and more "readable" languages like Ruby and Python.</p><p></p><p>I can do you one better on the "completely different" - Lisp. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>So as to give Obj-C some points, I did a little test to highlight the value of machine code produced by languages like Obj-C over interpreted code (like Python). Here are the speed results of the loops I posted earlier:</p><p></p><p>Obj-C binary: </p><p> - Build Time: 4.735s</p><p> - Execution Time: 0.112s</p><p></p><p>Python script:</p><p> - Execution Time: 0.115s</p><p></p><p>There you have it - the Obj-C binary is 0.003 seconds faster at looping to 100. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p>Looping to 10,000 produced some interesting results:</p><p></p><p>Obj-C execution time: 8.526s</p><p>Python execution time: 0.140s</p><p></p><p>I can't explain that one.</p></blockquote><p></p>
[QUOTE="vansmith, post: 1421110, member: 71075"] Oh, I can appreciate different syntax. In fact, I find [URL="http://en.wikipedia.org/wiki/Vala_(programming_language)"]Vala's[/URL] syntax to be a nice blend of curly brace languages and more "readable" languages like Ruby and Python. I can do you one better on the "completely different" - Lisp. ;) So as to give Obj-C some points, I did a little test to highlight the value of machine code produced by languages like Obj-C over interpreted code (like Python). Here are the speed results of the loops I posted earlier: Obj-C binary: - Build Time: 4.735s - Execution Time: 0.112s Python script: - Execution Time: 0.115s There you have it - the Obj-C binary is 0.003 seconds faster at looping to 100. ;) Looping to 10,000 produced some interesting results: Obj-C execution time: 8.526s Python execution time: 0.140s I can't explain that one. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
On my way to becoming a Developer for IOS !!!!
Top