Re: VimClojure 2.2.0 released

2010-10-05 Thread Mike Mazur
Hi Meikel, On Wed, Oct 6, 2010 at 01:58, Meikel Brandmeyer m...@kotka.de wrote: I just officially released version 2.2.0 of VimClojure. Thanks for the hard work! Will be giving this a spin soon. Mike -- You received this message because you are subscribed to the Google Groups Clojure group.

Bug report: function metadata is broken

2010-07-13 Thread Mike Mazur
Hi, I asked in the IRC channel about metadata on functions[1], and was told that it's indeed possible in 1.2. I tried this at the REPL and saw the following behavior (which looks like a bug): user= (defn ^{:foo v1.0} mfoo mfoo docstring [] (println foo v1.0)) #'user/mfoo user= (meta mfoo)

Re: Does clojure.contrib.io.slurp work with binary files?

2010-04-29 Thread Mike Mazur
Hi, On Fri, Apr 30, 2010 at 10:30, Matt Culbreth mattculbr...@gmail.com wrote: I'm using slurp to read data from a file and send it to a stream, but sometimes that's failing.  I've got a theory that it has to do with slurp not reading binary data correctly.  Is that true?  Do I need to go

Re: Execute a string containing a form?

2010-04-22 Thread Mike Mazur
Hi, On Thu, Apr 22, 2010 at 20:17, Base basselh...@gmail.com wrote: say i have a string that contains a form: (+ 1 1) I want to actually execute this.  How do you do this?  I thought that eval would be able to handle this but apparently am misunderstanding what eval does. You need to read

Re: How do I call Foo.class?

2010-04-10 Thread Mike Mazur
Hi, On Sat, Apr 10, 2010 at 04:31, dknesek doug.kne...@gmail.com wrote: So to be clear - I should be able to use: (. getEnrty entry-url PortfolioEntry) Is that typo in your code? s/getEnrty/getEntry/ Mike -- You received this message because you are subscribed to the Google Groups Clojure

Re: Getting started with labrepl...

2010-04-10 Thread Mike Mazur
Hi, On Sat, Apr 10, 2010 at 12:19, Douglas Philips d...@mac.com wrote:  Run lein deps:  $ lein deps  No project.clj found in this directory. You need to run `lein deps` from within the labrepl directory. If you clone the labrepl repo, project.clj will be there. HTH, Mike -- You received

java.lang.AbstractMethodError with lazy deftypes (lazytest)

2010-03-28 Thread Mike Mazur
Hi, I'm playing with Stuart Sierra's lazytest[1]. I'm trying to get access at the test results of a test. I defined a spec and when I evaluate it, it looks like I get a TestResults back. Trying to assign this to a var fails with a java.lang.AbstractMethodError: Clojure= (spec my-spec

Re: Clojure discuss

2010-03-14 Thread Mike Mazur
Hi, On Mon, Mar 15, 2010 at 07:21, Ulrich VACHON u.vac...@gmail.com wrote: Very interesting interview of Stuart Halloway about Clojure by Sadek Drobi available on QCon website. Did you forget the link? http://www.infoq.com/interviews/stuart_holloway_clojure Mike -- You received this

Re: Help with Vimclojure cojure-1.2.0-SNAPSHOT

2010-03-09 Thread Mike Mazur
Hi, On Tue, Mar 9, 2010 at 22:55, Meikel Brandmeyer m...@kotka.de wrote: On Mar 9, 3:49 pm, Mike Mazur mma...@gmail.com wrote: I tried to compile Vimclojure with clojure-1.2.0-SNAPSHOT, but the latest release fails to compile with a NoSuchMethodError. Can you be more specific on the failure

Help with Vimclojure cojure-1.2.0-SNAPSHOT

2010-03-09 Thread Mike Mazur
Hi, I wanted to play with Stuart Sierra's lazytest[1] using Vimclojure. lazytest depends on clojure-1.2.0-SNAPSHOT (so it says in pom.xml), and my Vimclojure (compiled against an older clojure version) doesn't work when launched with clojure-1.2.0-SNAPSHOT on the classpath. I tried to compile

Re: Default value for structure

2010-03-06 Thread Mike Mazur
Hi, On Sat, Mar 6, 2010 at 20:36, Manfred Lotz manfred.l...@arcor.de wrote: Now I tried a different way: (defstruct st :a :b) (defn my-struct-map [s inits]  (let [sm (struct-map s inits)]    (if (= nil (sm :b))      (assoc sm :b 0.0)      sm))  ) Unfortunately, the part sm

Re: clojure slides

2010-03-03 Thread Mike Mazur
Hi, On Thu, Mar 4, 2010 at 11:58, Wilson MacGyver wmacgy...@gmail.com wrote: Looks like I'll be doing a talk on clojure next week at the local java user group. Any recommendations on slides I can steal? :) There are some presentations in our google group file section[1]. Look for PDF files.

Re: clojure.contrib compile fail

2010-01-30 Thread Mike Mazur
Hi, On Sat, Jan 30, 2010 at 22:07, Jeff Schwab j...@schwabcenter.com wrote: What is the right place to report a clojure-contrib compile failure, or to look for information? The clojure-contrib I just pulled from github fails to compile, with an error that the ColumnWriter class extended by

VimClojure: redefine *test-out* just like *out*

2009-10-04 Thread Mike Mazur
Hi, I noticed that output from clojure.test's (run-tests) is not displayed in the VimClojure REPL (launched with LocalLeadersr). I guessed it's because clojure.test/*test-out* is not redefined appropriately (to print to the vim buffer) like *out* is. So I tried the following at the VimClojure