Hacker News new | past | comments | ask | show | jobs | submit login
An interview with 280 North on Objective-J and Cappuccino (ajaxian.com)
42 points by bomberstudios on June 6, 2008 | hide | past | favorite | 13 comments



280North guys did what I always thought would be an awesome and useful undertaking and implemented it better than I thought could be done. I am talking about ObjectiveJ/Cappuccino specifically, but 280Slides is a whole different story. Everything runs snappy and I don't remember last time I was so impressed with so few people's worth of work.

I can see a lot more being done in this direction, but I am just in awe in how well this was done so far in the time they had.


Why did you chose to do Objective-J -> JS processing in the browers? For sake of speed, wouldn't it be a good idea to do it server-side and then just serve the JS?


Actually, we use both methods. You can preprocess the code ahead of time if you want, and serve content that way. We do this for our core frameworks (AppKit and Foundation). Most of our application code is not preprocessed though. One of the benefits of being able to run without having to "compile" (which is essentially what having to preprocess ahead of time is) is that you have a much more dynamic development environment. You can change code, hit refresh, and see your changes immediately reflected, instead of compiling and waiting.


The main advantage of doing it in the browser is for the developer: you don't need the explicit compile step: just write code, save it, refresh the browser. It also enables neat things like a REPL.

That said, the nice thing about writing the preprocessor in JavaScript was we can do preprocessing ahead of time on the server, if we need to. However, doing it client-side is not as slow as you would expect.

edit: Ross beat me to it, but we said basically the same thing


It also seems that you can easily have a "testing mode" where you run the preprocessing client side when you are just building the app, and then when you deploy like "for real", run the preprocessing server side to keep things fast(er).

If the site gets too hammered, then you could even have it switch, where an overloaded server tells clients to preprocess for themselves while the server catches up. This would be an interesting way to handle spikes in usage (like now for example)


Presumably the code doesn't change very often, so we actually just preprocess it once per revision and serve up the static files, so there's no extra load on the server or the client.


Did you guys implement proper message passing and proxying, or are they ad-hoc method calls?


We do indeed do dynamic dispatch, just like Objective-C.


Guys, great job!

I have a question about timelines... how long was Obj-J in development and how long did it take you to develop 280slides? I remember reading that you started in 2005...


Thanks. Yes, Obj-J/Cappuccino was started while we were in college in 2005, but was put on hold for awhile when we had other jobs. 280 Slides was written in about 5 months, concurrently with some work on Cappuccino.


Does anyone know where I can read more technical details about Objective-J or Cappuccino?

This sounds pretty impressive so far ..


Does it work on the iPhone?


Short answer: yes. Long answer: There's still some work to do.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: