InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Clojure Roundup: Distribution with Crane, Mathematics with Incanter, Builds with Leiningen 1.0

Posted by Werner Schuster on Dec 13, 2009

Sections
Process & Practices,
Development,
Operations & Infrastructure
Topics
Deployment / Datacenter ,
Ruby ,
Java ,
Dynamic Languages ,
Build systems ,
Configuration Management
Tags
Maven ,
LISP ,
Clojure ,
Functional Programming ,
Statistics ,
Hadoop ,
Distributed Programming ,
EC2 ,
Parallel Programming

FlightCaster analyzes data with Clojure, using Hadoop for distributing the work. The company has now open sourced Crane, the tool that handles a lot of the mechanics of distribution at FlightCaster.

Crane currently works with EC2; it makes it simple to start EC2 instances, push Clojure code to them and make them accessible via ssh. The remote instances can be controlled from a master, eg. it's possible to remotely evaluate Clojure code on the instance (from the Readme):

(eval! socket (execute (workflow some-cascading-workflow)))

The socket holds a connection to the remote instance, which will execute the 2nd argument locally.

More information is available in Bradford Cross' post about the Crane release.

FlightCaster also recently contributed statistical-learning code to Incanter. Incanter is:

[..] a Clojure-based, R-like statistical computing and graphics platform for the JVM.

Incanter bundles mathematical Java libraries with the visualization libraries of Processing. The tool can be used interactively (by using the bin/clj executable in the Incanter distro) or as a library in Clojure programs.
As the announcement of FlightCaster's code contribution mentions, there's work under way to make Incanter work with Hadoop.

Finally, the build and dependency management tool Leiningen 1.0 has been released. To get Leiningen follow the install instructions:

1. Download the script: http://github.com/technomancy/leiningen/raw/stable/bin/lein
2. Place it on your path and chmod it to be executable.
3. Run: lein self-install


Once installed, lein new PROJECT_NAME creates a new Clojure project skeleton with the basic necessary files, including the Leiningen configuration file project.clj. (Note: if the command fails with an error, the system might be missing the right Clojure.jar).

Leiningen helps with building, but also with getting dependencies for a project; it works well with Clojars, a repository for Clojure libraries which builds upon Maven.

For an example of using Leiningen, Building Incanter applications with Leiningen and Clojars.org walks through an example using Incanter as dependency.

No comments

Watch Thread Reply

Educational Content

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.

Questions for an Enterprise Architect

Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?