Writing web applications in Clojure

Clojure [1] made its first appearance in the software landscape in 2007. The functional programming language combines Lisp-like syntax with an implementation on the Java Virtual Machine (JVM). Within a few years, a Clojure community with user groups [2] and conferences (e.g., Clojure West [3] and Clojure/conj [4]) has been established.

An extensive ecosystem of libraries has emerged for the language, which is released under the Eclipse Public License. Clojure benefits from its Java origins, which lets it share the VM with Java and JRuby, and impresses with abstraction over concurrency [5] on multiprocessor systems. The name evokes the closure programming concept, with the "j" coming from Java.

Clojure advocates are enthusiastic about the improved productivity this expression-rich language permits. I strongly encourage you to take a look at an essay by Lisp advocate and entrepreneur Paul Graham [6] that describes the implications of the advantages Lisp programming confers, leading some Internet startups to focus on the language they use in large web applications. In this article, I show you how to use Clojure to implement a simple chat for the web browser (Figure 1).

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Fedora 18 Released

    After several delays, the Fedora Project has officially released Fedora 18 (“Spherical Cow”), the latest version of its Linux-based operating system.

  • Linux News

    Anonymous Active

    • Anonymous hacktivists launch Operation Last Resort
    • KDE 4.10 released
    • News Bites

    Dell Goes Private

    • Dell to buy back stock
    • Fedora 18 released
    • LibreOffice 4.0 out
    • RaspPi Camera

    Tech Employment

    • Tech unemployment less than half national average
    • Linux Foundation UEFI fix
  • OpenNote: Web-Based Notebook
  • Steadfast

    Immutable distributions offer a layer of added security. Bruce explains how immutable systems work and discusses their benefits and drawbacks.

  • Linux News

    Updates on Technologies, Trends, and Tools

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News