On Sat, Mar 26, 2011 at 10:54 PM, ultranewb <pineapple.l...@yahoo.com> wrote:
>
> I guess the optimum solution I see for myself at this point is getting
> Clojure Box to talk to ClojureW (i.e. editing a source file with
> Clojure Box, then "running" that source inside some Emacs window by
> running clj).  I'm guessing this would be trivial for the Emacs
> experts out there, but if someone wants to point me to a quick
> resource on it, I'll try it.

If you're on linux, another thing you could try is jark
[http://icylisper.in/jark/]. One of the things it lets you do is run
clojure code as a "script" - from the examples:

$ cat factorial.clj

#!/usr/bin/env jark
(ns factorial
  (:refer-clojure :exclude [get]))
(defn get [n]
  (let [n (int n)]
    (apply * (take n (iterate inc 1)))))
(println "factorial of 10:" (factorial/get 10))

$ ./factorial.clj
=> factorial of 10: 3628800

martin

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to