Disclojure: public disclosure of all things clojure. ClojureDocs - Community-Powered Clojure Documentation and Examples. Cheatsheet. Learn Clojure. Fatvat: Data Persistence in GAE with Clojure.
If you want to persist stuff in Java, you've got a bewildering amount of choiceThere's even an entire book about making the right decision!
(Persistence in the Enterprise) Google App Engine has gone with JDO using the Data Nucleus platform. In GAE this is split again into two APIs, the high-level one for persisting objects, and a lower-level one which allows you to persist raw data. When using Clojure it makes more sense to go with the lower-level api. The higher-level one would require using annotations on objects which isn't supported at the moment in Clojure (as far as I know!). So how do we store data in GAE?
(ns news.savestory (:use (news appengine)) (:gen-class :extends javax.servlet.http.HttpServlet) (:import (com.google.appengine.api.datastore DatastoreServiceFactory Entity Key Query))) store takes a map and a type and persists it in the database and returns the key associated with this entity. Retrieving the data is much the same. Clojure Series: Table of Contents. Writing/Coding Writing and Coding, Literature and Computers Tuesday, June 17, 2008 Clojure Series: Table of Contents Here are the postings I have published so far for this series.
Posted by Eric Rochester at 5:52 PM. Clojure Programming - Wikibooks, collection of open-content textbooks. Clojure is a dynamic programming language for the JVM.
Article Change History Sounds Even Jennifer Aniston has quit using other programming languages and now prefers Clojure. Sound Clip #1 Sound Clip #2. Home. Casting SPELs with Clojure - Home - Anyone who has ever learned to program in Lisp will tell you it is very different from any other programming language.
It is different in lots of surprising ways - This comic book will let you find out how Lisp's unique design makes it so powerful ! This tutorial was adapted for Clojure, an exciting new dialect of Lisp running on the Java Virtual Machine. Clojure's syntax and API resembles Common Lisp, but there are enough differences to write a dedicated version of this book. Most of the time, we will say "Lisp" instead of "Clojure", since most of the concepts presented apply to Lisp in general - we will point out the places where Clojure handles things a little different.
Since Clojure is based on the JVM, you will need to have Java installed on your system. For the examples in this tutorial, simply unpack the archive, open a command line tool and switch to Clojure's main directory. Java -jar clojure.jar Clojure 1.1.0 user=> This tutorial has small bits of Clojure code written in. Try Clojure. Clojure Notes.