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.
Apple's new Objective-C to Javascript Bridge
51–60 of 110 posts
Re: Apple's new Objective-C to Javascript Bridge
#52Does this bridge help fix that?
Re: Apple's new Objective-C to Javascript Bridge
#53That's so often just about outward signs. Programming is complicated, and the fields of programming and Computer Science are vast. If you're not aware of how miniscule a sliver of the whole thing you command, odds are you're just another unwitting Dunning Krueger victim.
Don't judge a language by what you find strange. Don't judge a language just because it wouldn't suit what you do. Figure out what makes it powerful and why it works. Until you do that, please just shut up and don't add to the noise.
Re: Apple's new Objective-C to Javascript Bridge
#54Re: Apple's new Objective-C to Javascript Bridge
#55Re: Apple's new Objective-C to Javascript Bridge
#56My 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?
It's important to remember that Apple shipped both the Ruby and Python Objective-C bridges in ~10.5 era OS X. You can (and I have) written OS X native software in Python; it wasn't super pretty, but the concepts mapped across reasonably well. So I wouldn't take this as necessarily the sign of a shift in anything.
Re: Apple's new Objective-C to Javascript Bridge
#57Earlier quoted context omitted.
You last sentence is a bit far-fetched.
The referred sentence is a matter of opinion, so it's a bit far-fetched to say it's a bit far-fetched, IMO. From what I know of Lua, it's fairly tiny, and it has ready access to its own meta-level -- to the point where there can be a blurring of programming and meta-programming. Instead of everything "being an Object," everything is in a table. Just rename "table" to "object" and call it a prototypical day.
Re: Apple's new Objective-C to Javascript Bridge
#58Earlier quoted context omitted.
It's important to remember that Apple shipped both the Ruby and Python Objective-C bridges in ~10.5 era OS X. You can (and I have) written OS X native software in Python; it wasn't super pretty, but the concepts mapped across reasonably well. So I wouldn't take this as necessarily the sign of a shift in anything.
Also, people at Apple like Objective-C and its Smalltalk influences. For those of us who've been in the NeXT/Apple ecosystem a long time, it's clear that employees at Apple see Ruby as more interesting than say Javascript because of the Smalltalk influences. If any shift were to occur, money is on Ruby. But Apple likes Objective-C and no shift seems likely and we also saw what happened with MacRuby and the author lea…
Re: Apple's new Objective-C to Javascript Bridge
#59It's only interesting because Apple is officially doing it themselves.
Re: Apple's new Objective-C to Javascript Bridge
#60Earlier quoted context omitted.
The referred sentence is a matter of opinion, so it's a bit far-fetched to say it's a bit far-fetched, IMO. From what I know of Lua, it's fairly tiny, and it has ready access to its own meta-level -- to the point where there can be a blurring of programming and meta-programming. Instead of everything "being an Object," everything is in a table. Just rename "table" to "object" and call it a prototypical day.
No it's not, jokes aside, implicitly comparing Javascript to Lisp from the point of view of elegance is simply incorrect, for many definitions of "elegance".