Re: problems with slime and emacs

2008-10-31 Thread Volkan YAZICI
On Nov 1, 4:47 am, Chanwoo Yoo <[EMAIL PROTECTED]> wrote: > Hi. With a latest version of slime, I can not make slime working > properly with clojure on Mac(Leopard). I tried it as instructions of > clojure wiki, a readme file in swank-clojure, and emacs/slime/clojure > tutorial on ubuntu, but in t

Re: problems with slime and emacs

2008-10-31 Thread Chanwoo Yoo
Hi. With a latest version of slime, I can not make slime working properly with clojure on Mac(Leopard). I tried it as instructions of clojure wiki, a readme file in swank-clojure, and emacs/slime/clojure tutorial on ubuntu, but in the every case, slime shows some error messages. When I type m+x r

Re: Clojure documentation via mind map diagram

2008-10-31 Thread Volkan YAZICI
On Oct 31, 9:06 am, bc <[EMAIL PROTECTED]> wrote: > On my blog, I've posted an alternative way to navigate the Clojure > documentation:http://bc.tech.coop/blog/081031.html While this is being said, does Rich Hickey consider switching the pages on the Clojure website to a more consistent documenta

Re: problems with slime and emacs

2008-10-31 Thread Volkan YAZICI
On Oct 31, 5:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm struggling to get slime and emacs to work together. I copied the > code from the readme included with swank-clojure, but am running into > an error. Just for the records, there are some problems with both swank-clojure code

Re: Defining own data types on top of Persistent ones

2008-10-31 Thread Meikel Brandmeyer
Hi André, Am 31.10.2008 um 22:48 schrieb André Thieme: Can anybody give a very simple/minimal implementation of lists/ vectors/ maps in Clojure? A 5-20 lines (proxy ...) example that would allow me to say (def a (make-lyst 1 2 3)) and run several list functions on it? There is my lazy-map pac

Re: Defining own data types on top of Persistent ones

2008-10-31 Thread André Thieme
Stuart Sierra schrieb: > On Oct 31, 1:20pm, André Thieme <[EMAIL PROTECTED]> wrote: > > But unfortunately (make-lyst 1 2 3) ==> > > java.lang.ClassCastException: clojure.lang.Proxy__5307 cannot be cast > > to clojure.lang.ISeq > > > > Any ideas how this should be done so that it will work? > > I t

Re: Defining own data types on top of Persistent ones

2008-10-31 Thread Stuart Sierra
On Oct 31, 1:20 pm, André Thieme <[EMAIL PROTECTED]> wrote: > But unfortunately (make-lyst 1 2 3) ==> > java.lang.ClassCastException: clojure.lang.Proxy__5307 cannot be cast > to clojure.lang.ISeq > > Any ideas how this should be done so that it will work? I think the problem here is that IPersis

Re: Memory usage when iterating over lazy sequences

2008-10-31 Thread Mark Triggs
On Oct 31, 1:57 pm, Mark Triggs <[EMAIL PROTECTED]> wrote: > When I ran my code it very quickly ran out of memory and fell over. > After thinking about it for a while I've realised it must be because my > 'do-something' function call is hanging on to the head of the list, so > as its elements are

Re: (in-ns 'java)

2008-10-31 Thread Stuart Sierra
On Oct 31, 2:57 pm, André Thieme <[EMAIL PROTECTED]> wrote: > I get a funny result when I say (in-ns 'java), on the repl. > I can’t switch back, as in (in-ns 'user). So don't do that. :) Seriously, though, it looks like the Java runtime restricts the "java" package. Clojure namespaces are (more

Re: problems with slime and emacs

2008-10-31 Thread Daniel Renfer
I believe you need to be using a newer version from SVN for this to work correctly. (probably a good idea anyway as some important fixes have made it in since that release.) On Fri, Oct 31, 2008 at 1:31 PM, Matthias Benkard <[EMAIL PROTECTED]> wrote: > > Hi, > >> I'm sure it's something trivial t

(in-ns 'java)

2008-10-31 Thread André Thieme
I get a funny result when I say (in-ns 'java), on the repl. I can’t switch back, as in (in-ns 'user). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googl

Re: problems with slime and emacs

2008-10-31 Thread Matthias Benkard
Hi, > I'm sure it's something trivial that I'm missing. I'm not so sure. > (require 'swank-clojure-autoload) > (swank-clojure-config >  (setq swank-clojure-jar-path "/Users/clk/Documents/Development/ > Languages/lisp/clojure_20080916/clojure.jar") >  (setq swank-clojure-extra-classpaths (list "

Re: problems with slime and emacs

2008-10-31 Thread Craig McDaniel
This works for me: (add-to-list 'load-path (expand-file-name "~/src/slime")) (require 'slime) (add-to-list 'load-path (expand-file-name "~/src/clojure-mode")) (require 'clojure-auto) (add-to-list 'load-path (expand-file-name "~/src/swank-clojure")) (setq swank-clojure-jar-path (expand-file-name

Defining own data types on top of Persistent ones

2008-10-31 Thread André Thieme
In #Clojure Rich mentioned today that we can define our own data structures on top of the existing ones. Maybe someone wants/needs his own version of vectors that rearrange automatically in some specific order or whatever. If I now want to add something that works nearly like lists, but a little

Re: macro questions, "can't embed unreadable..."

2008-10-31 Thread wwmorgan
It's possible but very ugly. You need to force the reader to make two passes over the code, using eval. Here's what I came up with: (defmacro declare-init [vecs] `(doseq v# ~(if (symbol? vecs) vecs (list 'quote vecs)) (eval (list 'def (first v#) (second v#) In use: user=> (decl

problems with slime and emacs

2008-10-31 Thread [EMAIL PROTECTED]
Hello all, I'm struggling to get slime and emacs to work together. I copied the code from the readme included with swank-clojure, but am running into an error. I'm sure it's something trivial that I'm missing. Here is what I have in my .emacs copied from the various readme files. ;; clojure m

Re: Files in Clojure Google Groups

2008-10-31 Thread Stuart Sierra
Does the wiki accept file uploads? -S On Oct 31, 7:46 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Oct 30, 3:57 pm, bc <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > Is there any way to enter an annotation or comments when a file is > > uploaded to the Clojure Google Groups file area? I've rec

Re: Pathetic n00b wonders how to deploy

2008-10-31 Thread Geoffrey Teale
mb <[EMAIL PROTECTED]> writes: > On 31 Okt., 04:46, JCB <[EMAIL PROTECTED]> wrote: --- %< --- >> 2) Does Clojure have anything similar to fasl files? It looks right >> now like the way to deploy a Clojure program is to deploy the source >> (.clj) files and (load) them, is this correct? > > My gue

Re: Clojure documentation via mind map diagram

2008-10-31 Thread blackdog
On Fri, 31 Oct 2008 00:06:29 -0700 (PDT) bc <[EMAIL PROTECTED]> wrote: > > Hi all, > > On my blog, I've posted an alternative way to navigate the Clojure > documentation: > http://bc.tech.coop/blog/081031.html > > - Bill > > Thanks for the docs. I use freemind to try and organise myself :P

Re: Pathetic n00b wonders how to deploy

2008-10-31 Thread mb
Hi, On 31 Okt., 04:46, JCB <[EMAIL PROTECTED]> wrote: > 1) does Clojure maintain the CL notion of a "running image" (ACL > terms), or a "core" (sbcl terms)? > > For example, in ACL I can do (dumplisp), and I think sbcl has > something called (save-lisp-and-die) .. I don't think so, no. > 2) Doe

Re: Files in Clojure Google Groups

2008-10-31 Thread Rich Hickey
On Oct 30, 3:57 pm, bc <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there any way to enter an annotation or comments when a file is > uploaded to the Clojure Google Groups file area? I've recently had a > look at a few things there and it would be nice to have some context > or background on why

Pathetic n00b wonders how to deploy

2008-10-31 Thread JCB
Hi, I am totally new to Clojure, but not new to CL. I have been poking around a little bit and I have a couple questions: 1) does Clojure maintain the CL notion of a "running image" (ACL terms), or a "core" (sbcl terms)? For example, in ACL I can do (dumplisp), and I think sbcl has something cal

Memory usage when iterating over lazy sequences

2008-10-31 Thread Mark Triggs
Hi all, I'm just getting started with Clojure, and I've got a bit of a beginner's question regarding memory usage of lazy sequences. I have an array of data that is too big to fit in memory, so I thought I would be clever and process it in manageable-sized chunks. My instinct was to do this usi

Re: Modifying the classpath in Slime

2008-10-31 Thread Axel Schlueter
Hi Pablo, On Thu, Oct 30, 2008 at 10:07 PM, J. Pablo Fernández <[EMAIL PROTECTED]> wrote: > Can the classpath be modified for Clojure running in Slime after it > has been started? being a clojure newbie I'm not sure if there aren't better ways to do it but using add-classpath worked for me: (ad

Clojure documentation via mind map diagram

2008-10-31 Thread bc
Hi all, On my blog, I've posted an alternative way to navigate the Clojure documentation: http://bc.tech.coop/blog/081031.html - Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this