Solution and question to gen-interface/gen-class

2010-10-30 Thread Tommy
ap)" "public clojure.lang.IPersistentMap Agent.AgentIMP $loading__4410__auto__.meta()") I inspected the corresponding classes created with clojure/-contrib 1.1.0, and meta() was not a declared method there, only invoke() was declared. So, in clojure/-contrib 1.2.0, why does the clas

Re: Dutch Clojure users

2010-02-06 Thread Tommy
It works fine, thank you :) On 6 Feb., 16:26, "Stephen C. Gilardi" wrote: > On Feb 6, 2010, at 10:08 AM, Tommy wrote: > > > I am unfamiliar with maps. How do I add myself to this map? > > Figuring that out has taken me a long time on at least two occasions... &

Re: Dutch Clojure users

2010-02-06 Thread Tommy
Hello. I am unfamiliar with maps. How do I add myself to this map? - Tommy On Feb 6, 12:48 pm, Meikel Brandmeyer wrote: > Hi, > > Am 06.02.2010 um 12:26 schrieb Joop Kiefte: > > > I am also interested to know about Clojure-programmers from any country in > > a

reading a range from a large file

2009-10-24 Thread tommy c
I have a huge file(>900MB) that I would like to read/process in chunks. In clojure, i can grab the first n lines nicely: (with-open [r (reader "FILE")] (str-join ", " (take n (line-seq r How can i grab the first n lines starting from an line offset? ex, grab lines 5 to 10 rather than just t

Re: Java translation problem

2009-10-10 Thread tommy c
Thanks guys. the import was necessary (import '(org.apache.lucene.index IndexWriter IndexWriter $MaxFieldLength)) and IndexWriter$MaxFieldLength/UNLIMITED was the correct reference. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Java translation problem

2009-10-09 Thread tommy c
I'm trying to translate a java lucene indexer to clojure. This java line is bothersome: writer = new IndexWriter(dir, new SimpleAnalyzer(), true, IndexWriter.MaxFieldLength.UNLIMITED); I'm doing: (import '(org.apache.lucene.index IndexWriter)) (def index-writer (new IndexWriter dir (new SimpleAn

Problems with "gen-and-load-class" (defn user-exception-test [] (try (throw (new user.UserException "msg: user exception was here!!")) (catch user.UserException e (prn "caught excep

2008-12-14 Thread Tommy
;. I have tried to load the file "clojure-path/classes/clojure/ genclass.clj" but I still cannot use "gen-and-load-class". Can anyone help? - Tommy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "