Re: who's not using leiningen?

2013-05-21 Thread Dave Sann
Thanks all. D -- -- 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, s

Re: Does this abstraction have any existing name?

2013-07-26 Thread Dave Sann
if you are thinking of the nested map as a sort of tree - which you seem to be doing - then map-leaves or something similar might convey the intent. On Saturday, 27 July 2013 04:30:30 UTC+10, Jay Fields wrote: > > I'm not sure I'd call this more readable, but it's another option - using > clojur

Re: Can you explain the result of a expression?

2013-08-27 Thread Dave Sann
chunked lazy sequences On Wednesday, 28 August 2013 12:51:27 UTC+10, ljcp...@gmail.com wrote: > > Hi, > > (take 1 (map #(do (print \.) %) (range))) > result: (0) > > I think it should be (.0), why? thank you! > > -- -- You received this message because you are su

Re: [ANN] Buddy 0.4.0: Security library for clojure.

2015-02-22 Thread Dave Sann
buddy-auth vs friend? What is the difference/motivation? On Monday, 23 February 2015 06:32:22 UTC+11, g vim wrote: > > On 22/02/2015 11:36, Andrey Antukh wrote: > > Documentation: > > https://funcool.github.io/buddy-core/latest/ > > https://funcool.github.io/buddy-auth/latest/ > > https://f

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-11 Thread Dave Sann
very interesting work and well presented, keep going. -- 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 pos

Re: [ANN][book] Clojure Reactive Programming

2015-03-26 Thread Dave Sann
Not being politically correct is fine. But an attack on anonymous "stupid" people in this context is pointless and sours the otherwise potentially useful commentary. It also completely derails the topic. Comment on the objective aspects of the technology. If you have a personal issue with some

Re: [ANN] lein-docker, lein-beandock

2015-04-07 Thread Dave Sann
see also https://github.com/palletops/lein-uberimage On Wednesday, 8 April 2015 07:35:54 UTC+10, Allen Rohner wrote: > > https://github.com/arohner/lein-docker > > https://github.com/arohner/lein-beandock > > `lein-docker` is a simple plugin for performing `docker build` and `docker > push`. lei

Re: Too many words written on referential transparency in Clojure and Haskell

2015-04-21 Thread Dave Sann
Agree it's an interesting writeup. I think that the behaviour of seq should be entirely expected though. Sets have no ordering (logically) so turning them into an ordered sequence should be considered to be an entirely arbitrary operation (unless specific guarantees are provided). The fact that

Re: Too many words written on referential transparency in Clojure and Haskell

2015-04-21 Thread Dave Sann
esday, 22 April 2015 13:18:43 UTC+10, Dave Sann wrote: > > Agree it's an interesting writeup. > > I think that the behaviour of seq should be entirely expected though. Sets > have no ordering (logically) so turning them into an ordered sequence > should be considered to be an

Re: Too many words written on referential transparency in Clojure and Haskell

2015-04-22 Thread Dave Sann
> it true for a particular function, preferably with documentation if you are > aware that you are not preserving it. > > Andy > > On Tue, Apr 21, 2015 at 8:32 PM, Dave Sann > wrote: > >> Just to expand on this slightly - seq applied to a set must introduce an >>

Re: Too many words written on referential transparency in Clojure and Haskell

2015-04-22 Thread Dave Sann
one thought - (set (seq a-set)) is pure even is (seq a-set) is not - because (set a-seq) throws away the (random) order information that was added. Dave On Wednesday, 22 April 2015 19:03:23 UTC+10, Mark Derricutt wrote: > > On 22 Apr 2015, at 20:22, Dave Sann wrote: > > for examp

Re: Too many words written on referential transparency in Clojure and Haskell

2015-04-22 Thread Dave Sann
> definition of equality, where the property can be violated. The root >> of this issue is: sometimes reasonable definitions of equality regard >> two values as equal, intentionally ignoring internal implementation >> details of the data structure, but those differences ignored by e

Re: Clarity Keyboard by SwiftKey - Written in Clojure

2015-05-08 Thread Dave Sann
Very good news for clojure-android. Keen to hear more. Dave On Friday, 8 May 2015 21:18:50 UTC+10, Adam Clements wrote: > > Hi all, > > Just thought you might be interested to know that last week we (SwiftKey) > released an Android app, written from the ground up in Clojure, which as of > th

Re: Project Better Clojure/Android integration

2015-07-22 Thread Dave Sann
Talk to the people on this forum https://groups.google.com/forum/#!forum/clojure-android and see how you go. I am sure that they would welcome your participation. There was an talk at euroclojure by Alexander Yakushev: https://www.youtube.com/watch?v=mVXTcAEKgF8 Dave On Thursday, 23 July 2

Re: [ANN] lein-templater - automagically generate templates from your existing projects

2014-08-19 Thread Dave Sann
Interesting Idea. I'll give it a go. On Wednesday, 20 August 2014 06:47:47 UTC+10, Dylan Butman wrote: > > I've been writing a lot of templates lately for various web stacks and > whatnot, and I got really tired of having to copy my files into a template > every time they changes. I figured it w

Re: [ANN] Leiningen 2.3.4 released

2014-08-23 Thread Dave Sann
Do exclusions apply to plugins? if I have :plugins [[com.keminglabs/cljx "0.4.0" :exclusions [org.clojure/clojure]]] I get ([com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket "0.1.0.6"] -> [org.clojure/clojure "[1.3.0,)"] Consider using [com.keminglabs/cljx "0.4.0" :exclusions [

Re: [ANN] Leiningen 2.3.4 released

2014-08-24 Thread Dave Sann
https://github.com/technomancy/leiningen/issues/1652 On Sunday, 24 August 2014 18:50:36 UTC+10, Robin Heggelund Hansen wrote: > > Same here =( > > kl. 03:27:50 UTC+2 søndag 24. august 2014 skrev Dave Sann følgende: >> >> Do exclusions apply to plugins? >>

how do you name your protocols?

2014-09-05 Thread Dave Sann
I saw a comment on protocol naming here: https://groups.google.com/d/msg/clojure/A4xIitQWloU/6E4xHDTPPaIJ there is nothing in the coding standards: http://dev.clojure.org/display/community/Library+Coding+Standards (are these maintained?) is there any sensible consensus on good naming conventio

Re: [ANN] aprint (awesome print) released

2014-09-11 Thread Dave Sann
Is there an easy way to get the same compact layout but without the colour control codes? On Friday, 5 September 2014 07:50:10 UTC+10, Vladimir Bokov wrote: > > Hi folks, I got just tired to gazing into big amount of data and scroll > 3-4 screens of my 13' laptop to grasp the structure, > so I u

Re: [ANN] aprint (awesome print) released

2014-09-12 Thread Dave Sann
great stuff. thanks. On Friday, 12 September 2014 01:06:29 UTC+10, Vladimir Bokov wrote: > > Yes. I use clansi: > > (clansi.core/without-ansi (aprint issues)) > > Thanks for feedback, I updated README too > > четверг, 11 сентября 2014 г., 21:58:57 UTC+7 пользователь Dave S

Re: ANN: Potemkin 0.3.0

2014-09-14 Thread Dave Sann
Does Potemkin work well with clojurescript? I have seen some discussion of issues in some places. Is there anywhere that notes challenges? I am particularly interested with the import-vars scenario (defining namespaces separately and then merging definitions into one namespace for usage). Dav

Re: ANN: Potemkin 0.3.0

2014-09-16 Thread Dave Sann
to answer my own question. It does not play well. I created a couple of simple macros that mimics the import-vars behaviour for fns and vars in clojurescript. On Sunday, 14 September 2014 17:53:47 UTC+10, Dave Sann wrote: > > Does Potemkin work well with clojurescript? > > I ha

Re: [ANN] tools.analyzer[.jvm] 0.6.0 release, pass scheduler

2014-09-19 Thread Dave Sann
Hi Nicola, why do you pass a set of vars to schedule rather than a set of functions? I'm just interested. It's unusual to see #' Dave On Friday, 19 September 2014 05:07:08 UTC+10, Nicola Mometto wrote: > > > Today I released version 0.6.0 of the tools.analyzer[1] and > tools.analyzer.jvm[2] c

Re: [ANN] tools.analyzer[.jvm] 0.6.0 release, pass scheduler

2014-09-19 Thread Dave Sann
the Vars, leaving aside that it would be less pleasant, multimethods > can't have metadata attached as they are not AFunctions so that would > require wrapping each pass in a fn even when unnecessary. > > Given all this, using a set of Vars is perfectly reasonable. > > Nicol

Re: [ANN] garden-watch

2014-02-04 Thread Dave Sann
FYI, I think lein garden does this already. is there a particular difference? On Wednesday, 5 February 2014 13:03:55 UTC+11, frye wrote: > > *garden-watch* is very similar > to hiccup-watch (previous > ann

Re: Some advice about introducing clojurescript into a project using js/jquery

2014-02-16 Thread Dave Sann
It works pretty seamlessly. You will need to include a jquery externs file to avoid munging of function call names by the google closure compiler in advanced mode. See also https://github.com/ibdknox/jayq Which adds a few simplifications to usage (particularly some protocols for jQuery object

Re: ace / codemirror in cljs

2014-03-01 Thread Dave Sann
have you considered reading the LightTable code? There is probably some cljs and editor in there On Saturday, 1 March 2014 17:26:18 UTC+11, t x wrote: > > Hi, > > Is there anything like http://codemirror.net/ or > http://ace.c9.io/#nav=about in cljs ? > > The goal is not to use codemir

namespace dependency

2014-03-21 Thread Dave Sann
Assuming a set of directories/classpath, is there a simple way to determine the set of namespaces that are dependent on another namespace? in this case, by dependent I mean (for example): A refers B B refers C D dependents of B are A dependents of C are B and A dependents of D are B and A depen

Re: namespace dependency

2014-03-21 Thread Dave Sann
This caused the declaration parsing to miss the referred namespaces. Cheers Dave On Saturday, 22 March 2014 01:11:53 UTC+11, cjeris wrote: > > You might take a look at Tim McCormack's Nephila visualizer: > > https://github.com/timmc/nephila > > > On Fri, Mar 21, 2014 a

Re: rant / cljs in cljs ? :-)

2014-04-05 Thread Dave Sann
or livejs http://livejs.com/ On Sunday, 6 April 2014 04:58:51 UTC+10, Henrik Eneroth wrote: > > If that is your criterion, use something that reloads the browser > automatically when the js is changed. I use CodeKit personally. > > On Wednesday, April 2, 2014 10:09:45 PM UTC+2, lypanov wrote: >>

A thought on Om/React

2014-04-08 Thread Dave Sann
I haven't built anything with OM or react as yet. But I have read about it and I like the model in principle. A thought which repeatedly pops into my mind when I read about this is - ok, react in written in js. which is great for the web. What would happen if it were written in Clojure and avai

Re: [ANN] Zengarden. A Clojure library for generating CSS

2014-04-10 Thread Dave Sann
what is different from what Joel already did? I think Joel was asking for input to help develop garden further it would be great to see efforts go into one thing - unless you have really divergent ideas Dave On Friday, 11 April 2014 01:07:47 UTC+10, frye wrote: > > Zengarden is a riff on

Re: [ANN] Zengarden. A Clojure library for generating CSS

2014-04-11 Thread Dave Sann
> So while I personally need these things, I'm also happy to fold those > features, back into garden. I'd actually prefer that, so we can have all of > these features in one place. > > > Tim Washington > Interruptsoftware.com <http://interruptsoftware.com> >

Re: Puppet Labs and Trapperkeeper

2014-04-13 Thread Dave Sann
related http://puppetlabs.com/blog/new-era-application-services-puppet-labs On Monday, 14 April 2014 00:24:28 UTC+10, Brendan Younger wrote: > > I just saw that there's a library called TrapperKeeper > https://github.com/puppetlabs/trapperkeeper from the folks at Puppet > Labs. It looks to be

Re: clojurescript: modifying function definitions

2014-05-13 Thread Dave Sann
I have done this sort of this with with-redefs to look at the input and output of functions inside a library I was using. http://clojuredocs.org/clojure_core/clojure.core/with-redefs I may have a small macro to assist. I can post later if you wish. You need to be careful of binding boundaries t

Re: [ANN] Clojure RETE implementation - CLIPS-like expert system shell. New version 4.3

2014-05-13 Thread Dave Sann
this code (and the related create) is unusual: (defn reset [] "Reset: clear and initialize all memories" (def =AMEM= (object-array @ACNT)) (def =BMEM= (object-array =BCNT=)) (def =FMEM= (create-fmem =TEMPL=)) (def =FMMB= (create-fmem =TEMPL=)) (def =FIDS= (HashMap.)) (def CFSET (atom

random thought on #_

2014-01-22 Thread Dave Sann
I like #_, it's very useful I had a thought I'd like to have #__ - two _ to comment 2 expressions - specifically for commenting in maps Then I thought #_n where n is an integer - to comment as many as you need. end of my thought. Dave -- -- You received this message because you are subs

Re: random thought on #_

2014-01-22 Thread Dave Sann
wo expressions. > > Christophe > > > On Wed, Jan 22, 2014 at 2:03 PM, Dave Sann > > wrote: > >> I like #_, it's very useful >> >> I had a thought I'd like to have #__ - two _ to comment 2 expressions - >> specifically for commenting in maps >>

Re: Is contributing to clojurescript is intentionally made hard ?

2013-01-19 Thread Dave Sann
It is great that questions are being asked about how things do, might or should work - but tone of the original question and the ensuing discussion, in my view, unfortunate. On Sunday, 20 January 2013 17:36:11 UTC+11, Irakli Gozalishvili wrote: > > Anyway it's seems to me that message in this t

Re: Help with Clojurescript + DOM Manipulation

2013-01-23 Thread Dave Sann
map is lazy so your console log is never done. use (doall ...) Dave On Thursday, 24 January 2013 12:38:37 UTC+11, Ari wrote: > > Hi, > > The following clojurescript code is *supposed* to identify all anchor tags > and print them (originally, I was trying to attach listeners and > callbacks)

Re: dictionary sort in sortedmap

2013-02-04 Thread Dave Sann
http://clojuredocs.org/clojure_core/clojure.core/sorted-map-by On Monday, 4 February 2013 21:37:13 UTC+11, Amir Wasim wrote: > > I want to sort a map by its keys according to dictionary when i do the > following > > (into (sorted-map) {"1" "A" "2" "B" "11" "C" "3" "D"}) > > the result is > > {

Re: Clojure - Python Style suggestion

2013-02-04 Thread Dave Sann
The syntax does complect in one case. When you really do want a list as opposed to a function call. hence quote and (list ...) On Tuesday, 5 February 2013 07:06:37 UTC+11, tbc++ wrote: > > Parens actually don't complect, they have a very very clear meaning. They > organize functions and argumen

Re: Clojure - Python Style suggestion

2013-02-07 Thread Dave Sann
ning... IIRC, its in McCarthy's paper that defined > the first lisp. > On Feb 4, 2013 7:58 PM, "Dave Sann" > > wrote: > >> The syntax does complect in one case. >> When you really do want a list as opposed to a function call. hence quote >> and

Re: Clojure, Heroku and the dreaded R10 Boot Timeout Error

2013-02-13 Thread Dave Sann
Maybe this past post helps https://groups.google.com/d/topic/clojure/tU1LJOXiDc4/discussion D On Thursday, 14 February 2013 14:12:07 UTC+11, Leonardo Borges wrote: > > Hi Timothy, > > I should have mentioned I'm using lein2. Heroku performs AOT > compilation for you by default when that's the

Re: :use an entire namespace full of protocols or stick with :require?

2013-02-14 Thread Dave Sann
I don't like :use because I can't tell where things come from. require :refer [...] is good is you don't want the prefix. On Friday, 15 February 2013 00:26:50 UTC+11, Jim foo.bar wrote: > > I know that using a bare :use in the ns macro is generally frowned upon > as it provides no hints abou

Re: RC 16: Last chance to test against Clojure 1.5 before it ships

2013-02-17 Thread Dave Sann
timely comment. you can create and throw it but catching it requires the imported type. (not withstanding catching the generic Exception on the JVM). see the link for suggestion/discussion on making this more "uniform" for clj and cljs: https://groups.google.com/d/topic/clojurescript/A3wH_Hm3O

Re: RC 16: Last chance to test against Clojure 1.5 before it ships

2013-02-18 Thread Dave Sann
enced previously). Dave On Monday, 18 February 2013 12:18:15 UTC+11, Dave Sann wrote: > > timely comment. > > you can create and throw it but catching it requires the imported type. > (not withstanding catching the generic Exception on the JVM). > > see the link for suggestion

documentation for clojure core extension points - multimethods and protocols?

2013-02-21 Thread Dave Sann
Does anyone have a good source of summary documentation for core clojure "extension points" My this I mean either defined multi-methods that are intended to be extended, such as print-method, or Protocols that are intended to be re-used? Is there similar for clojurescript? just curious at the

Re: documentation for clojure core extension points - multimethods and protocols?

2013-02-22 Thread Dave Sann
I did this. There are actually not many protocols. Likely because most of the original underlying implementation in terms of java interfaces. Few multi-methods beyond print-method stood out. I can post the output if anyone is interested. Dave On Friday, 22 February 2013 21:51:06 UTC+11, Andre

Re: documentation for clojure core extension points - multimethods and protocols?

2013-02-22 Thread Dave Sann
This is for 1.4.0. Multi methods. (Filenames come after) (the two methods in dispatch are: simple-dispatch, code-dispatch add -A 1 option to the grep to see this) $ find . -name "*.clj" -exec grep "defmulti" \{\} \; -print -printf "\n" (defmulti (defmulti ./src/clj/clojure/pprint/dispatch.cl

Re: documentation for clojure core extension points - multimethods and protocols?

2013-02-22 Thread Dave Sann
1.4.0 protocols $ find . -name "*.clj" -exec grep "defprotocol" \{\} \; -print -printf "\n" (defprotocol Reflector (defprotocol TypeReference ./src/clj/clojure/reflect.clj (defprotocol ClassResolver ./src/clj/clojure/reflect/java.clj (defprotocol ^{:added "1.2"} Coercions (defprotocol ^{:added "

(def function* ... ???

2013-02-28 Thread Dave Sann
I see cases of * after function names. Can anyone enlighten me as to the specific meaning of this, if any. Is it specific to some clojure uses or more widely employed. thanks Dave -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: what on earth is happening?

2013-02-28 Thread Dave Sann
Jim, I'm not answering your question here. but the subject you have chosen is not very descriptive of your problem/question/topic. On Friday, 1 March 2013 01:23:22 UTC+11, Jim foo.bar wrote: > > I've got a project > > >1. I can *'lein2 repl'* in it and navigate to any namespace - no >

Re: In order to get java-like performance, one needs to write java-like code first?

2013-02-28 Thread Dave Sann
Performance at doing what? why? what are your requirements and what is important to you? Your question is simple but can generate extensive debate. Don't expect a yes/no answer. See this extensive discussion and examples: https://groups.google.com/d/topic/clojure/byHO-9t6X4U/discussion it's f

printing and reading functions

2013-03-03 Thread Dave Sann
This may be a question for clojure dev I find myself wanting to be able to print data-structures containing resolvable functions e.g. (let [x assoc] (str [x :a :b])) would be: "[#fn clojure.core/assoc :a :b]" or similar, rather than the current: "[# :a :b]" which is unreadable. I ca

Re: printing and reading functions

2013-03-03 Thread Dave Sann
I think, that will only work if you do it directly. It will not work in the example I gave. Dave On Sunday, 3 March 2013 22:43:14 UTC+11, AtKaaZ wrote: > > > > > On Sun, Mar 3, 2013 at 12:21 PM, Dave Sann > > wrote: > >> This may be a question for clojure dev >

Re: printing and reading functions

2013-03-03 Thread Dave Sann
t;>> => (let [x assoc >>> y x] >>> *(var y)* >>> ) >>> CompilerException java.lang.RuntimeException: Unable to resolve var: y >>> in this context, compiling:(NO_SOURCE_PATH:3:3) >>> >>> => (let

Re: printing and reading functions

2013-03-03 Thread Dave Sann
Thanks Phil. Is there an Jira issue for this? Is it worth raising one? I noted that my requirement is slightly different from yours. I want to print the function by name (and namespace) only. Serializable-fn prints the full definition. But this difference is only in print-method - if the meta-

Re: [ClojureScript] features expression

2013-03-05 Thread Dave Sann
Honestly, writing clear understandable code is hard enough already. I have voiced this opinion before in other discussions on this topic - but my view is that inline feature expressions should be used very sparingly. And preferably, there should also be other options for portability - e.g. separ

Re: Understanding map laziness in relation to vectors

2013-03-06 Thread Dave Sann
It's to do with the chunking of sequences. they are taken in blocks of 32. So minimum of 32 will be executed. (first (remove nil? (map foo (vec (range 1 1000) Exeuting for... 1 Exeuting for... 2 Exeuting for... 3 Exeuting for... 4 Exeuting for... 5 Exeuting for... 6 Exeuting for... 7 Exeuting

& args destructuring in functions?

2013-03-06 Thread Dave Sann
a minor thing. which do you prefer? (defn blah [x y & zs] ...) , or, (defn blah [x y zs] ...) clojure core usually uses the first form. assoc, conj and so forth I have used this because it seems nicer for the caller (blah x y z1 z2 z3) rather than (blah x y [z1 z2 z3]) However, if you regu

Re: What's the point of -> ?

2013-03-11 Thread Dave Sann
I don't see why this should be arcane. it is quite simple to understand. but yes, you do have to understand it. like anything. this is good sugar...probably a fructose derivative... On Tuesday, 12 March 2013 02:00:13 UTC+11, edw...@kenworthy.info wrote: > > But to understand the first you have

Re: Raw strings

2013-03-18 Thread Dave Sann
I'd welcome the ability to change delimiter. I've found it very useful in the past to avoid illegible or hard to read strings. On Monday, 18 March 2013 19:57:06 UTC+11, Luc wrote: > > Looks fine to me. If it's an extension to the literal syntax it's also a > narrow scope change. > > The standa

Re: Exception propagation design in Clojure web APIs.

2013-03-19 Thread Dave Sann
I am interested in this view that exceptions are an anti pattern. I have heard it voiced before. I am not sure that I understand why. As I see it you have a choices: 1. Handle in the result - and test this result repeatedly all the way back to the caller 2. Handle "out of band" - Throw an exc

Re: Exception propagation design in Clojure web APIs.

2013-03-19 Thread Dave Sann
I am interested in this view that exceptions are an anti pattern. I have heard it voiced before. I am not sure that I understand why. As I see it you have a choices: 1. Handle in the result - and test this result repeatedly all the way back to the caller 2. Handle "out of band" - Throw an exc

Re: Exception propagation design in Clojure web APIs.

2013-03-19 Thread Dave Sann
That should have been "why is 1 preferable over 2"... On Wednesday, 20 March 2013 12:24:12 UTC+11, Dave Sann wrote: > > I am interested in this view that exceptions are an anti pattern. I have > heard it voiced before. > > I am not sure that I understand why. > >

Re: Exception propagation design in Clojure web APIs.

2013-03-20 Thread Dave Sann
bound variable that collects all the validation failures, > which will potentially give you better diagnostics than the fail-fast > behavior of validation excptions. > > -marko > > On Wednesday, March 20, 2013 2:24:12 AM UTC+1, Dave Sann wrote: >> >> I am interested in

Re: Exception propagation design in Clojure web APIs.

2013-03-20 Thread Dave Sann
validation passes and must not if it fails. I can't validate in advance because that would lead to a race condition). On Wednesday, 20 March 2013 23:24:48 UTC+11, Marko Topolnik wrote: > > On Wednesday, March 20, 2013 1:06:54 PM UTC+1, Dave Sann wrote: > >> Marko, do you have a good e

Re: Concurrency and custom types.

2013-03-25 Thread Dave Sann
how could it not be true? it's in data represented in memory. On Monday, 25 March 2013 23:37:33 UTC+11, Jim foo.bar wrote: > > On 25/03/13 12:28, Michael Klishin wrote: > > There is no absolute immutability on the JVM, .NET, in JavaScript. > > There is always a backdoor to mutability. > > Bu

Re: [GSOC 2013] Android UI as Clojure Data

2013-04-10 Thread Dave Sann
Caveat - I haven't do any android dev and don't know details of their UI apis But not letting that get in the way of an opinion, I also suggest that you look at what Dave Ray has done with Seesaw for swing. There my well be useful ideas in there for you. https://github.com/daveray/seesaw/ in

Re: Advice on state handling for a multiplayer poker app

2013-04-11 Thread Dave Sann
have a look at this for a discussion of exactly that question. http://clj-me.cgrand.net/2011/10/06/a-world-in-a-ref/ https://github.com/cgrand/megaref On Friday, 12 April 2013 07:35:03 UTC+10, James Adams wrote: > > Hi, > > I'm new to Clojure and trying to write a multiplayer poker web app.

Re: [ANN] Linode compromise possibly affecting Clojars

2013-04-17 Thread Dave Sann
+1 On Thursday, 18 April 2013 05:04:47 UTC+10, Andrew Wagner wrote: > > Just wanted to say, awesome job with this. I appreciate your diligence! > > > On Wed, Apr 17, 2013 at 2:50 PM, Phil Hagelberg > > wrote: > >> >> Update: thanks to an older backup from Ivan Kozik, we've been able to >> verify

Re: Defining custom tags using hiccup ?

2013-04-25 Thread Dave Sann
I replied to this a long time ago and in the original case - I did not see huge value in the suggestion. But recently I wanted to do exactly what Murtaza suggests. There are a couple of reasons why I think this capability would be useful. (And rereading Murtaza's email - I think this is what he

Re: Defining custom tags using hiccup ?

2013-04-25 Thread Dave Sann
see this commit for main changes to hiccup https://github.com/davesann/hiccup/commit/e8c06d884eb22a2cdd007f880a9dd5e1c13669a4 On Thursday, 25 April 2013 18:55:52 UTC+10, Dave Sann wrote: > > I replied to this a long time ago and in the original case - I did not see > huge val

Re: Defining custom tags using hiccup ?

2013-04-25 Thread Dave Sann
one other thought. It is possible just to manipulate the hiccup data as suggested by Walter above. This may be better because it is independent. But I wonder about performance costs of processing the structures twice (expand and then render) rather than once (render). Dave -- -- You receive

Re: Observing namespace changes

2013-04-30 Thread Dave Sann
Out of interest, did any library come out of this? On Thursday, 15 January 2009 06:46:52 UTC+11, Laurent PETIT wrote: > > OK thank you both Chris & Mike for your answer. > > What I've done for the moment is similar to what Mike did: at any > place where there is a chance for something to change

Bug in reader or repl? reading keyword :#abc

2013-05-01 Thread Dave Sann
I came across the following... ;; => ok; (let [v :abc] nil) ;; => ok; (let [v :abc] nil) ;; => ok; (let [v :#abc] nil) ;; => fail; (let [v :#abc] nil) $ lein repl nREPL server started on port 33719 REPL-y 0.1.10 Clojure 1.5.1 ... user=> ;; => ok; user=> (let [v :abc] nil)

Re: Bug in reader or repl? reading keyword :#abc

2013-05-01 Thread Dave Sann
symbol/keyword. > > http://clojure.org/reader > > Thanks, > Ambrose > > > On Wed, May 1, 2013 at 10:22 PM, Dave Sann > > wrote: > >> I came across the following... >> >> ;; => ok; >> (let [v :abc] nil) >> >> ;; => ok; &

Fwd: Bug in reader or repl? reading keyword :#abc

2013-05-01 Thread Dave Sann
-- Forwarded message -- From: Colin Jones Date: 2 May 2013 04:35 Subject: Re: Bug in reader or repl? reading keyword :#abc To: daves...@gmail.com On Wednesday, May 1, 2013 9:22:43 AM UTC-5, Dave Sann wrote: > > I came across the following... > > ;; => ok; >

Re: Bug in reader or repl? reading keyword :#abc

2013-05-01 Thread Dave Sann
> ... > user=> (let [v :#abc] > #_=> nil) > nil > user=> > > > > -- > '(Devin Walters) > > > On Wednesday, May 1, 2013 at 9:22 AM, Dave Sann wrote: > > > I came across the following... > > > > ;; => ok; > >

Re: Bug in reader or repl? reading keyword :#abc

2013-05-01 Thread Dave Sann
Comments from Colin Jones. This is a symptom of how REPLy handles "unexpected" nodes that sjacket provides (and sjacket saying that :#abc is not a keyword). REPLy started to use sjacket for parsing input forms in 0.1.0 (final; not the betas), to handle situations like reader literals and read-e

Re: ANN: kits 1.5.1 - some of Runa's core utilities

2013-05-09 Thread Dave Sann
A question for the community. There are several "projects" that provide a bunch of base level/common functions and extensions (similar to those here) beyond core Clojure. And I am sure that many people have their own collection of useful utilities like this. I know that I do. clojure/core.incu

Re: Utility libraries and dependency hygiene

2013-05-14 Thread Dave Sann
It may be pragmatic currently but *manually* copying code is a bad solution. Not depending on libraries is not a good solution either. The premise that there are only 3 levels of composition - clojure -> library -> application - I think is wrong, even if it works and is useful in some cases. D

who's not using leiningen?

2013-05-15 Thread Dave Sann
If you are not using Leiningen, what do you use? why do you prefer it? D -- -- 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

Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-08 Thread Dave Sann
I think that the use of :foreign-libs to include non closure js libs in cljs builds may be hazardous My reasoning as as follows: if you use :foreign-libs, you create a namespace for the library - and must require this namespace in order for it to be included in the build. But, if you plan to

Re: Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-08 Thread Dave Sann
Having read through some of the closure compiler code - I don't think that inserting the externs file into the build is possible - without changes to the compiler. I do think that support for wrapping foreign libs into a usable unit would be a good idea. D -- You received this message becaus

Ann [js-wrap "0.0.1"] wrap js libs for clojurescript

2012-02-09 Thread Dave Sann
Following on from my question this afternoon on foreign libs (https://groups.google.com/d/topic/clojure/kqtCC_stbEU/discussion) alpha Wraps a no gclosure compliant js file. Injects a script tag directly into your page whenever you require and use the wrapper lib No need to include js files in y

Re: Ann [js-wrap "0.0.1"] wrap js libs for clojurescript

2012-02-09 Thread Dave Sann
apologies the lib is called wrap-js [wrap-js "0.0.1"] -- 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

Re: Ann [js-wrap "0.0.1"] wrap js libs for clojurescript

2012-02-09 Thread Dave Sann
updated to 0.0.2 - supporting urls as well as local files. -- 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 firs

Re: Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-09 Thread Dave Sann
Maybe - but I don't think so. I tested with jquery this morning - to try and re-confirm - details appended at the end of this post I think that this falls into the: "If the library you want to use simply doesn't work with advanced compilation" at the bottom of the link you added My unders

Re: Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-09 Thread Dave Sann
yes exactly, but I would like to be able to package js libs as jars - not specify them directly to the build in the cljsc opts. I have done half of this, here: https://github.com/davesann/wrap-js see the following examples: https://github.com/davesann/cljs-bcrypt-wrapper https://github.com/dav

Re: Clojurescript options :foreign-libs (and an idea seeking opinions)

2012-02-09 Thread Dave Sann
created: http://dev.clojure.org/jira/browse/CLJS-147 with pointer to discussion here. -- 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 - plea

wrap-js : clojurescript - want some jquery plugins? managed? no problem.

2012-02-09 Thread Dave Sann
I have what I think is a really nice method for using jquery and other js libs and their dependencies sanely in clojurescript. (it will be even better if/when http://dev.clojure.org/jira/browse/CLJS-147 is resolved) by using wrap-js (https://github.com/davesann/wrap-js) you can have clojuresc

Re: wrap-js : clojurescript - want some jquery plugins? managed? no problem.

2012-02-09 Thread Dave Sann
one note that just came to mind. I can see a potential issue arising with the versions of wrapped js libs and compatibility - particularly for things like plugins. I haven't done this yet. But it I think that it may be important to be be explicit about the version of the js lib you are wrapping

Re: wrap-js : clojurescript - want some jquery plugins? managed? no problem.

2012-02-09 Thread Dave Sann
ok rules for wrapping. 1. include the version of the wrapped js lib in the name of the project/jar - so that users can choose which version they want. 2. use a generic namespace to inline the js lib - e.g jquery.inline - not jquery-1-7.inline (allows you to switch versions) 3. do not include an

Re: wrap-js : clojurescript - want some jquery plugins? managed? no problem.

2012-02-09 Thread Dave Sann
updated to follow my own rules and by way of example: * [cljs-query-1-7-1 "0.0.1"] for jquery version 1.7.1 * [cljs-jquery-sparkline-1-6 "0.0.1"] for sparkline version 1.6 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Clarification on ClojureScript libraries

2012-02-13 Thread Dave Sann
I can confirm that externs are found on the classpath (including jars) in the latest versions of clojurescript. I use this. -- 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

clojurescript: js* question

2012-02-14 Thread Dave Sann
I know it is not the done thing but I have a question regarding js* I have a complex fn defined in a javascript file. it is self contained and uses no globals. It is not currently worth my while to rewrite. I can use this by doing: (def my-fn (js* "...file contents with escaped chars...")) and

[Ann] [cljs-hash "0.0.1"] - hash functions for clojurescript

2012-02-14 Thread Dave Sann
currently md5, sha1, sha356 * clojars [cljs-hash "0.0.1"] * github https://github.com/davesann/cljs-hash Dave -- 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 memb

Re: [Ann] [cljs-hash "0.0.1"] - hash functions for clojurescript

2012-02-14 Thread Dave Sann
or there are some in goog.cryptwhich I didn't see when I did this...you won't find sha356 though - that's special :) -- 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 fro

  1   2   3   >