On Mon, Apr 9, 2012 at 6:05 PM, Ulrik Sandberg <ulrik.sandb...@gmail.com>wrote:

> There's a little toy rabbit called Karotz (karotz.com). It's the
> successor of the now discontinued Nabaztag, and it's actively being
> developed. Karotz has some cool features such as text-to-speach, voice
> recognition, camera, and media player. It can also change color and
> move its ears. Lots of fun, needless to say. Still a little rough
> around the edges, but fully functional.
>
> There are several applications available to Karotz, such as news
> readers,  weather apps, radio stations, and at-home, where the kids
> after school swipe a little mini rabbit with an RFID tag over the nose
> of Karotz, which snaps a photo and emails it to daddy. You can also
> build your own apps. Apps can either run inside the rabbit (hosted),
> or on a server within the same network (external). The hosted app uses
> a JavaScript API, while the external app uses a REST API on the Karotz
> servers.
>
> I played a little using a hosted app with a few lines of JavaScript,
> getting Karotz to move its ears and say stuff in various languages.
> Then I wondered if it would be possible to use ClojureScript to
> generate the JavaScript. There's a 64K limit on the code, so it wasn't
> obvious whether it would work. But it did, using advanced mode
> compilation. The trick was to provide externs for functions on the
> global karotz object. If anybody is interested, I can provide
> details.
>
> Here's some sample code:
>
> https://gist.github.com/2346853


Very neat! Sounds like you just barely made the 64K limit :)

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to