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 Labels: clojure, clojure-series 9 comments: geekiac said... Thank you for writing on Clojure. June 25, 2008 at 5:32 AM Eric Rochester said... @geekiacI'm glad you're liking it. June 25, 2008 at 8:38 AM Paul Drummond said... Nice articles, looking forward to reading more! June 26, 2008 at 7:18 AM Great! June 26, 2008 at 8:57 AM Everything is very clear so far - it's a nice gentle introduction and I already know most of what has been covered so far. June 26, 2008 at 9:21 AM Everything being immutable is a different way of doing things, and sometimes it can be hard to get your head around.Have you seen the Rich's screencast about data types? Clojure Programming - Wikibooks, collection of open-content textbooks. Clojure is a dynamic programming language for the JVM.
FAQ Some answers to Frequently Asked Questions. Getting started The Getting started section covers obtaining and installing Clojure as well as basic setup of editors such as Emacs or Vim. Mark Volkmann's Clojure Page. 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. Try Clojure. Clojure Notes.