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: 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: 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: 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
> 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-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-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: [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: [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] 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] 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] 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] 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: 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: 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] 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] 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

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] 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? >>

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] 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] 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

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: 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: [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: [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

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: 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: >>

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

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: 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

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: [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: 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 >>

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: 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: 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: 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

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

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

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: 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: 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; > >

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
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; &

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: 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

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: 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
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: [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: 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: [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: 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: 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: 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-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-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: 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: 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

& 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: 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

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: 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: 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
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 >

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: 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

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 >

(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: 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 "

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
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

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: 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

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: :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: 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: 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 - 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: 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: 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: 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: Reader syntax for uri objects

2013-01-09 Thread Dave Sann
esults, and the client uses reader/read-string to get the > results. > > On Wednesday, January 9, 2013 7:35:31 PM UTC-6, Dave Sann wrote: >> >> why not just print/send your uris as strings? >> >> you only need a reader tag if you want to read/interpret it in a &g

Re: Delay with atom

2013-01-09 Thread Dave Sann
Create the atom in a let, in the function - so it's new and isolated better still - use an accumulator in the loop, not an atom. take, map an others are lazy. you may need to (doall ...) Dave On Thursday, 10 January 2013 08:22:57 UTC+11, Simone Mosciatti wrote: > > Hi everybody, > > I was impl

Re: Reader syntax for uri objects

2013-01-09 Thread Dave Sann
why not just print/send your uris as strings? you only need a reader tag if you want to read/interpret it in a particular way at read time in the client. do you want to do this? D On Thursday, 10 January 2013 12:20:53 UTC+11, Taylor Sando wrote: > > I am looking for a way to transfer URI objec

Re: Feature Expressions

2013-01-08 Thread Dave Sann
there have been a number of previous discussions FYI. This was one I could find: https://groups.google.com/d/topic/clojure/LQcBEph-3Bg/discussion On Tuesday, 8 January 2013 22:24:26 UTC+11, Irakli Gozalishvili wrote: > > Hi Folks, > > I wanted to comment on "Feature Expressions" feature page,

Re: [ANN] Dire, Erlang-style error handling

2012-12-28 Thread Dave Sann
I see joe's thesis is linked on your github page. is this thesis the paper you are referring to? Do you have a link to the video you refer to? thanks Dave On Saturday, 29 December 2012 06:14:34 UTC+11, Michael Drogalis wrote: > > Hey folks, > > After watching The Language of the System and bei

Re: leiningen and updating project versions

2012-12-10 Thread Dave Sann
ain project. > > Only after all works, you can remove the links and add the dependencies to > project.clj... And test again ;-) > > Enjoy, Frank. > > > On Dec 9, 2012, at 12:18 AM, Dave Sann > > wrote: > > Has anyone looked at how to manage snapshots and dependenc

leiningen and updating project versions

2012-12-09 Thread Dave Sann
Has anyone looked at how to manage snapshots and dependencies in projects with checkouts - where the checkouts (also snapshots) are being edited along with the main project? As I look at my layers of projects, they looks like a lot of rather tedious manual work for each project to: bump the pro

Re: a question for crate and hiccup

2012-11-27 Thread Dave Sann
DOM API, > which is often fine, but sometimes you'd want it to do this using raw > strings (when working with a large number of Elements), for performance > reason. This would help to solve such issues. > > Max > > > On Sunday, November 25, 2012 12:11:09 PM UTC+1, Dave

Re: clojurescript: ex-info and ex-data

2012-11-26 Thread Dave Sann
added http://dev.clojure.org/jira/browse/CLJS-429 for now On Monday, 26 November 2012 04:57:39 UTC+11, David Nolen wrote: > > Agreed. Patches welcome! > > On Saturday, November 24, 2012, Dave Sann wrote: > >> Is there a plan to add these? >> >> It seems like a st

a question for crate and hiccup

2012-11-25 Thread Dave Sann
I wonder if it would be worth making the effort to separate the hiccup rendering from the hiccup generation in these libraries. By hiccup generation, I mean constructing data of the form [:tag {:attr val} contents] ... By rendering, I mean in the case of hiccup - producing HTML strings in the

clojurescript: ex-info and ex-data

2012-11-24 Thread Dave Sann
Is there a plan to add these? It seems like a step towards more generic exception handling between clj and cljs code. 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

Re: what is the simplest user auth system possible?

2012-10-26 Thread Dave Sann
Sorry, I meant to say authentication. On Friday, 26 October 2012 22:06:48 UTC+11, Dave Sann wrote: > > For authorisation, I really like mozilla persona (previously browserid) > which I discovered from refheap. javascript lib plus an http request from > the server to validate. r

Re: what is the simplest user auth system possible?

2012-10-26 Thread Dave Sann
For authorisation, I really like mozilla persona (previously browserid) which I discovered from refheap. javascript lib plus an http request from the server to validate. really simple. https://login.persona.org/ Dave On Friday, 26 October 2012 01:35:53 UTC+11, Stephen Compall wrote: > > On O

Re: UTF-8 behavior ClojureScript (vs. Clojure)

2012-10-23 Thread Dave Sann
a/browse/CLJS-400 > > Thanks for keeping on this, Dave. :-) > > - Chas > > On Oct 19, 6:18 pm, Dave Sann wrote: > > Chas, If your patch works without issue - this is probably better > because > > it will then work with existing versions of Clojure - clojurescript is &

Re: Parsing Log Files with Interspersed Multi-line Log Statements

2012-10-21 Thread Dave Sann
btw, start simple and just see if you can scan the lines without doing anything in particular. Then take some sub sequence: (take 100 my-line-seq) Play in the repl to start building up the data you want. See what you get and work from there. D On Sunday, 21 October 2012 19:05:42 UTC+11, Dave

Re: Parsing Log Files with Interspersed Multi-line Log Statements

2012-10-21 Thread Dave Sann
Look at: http://clojuredocs.org/clojure_core/clojure.core/line-seq to get a lazy sequence of lines of the file. I don't think that there is any need to sort here. (I think sorting wont help anyway because some lines are seem to be only identifiable based on the thread id in the current sequenc

  1   2   3   >