[ANN] ac-nexus (Emacs Autocomplete Source for Sonatype Nexus Maven repository servers)

2013-08-29 Thread Jürgen Hötzel
Hi, I did some work on emacs-nexus (A Nexus Client for Emacs: released two years ago): I added ac-nexus.el: An auto-complete source using the Nexus Rest API. Using this source, you can complete Artifact/Version-IDs in Leiningen project files. See the github repository and README.md for details

Re: Symbol.intern doesnt return already interned symbols?

2013-07-27 Thread Jürgen Hötzel
Am Samstag, 27. Juli 2013 17:30:08 UTC+2 schrieb Mikera: On Saturday, 27 July 2013 03:59:55 UTC+1, Jeremy Heiler wrote: On July 26, 2013 at 10:39:47 AM, Jürgen Hötzel (jue...@hoetzel.info) wrote: I did some memory profiling on a Clojure Application. I wondered why 361000

Re: Symbol.intern doesnt return already interned symbols?

2013-07-26 Thread Jürgen Hötzel
Hi Marshall, On Fri, Jul 26, 2013 at 5:39 PM, Marshall Bockrath-Vandegrift llas...@gmail.com wrote: Jürgen Hötzel juer...@hoetzel.info writes: If a symbol X is interned twice, shouldn't the second Symbol.intern(X) return the previous interned symbol object? Symbols in Clojure can have

Re: [ANN] clj-nio2 0.1.0

2013-02-28 Thread Jürgen Hötzel
Hi Hugo, On Thursday, February 28, 2013 5:11:57 PM UTC+1, Hugo Duncan wrote: Hi Jürgen, I was just looking for a nice filesystem watcher! Jürgen Hötzel jue...@hoetzel.info javascript: writes: - Implementation of * clojure.java.io/Coercions * and * clojure.java.io/IOFactory

[ANN] clj-nio2 0.1.0

2013-02-27 Thread Jürgen Hötzel
Hi, I implemented some high-level wrappers for the File(system) improvements introducedin NIO.2/Java 7. In particular: - Handle filesystem events (WatchService) via a lazy *watch-se*q - Read directories using a lazy *dir-seq* - Implementation of * clojure.java.io/Coercions * and *

Why is java.io/do-copy defined private

2013-02-22 Thread Jürgen Hötzel
Hi, I implemented (defmethod (var-get #'io/do-copy) [Path Path] [#^Path input #^Path output opts] ...) for fast NIO2 io, but had to do the var-get workaround because do-copy is defined private. Jürgen -- -- You received this message because you are subscribed to the Google Groups

[ANN] emacs-nexus (Emacs client for Nexus Maven repository servers)

2011-02-14 Thread Jürgen Hötzel
Hi, Although Emacs is a great environment for writing Clojure code and Leiningen/Cake makes Maven builds less painful, you still had to switch from your Emacs environment to your web browser to search for Maven artifacts. emacs-nexus is a minimal (elisp-only) Nexus client to search for artifacts

Re: [ANN] emacs-nexus (Emacs client for Nexus Maven repository servers)

2011-02-14 Thread Jürgen Hötzel
2011/2/15 Michael Ossareh ossa...@gmail.com: On Mon, Feb 14, 2011 at 16:50, Scott Jaderholm jaderh...@gmail.com wrote: On Mon, Feb 14, 2011 at 7:21 PM, Jürgen Hötzel juer...@hoetzel.info wrote: Hi, Although Emacs is a great environment for writing Clojure code and Leiningen/Cake makes

Re: check if something can be coerced to a seq

2011-01-17 Thread Jürgen Hötzel
2011/1/17 Stuart Sierra the.stuart.sie...@gmail.com The problem with a seq-able? predicate is that the definition of what is seq-able is often context-dependent. `seq` works on Strings, but you probably don't want `flatten` to turn a String into a sequence of characters. Good point. There

check if something can be coerced to a seq

2011-01-16 Thread Jürgen Hötzel
Hi, I came across this issue while implementing a lazy, efficient flatten that also uses the whole sequence abstraction (flatten java arrays). The problem with (seq x) is, that it will throw an Exception if called on something, that cannot be coerced to sequence, so I just used sequencial?

Re: understanding laziness

2010-10-25 Thread Jürgen Hötzel
2010/10/25 Tim Webster timothy.webs...@gmail.com: I thought that the issue might be that the concrete data still was not populated in my list-of-lists, unlike your literal, so I started with a clean environment and re-ran my repl session line by line from the jline history file. I could not

Re: Transient maps do not work?

2010-10-21 Thread Jürgen Hötzel
2010/10/21 andrei andrei.zhabin...@gmail.com: (defn test []  (let [transient-map (transient {})]      (doseq [i (range 100)]          (conj! transient-map {i (str i)} ))      (persistent! transient-map))) I expect that it will produce: { 0 0, 1 1, 2 2, ..., 99 99} but it gives only

Re: First function

2010-10-21 Thread Jürgen Hötzel
2010/10/21 Brody Berg brodyb...@gmail.com: (defn binary-search    Search sorted list for target using binary search technique Binary search is only useful on indexed data types like Clojure Vectors.    ([m_list target]        (if (empty? m_list)            false            (binary-search

Re: Simple loop in Clojure is ~15 times slower than in Java

2010-10-18 Thread Jürgen Hötzel
Hi, (defn sum [^ints arr] (areduce arr i ret (int 0) (unchecked-add-int ret (aget arr i 2010/10/18 Dmitriy S. samborsk...@yahoo.com: (defn sum [arr]  (loop [i (int 0) s (int 0)]    (if (= i *N*) s ^^^ You still doing non-primitive ops here. Also Check for areduce:

Re: Simple loop in Clojure is ~15 times slower than in Java

2010-10-18 Thread Jürgen Hötzel
2010/10/18 Dmitriy S. samborsk...@yahoo.com: On Oct 18, 3:07 pm, Jürgen Hötzel juer...@hoetzel.info wrote: (defn sum [arr]  (loop [i (int 0) s (int 0)]    (if (= i *N*) s ^^^ You still doing non-primitive ops here. Indeed, I overlooked that. But this was not the main cause

Re: Simple loop in Clojure is ~15 times slower than in Java

2010-10-18 Thread Jürgen Hötzel
2010/10/18 Dmitriy S. samborsk...@yahoo.com: On Oct 18, 5:46 pm, Jürgen Hötzel juer...@hoetzel.info wrote: Note the difference between = and ==, = will result in a cast to the wrapped types for it's arguments. It seems that '=' is always slower than '==', even if types are primitive, look

Re: Macro Implementation: I Don't Understand This Error Message

2010-10-01 Thread Jürgen Hötzel
2010/10/1 Stefan Rohlfing stefan.rohlf...@gmail.com: Dear Clojure Group, I wanted to expand the 'infix' macro presented in chapter 7.3.1 of 'Clojure in Action' to handle nested s-expressions: My first version did not work: (defmacro my-infix [expr]  (if (coll? expr)    (let [ [left op

Re: Reduce a function over more than one sequence (like map)

2010-06-12 Thread Jürgen Hötzel
2010/6/11 Nathan Sorenson n...@sfu.ca: Is there a way to fold over multiple sequences, in the same way that 'map' can apply a multi-parameter function over several seqs? In other words, is there a function like this: There is no need for a special purpose reduce* function. Using destructing

Re: printf question

2010-04-01 Thread Jürgen Hötzel
2010/4/1 Mark Engelberg mark.engelb...@gmail.com: printf doesn't seem to do anything inside a gen-class -main function, when run from the executable jar program (compiled by the latest Netbeans Enclojure release).  Is this normal, and if so, what's the workaround? The REPL flushes output after

Re: Interesting integer behavior

2010-03-11 Thread Jürgen Hötzel
Hi, 2010/3/10 Brian Hurt bhur...@gmail.com: In a recent clojure: user= (class 2147483647) java.lang.Integer user= (class (inc 2147483647)) java.math.BigInteger upcasted to BigInteger because of overflow detection in IntegerOps, even though a cast to Long would be sufficient. Also odd