SLIME REPL broken

2009-11-15 Thread Stefan Kamphausen
look at the relevant function (src/main/clojure/swank/ commands/contrib/swank_arglists.clj) in swank-clojure but it would need some diving into the code for me to help with this. Maybe someone more experienced than me can step in? Kind regards, Stefan Kamphausen -- You received this message

Re: SLIME REPL broken

2009-11-16 Thread Stefan Kamphausen
Hi, Phil Hagelberg wrote: > Unless there are some really great features added upstream in slime, > fixing swank-clojure to work with their latest changes is a low priority. this is a pity, at least for those of us, who also use Slime to do some CL hacking. For that setup it is quite common to al

Re: SLIME REPL broken

2009-11-17 Thread Stefan Kamphausen
Hi, Stefan Kamphausen wrote: > I'll take a look at it the next few days (er, evenings that is), if I > find the time. No promises ;-) Not that I'm close to a solution, but at least I have stacktrace... After some digging in the clojure-swank code I came across this piece in s

No names with trailing % allowed but with a leading one?

2009-11-17 Thread Stefan Kamphausen
Hi, during some examinations about the broken REPL with current Slime I found that I can't create names with a trailing %: Clojure 1.1.0-alpha-SNAPSHOT user=> (def %thisworks 11) #'user/%thisworks user=> %thisworks 11 user=> (def %thisdoesnt% 22) java.lang.Exception: Too many arguments to def (NO

Re: No names with trailing % allowed but with a leading one?

2009-11-17 Thread Stefan Kamphausen
Hi, On Nov 17, 8:12 pm, John Harrop wrote: > On Tue, Nov 17, 2009 at 1:46 PM, Sean Devlin wrote: > > > I *THINK* what is meant by the "non-numeric" is anything that matches > > > #"[a-zA-z]" > > Nah, it'll be anything that's allowed elsewhere AND is not a digit. Does that mean, the % as the firs

Re: SLIME REPL broken

2009-11-17 Thread Stefan Kamphausen
Hi, On Nov 17, 1:47 pm, Stefan Kamphausen wrote: [...] > user=> user=> Connection opened on local port  37693 > # [addr=0.0.0.0/0.0.0.0,port=0,localport=37693]> > user=> user=> java.lang.InterruptedException > [...] >        at java.lang.Thread.ru

Re: No names with trailing % allowed but with a leading one?

2009-11-17 Thread Stefan Kamphausen
Hi John, On Nov 17, 8:40 pm, John Harrop wrote: > The docs say that letters and *, +, !, -, _, and ? should work anywhere, do you read it that way? I think the doc (if you are referring to http://clojure.org/reader) are a little vague here: "Symbols begin with a non-numeric character". > and >

Re: roll call of production use?

2009-11-25 Thread Stefan Kamphausen
Hi, we replaced a command line interface for an internal, mission-critical application with a custom Clojure-REPL. It is used for administrative tasks as well as testing. Cheers, Stefan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: Functions and vars and meta-data

2009-11-27 Thread Stefan Kamphausen
Hi Alex, first of all thank your this exhaustive explanation. I still don't get some things, though, and kindly ask for more enlightenment. On Nov 8, 3:46 am, Alex Osborne wrote: > So after resolving, it then has a Var object.  A Var, is as it's > name suggests, a variable.  It consist of a nam

Re: Functions and vars and meta-data

2009-11-27 Thread Stefan Kamphausen
Hi, that have been some really embarrassing typos in my post (typing too fast in too stupid an interface, I think). On Nov 27, 12:52 pm, "Alex Osborne" wrote: > Stefan Kamphausen writes: > > On Nov 8, 3:46 am, Alex Osborne wrote: > > As far as the documentation says,

Re: Functions and vars and meta-data

2009-11-27 Thread Stefan Kamphausen
Hi, On Nov 27, 11:06 pm, "Alex Osborne" wrote: > > A *new* symbol?   I would have thought I'm getting the original symbol > > again. > > Yes, one of the differences between symbols and keywords is that symbols > are created fresh each time while keywords are interned: > > (identical? 'foo 'foo) ;

Re: One benefit of having a REPL

2009-11-28 Thread Stefan Kamphausen
Hi, On Nov 28, 2:20 pm, John Harrop wrote: > One benefit of having a REPL: it makes regular expressions usable. So easy > to test and tweak your RE compared to the traditional compile/test/debug > cycle! I never even bothered with the java.util.regex package before Clojure > as it was too painful

Re: One benefit of having a REPL

2009-11-28 Thread Stefan Kamphausen
Hi, On 28 Nov., 17:32, Nathan Hawkins wrote: > Stefan Kamphausen wrote: > > I wonder how hard it would be in Clojure to implement something like > > Edi Weitz' RegexpCoach > >http://weitz.de/regex-coach/.  I know Perl programmer who regularly > > create their

What about contains? for lists

2009-12-02 Thread Stefan Kamphausen
Hi, while studying the collection types and trying to find out which functions work on all collection types (i.e. lists, vectors, maps, sets) I was flabbergasted by the following user> (contains? (list 1 2 3) 3) false OK, the doc of contains? told me that for indexed collection-types it will onl

Re: What about contains? for lists

2009-12-02 Thread Stefan Kamphausen
Hi, On Dec 2, 9:06 pm, ataggart wrote: > > I'd like to understand the (probably well-grounded) reason for that. > > As far as I can see PersistentList extends Counted, so the check for > > the index-range should at least be possible.  However, I think people > > would expect an equality check in

Re: What about contains? for lists

2009-12-02 Thread Stefan Kamphausen
Hi, On Dec 2, 10:24 pm, ataggart wrote: > My guess is that String and array, while not implementing the > IAssociative interface, all have the O(1) lookup performance > guarantees of associative data structures, um, no? According to the bit-partition implementation of vector and the slightly m

Article in German Linux Magazin

2009-12-02 Thread Stefan Kamphausen
Hi, having received the blessings of #clojure (kind of) I'll be bold enough to post a link to an article on Clojure that was published today. http://www.linux-magazin.de/Heft-Abo/Ausgaben/2010/01/Nebenlaeufig Please note, that as of today you can also buy that fine magazine in print. ;-) Hopef

Re: Minimum value in a vector

2009-12-02 Thread Stefan Kamphausen
Hi, On Dec 2, 11:43 pm, Don wrote: > I am having difficulty approaching this problem.  I'm not sure if it > can be done in one swoop, or requires a few steps. > > I have 5 vectors as such: > > a [2 4 6 7] > b [1 3 9 2] > c [2 4 5 6] > d [6 1 3 8] > e [4 8 2 1] > And I want to take the minimum val

Re: Parenthesis Inference

2009-12-19 Thread Stefan Kamphausen
Hi, On 18 Dez., 20:07, Martin Coxall wrote: > One of the things that always puts people off of Lisp, as we all know, are > the parentheses. one of the things that always put Lispers off is this same question. I have three arguments to make. Love, reason and trust. * Love. Parentheses are an

let-binding overrides binding-binding

2009-12-19 Thread Stefan Kamphausen
Hi, just found that a binding-form within a let-form does still use the outer value. user> (def *val* "root binding") #'user/*val* user> (defn print-val [] (println "*val* is: " *val*)) #'user/print-val user> (defn let-vs-binding [] (println "beginning: " *val*) (let [*val* "bound

Re: Parenthesis Inference

2009-12-20 Thread Stefan Kamphausen
Hi, On 20 Dez., 18:41, Martin Coxall wrote: > On 20/12/2009 5:39 PM, Richard Newman wrote: > > >> It's better if we can support both. It's never one size fits all. > > > Who is "we"? > > > If you're talking about something *you* want, you can go build it > > I see Clojure is well on the way to bu

Re: Recommendation for Clojure Indentation tool

2009-12-23 Thread Stefan Kamphausen
Hi, On Dec 22, 11:48 am, Gabi wrote: > I need a simple command-line tool to indent Clojure source files. > Any recommendation ? there was a post to a ruby script for some OSX editor which provided the Clojure indentation by calling emacs in batch-mode. Unfortunately I can't find it anymore. So

Re: Clojure/SLIME/Emacs questions

2009-12-31 Thread Stefan Kamphausen
Hi, do you use a rather recent checkout of SLIME? If so, you may want to read the thread http://groups.google.com/group/clojure/browse_frm/thread/3e5f416e3f2a1884/337057edae5dcdc3 Can't say whether that's related to your problem, though. Cheers, Stefan -- You received this message because yo

Re: Proposal: clojure.io

2010-01-01 Thread Stefan Kamphausen
Hi, On Jan 1, 3:58 am, Phil Hagelberg wrote: > I've been looking over our use of contrib in our large-ish project > at work. About 90% of the invocations of contrib functions are > I/O-related. evil mutable little bastards, these files ;-) > I wonder if it would be a good idea to include a clo

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Stefan Kamphausen
FWIW I have never touched ELPA but got a setup with SLIME from CVS plus SBCL and Clojure. A rudimentary description can be found at http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup The only part that feels tricky is compiling swank for which I needed a Maven setup, IIRC. Regards, Stefan -

Re: Clojure/SLIME/Emacs questions

2010-01-01 Thread Stefan Kamphausen
Hi, On Jan 1, 4:35 pm, Konrad Hinsen wrote: > On 01.01.2010, at 12:30, Stefan Kamphausen wrote: > > The only part that feels tricky is compiling swank for which I needed > > a Maven setup, IIRC. > > I just run swank from source code, uncompiled. No Maven, no worry :-) I h

Re: Release Candidates for clojure-contrib 1.0 and 1.1

2010-01-05 Thread Stefan Kamphausen
Hi, On Jan 5, 5:22 pm, Stuart Sierra wrote: > For > 1.1.0:http://clojure-contrib.googlecode.com/files/clojure-contrib-1.1.0-RC1... works for me. Will use it in the following days. If I stay quiet, it continues to work :-) Thanks for providing this. Regards, Stefan -- You received this mes

Re: Debugging in Clojure

2010-01-22 Thread Stefan Kamphausen
Hi, On Jan 22, 2:14 am, ajay gopalakrishnan wrote: > I usually debug by adding println statements. if you use Emacs is this statement is true for other programming languages, too, you might be interested in using lldebug. I'm pretty sure, that when you ask the author to add support for Clojure

Re: Suggest slime-redirect-inferior-output be default for Swank clojure

2010-01-22 Thread Stefan Kamphausen
I haven't checked whether your suggested solution would work, but I'd be *very* happy to find all stddout-like output from the backend in the REPL-buffer. If I may add this: having different threads' output somehow highlighted, e.g. with colors, would be a killer. But then the wishing time has ju

[ANN] German Clojure Book

2010-03-11 Thread Stefan Kamphausen
's page at http://www.dpunkt.de/buecher/3372.html. With regards to funding Clojure (http://clojure.org/funding) I'm rather happy to announce that for each copy sold 0.50EUR will go to Rich Hickey. I really hope that this will help funding Clojure 2011. Kind regards, Stefan Kamphausen -

Re: German Clojure Book

2010-03-11 Thread Stefan Kamphausen
Hi, > Congratulations! I hope there will be an English translation one day. probably not. There is good English material available and even better coming up. I don't see how I could produce something better than Chouser or Stu. > The book cover is awesome; really like the design and the main f

Re: German Clojure Book

2010-03-12 Thread Stefan Kamphausen
Hi, On Mar 12, 11:11 am, Michael Kohl wrote: > Congratulations! If you ever need any German language proof-reading > let me know, heh, thanks for the offer. I think I did things in the wrong order: I first recruited a team of friendly proof readers and then made the public announcement later.

Re: German Clojure Book

2010-03-12 Thread Stefan Kamphausen
Stu, On 12 Mrz., 17:16, Stuart Halloway wrote: > Stefan, > > That's great news about the book, and kudos on tying it back to   > funding. thank you. I sincerely hope this will really matter. And I am very happy that the publishers immediately agreed on this. Actually I only pointed them to th

Re: Named arguments in HEAD and prettier default arguments for :keys destructuring

2010-03-25 Thread Stefan Kamphausen
Hi, I've no idea whether this is reasonable but when I read your post suddenly the following thought appeared... What if defn would accept either a vector for the parameters or a map? (defn foo {:dont "know" :what "for"} ;; ... ) I did no deeper thinking on this at all, er, skip the "deeper"

Re: Can I GPL my Clojure project?

2010-03-28 Thread Stefan Kamphausen
Hi, On 28 Mrz., 06:55, Mike Meyer wrote: > And to answer the critical question you didn't ask: > > 5) Can I distribute a jar file for my Clojure project under the GPL? > > No. When you compile your code, code from clojure (and clojure-contrib > if you use it) will be included in the resulting ja

Re: Trying to set emacs for some clojure coding

2010-03-31 Thread Stefan Kamphausen
Hi, On 31 Mrz., 13:52, Pelayo Ramón wrote: just to add one more to the list... Note however, that this is what worked *for me* and it means going against the grain. So if there is anything wrong with that setup don't ask the authors of the fine software used, go and blame me ;-) Uh, and Clojur

Re: Clojure Added to "Casting SPELs" Site

2010-04-01 Thread Stefan Kamphausen
Hi, > http://www.lisperati.com/clojure-spels/casting.html by sheer accident I found that version just last night. You should probably refactor those defs of global vars. Other than that there are references to cddr and remove-if-not in the text which do not show up in the code. Cheers, Stefan

Re: Trying to set emacs for some clojure coding

2010-04-07 Thread Stefan Kamphausen
Hi, On 31 Mrz., 18:29, Stefan Kamphausen wrote: > Hi, > > On 31 Mrz., 13:52, Pelayo Ramón wrote: > > just to add one more to the list...  Note however, that this is what > worked *for me* and it means going against the grain.  So if there is > anything wrong with tha

Re: Error when tried to compile with C-c C-k in emacs.

2010-04-08 Thread Stefan Kamphausen
Hi, you're using a rather recent checkout of CVS SLIME. They added keyword args to compile-file-for-emacs which is currently not understood on the clojure swank side. The quickest way to fix that would be changing that part of SLIME. Yes, this is ugly. It's really a pity that SLIME and clojure

Re: Error when tried to compile with C-c C-k in emacs.

2010-04-09 Thread Stefan Kamphausen
Hi, On Apr 9, 4:56 am, Phil Hagelberg wrote: > On Thu, Apr 8, 2010 at 3:32 PM, Stefan Kamphausen > > wrote: > > In the long run the Clojure community should either create an > > "official" fork of SLIME (and try to port the good stuff, that happens > > in

Re: Error when tried to compile with C-c C-k in emacs.

2010-04-10 Thread Stefan Kamphausen
Hi, > Understood. But I'm not one of those people. I'm lucky if I have a > couple hours each week to work on this, and that time must be split > between reviewing incoming contributions *and* writing new code. I > hope you'll forgive me whoa, nothing to forgive here. I am very thankful for the w

Re: seq-contains? in practice

2010-04-29 Thread Stefan Kamphausen
Hi, On 29 Apr., 14:10, Stuart Halloway wrote: > "In theory, you may be right about 'contains?.' In practice, Rich   > Hickey is right." - Stu Halloway. :-) probably a little off-topic, but to me the most irritating thing about contains? is, that it just returns nil (RT/F, that is) for lists. Th

Clojure 1.2: Readsyntax for meta information

2010-05-17 Thread Stefan Kamphausen
Hi, is it correct to assume that the usual read-syntax for 1.2 will be ^ instead of #^? Will all printers emit that? Will #^ become deprecated? Unfortunately I didn't find a enlightening ticket on assembla and no information on the devel list, just the commit message ("^ does what #^ does, reade

Re: Clojure 1.2: Readsyntax for meta information

2010-05-17 Thread Stefan Kamphausen
Salut, On 17 Mai, 18:12, Laurent PETIT wrote: > 2010/5/17 Meikel Brandmeyer : > > > Hi, > > > On Mon, May 17, 2010 at 08:21:39AM -0700, Stefan Kamphausen wrote: > > >> is it correct to assume that the usual read-syntax for 1.2 will be ^ > >> instead

Re: a default value for get-in?

2010-05-18 Thread Stefan Kamphausen
Hi, On May 17, 9:34 pm, braver wrote: > If get-in is to be consistent with get, it better allow to specify a > default value: > > (get-in nested-structure [k1 k2 ... kN] :default something) > > -- would it make sense to add that to the standard get-in? while I certainly agree from the users poin

Re: a default value for get-in?

2010-05-19 Thread Stefan Kamphausen
Hi. On 19 Mai, 16:20, Meikel Brandmeyer wrote: > Hi again, > > Oerk. This time hopefully a working version... > > (defn get-in >   ([m ks] >    (get-in m ks nil)) >   ([m ks not-found] >    (if-let [[k & ks] (seq ks)] >      (let [candidate (get m k not-found)] >        (cond >          (identica

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Stefan Kamphausen
Hi, On May 26, 11:00 pm, Stuart Halloway wrote: > The people have spoken! The trims have it! sorry, I'm a little late. However, to me it is not clear what the trim functions shall do. If they become a replacement for chomp they are clearly misnamed. In many applications and languages (like Ex

Re: promoting contrib.string to clojure, feedback requested

2010-05-27 Thread Stefan Kamphausen
Hi, On 27 Mai, 15:35, Michael Gardner wrote: > On May 27, 2010, at 2:45 AM, Stefan Kamphausen wrote: > > > Hi, > > > On May 26, 11:00 pm, Stuart Halloway > > wrote: > >> The people have spoken! The trims have it! > > > sorry, I'm a little late.

Re: Getting highlighted clojure code into a presentation

2013-05-18 Thread Stefan Kamphausen
Besides the obvious org-mode which exports with colors to HTML when you use "#+BEGIN_SRC clojure ... #+END_SRC" I also had some fun presenting with marginalia or impress.js, both using Alex Gorbatchev's Syntax Highlighter. (FWIW) -- -- You received this message because you are subscribed to t

Re: ref-history-count always return 0?

2013-05-31 Thread Stefan Kamphausen
You may want to use the code from https://gist.github.com/Chouser/456326 to study how the history in refs works. See the accompanying discussion at http://clojure-log.n01se.net/date/2010-06-28.html. I've been using variants of that stress test to explain the ref history behavior since then an

Re: parsing xml with zip, xml and clojure.data.zip

2013-06-05 Thread Stefan Kamphausen
AFAIK your var myxml already refers to the root node of your XML document. So your first example searches for a tag called "level1" inside the root tag (which is "level1"). Obviously, there is no such node and the text is empty. Your second example extracts a textual representation of the ch

Is there an approved way for testing if something is a zipper?

2013-06-11 Thread Stefan Kamphausen
Hi, while working on some XML data extraction I got an NPE which boiled down to calling some zipper related functions on an empty vector or nil. I didn't find a function in clojure.zip, clojure.data.zip or clojure.data.zip.xml to test if an object passed to a function is actually a zipper.

Re: Is there an approved way for testing if something is a zipper?

2013-06-11 Thread Stefan Kamphausen
Thanks for all your suggestions. Seems like a useful addition to clojure.zip to me. -- -- 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 - pl

Re: license of Javascript files generated by Clojurescript?

2013-06-12 Thread Stefan Kamphausen
Hi, On Wednesday, June 12, 2013 2:29:42 PM UTC+2, David Pollak wrote: > > The license of the JavaScript generated by the ClojureScript compiler is > the license of the source code that was compiled. And that license may be > "my company owns it and it's proprietary and we're not licensing it to

Loosing a space from an XML document

2013-06-19 Thread Stefan Kamphausen
Hi, Recently I found myself searching for a white space which got lost somewhere between reading an XML file and presenting some results from that via a little webapp. I think, I could track it down to the following example: user> (clojure.pprint/pprint (clojure.zip/xml-zip

Re: Help deciphering ArityException message

2013-06-30 Thread Stefan Kamphausen
Just a little hint which may help you in the future. First, note the trailing $fn in reformat-headers$fn which tells you, that your problem is with an anonymous function. Second, you know that there is a second form for anonymous functions which uses fn instead of the reader macro. Third, fn c

Re: Clojure: Elegance vs. Performance?

2013-07-10 Thread Stefan Kamphausen
> The Clojure philosophy is that it is rather irritating to think your > recursive call is going to be cleverly optimized into a loop, and then if > you're wrong, you have no good way to know that. So the idea is that you > use the word "recur" to indicate that *you* think it can be optimized

Re: easier way to write "not not"?

2013-07-17 Thread Stefan Kamphausen
Just for the record: I stumbled across the same question just a week ago. -- -- 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 pat

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Stefan Kamphausen
On Tuesday, July 23, 2013 9:42:39 PM UTC+2, Shantanu Kumar wrote: > > One of the main issues I have faced with :use is, understanding a > non-trivial codebase becomes very difficult and almost always requires > Emacs Meta-dot. which is particularly annoying when you read code on a blog (as me

Re: Can we please deprecate the :use directive ?

2013-07-23 Thread Stefan Kamphausen
On Tuesday, July 23, 2013 11:13:11 PM UTC+2, Ben wrote: > > On Tue, Jul 23, 2013 at 1:55 PM, Sean Corfield > > > wrote: > >> On Tue, Jul 23, 2013 at 1:53 PM, Ben Wolfson > >> wrote: >> > On Tue, Jul 23, 2013 at 1:50 PM, Stefan Kamphausen >> &g

Re: help actually changing :use to :require :refer :all?

2013-07-29 Thread Stefan Kamphausen
> Would it still bother you if the IDE helped maintain the ns declaration? > > IMHO, having to rely on my editor or an IDE to manage my code would be a language design smell. Not that I would mind a little help here and there, though -- e.g. indentation, completion and a message if there see

Re: Can we please deprecate the :use directive ?

2013-08-05 Thread Stefan Kamphausen
On Monday, August 5, 2013 2:13:02 PM UTC+2, Mikera wrote: > > > To me the things that make Clojure namespace handling a nightmare for > beginners are: > - Bad error messages (no.1 problem!) > - Confusion with keywords vs. symbols (why ":use" in ns declarations vs > "use" at the repl?) > - Confu

Re: IDE feature

2013-08-08 Thread Stefan Kamphausen
Just for the record: I've been coding in Lisp for close to 30 years > > make that 20 years in my case and I agree with Lee. Can't live without C-M-q, TAB, M-left/right, C-M-SPC but paredit is interfering too much for /my/ taste. stefan -- -- You received this message because you are subscr

Re: function creation, partial or #()

2013-08-15 Thread Stefan Kamphausen
> (let [params (map (fn [_] (gensym "fnp-")) (range n))] > (repeatedly n #(gensym "fnp-")) Best, Stefan -- -- 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

Re: function creation, partial or #()

2013-08-16 Thread Stefan Kamphausen
On Friday, August 16, 2013 9:45:53 AM UTC+2, Antonio Terreno wrote: > > > I much prefer the #(), (fn[]) is longer so it's a no-go ;) > > > fn has the huge advantage of taking an (optional) name, which will show up in stack traces. Just my 2ct Stefan -- -- You received this message because

Re: Can you explain the result of a expression?

2013-08-28 Thread Stefan Kamphausen
http://stackoverflow.com/questions/12412038/in-clojure-are-lazy-seqs-always-chunked -- -- 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 - pl

Re: Why STM read are not cached?

2015-02-11 Thread Stefan Kamphausen
Hi, It's been quite a while since I last looked into the impl of STM but I seem to remember that the committing transaction actively notifies other running transactions (see method barge) to restart and thus the restart is not triggered by the second deref at all. You could also find out by

Re: calling functions that accepts keyword arguments with a map

2015-02-16 Thread Stefan Kamphausen
Hi, On Friday, February 13, 2015 at 8:04:20 PM UTC+1, James Reeves wrote: > > A lot of utility libraries, such as my own Medley > , have "mapply" functions for this > exact use-case. > > Generally, however, I find that keyword arguments are more trouble tha

Re: [ANN] CIDER 0.9

2015-06-18 Thread Stefan Kamphausen
Dear CIDER Devs, On Tuesday, June 16, 2015 at 4:33:48 PM UTC+2, Bozhidar Batsov wrote: > > > CIDER 0.9 is finally out! You can read more about the release here > http://batsov.com/articles/2015/06/16/cider-0-dot-9/ > > thanks for the time and effort you've put into this! Works fine for me. Up

Re: restarts

2014-06-20 Thread Stefan Kamphausen
On Thursday, June 19, 2014 11:05:07 PM UTC+2, Thomas Heller wrote: > > Excuse my ignorance of not knowing anything about CL and restarts but I > needed something like retry a while back. > Restarts in CL are a different beast. Take a look at e.g. http://www.gigamonkeys.com/book/beyond-exceptio

Instaparse: Dynamic Grammar With Declarations

2014-06-25 Thread Stefan Kamphausen
Hi, first of all, please excuse this cross-post. I tried to get an answer on the instaparse list first, but it does not seem to reach so many instaparse users. Unfortunately I do not know the correct name for the problem I face, hence the rather vague subject. I am trying to parse a file f

Re: Instaparse: Dynamic Grammar With Declarations

2014-06-27 Thread Stefan Kamphausen
pass approach (while I thought I'd have to create the second grammar with string operations). * I'll stick to separating parsing and validation for now. Question answered, case closed, thanks! Cheers, stefan On Wednesday, June 25, 2014 11:31:21 PM UTC+2, Stefan Kamphausen wro

Re: When to use ! in function name

2014-07-10 Thread Stefan Kamphausen
On Thursday, July 10, 2014 5:28:26 PM UTC+2, Cecil Westerhof wrote: > > When a function returns a true/false value you should end it with a '?'. > > Clojure Programming says that with side effects you should end the > function name with a '!'. > "Use the bang! only for things not safe in an STM

Re: When to use ! in function name

2014-07-11 Thread Stefan Kamphausen
Hi, On Friday, July 11, 2014 11:10:53 AM UTC+2, Cecil Westerhof wrote: > > 2014-07-10 18:34 GMT+02:00 Plínio Balduino >: > >> IMO, ! is used when change any global state. A side effect like print on >> screen is not enough to cause a ! in the name. I think that's why the >> functions print/prin

Re: When to use ! in function name

2014-07-11 Thread Stefan Kamphausen
Hi, On Friday, July 11, 2014 11:33:34 AM UTC+2, Cecil Westerhof wrote: > > 2014-07-10 19:10 GMT+02:00 Softaddicts >: > ​but as I understood from others it is not about side-effects, but global > state. > as James and I already pointed out, that is not what it is about. The bang is about int

Re: futures and atoms and bears, oh my!

2014-07-15 Thread Stefan Kamphausen
> > (defn foo > "I don't do a whole lot." > [a b] > ((let [y (bar(a b))] > (println a b "Hello, World!" > > Now, *there* are some very suspicious parens around... 1. You're trying to call a as a function 2. Yes, you're calling bar with too few parameters, but how many? One. 3. Fina

Re: CLISP books any good to learn Clojure

2014-08-24 Thread Stefan Kamphausen
Practical Common Lisp will definitely help understanding Clojure, too. For example, the way, Macros are introduced and used, and understanding generic functions. http://www.gigamonkeys.com/book/ stefan On Sunday, August 24, 2014 12:49:07 PM UTC+2, Cecil Westerhof wrote: > > There are a lot of

Re: [ANN] Clojure 1.7.0-alpha2

2014-09-12 Thread Stefan Kamphausen
On Wednesday, September 10, 2014 10:53:27 PM UTC+2, Alex Miller wrote: > > On Wednesday, September 10, 2014 11:05:36 AM UTC-5, puzzler wrote: >> >> When I explain to new Clojurists what the ! means, I explain that it >> calls attention to a mutation function that is unsafe to call inside a >> t

Re: atom swap! versus ref dosync+alter?

2014-09-30 Thread Stefan Kamphausen
Hi, On Tuesday, September 30, 2014 12:01:33 PM UTC+2, Joachim De Beule wrote: > > Dear list, > > I've got two threads that update the same location. One of them takes a > lot of time. Given this, my question is if there is a reason to prefer an > atom or a ref? > > is it really just two threads

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-28 Thread Stefan Kamphausen
Hi, have there been any changes how fns with a name and recursion are compiled? One of my projects has a function which does not compile with 1.7.0-alpha3 anymore, but did fine with 1.6.0. I tried to create a minimal example at https://github.com/ska2342/nested-fn-breaks-clojure-17 (I know t

Re: Java Listener on Textfield

2014-11-03 Thread Stefan Kamphausen
Hi, not directly an answer to your question, but you may be interested in Seesaw and it binding facilities. Unless you are looking for pure Java solutions in which case your posting in the wrong group. Kind regards, stefan On Monday, November 3, 2014 1:52:46 PM UTC+1, Azzoug Youcef wrote: > >

Re: [ANN] Clojure 1.7.0-alpha4 now available

2014-11-17 Thread Stefan Kamphausen
Hi, Thumbs up from my side. The compilation issues with too long filenames in my projects on my system are gone now (CLJ-1330). No perf degradation either :-). Thanks Stefan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

[ANN] Registration and Program For :clojureD

2014-11-20 Thread Stefan Kamphausen
Hi, With great pleasure, I'd like to announce the finalization of the program and opening of registration for the :clojureD, Germany's Clojure conference in Berlin. The conference: http://www.clojured.de/ 24th Jan 2015 in Berlin https://twitter.com/clojuredconf @clojuredconf The program: h

Creating Hiccup From Code Keeping Formatting and Comments

2015-01-04 Thread Stefan Kamphausen
Hi, Currently, I am trying to write a presentation using ring and reveal.js. For the code samples, I'd like to write "real" clojure code, i.e. no strings or the like. Then, I want to turn that into a suitable hiccup vector which will create the correct reveal.js/highlight.js syntax. I w

Re: Creating Hiccup From Code Keeping Formatting and Comments

2015-01-05 Thread Stefan Kamphausen
Hi, Thanks for your pointers. That is something to dive into. Cheers, stefan -- 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

[CfP] :clojureD 2017

2016-09-14 Thread Stefan Kamphausen
Dear Clojure-community, Please let me bring the current call for proposals for the next iteration of the German clojure conference in Berlin, the :clojureD, to your attention: http://www.clojured.de/call-for-proposals/ We call to send us talks for the upcoming :clojureD conference 2017. Th

Re: [CfP] :clojureD 2017

2016-09-16 Thread Stefan Kamphausen
Hi, On Friday, September 16, 2016 at 6:16:14 AM UTC+2, Mars0i wrote: > > Glad that this is happening. > You might want to add the date to the CFP and Schedule pages. I only > found it on the Press page. > Thanks for your feedback. I've added the date to the CfP page. Did you look for it on

Re: [ANN] permissions - role & permission based access control

2016-10-13 Thread Stefan Kamphausen
Hi, Doesn't that feel like premature optimization to you, too? Bitmasks are much harder to read than sets with spelled out roles and I wonder if the performance gain is really worth that. And it poses a limit of 64 roles. I have seen several enterprise applications that had far more than 64 r

[CfP] :clojureD 2018

2017-10-02 Thread Stefan Kamphausen
Dear Clojure-Community, The call for proposal for the next :clojureD is open: http://clojured.de/call-for-proposals/ We'd love to drown in your submissions so that we can deliver a conference programme just as excellent as 2017. :-) Oh, and ticket sale has started, too: https://www.eventbri

[ANN] clj-queue-by 0.1.1

2017-11-17 Thread Stefan Kamphausen
Dear Clojurians, We've released a small queuing library which fills a gap that core.async didn't really fill for us. https://github.com/acrolinx/clj-queue-by * A central, easy to use, thread-safe, in-memory working queue. * Easy to inspect to allow monitoring. * Stateful, not persistent, uses

Re: add-watch and writing data into a core.async channel

2015-07-31 Thread Stefan Kamphausen
On Friday, July 31, 2015 at 8:21:18 AM UTC+2, Raymond Huang wrote: > > I'd like to use `add-watch` on an atom which writes the data to a > core.async channel. So far, I've come up with this, but it seems bad > because I create a new go-routine everytime something happens. > > Makes me think, one

[ANN] :clojureD Registration Now Open

2015-12-17 Thread Stefan Kamphausen
Fellow Clojurians, The team organizing the German Clojure conference :clojureD would like you to know, that the registration is now open: http://www.clojured.de/registration/ Kind regards, stefan -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Encapsulating Local Mutable State

2016-04-15 Thread Stefan Kamphausen
Hi, Currently, I am in the process of writing a client to server API which is not trivial to consume. In particular it needs a 3-step authentication process: login with user name and password, get an authentication token, open a session with the token and finally consume the API with the ses

Re: Encapsulating Local Mutable State

2016-04-16 Thread Stefan Kamphausen
Hi Francis, Thanks for taking the time to thoroughly explain your approach. I find it interesting and was not yet aware of it. Need to wrap my head around it a bit. Best, Stefan -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this g

Re: Encapsulating Local Mutable State

2016-05-02 Thread Stefan Kamphausen
Good point, Paul. Thanks. Best, stefan -- 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 unsub

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Stefan Kamphausen
hi, RC1 works well with our largest project. See a 5-8% slow-down but no other problems. Regards, Stefan -- 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

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Stefan Kamphausen
Hi Alex, the runtime of the program changed from 19 to 20 seconds for one set of data and from approx 6minutes to 6:30 for another set. To me that is acceptable. We are reading a few MB of files into memory, create lots of intermediate vectors, maps and sets and output up to a few hundred M

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Stefan Kamphausen
Hi, On Wednesday, March 19, 2014 3:55:22 PM UTC+1, Michał Marczyk wrote: > > Hashes are cached for Clojure collections, keywords and symbols, but > not for strings. > > I wonder if people who report these perf regressions use long string > keys in their maps... As far as I can see, we have /

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-19 Thread Stefan Kamphausen
On Wednesday, March 19, 2014 4:34:45 PM UTC+1, Alex Miller wrote: > > Thanks, this is all really useful. I would appreciate any more detailed > info. >> >> >> * No atoms, agents, refs * Almost purely functional plus logging and I/O * Multi-threaded using latest core.async with thread, no go * J

Re: Clojure 1.6.0-RC1 - LAST CHANCE, PLEASE TEST

2014-03-21 Thread Stefan Kamphausen
Hi, after two days of git bisecting and running my tests over and over again, I give up. While I can repeatedly identify the commit which causes the biggest slowdown for me between the 1.5.1 tag and 1.6.0 RC1 I simply refuse to believe that the result of my analysis is correct. On 5045ac124e

  1   2   3   >