Live data from Hacker News

Apple's new Objective-C to Javascript Bridge

steamclock.com

11–20 of 110 posts

Re: Apple's new Objective-C to Javascript Bridge

#11

So with this marriage of Objective-C and JavaScript: How much longer until we can develop native applications without Objective-C entirely? A polygot/trans compiler for xcode would make me melt.

> How much longer until we can develop native applications without Objective-C entirely?

You already can --

Lisp: Nu

Ruby: MacRuby/RubyMotion

Basic: Objective-Basic

Re: Apple's new Objective-C to Javascript Bridge

#15
post #10

The future is arriving- slowly. Hopefully soon we will be able to make the core of our apps cross-platform by leveraging languages like Javascript, and only resorting to platform-specific code for UI layers. Here's hoping.

Uhm, why 'soon'? Just write the core of your application in C++ and marry said core with platform specific languages for UI code.

Re: Apple's new Objective-C to Javascript Bridge

#16
post #2

My guess is that this would be fast enough to build almost any Mac app and many iOS apps. The bigger question for me is, how gross would it be to deal with the "Objective-C-ness" of the Cocoa APIs through JavaScript?

On iOS it won't be that quick: you don't get anything more than the JS interpreter, as you cannot allocate any executable memory on iOS, so any JITing compiler is out of the question.
Post reply on HN