Live data from Hacker News

Cappuccino 0.6 Released

cappuccino.org

11–20 of 21 posts

Re: Cappuccino 0.6 Released

#11
post #2

So this is sort of like Flex, but uses JavaScript modeled after Objective-C? Edit: I'm checking out the demos... this is sick . Silverlight won't kill Flash/Flex, Cappuccino will.

This is just JavaScript, you know.

Here's the Flickr demo shown on the Cappuccino site reimplemented using jQuery, with improvements to boot: http://www.brokendigits.com/2008/09/05/cappucinos-flickrdemo...

Re: Cappuccino 0.6 Released

#12
I tried running 280slides on IE 7.0 and it loaded 100% and waited for 15 seconds and nothing

Then I tried hitting refresh and hanged the instance. When I checked the memory it was leaking.

*update: if it's helpful, the exact version is 7.05730.11 running on Windows x64

Re: Cappuccino 0.6 Released

#14
post #13

Awesome job guys. This is fantastic. I'm curious about payload. Looked to be close to 160K for the "runtime"? How is the objective-j parser done?

Objective-J (the "runtime") is 76k, 13k gzipped (which is smaller than jQuery).

The two frameworks that make up Cappuccino weigh in at about 800k uncompressed, and about 150k total compressed. It's not a trivial amount, but its equally not very unusual. We're also not adding any html or css size to that, since you don't use either when using Cappuccino.

Re: Cappuccino 0.6 Released

#15
post #2

So this is sort of like Flex, but uses JavaScript modeled after Objective-C? Edit: I'm checking out the demos... this is sick . Silverlight won't kill Flash/Flex, Cappuccino will.

Um... I think GWT will kill them all.

http://google-code-updates.blogspot.com/2008/12/google-web-t...

Re: Cappuccino 0.6 Released

#17
post #2

So this is sort of like Flex, but uses JavaScript modeled after Objective-C? Edit: I'm checking out the demos... this is sick . Silverlight won't kill Flash/Flex, Cappuccino will.

Um... I think GWT will kill them all. http://google-code-updates.blogspot.com/2008/12/google-web-t...

[deleted]

Re: Cappuccino 0.6 Released

#18
post #9

hmmm... I tried the 280slides demo, it seems only for English. I can't type in Japanese and Chinese.

Probably because it's not trivial to support i18n in Cappucino? Try GWT, it has wonderful i18n support.

It's actually a 280 Slides issue, not a Cappuccino issue. The text editor (custom for 280 Slides) doesn't support entry of non-Latin characters.

However, if you copy and paste from another application you'll see the underlying framework handles it fine.

Re: Cappuccino 0.6 Released

#19
post #10
post #5

Earlier quoted context omitted.

What kind of technical information are you looking for? There are tutorials and documentation for learning how to use Objective-J and Cappuccino on the site. If you're looking for details on how we built it, there best available information is the source code :). I don't believe we've published a lot of in depth material on specific technical developments, though if I had the time I think it would be a great thing to…

I found a lot of the copy on the site was geared toward people very familiar with javascript and js frameworks, and that a lot of assumptions were made about the skill level of your visitors. I have been doing web app dev for quite a while now and never took time to learn javascript outside of using tutorials and jquery. What are the requirements or good-to-knows before beginning to learn objective-j? Also, more tuto…

Since Objective-J is JavaScript (plus a few features) then by learning one you'll learn a good portion of the other.

All JavaScript code is valid in Objective-J, but typically you won't use the prototypal inheritance stuff, since Objective-J adds classical inheritance (which is entirely what Cappuccino uses). Likewise, a large portion of the Objective-J language is just JavaScript (all of the operators, variables semantics, built in types and functions, etc).

The major additions are code importing (@import or @import "relativePath/FileName.j"), class definitions (the "@implemention" keyword and method declarations like "-(ReturnType)methodName:(ArgumentType)argument"), and method calls/message sending ("[myObject methodName:argument]")

My suggestion for learning Objective-J would be to pick up Crockford's book, "JavaScript: The Good Parts", and skip the parts about inheritance (unless you also want to learn that). It's a short book anyway. The nice thing about this particular book for learning Objective-J is it only covers the language, not the browser's APIs like the DOM, which you should never really need to know when using Cappuccino. (though I would recommend "JavaScript: The Definitive Guide", aka "The Rhino Book", as well to anyone doing JavaScript in browsers)

Once you have a feel for the core of the JavaScript language then it's just a few more syntax additions for the main features of Objective-J I listed above.

Re: Cappuccino 0.6 Released

#20
post #2

So this is sort of like Flex, but uses JavaScript modeled after Objective-C? Edit: I'm checking out the demos... this is sick . Silverlight won't kill Flash/Flex, Cappuccino will.

This is just JavaScript, you know. Here's the Flickr demo shown on the Cappuccino site reimplemented using jQuery, with improvements to boot: http://www.brokendigits.com/2008/09/05/cappucinos-flickrdemo...

[deleted]
Post reply on HN