Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clojure made simple

 
Arjun Shastry
Ranch Hand
Posts: 1898
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Author,
How easy to write server side application in Clojure ? For example- JMS Queue receiver program? or XML file parsing ? Is there any advantage of writing server side applications in Clojure over Java ?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try it yourself and see
I would say the advantages that you will have are much less typing, the ability to wrap some repetitive code patterns in Macros an of course the functional programming concepts that are really suitable for asynchronous communications. For example, a fully-fledged functions as the callback handlers.
 
Sean Corfield
Ranch Hand
Posts: 302
10
Clojure Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arjun Shastry wrote:XML file parsing ? Is there any advantage of writing server side applications in Clojure over Java ?

Clojure has a standard library for parsing XML to data structures and rendering data structures to XML: https://github.com/clojure/data.xml

As Hussein said, concise code, immutability, and higher order functions are all big benefits of Clojure over Java.

We've been using Clojure in production for two years to power increasingly larger parts of the server side of our Internet dating platform and we're very happy with the results.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic