(iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Ulrich
a batch. While using "iterate" instead updates "primes" each step. Can someone more into clojure than me please correct and better explain internal reasons of this strange behaviour. How could one know the "batch size" of more complicated expressions? And how could &

Re: (iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Ulrich
Am Mittwoch, 28. November 2012 16:42:32 UTC+1 schrieb Christophe Grand: > > Hi Ulrich, > > Wow, you got me scratching my head because your code should not even work. > The problem I see with it is that your recursion has no base case. You > have to know that 2 is prime to boot

Re: (iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-28 Thread Ulrich
Now, this is a good such example, where chunking leads to behavioral error. Has the afore mentioned interface for forced single-item consumption meanwhile been created? Ulrich -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: (iterate inc 2) vs (drop 2 (range)) in corecursion

2012-11-29 Thread Ulrich
(drop 3 (range)) ) ) ) SHOULD imho properly work in a proper clojure implementation, n'est ce pas? If it doesn't because of internal!!! representation of the involved sequences, be it chunked or something else, than this is a huge pitfall, which might be hard to

Clojure discuss

2010-03-14 Thread Ulrich VACHON
Hello, Very interesting interview of Stuart Halloway about Clojure by Sadek Drobi available on QCon website. Enjoy, Ulrich VACHON -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: Does emacs suppress output from thread ?

2010-05-18 Thread Moritz Ulrich
Slime supports redirecting the inferior-lisp-output to the repl: Add (add-hook 'slime-connected-hook 'slime-redirect-inferior-output) to your .emacs On Tue, May 18, 2010 at 4:39 AM, Dave Fayram wrote: > It doesn't suppress output, it just doesn't propagate it to your repl > buffer. Check for t

Re: How to reset a counter

2010-05-30 Thread Moritz Ulrich
It's also worth to mention that the produced seq is lazy, so you can work on big images without memory issues. On Saturday, May 29, 2010, John Cromartie wrote: > > This is precisely what 'for' is for in clojure. > > For example: > > (for [x (range 10) y (range 10)] [x y]) > > ... produces a seque

Re: Is it good functional style to use a protocol to create a plugin point?

2013-06-05 Thread Moritz Ulrich
If you want to keep this style, why not use a simple map of function instead of reifying a protocol? Something like: (defn calc-multiply [data] ...) (defn calc-add [data] ...) (defn make-calc [] {:calc-add #'calc-add, :calc-multiply #'calc-multiply}) Looks simpler and cleaner for me. On Wed, Jun

Re: In what OS do you code?

2013-06-18 Thread Moritz Ulrich
NixOS, a linux distribution built on a purely functional package manager at work and at home. Emacs with package.el and ~/.emacs.d/ in a git repository. On Fri, Jun 14, 2013 at 3:46 PM, Erlis Vidal wrote: > Hi, > > I'm a bit curious to know in what OS do you code. Do you prefer iOS, Linux, > Wind

Re: Can we please deprecate the :use directive ?

2013-07-25 Thread Moritz Ulrich
come very > cumbersome to read : > > (cascalog/?<- (cascalog/stdout) [?a ?b] (generator :> ?a ?b)) > > The same applies to SQL DSLs like korma. > > So, IMHO there are cases where (:use) simplifies things. > > -- > > Philippe Guillebert > > -- Just use

Re: Out of memory on spit

2013-08-07 Thread Moritz Ulrich
Just a guess: You put 500 (or so) actions to the internal agent queue and the agent isn't fast enough to keep up. The queue grows very fast and goes out of memory. On Wed, Aug 7, 2013 at 3:09 PM, Jérémie Campari wrote: > Hello ! > > I don't understand why my code raise an Out of memory except

Re: [ANN] Leiningen 2.3.0 released

2013-08-09 Thread Moritz Ulrich
e email went out. > > -Phil > > -- https://leiningen.s3.amazonaws.com/downloads/leiningen-2.3.0-standalone.jar is still AccessDenied for me. -- Moritz Ulrich -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: [ANN] bouncer 0.2.4-alpha1 [breaking changes]

2013-08-15 Thread Moritz Ulrich
b.com/leonardoborges/bouncer/blob/master/CHANGELOG.md> > for > details. > Feedback on this version and the new API is greatly appreciated. > > Cheers, > Leonardo Borges > www.leonardoborges.com > > -- -- Moritz Ulrich -- -- You received this message because you are subsc

Re: How to force clojure evaluate all commands?

2013-09-05 Thread Moritz Ulrich
The only 'implicit' laziness in Clojure comes from lazy lists. map, filter, and others are lazy. If you map over a list for side effects, don't use map, use dolist or wrap the map in a doall. On Thu, Sep 5, 2013 at 9:28 PM, Kang Tu wrote: > Hi all, > > Clojure something *automatically" removed my

Re: [ClojureScript] ANN: ClojureScript 0.0-2719, JavaScript Dependencies

2015-01-24 Thread Moritz Ulrich
David Nolen writes: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: https://github.com/clojure/clojurescript > > New release version: 0.0-2719 > > Leiningen dependency information: > > [org.clojure/clojurescript "0.0-2719"] > > ClojureScrip

Re: Help: Instantiating a known record from an unknown namespace

2015-01-24 Thread Moritz Ulrich
Fluid Dynamics writes: > On Saturday, January 24, 2015 at 1:43:15 PM UTC-5, Elric Erkose wrote: >> >> Hello, >> >> I have an app which specifies a protocol and a record name. At runtime, it >> searches the classpath for files implementing the specification and creates >> a map of namespace to i

Re: Serving files from outside a ring uberjar

2015-02-10 Thread Moritz Ulrich
See https://github.com/ring-clojure/ring/wiki/Static-Resources You should be able to pass '.' signifying the directory your application was started in (that might NOT be the same place as the jar). viper110110 writes: > I would like to be able to serve up files from a folder after the jar has

Re: Conditional dependency question

2015-03-06 Thread Moritz Ulrich
You need to use `ns-resolve' to resolve the actual vars you want to use. Here's a snippet from one of our projects which shows the approach: ```clojure (defn ws-repl [] (require 'cemerick.piggieback 'weasel.repl.websocket) (let [cljs-repl (ns-resolve 'cemerick.piggieback 'cljs-repl

Re: code-rewriting "with-connection" macro (monger and maybe beyond?)

2015-04-12 Thread Moritz Ulrich
Also keep in mind that a dynamically-bound variable is global state, even if it's unbound by default. You might want to keep your library as simple and possible and just pass it as the first argument. That also greatly simplifies usage with Stuartsierra's component design. A `with-connection' mac

Re: lazy list comprehension

2014-06-27 Thread Moritz Ulrich
Use map. for produces permutations. Am 27.06.2014 17:02 schrieb "Glen Rubin" : > I have a list that I want to combine in some way with an incremented list, > so I was trying to write a for expression like this: > > (for [i '(my-list-of-crap), j (iterate inc 0)] (str i j)) > > > The problem with th

Re: Core.logic for boardgames

2014-08-11 Thread Moritz Ulrich
gt;> >> > > -- > 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 >

java.lang.OutOfMemoryError: PermGen space

2014-12-17 Thread Moritz Ulrich
Hello, I'm getting the following error while working on a Clojure(Script) REPL on a middle-sized project after some time. None of my colleagues seem to be able to reproduce it. I'm not able to reproduce it on other projects either. Caused by: java.lang.OutOfMemoryError: PermGen space, compiling

Re: Generate a million file from a template

2016-08-23 Thread Moritz Ulrich
Abhinav Gogna writes: > (defn run-in-parallel > "run-in-parallel runs 500 different threads. > you can give each thread number of files you want to generate > Eg: run-in-parallel 100 will generate 500*100 = 5 files" > [y] > (dotimes [_ 500] > (future > (.start (Thread. (run-me y

Re: [core.spec] Stricter map validations?

2017-10-04 Thread Moritz Ulrich
Yuri Govorushchenko writes: > Thank you the pointers! So far I ended up with writing a small `map` macro > which is similar to `s/keys` but checks that keys are already in the > registry: > https://gist.github.com/metametadata/5f600e20e0e9b0ce6bce146c6db429e2 Note that you can simply combine

Re: core.async consumer + producer working by chunk?

2018-01-05 Thread Moritz Ulrich
Rob Nikander writes: > Thanks for the explanation! This is very close to what I want. I see some > confusing behavior though. See below. > > On Friday, January 5, 2018 at 2:40:14 PM UTC-5, Brian J. Rubinton wrote: >> >> >> The work-queue channel has a fixed buffer size of 1. A collection (range

Filtering lazy sequence on itself - Eratosthenes Sieve

2015-11-04 Thread Matthew Ulrich
All - I'm trying to generate a lazy sequence of primes using Erastosthenes Sieve (from Abelson & Sussman) and am encountering some issues with lazy sequence. Here's what I have: --- (defn divisible? [input numerator] (= 0 (mod input numerator))) (defn sieve [stream] (lazy-seq (con

Re: Filtering lazy sequence on itself - Eratosthenes Sieve

2015-11-05 Thread Matthew Ulrich
range-peek > (filter (partial prime? primes)) > first)] > (cons p (lazy-seq (sieve (conj primes p))) > > (last (take 1 (sieve))) > > This version keeps the visited primes in a vector so it will grow in > memory but won’t overfl

Re: map semantics

2014-02-08 Thread Moritz Ulrich
On Sat, Feb 8, 2014 at 6:39 PM, Timothy Baldridge wrote: > First of all, you are right. Map with things like sets is a bit of iffy > concept. Now, most of the the time, I just don't care. If I was to increment > every value in a set I'll just do (set (map inc #{1 2 3})) and not really > care less

Re: Image Resizer lib exception error

2014-02-25 Thread Moritz Ulrich
]core.clj:25 > compojure.core/if-method[fn]core.clj:107compojure.core/routing[fn] > core.clj:2443clojure.core/somecore.clj:107compojure.core/routing > > Does anyone have any experience with this lib and the correct way to employ > it, I'm not making much progress from the readme docs. Thanks. -- Moritz Ulrich pgpzSjHvaFY_D.pgp Description: PGP signature

Re: Latest web framework for clojure

2014-02-26 Thread Moritz Ulrich
In addition to all the other message here please note, that it's very helpful to build a site with just http-kit, hiccup and compojure, which are all three independent components. This gives you the freedom to structure your application however you like without getting in your way like many framewo

Re: Latest web framework for clojure

2014-02-26 Thread Moritz Ulrich
Om is well-suited to handle the UI-part for you. It doesn't do any server communication or forces you into any particular programming style or project layout. On Thu, Feb 27, 2014 at 2:35 AM, Mark Engelberg wrote: > As far as I can tell, neither luminus nor caribou are well-suited to > building,

Re: File and Project organization questions

2014-03-08 Thread Moritz Ulrich
Another great talk about techniques used to structure bigger applications is "Clojure in the Large" by Stuart Sierra. I think it might be a bit premature if you're just getting started, but it's definitely useful: http://www.infoq.com/presentations/Clojure-Large-scale-patterns-techniques On Sat, M

Re: Working with big datasets, merging two ordered lists by key

2014-03-09 Thread Moritz Ulrich
I think it would be more efficient to read one of the inputs into a map for random access instead of iterating it every time. On Sun, Mar 9, 2014 at 4:48 PM, Timothy Washington wrote: > Hey Frank, > > Try opening up a repl, and running this for comprehension. > > (def user_textfile [[:id1 {:name

Re: Do I have to have knowlegde about Lisp

2014-03-10 Thread Moritz Ulrich
It might actually be counter-productive to learn Common Lisp before Clojure, as Clojure is so much simpler easier to learn/understand than Common Lisp. On Mon, Mar 10, 2014 at 4:52 PM, Dennis Haupt wrote: > you can learn clojure without learning lisp first :) > > > 2014-03-10 15:41 GMT+01:00 Roel

Re: Question about importing java classes to Clojure

2014-03-11 Thread Moritz Ulrich
If so, take a look at `file-seq': http://clojuredocs.org/clojure_core/clojure.core/file-seq Passed a java.io.File pointing to a directory, it gives you a sequence of file objects in it and all its subdirectories. To get a list of all files ending in .jar in the current directory:

Re: reduced

2014-03-19 Thread Moritz Ulrich
`reduced' was added in 1.5. It looks like 4clojure is using an older version. On Wed, Mar 19, 2014 at 5:44 PM, Andy Smith wrote: > Hi, > > Ive been looking at http://www.4clojure.com/problem/137 and I have a > solution : > > (fn [x b] (reduce #(let [r (quot x %2) d (mod r b)] (if (zero? r) (redu

Re: om component state

2014-03-20 Thread Moritz Ulrich
erformance penalty on state-changes should be negligible as long as React doesn't need to modify the DOM. -- Moritz Ulrich -- 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 N

Re: rant / cljs in cljs ? :-)

2014-03-21 Thread Moritz Ulrich
>>>> 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 >>>> --- >>>> You received this message because you are subscribed to the Google Groups >>>> "Clojure" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an >>>> email to clojure+unsubscr...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>> >>> -- >>> 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 >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "Clojure" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to clojure+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. -- Moritz Ulrich pgp5NE2maqqks.pgp Description: PGP signature

Re: apply to quoted form

2014-03-21 Thread Moritz Ulrich
symbol. You start with the symbol +. The function `(ns-resolve ns sym)' will try to find a var in `ns' with the same name as `sym' and return it. In the end, you want to call the function behind the var, so you have to use `var-get' to get the value the var points to. -- Moritz Ulrich pgphkZl7qIu1U.pgp Description: PGP signature

Re: data associated with a particular state

2014-03-25 Thread Moritz Ulrich
The data type created by defstruct isn't anything more than a map which can store the specified fields a bit more efficient than 'normal' maps. You can just `assoc' any other key-value pairs as in any other map. Also, have a look at records - I think StructMaps have been deprecated (or at least ar

Re: One more question about invoking java methods from Clojure

2014-03-26 Thread Moritz Ulrich
You are likely passing a string to the function, not a java.io.File object. On Thu, Mar 27, 2014 at 1:16 AM, Brandon Barret wrote: > > I am working on a project that requires me to get the size of a file and > access it's last date of modification. It seems like the java methods > .length and .

Re: vim-fireplace debug workflow: modifying jars

2014-03-27 Thread Moritz Ulrich
Checking out a project your project depend on, finding the right version, etc. is quite cumbersome. With Emacs/nrepl, you can just press M-. over any function to jump to the definition, even when it's inside a jar. You can also edit and reload it (via C-c C-c). I don't think you can save it, but t

Re: "true" lightweight threads on clojurescript?

2014-04-09 Thread Moritz Ulrich
What on this page would solve your problem? I just see Generators/Iterators, Array Comprehensions, lexical let and destructuring assignment. On Wed, Apr 9, 2014 at 9:39 AM, t x wrote: > I believe > https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.7 > suffices. > > Howe

Re: [ANN] iroh 0.1.9 - class reflection and exploration

2014-04-13 Thread Moritz Ulrich
A simple repl-targeted library to introspect classes might prove useful, but is there any reason to use such a short syntax for everything? I'll surely have problems remembering the symbols. On Fri, Apr 11, 2014 at 5:57 AM, zcaudate wrote: > Please use 0.1.10 update. clojure 1.6 does not load clo

Re: Idiomatic Clojure for iterating all items of a map

2014-04-21 Thread Moritz Ulrich
Really depends on that you want. First thing coming to my mind is: (for [l (:langs langs) [k v] l] (str k " " v)) This will give you a flat lazy list of strings. On Mon, Apr 21, 2014 at 5:32 PM, Hussein B. wrote: > Hi, > > For a data structure such as: > > (def langs {:langs [ {:lang "C

Re: Why can I not parse the command line arguments in this way

2014-04-22 Thread Moritz Ulrich
This snippet is wholly incomplete. Can you please provide a more complete, testable example as well as a detailed description of the error you're seeing? On Tue, Apr 22, 2014 at 4:48 PM, Cecil Westerhof wrote: > Obvious not very neat, but I tried as a first hack to do something with the > command

Re: [ClojureScript] ANN: Om 0.6.1, moving towards independently addressable components

2014-04-26 Thread Moritz Ulrich
Could it be that 0.6.1 doesn't trigger a re-render of a component when just `:opts' has changed? I have a parent component with passes a boolean (`:selected?') down to it's children in the `:opts'-map. The parent-component's `render' is called, but the children's isn't anymore. I understand that t

Search seqs in seqs

2014-06-03 Thread Ulrich Küttler
Hi, what is the preferred way to find sub-seqs in a seq? I am trying to convert [:a :b :c :d :a :b :c :d :a :b :c] into ((:a) (:b :c) (:a :d) (:b :c) (:a)) using the sub-seq (:b :c) instead of positions. partition, partition-by and the like all look at one element at a time. What I need is a

Re: Search seqs in seqs

2014-06-08 Thread Ulrich Küttler
>>> more)))] >>> (or (step coll) ( >>> >>> => (partition-by-seq [:b :c] []) >>> >>> () >>> >>> => (partition-by-seq [:b :c] [:a :d]) >>> >>> ((:a :d)) >>> >>> => (partiti

Re: Teaching Clojure to students (how ?)

2013-10-05 Thread Moritz Ulrich
elp them much but Clojure would help them a lot > > (+ 1. 2.) → > 3. They want to learn Clojure ! ☺ > > I'd be most grateful for any help, either to complete/amend my list in 1., > or to provide ideas for 2. > > > Best Regards, > > B. > > -- -- Moritz Ulrich pgpcWyTfKFXAJ.pgp Description: PGP signature

Re: cloure-mode indenting (or not)

2013-10-11 Thread Moritz Ulrich
On Fri, Oct 11, 2013 at 11:33 PM, n aipmoro wrote: > I have to hit the TAB key after ENTER to get indentation. I can't believe > that was intentional (famous last words). So something must've broke. Actually, the common Emacs convention is that RET (command: `newline') shouldn't indent. C-j is `n

Re: cloure-mode indenting (or not)

2013-10-11 Thread Moritz Ulrich
Wait, RET should probably get bound to `paredit-newline' instead of `newline-and-indent' when paredit is enabled. Try both and see which works better :-) On Sat, Oct 12, 2013 at 12:40 AM, Moritz Ulrich wrote: > On Fri, Oct 11, 2013 at 11:33 PM, n aipmoro wrote: >> I have

Re: .cljrc

2013-11-25 Thread Moritz Ulrich
Leiningen profiles in ~/.lein/profiles.clj will be merged into the current project.clj by leiningen. Also dumented in https://github.com/technomancy/leiningen/blob/stable/doc/PROFILES.md On Mon, Nov 25, 2013 at 3:34 PM, Dave Tenny wrote: > With all my attention on trying to learn things about clo

Re: [ClojureScript] ANN: Om, a ClojureScript binding to Facebook's React

2013-12-20 Thread Moritz Ulrich
hen following the React tutorial. I really look forward to using this library for some private and (hopefully) work-related projects in the future. Cheers! -- Moritz Ulrich pgpAxW_2KmKeQ.pgp Description: PGP signature

Re: core.async count in a channel

2014-01-21 Thread Moritz Ulrich
On Tue, Jan 21, 2014 at 9:43 AM, Aaron France wrote: > Since channels yield nil when they are devoid of items, surely this is enough > to know when the channel is empty? That's not correct. Take-Operations block on empty channels. They yield nil when they're closed. You could add a timeout to th

Re: Simple Macros

2014-01-22 Thread Moritz Ulrich
ng a trivial macro to make it look a bit cleaner. It's more or less the same for `with-open'.: You could just write the (let [...] (try ... (finally ...))) yourself, but it's much easier to understand the purpose when you read `with-open'. -- Moritz Ulrich pgpZyu7NHe8M4.pgp Description: PGP signature

Re: [ANN] com.stuartsierra/frequencies "0.1.0"

2014-01-26 Thread Moritz Ulrich
On Sun, Jan 26, 2014 at 10:10 PM, Mimmo Cosenza wrote: > You could clone and deploy it yourself into clojars. The only caveat is to > give it an org.clojars. as group-id to make it clear it's not > the official one. Please don't deploy a project to the public clojars repository for such purposes.

Re: how to automatically and idiomatically add newlines to clojure code in emacs

2013-02-14 Thread Moritz Ulrich
C-u M-x indent-pp-sexp On Thu, Feb 14, 2013 at 6:06 PM, Mayank Jain wrote: > @Feng > It doesn't clean up the way John is looking to clean some code like this: > > >> (defun func1 [a b c d] (func5 (let [f (func3 c)] (func2 a b f)) (let >> [e 5] (func4 c d e > > > > > On Tue, Feb 12, 2013 at 9:

Re: In Emacs Org mode, how to round-trip Clojure code edits?

2013-03-24 Thread Moritz Ulrich
Just a shot in the dark; try: #+BEGIN_SRC clojure (defun org-xor (a b) "Exclusive or." (if a (not b) b)) #+END_SRC On Sat, Mar 23, 2013 at 10:27 PM, Matching Socks wrote: > I've got clojure-mode and nrepl installed, but I skipped Slime. From the > org-mode s

Re: core.logic: simple question

2013-03-28 Thread Moritz Ulrich
I haven't played around with the new additions to core.logic, but it seems to me that != only works for values, not for lvars. On Thu, Mar 28, 2013 at 1:11 AM, JvJ wrote: > The function i wrote below isn't working. (is-drink q) returns all drinks > (I tested it), but hates-drink, which should re

Re: core.logic: simple question

2013-03-28 Thread Moritz Ulrich
Expansion: Sorry, I seem to be wrong: => (doc !=) clojure.core.logic/!= ([u v]) Disequality constraint. Ensures that u and v will never unify. u and v can be complex terms. On Thu, Mar 28, 2013 at 7:55 PM, Moritz Ulrich wrote: > I haven't played around with the new a

Re: core.logic: simple question

2013-03-28 Thread Moritz Ulrich
Can you please show your implementation of the other functions? On Thu, Mar 28, 2013 at 1:11 AM, JvJ wrote: > The function i wrote below isn't working. (is-drink q) returns all drinks > (I tested it), but hates-drink, which should return all drinks that aren't > liked, doesn't return anything...

Re: [ANN] bleach 0.0.11

2013-05-05 Thread Moritz Ulrich
It's also nice for printing on paper. Ink is expensive. On Sun, May 5, 2013 at 6:49 PM, Michał Marczyk wrote: > On 5 May 2013 15:19, Simone Mosciatti wrote: >> It is probably me being stupid, but WHY ? > > Much easier to maintain your code when you can touch it without > risking it soiling your

Re: numerator fn

2010-06-06 Thread Moritz Ulrich
On Sunday, June 6, 2010, Dave Pawson wrote: > On 6 June 2010 11:00, Kevin Downey wrote: >> numerator is added after 1.1.0 was released > > Thanks Kevin. > documentation ahead of software! Nice change.. if confusing! Note the "Added in Clojure version 1.2" in the documentation of numerator ;-) -

Re: problem with Character/isLetter

2010-06-07 Thread Moritz Ulrich
isLetter accepts single characters, you gave it a string with a length of one. The error is caused by reflection when clojure searches for a function with the signature isLetter(String) On Monday, June 7, 2010, AJ Sterman wrote: >  (Character/isLetter "x") > # method found: isLetter (NO_SOURCE_FI

Re: Perplexing bug

2010-06-09 Thread Moritz Ulrich
I'm not sure if this is related, but in recent Snapshots of clojure-http-client, the namespace was renamed to clojure-http.client. This was a small issue with my fork from clojure-couchdb. (I think clojure-http-client really needs a stable release for clojure 1.1.0) On Wed, Jun 9, 2010 at 7:31 PM

Re: Perplexing bug

2010-06-09 Thread Moritz Ulrich
uot;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 mo

Re: use within a let

2010-06-09 Thread Moritz Ulrich
en > > -- > 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. > T

Re: PDF generation with Clojure?

2010-06-09 Thread Moritz Ulrich
scribe 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 -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You receiv

Re: Mac Emacs users: which version do you prefer (Aquamacs, Carbon Emacs, other?)

2010-06-12 Thread Moritz Ulrich
send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You received this message because yo

Re: Using PRXML lib

2010-06-12 Thread Moritz Ulrich
You can use (with-out-str &body) to capture the output or prxml to a string and write that string to a file. On Sat, Jun 12, 2010 at 8:53 PM, Emeka wrote: > Could someone direct me on how to write the output of prxml form to a file? -- Moritz Ulrich Programmer, Student, Almost nor

Re: agents sending-off to other agents blocks?

2010-06-12 Thread Moritz Ulrich
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 > clojur

Re: agents sending-off to other agents blocks?

2010-06-12 Thread Moritz Ulrich
be it's done to prevent problems when the function the currently-active agent sent to another agent depends on the value of the original agent. On Sat, Jun 12, 2010 at 9:43 PM, Moritz Ulrich wrote: > I'm not sure why it's doing this, but I read about this in the api > documenta

Re: New Clojure web application launched: DocuHarvest

2010-06-13 Thread Moritz Ulrich
chDB (which we abuse as a message queue, among >> other things) > > Can you comment on the choice of Clutch over clojure-couchdb?  I've > found clojure-couchdb to be reliable and straightforward.  the-kenny's > (Moritz Ulrich) branch is being actively maintained and he&

Re-binding special functions in a Namespace?

2010-06-13 Thread Moritz Ulrich
someone with a deeper understanding of the var-internals take a look at my code and tell me if it's okay to do that like this? It looks a bit "hacky" for me... Thanks for your answers. -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.

Re: noob questions - Hello world + learning

2010-06-13 Thread Moritz Ulrich
clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to c

Re: Re-binding special functions in a Namespace?

2010-06-13 Thread Moritz Ulrich
, Jun 13, 2010 at 7:40 PM, Meikel Brandmeyer wrote: > Hi, > > Am 13.06.2010 um 18:31 schrieb Moritz Ulrich: > >> Thanks for your answers. > > Wouldn't it be more appropriate to have a *server* Var, which is allowed to > be rebound by the user? The function can

Re: Re-binding special functions in a Namespace?

2010-06-13 Thread Moritz Ulrich
abase-list (concat "http://"; "localhost" ":5984"))] (database-list)) On Sun, Jun 13, 2010 at 9:36 PM, Meikel Brandmeyer wrote: > Hi, > > > On 13 Jun., 19:55, Moritz Ulrich wrote: > >> This was in the original branch of the clojure-couchdb-projec

Re: Re-binding special functions in a Namespace?

2010-06-13 Thread Moritz Ulrich
Sorry for the second mail - I've just improved the macro so server is only evaluated once (It's side-effect save now) On Sun, Jun 13, 2010 at 9:50 PM, Moritz Ulrich wrote: > Huh? I don't see why I wire server at macro expansion time. You can > pass a variable and it&#x

Re: New Clojure web application launched: DocuHarvest

2010-06-15 Thread Moritz Ulrich
ew server in production (yet?)). > > - Chas > > On Jun 13, 2010, at 11:57 AM, Moritz Ulrich wrote: > >> Yup, I would like to know why you chose clutch over clojure-couchdb >> too. (I don't want to insinuate that clojure-couchdb is the better >> lib)

Re: agents sending-off to other agents blocks?

2010-06-16 Thread Moritz Ulrich
; 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 > F

Re: parallel vs serial iteration in a "for" loop

2010-06-18 Thread Moritz Ulrich
embers 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 -- Moritz Ulrich Programmer, Student, Alm

Re: Miscellaneous noob questions

2010-06-20 Thread Moritz Ulrich
17:13. > > -- > 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.

Re: Map vs For

2010-06-28 Thread Moritz Ulrich
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 -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profile

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-28 Thread Moritz Ulrich
hat's not what metadata is for. (Ignore this if I misunderstand you) -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: bioinformatics toolkit in clojure: what would that look like?

2010-06-29 Thread Moritz Ulrich
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 -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.c

Re: Record bug?

2010-06-29 Thread Moritz Ulrich
ups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You received this message because you are subscribed to the Google Groups "Clojure&q

Re: Record bug?

2010-06-29 Thread Moritz Ulrich
I think it's by-design, but I might be wrong. On Tue, Jun 29, 2010 at 11:01 PM, Daniel Gagnon wrote: > Is it by design or it just doesn't implement it yet? > > On Tue, Jun 29, 2010 at 4:14 PM, Moritz Ulrich > wrote: >> >> I think record doen't i

Re: Newbie questions about leiningen

2010-07-02 Thread Moritz Ulrich
t; 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, vi

Re: structures contains each other

2010-07-04 Thread Moritz Ulrich
om/group/clojure?hl=en > > -- > 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 you

Re: examples (like doc)

2010-07-07 Thread Moritz Ulrich
st. > 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 -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You rec

Re: navigate and edit tree nodes / branches

2010-07-07 Thread Moritz Ulrich
at 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 -- Moritz Ulrich Programmer, Student, A

Why is there a transient for a set, but not for a sorted-set

2010-07-08 Thread Moritz Ulrich
Why does (transient #{}) works, but transient (sorted-set []) fails with an exception: clojure.lang.PersistentTreeSet cannot be cast to clojure.lang.IEditableCollection [Thrown class java.lang.ClassCastException] -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com

Re: examples (like doc)

2010-07-08 Thread Moritz Ulrich
groups.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 -

Re: json-str in Clojure 1.1

2010-07-08 Thread Moritz Ulrich
scribe 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 -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You received

Re: examples (like doc)

2010-07-08 Thread Moritz Ulrich
having good documentation and >> > >> examples available directly in your development environment.  I'm not >> > >> sure what a reasonable alternative would be for that context other >> > >> than having the examples and docs included (or at l

Re: Structure of complex ex-OOP programs

2010-07-12 Thread Moritz Ulrich
language. -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- 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 f

Re: Building mixed clojure and java code

2010-07-14 Thread Moritz Ulrich
ent 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 -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.co

Re: Question on namespace/packages of defrecord

2010-07-17 Thread Moritz Ulrich
, visit this group at > http://groups.google.com/group/clojure?hl=en -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to th

Re: Why does using a dynamic binding make a function impure?

2010-07-17 Thread Moritz Ulrich
; 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

  1   2   3   >