• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClojureScript + Om - Pixel Art Studio

 
Rancher
Posts: 379
22
Mac OS X Monad Clojure Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's an amazing application built with ClojureScript and Om (a wrapper around Facebook's React.js library): http://jackschaedler.github.io/goya/

You can take a look at the source here: https://github.com/jackschaedler/goya

At World Singles, we've been evaluating JavaScript libraries to use with ClojureScript for a new internal application we are building. We had originally planned to go down the AngularJS + ClojureScript (front end) + FW/1 + Clojure (back end) path and I built a proof of concept that worked quite nicely but AngularJS felt a bit awkward (very OOP, very imperative). I started toying around with Om at Clojure/West (March) to see whether I liked that better and was very impressed. We've just completed our proof of concept with Om + ClojureScript (front end) + Sente (core.async over web sockets) + Clojure (back end) on http-kit (a very high performance web server, designed for Clojure). We were able to create animated bar graphs easily with Om manipulating SVG directly, as well as integrating D3 - Data-Driven Documents - an amazing JavaScript visualization library. All in all, very impressive.

A very simple version of the proof of concept can be found in source form here: https://github.com/seancorfield/om-sente
 
Bartender
Posts: 2407
36
Scala Python Oracle Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for sharing this with us, Sean - have a cow!

Have to admit I'm struggling to get to grips with the whole reactive thing at the moment, and I'm very much a "back-end" kind of a guy, so all that UI stuff is way outside my comfort zone. But it's interesting to see how Clojure(Script) does this kind of thing.

Lots to learn, as always...
 
Sean Corfield
Rancher
Posts: 379
22
Mac OS X Monad Clojure Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There seems to be a lot of interest in reactive programming on the server as well these days: reactive extensions for Java, Odersky's reactive programming in Scala course etc. I've done a fair bit of event-based programming over the years so Om / React.js isn't completely alien to me but it is a big shift from "traditional" server programming, even in the functional world.
 
reply
    Bookmark Topic Watch Topic
  • New Topic