Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Clojure made simple

 
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
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

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic