Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Programming

Cocoa-Like JavaScript Framework Announced 188

TwilightSentry writes "Ars Technica reports that a group of developers has created an Objective-C-like extension to JavaScript along with a class library mirroring Cocoa. They've used these to release an impressive demo app called 280 Slides. The article notes, 'Whereas SproutCore seeks to "embrace the platform" by giving a Cocoa-like development model for developers already using HTML, CSS, and JavaScript to make a web app, Cappuccino and Objective-J take an entirely different approach. "Since Cappuccino runs entirely on the client, at run time, we're never actually generating HTML or CSS," says Boucher. "When you build an application in Cappuccino, you don't need to ever deal with HTML or CSS. All of your interface is designed in Objective-J and Cappuccino. Cappuccino focuses on application architecture more than anything else, like building applications that know how to save and open documents, or copy and paste. We also built a powerful graphics engine into Cappuccino, so you can make rich applications like 280 Slides."' The developers plan to release the framework and preprocessor as open source. No mention is made of a specific license."
This discussion has been archived. No new comments can be posted.

Cocoa-Like JavaScript Framework Announced

Comments Filter:
  • Feh (Score:2, Interesting)

    by rs79 ( 71822 ) <hostmaster@open-rsc.org> on Sunday June 29, 2008 @01:14PM (#23991627) Homepage

    I've played with and written interpreted langaugesand for decades I've hels the fervent belief that the further away from C you go the worse the bloat.

    And "hello world" is how many bytes in this pig?

  • Re:Feh (Score:4, Interesting)

    by FooAtWFU ( 699187 ) on Sunday June 29, 2008 @01:36PM (#23991763) Homepage

    That's probably true, but sometimes optimizing for programmers' convenience is more important than reducing every ounce of bloat to the bare minimum. RAM is cheap enough and reusable; programmers' time isn't either.

    If you're not trying to write a high-performance scalable computing cluster app, or an operating system, or a fancy computer game, then bloat really isn't an issue.

  • Stolen graphics? (Score:1, Interesting)

    by Anonymous Coward on Sunday June 29, 2008 @02:04PM (#23991949)

    Is it me, or are they blatantly stealing Apple's graphics (design, icons, etc)?

  • Re:Feh (Score:3, Interesting)

    by iluvcapra ( 782887 ) on Sunday June 29, 2008 @02:34PM (#23992219)

    This framework is all in javascript and locally executed, however; with HTML5 local storage you should be able to run it as well as any server app once it's loaded.

    If you haven't tried the demo you should, it's really quite superb, just the initial load is rough now that it's been slashdotted.

  • by kestasjk ( 933987 ) on Sunday June 29, 2008 @02:46PM (#23992331) Homepage
    But may I say wow, that is a very impressive web-app. It really does feel like an office application and not a web-app.
  • Re:Feh (Score:3, Interesting)

    by jsebrech ( 525647 ) on Sunday June 29, 2008 @02:49PM (#23992357)

    If you have the google gears plugin installed, google docs works offline. Offline support is not an inherent advantage of native apps. The only truly insurmountable advantage native apps have over web apps is performance, but with today's vastly overpowered multi-core machines, performance has faded into the background, and it's going to become less relevant as the browser upgrades get rolled out (javascript 2, faster layout engines, hardware-accelerated graphics api's, ...).

  • by radarsat1 ( 786772 ) on Sunday June 29, 2008 @03:24PM (#23992627) Homepage

    I've been playing with XULRunner quite a bit lately and though I haven't yet applied it to a "real" application, I have to say it's pretty nice and convenient to be able to design a cross-platform GUI for a local application using HTML and CSS. The trouble of course is that your application looks like a web page. (This is getting less important now that it supports native widgets of course.)

    If this is open-sourced in a license-compatible manner with XULRunner, it might make for some very interesting, user-friendly (i.e., pretty), and completely cross-platform local applications.

  • Re:Excellent! (Score:3, Interesting)

    by cheesy9999 ( 750203 ) on Sunday June 29, 2008 @03:33PM (#23992705)
    You managed to fit quite a lot FUD in one sentence.
    • Cappuccino and Objective-J aim to completely abstract away the inconsistencies of the browser DOM (JavaScript the language itself is fairly consistent across browsers)
    • Objective-J brings classical inheritance to JavaScript, which has much more familiar semantics to most people than JavaScript's prototypal inheritance
    • Regardless of Objective-C's syntax, have you seen some of the syntactical hoops JavaScript programmers jump through to get pseudo-classical inheritance? Just check out Crockford's JavaScript pages [crockford.com] and his new book. There's about a half dozen different ways to do it, none of which I find particularly elegant.
  • by dave420 ( 699308 ) on Sunday June 29, 2008 @04:03PM (#23992933)
    Flash isn't as bad as you make it out to be. ActionScript 3 (now fully ECMA-compliant) is phenomenally fast, and highly portable. It works great on Linux, Windows, OS X, and when Flash Lite gets updated to AS3 (it's AS2 at the moment), you'll have your phones covered, too. JavaScript is very useful, but this is not a great use for it. Flash (or, rather, Flex), to me at least, seems like the elegant method. Support, speed, simplicity.
  • by Haeleth ( 414428 ) on Sunday June 29, 2008 @04:26PM (#23993101) Journal

    I had a quick go with 280Slides. The interface was impressively slick.

    Then I tried to enter some non-English text, and it totally freaked out on me. When I pressed the keyboard combination to switch input methods, 280slides inserted three capital 'A's with acute accents. When I tried to type a simple Japanese phrase, 280slides inserted a single lower-case 'a' with a little circle over it.

    This is the 21st century. We live in an increasingly globalised world. Applications that can't handle Unicode and multiple input methods have no place in this day and age. Back to the drawing board, guys, and don't come back till your nice slick interface has some basic i18n features, please.

  • by aesiamun ( 862627 ) on Sunday June 29, 2008 @05:08PM (#23993381) Homepage Journal

    Where can I download it?

    I keep hearing how phenomenal this is, but I can't find it and objective-j.org says 'coming soon'.

    Come, don't push a website if it doesn't exist.

  • by rboucher ( 1316519 ) on Sunday June 29, 2008 @06:55PM (#23994089)
    Where exactly does it "Breaks in places in Firefox?" Let us know and we'll get right on it.
  • Re:Impressions (Score:4, Interesting)

    by GrahamCox ( 741991 ) on Monday June 30, 2008 @12:05AM (#23996419) Homepage
    A lot of mediocre programmers seem to complain about Objective-C syntax and Cocoa and whatnot. I can tell you, after 14 years immersed in C++, Cocoa/Objective-C was a breath of fresh air. I picked up the language in about a day and the basics of Cocoa in a few more. Obviously getting really comfortable with it takes a while longer but after doing Cocoa solidly now for 5 years I'd find it very hard to give up. If you've yet to see the advantage then you're probably not doing anything seriously with it. The dynamic dispatch alone simplifies things in a way that C++ can only dream of.

    As for MFC, it's a total joke compared to what you can accomplish in Cocoa with a fraction of the code and with a result in another league in terms of stability and quality.

    I'm not a rabid fanboi or whatever I'll probably get accused of, but after using a number of languages and frameworks over the years (including developing my own general purpose framework in C++ for Mac) I can tell you that in my experience Cocoa is the best there is right now, and that has been the case for a while.
  • by Cato ( 8296 ) on Monday June 30, 2008 @01:44AM (#23996951)

    Why would the browser need to tell you about a non-English input method? In my experience of I18N of web apps, this is completely unnecessary, since the input method is invisible to the application (rather like switching keyboard layouts) - all that's needed is for the web app to support Unicode etc. Since JavaScript uses Unicode natively, I can't quite see how 280 North has managed to break Unicode support like this.

Happiness is twin floppies.

Working...