Re: Online Clojure COVID-19 Hackathon

2020-03-17 Thread Dave Liepmann
I'm glad to see people coming together to look at coronavirus data. As a non-epidemiologist who is also exploring covid19 data I found this article [1] a timely reminder that our re

Compojure-api, spec-tools, swagger,

2018-05-14 Thread Dave Tenny
I'm using compojure-api 2.0.0-alpha19, spec-tools 0.6.1, and trying to generate swagger pages with :spec coercion in compojure-api. I know this is a work in progress but I'm not an expert in any of these tools and thought I'd ask here before I write pesky and likely incorrect issues in the Meto

Re: s/valid? does not tell me if the data is valid as supplied

2018-02-26 Thread Dave Dixon
I've been using the macro below to make "types" in the context of clara-rules, where "type" has a specific semantic. If you're going to do something like this, you definitely should have a very well-defined notion of what "type" means. (defmacro def-derive "Macros to wrap useful pattern o

[ANN] Uruk 0.3.10

2018-01-20 Thread Dave Liepmann
ruk Cheers! Dave Liepmann -- 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

Re: Clojure.spec: need function equivalents of library macros?

2017-05-09 Thread Dave Tenny
ombinations. > > > On Monday, May 8, 2017 at 10:38:34 AM UTC-5, Dave Tenny wrote: >> >> Let's say I have a namespace that provides access to the database, >> say our table has these fields (as clojure specs) >> >> (s/def ::job-id nat-int?) ; 1 2 3

Re: Clojure.spec: need function equivalents of library macros?

2017-05-08 Thread Dave Tenny
Oops, some corrections to my original post. On Monday, May 8, 2017 at 11:38:34 AM UTC-4, Dave Tenny wrote: > > Let's say I have a namespace that provides access to the database, > say our table has these fields (as clojure specs) > > (s/def ::job-id nat-int?) ; 1 2 3 ...

Clojure.spec: need function equivalents of library macros?

2017-05-08 Thread Dave Tenny
Let's say I have a namespace that provides access to the database, say our table has these fields (as clojure specs) (s/def ::job-id nat-int?) ; 1 2 3 ... (s/def ::job-name string?) ; frobozz-executor (s/def ::job-status keyword?) ; :queued, :in-progress, :completed And that I have the logic

Re: [ANN and RFC] Bifurcan: impure functional data strucures

2017-04-24 Thread Dave Dixon
gt; > Are you relying on the immutability of these structures, or are they > effectively always transient? > On Sun, Apr 23, 2017 at 11:02 AM Dave Dixon > wrote: > >> FWIW, the use-case I have essentially involves Monte Carlo simulations. >> So we start with a state (non-

Re: [ANN and RFC] Bifurcan: impure functional data strucures

2017-04-23 Thread Dave Dixon
alternatives using > something like Sleight [2]. > > Anyway, that's what I've been mulling over. If anyone has opinions, I'm > happy to hear them. > > Zach > > [1] > https://github.com/lacuna/bifurcan/blob/master/src/io/lacuna/bifurcan/Maps.java#L103 > [

Re: [ANN and RFC] Bifurcan: impure functional data strucures

2017-04-20 Thread Dave Dixon
stions a bit before going further. I'm happy to discuss > them here in more depth if you have any questions or opinions. > > Zach > > On Tue, Apr 18, 2017 at 6:53 AM Dave Dixon > wrote: > >> Stared at this a bit yesterday. Seems like if you want to leverage spec >&

Re: [ANN and RFC] Bifurcan: impure functional data strucures

2017-04-18 Thread Dave Dixon
UTC-7, Dave Dixon wrote: > > What is the issue with wrapping in Clojure interfaces? Added overhead of > function calls? > > I'm finding myself in the process of doing some of this, at least for > constructors. Also thinking of generating predicates/generators for use >

Re: [ANN and RFC] Bifurcan: impure functional data strucures

2017-04-17 Thread Dave Dixon
What is the issue with wrapping in Clojure interfaces? Added overhead of function calls? I'm finding myself in the process of doing some of this, at least for constructors. Also thinking of generating predicates/generators for use with spec. On Monday, March 27, 2017 at 9:51:46 AM UTC-7, Zach

Re: [ANN and RFC] Bifurcan: impure functional data strucures

2017-03-27 Thread Dave Dixon
I think this would solve an issue I'm facing. I'm working on implementing variations of Monte Carlo tree search for very large trees, with states and actions represented by maps. There are several lookup tables indexed by either state or state-action pairs. I haven't done any detailed benchmark

Re: clojure.spec s/keys map key with alternative definitions in same namespace

2017-02-07 Thread Dave Tenny
#(-> % ::job-type string?))) > > You're on the brink of suggesting subtypes and covariant / contravariants, > etc and that's a path spec is not going down. > > > On Tuesday, February 7, 2017 at 9:40:24 AM UTC-6, Dave Tenny wrote: >> >> Let's say

clojure.spec s/keys map key with alternative definitions in same namespace

2017-02-07 Thread Dave Tenny
Let's say I have these definitions for a "job" record I'm managing, perhaps in a database. (s/def ::job-status #{:in-progress :completed}) (s/def ::user-id (s/and integer? #(>= % 0))) (s/def ::job-id integer?) (s/def ::coercible-job-type (s/and named? #(not (empty? (name %) (s/def ::job-type

named? predicate?

2017-02-07 Thread Dave Tenny
I've occasionally wanted this and haven't found it. (defn named? "True if object is compatible with the 'name' function. There must be a clojure built-in to do this but I haven't figured it out yet." [x] (or (string? x) (keyword? x) (symbol? x))) Note that simply doing (inst

Re: Clojure.spec, maps, restrict valid keywords, easier way?

2017-02-04 Thread Dave Tenny
I have found eastwood to be useful for a number of things, however on keyword checking it failed terribly on our code base, though perhaps there have been updates since I last tried it. Thanks for the suggestion though. On Friday, February 3, 2017 at 7:26:01 PM UTC-5, Ben Brinckerhoff wrote: >

Re: Clojure.spec, maps, restrict valid keywords, easier way?

2017-02-02 Thread Dave Tenny
On Thursday, February 2, 2017 at 10:07:31 AM UTC-5, Alex Miller wrote: > > We don't encourage you to do this, but I don't have an easier solution > than this. > Yes, and from the general standpoint of map handling I understand that. >From the standpoint of functions that take options and don't p

Clojure.spec, maps, restrict valid keywords, easier way?

2017-02-02 Thread Dave Tenny
I want to specify in clojure spec that only declared keywords are permitted in function calls. This is to catch what are usually mis-spelled or mis-cased keywors passed via option maps in function calls. In the fdefs below, the second fdef will catch an invalid call, e.g. (f 1 {:a 2 :B 3}) but

Re: Documentation for namespace aliased keywords (particularly relevant for clojure.spec use)

2017-02-02 Thread Dave Tenny
I also have to wonder why keyword namespaces aren't processed like other symbol namespaces, that is, to interpret the namespace portion before a '/' with alias consideration. No doubt there's a good answer, but it seems anachronistic that keywords need special syntax contortions to recognize nam

Documentation for namespace aliased keywords (particularly relevant for clojure.spec use)

2017-02-01 Thread Dave Tenny
Looking at the documentation for keywords under https://clojure.org/reference/reader#_literals there is no mention for the syntax for namespace aliased keywords, and this is very important it you want to manage your keywords for clojure.spec. I only know about it because google turned up some cl

Re: Custom generators for custom predicate functions

2016-12-08 Thread Dave Dixon
Stu didn't want to open at this time. Nothing precludes this from being > expanded later if deemed useful. > > On Thursday, December 8, 2016 at 10:56:29 AM UTC-6, Dave Dixon wrote: >> >> Though one can obviously attach a custom generator to a keyword-named >> spec, it

Custom generators for custom predicate functions

2016-12-08 Thread Dave Dixon
. Curious why this isn't extensible, since it naively seems similar to the keyword case, but with the custom generator keyed by a symbol rather than a map. Dave -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: [ANN] Nightcode 2: Total Rewrite

2016-07-15 Thread Dave Yarwood
Nightcode 2 is already looking great! I'm looking forward to seeing how it develops. I'm also tickled that there is an Audio App template using Alda! Let me know if there's anything Alda-related I can help with :) On Wednesday, July 13, 2016 at 1:58:05 PM UTC-4, Zach Oakes wrote: > > TL;DR: Nig

[ANN] Uruk: Clojure lib for MarkLogic NoSQL databases

2016-07-15 Thread Dave Liepmann
.com/home> for sponsoring the project. The project is named after the ancient Mesopotamian city-state in which have been found some of the oldest documents known to humanity. Cheers, Dave Liepmann -- You received this message because you are subscribed to the Google Groups "Clojure&q

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
f stuff > > ... and yes, I too feel a bit of despair that my suggestions is 'try > this other tool, if that doesn't work, try this entire editor, if that > doesn't work then' :-) > > On 19 April 2016 at 19:45, Dave Tenny wrote: > > Still looking f

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
Still looking for basic slime-like who-calls in cider. Is it there and I'm just missing it? On Tue, Apr 19, 2016 at 9:57 AM, Dave Tenny wrote: > Tags aside, a transtive closure who-calls report for a definition would > still be appreciated. > > On Tue, Apr 19, 2016 at 9:

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
Tags aside, a transtive closure who-calls report for a definition would still be appreciated. On Tue, Apr 19, 2016 at 9:53 AM, Dave Tenny wrote: > Hmm, okay, trying etags, certainly plenty of google hits there as opposed > to googling "cross reference". FYI, in terms of emacs

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
n Tue, Apr 19, 2016 at 9:33 AM, Dave Tenny wrote: > Oh, if crossclj DOES do what I'm asking, please let me know, I found the > pages I visited a bit confusing as to how I might analyze my (private) > projects. > > On Tue, Apr 19, 2016 at 9:30 AM, Dave Tenny wrote: > >&

Re: lein project cross-reference tools

2016-04-19 Thread Dave Tenny
Oh, if crossclj DOES do what I'm asking, please let me know, I found the pages I visited a bit confusing as to how I might analyze my (private) projects. On Tue, Apr 19, 2016 at 9:30 AM, Dave Tenny wrote: > I'm tired of doing 'find-grep' type operations (including

lein project cross-reference tools

2016-04-19 Thread Dave Tenny
I'm tired of doing 'find-grep' type operations (including that command in emacs). Are there any decent tools for producing cross reference reports and emacs who-calls data in some useful form? A search on the topic mostly points to 'crossclj', which doesn't seem to be what I want (I don't ne

Re: Which GUI toolkit would you like to see wrapped in an idiomatic Clojure library?

2016-03-19 Thread Dave Ray
Inline below.. Dave On Thu, Mar 17, 2016 at 9:37 AM, Jason Zwolak wrote: > Paul, yeap, Seesaw is definitely something worth considering. Dave Ray > hasn't abandoned the project, but I sent a personal email to him asking > about the state of the project and it does seem the Seesaw

Re: Duplicate key exception reading map that was written to a file

2015-11-25 Thread Dave Kincaid
I'm using the excellent abracad library :refer'd as avro. On Wednesday, November 25, 2015 at 10:40:53 PM UTC-6, Dave Kincaid wrote: > > The question marks are actual question marks. I'm not sure how to find the > "duplicate" keys in the map in memory. As far as

Re: Duplicate key exception reading map that was written to a file

2015-11-25 Thread Dave Kincaid
question > marks a particular character? > > If you can find the similar strings in memory, before they are written, > call: > (map int the-string) > To see the actual unicode characters for the question marks. > > On Wednesday, November 25, 2015 at 11:07:34 PM UTC-5, Dave Kin

Re: Duplicate key exception reading map that was written to a file

2015-11-25 Thread Dave Kincaid
The number of keys in the map is 8,054,160. On Wednesday, November 25, 2015 at 10:04:11 PM UTC-6, Dave Kincaid wrote: > > I have something very strange going on when I try to write a map out to a > file and read it back in. It's a perfectly fine hash-map with ? > key/value

Duplicate key exception reading map that was written to a file

2015-11-25 Thread Dave Kincaid
I have something very strange going on when I try to write a map out to a file and read it back in. It's a perfectly fine hash-map with ? key/values (so it's pretty big). When I write the map out to a file using (spit "/tmp/mednotes6153968756847768349/repl-write.edn" (pr-str phrases)) and t

Re: [ANN] Pipes 0.1.1 - chain processes, shell commands and threads via pipes

2015-11-13 Thread Dave Tenny
Just a bit of history from which you might derive some inspiration for your pipe metaphors in Clojure, the scheme shell. Main site: http://scsh.net/ Docs on various constructs, including process I/O operators: http://scsh.net/docu/html/man-Z-H-1.html#node_toc_start On Friday, November 13, 20

Re: Style, Efficiency, and updating nested structure

2015-11-12 Thread Dave Tenny
te-fn x v) > (step nil xs)) > :default (consx > (step v xs)] > (step v coll > > (defn merge-roles [p1 {:keys [project_roles] :as p2}] > (update-in p1 [:project_roles] #(vec (clojure.set/union (set %) (set > project_roles)

Style, Efficiency, and updating nested structure

2015-11-11 Thread Dave Tenny
A colleague and I are debating various things clojure as we were exploring alternative ways to solve a problem. Here's the description of the problem that a particular function is trying to solve, and the first implementation of it. (defn update-roles "Given a vector of maps of the form {:pr

Re: is there a community "best practice" for including your co-workers libraries?

2015-11-02 Thread Dave Tenny
ok, that must be the part I missed. On Mon, Nov 2, 2015 at 7:01 PM, Sean Corfield wrote: > Dave Tenny wrote on Monday, November 2, 2015 at 3:59 PM: > > I'm slightly confused, is there some reason Clojars <http://clojars.org/> > doesn't > work for sh

Re: is there a community "best practice" for including your co-workers libraries?

2015-11-02 Thread Dave Tenny
I'm slightly confused, is there some reason Clojars doesn't work for sharing libraries in this context? -- 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 po

Re: 'seq' performance for 'empty?' compared to 'count'. And where's !=?

2015-10-02 Thread Dave Tenny
at 'empty?' just calls 'seq'. On Thu, Oct 1, 2015 at 6:40 PM, Nathan Davis < nda...@positronic-solutions.com> wrote: > On Thursday, October 1, 2015 at 2:31:46 PM UTC-5, Dave Tenny wrote: >> >> So I understand that 'seq' is the idiomatic way to

'seq' performance for 'empty?' compared to 'count'. And where's !=?

2015-10-01 Thread Dave Tenny
So I understand that 'seq' is the idiomatic way to see if a collection/sequence is empty. Logically I'm looking for an O(1) predicate with which I can determine if a seq/collection is empty, and a well behaved one that is idempotent and side effect free (for general performance reasons). 'seq'

Re: Stuart Sierra's Component: retries & restarts in production

2015-09-04 Thread Dave Tenny
Caveat: my approach may have been all wrong. It's the first time I tried stuartsierra components. Frankly I'd have been happier with some CLOS objects and before and after methods, I'm still getting the hang of this clojure stuff. On Fri, Sep 4, 2015 at 7:57 AM, Dave Tenny wrot

Re: Stuart Sierra's Component: retries & restarts in production

2015-09-04 Thread Dave Tenny
I'm using components to encapsulate Langohr/RabbitMQ interactions in cases where Langohr auto-recovery wasn't happy with what was going on. I make sure the Lifecycle methods are idempotent, built the component stack in the correct order. To make sure that I can deal with the exceptions that r

Re: How can find something inside heavily nested data structure ?

2015-08-24 Thread Dave Tenny
Specter looks nice. I didn't see any examples in the readme or tests for working with more deeply nested data structures such as those discussed in this thread, any pointers? On Sunday, August 23, 2015 at 10:22:25 PM UTC-4, Brian Marick wrote: > > > > Andy- wrote: > > I have yet to evaluate it

Java constructor question

2015-08-23 Thread Dave Tenny
Is there a way to parameterize a bit of code that invokes a constructor without calling the java.lang.reflect.Constructor class? e.g. (defn make-it [class] (new class "abc")) ; won't work (make-it IllegalArgumentException) I was trying to parameterize the class of exception thrown in a bit

:arglists metadata on defmulti/defmethod forms

2015-08-23 Thread Dave Tenny
defmulti+detmethod doesn't seem to maintain any :arglists metadata with the Var filled by defmulti. How can I look up arglist information for multimethods like I can for regular function vars? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p

Re: decoding clojure generated class names

2015-08-23 Thread Dave Tenny
Thanks Alex, clojure.lang.Compiler/demunge is just what I wanted. On Sat, Aug 22, 2015 at 7:28 PM, Alex Miller wrote: > There is a demunge function in clojure.lang.Compiler. It's not foolproof > as the munging is not unambiguously reversible. > > -- > You received this message because you are su

Re: Rabid wild animals in my clojure argument lists, code gets infected.

2015-08-23 Thread Dave Tenny
On Sat, Aug 22, 2015 at 7:21 PM, James Reeves > wrote: > >> https://github.com/roomkey/annotate is another possibility >> >> - James >> >> On 23 August 2015 at 02:06, Colin Yates wrote: >> >>> Hi Dave, it _isn't_ an Illegal argument though

Re: Rabid wild animals in my clojure argument lists, code gets infected.

2015-08-23 Thread Dave Tenny
are necessarily intended to be bound to maps in this case, and I'm looking for a very fixed set of keywords in the function call. On Sun, Aug 23, 2015 at 10:17 AM, Dave Tenny wrote: > The point of my colorful title and judgmental post is that in the example, > passing :e f

Re: Rabid wild animals in my clojure argument lists, code gets infected.

2015-08-23 Thread Dave Tenny
wrote: > Hi Dave, it _isn't_ an Illegal argument though :-), your destructuring > is simply ignoring that parameter. > > However, I get the pain and solutions might be (in order of 'heavyness'): > - http://blog.fogus.me/2009/12/21/clojures-pre-and-post/ > - https:/

Rabid wild animals in my clojure argument lists, code gets infected.

2015-08-22 Thread Dave Tenny
that it didn't generate DEFN expressions at all but was implemented at DEFN's level as a seperately named form. Tips welcome. Just thinking aloud. - Dave -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, se

decoding clojure generated class names

2015-08-22 Thread Dave Tenny
I wanted to write a function like this: (defn fn-name-info "Given a function, try to deduce the function name and clojure namespace by looking at the function's java class name and decoding stuff. Return a vector of name, namespace strings, or nil if we can't find anything. For exa

Re: How can find something inside heavily nested data structure ?

2015-08-20 Thread Dave Tenny
I have found the core 'get-in' function to be useful for extracting data from big trees of clojure data structures, perhaps that will help. I'm still in search of tools that let me get a good sense of *what* to navigate when looking at such trees of data structures from API's and/or data source

apply, mapply, recur, looking for insights

2015-08-13 Thread Dave Tenny
These inconsistencies are bugging me, I just wondered if I was missing some standard language thing about argument passing or destructuring, so I'm looking for comments. At issue (for me), keyword arguments and maps that bundle them. user> (defn foo [a b & {:keys [c d]}] [a b c d]) #'us

Re: com.stuartsierra.component dynamic component addition/removal question

2015-08-11 Thread Dave Tenny
, 2015 at 11:49:10 AM UTC-4, Dave Tenny wrote: > > I want to add components to a started system, but I'm unsure of a > component-idiomatic way to do that. > > I don't want to restart the whole component stack. I'm guessing assoc'ing > a new component to the syste

com.stuartsierra.component dynamic component addition/removal question

2015-08-11 Thread Dave Tenny
I want to add components to a started system, but I'm unsure of a component-idiomatic way to do that. I don't want to restart the whole component stack. I'm guessing assoc'ing a new component to the system-map result isn't a good idea (though I've read words that sounded like it was a fine thi

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

Re: Clojars Private/Commercial Repos

2015-06-30 Thread Dave Dixon
+1. Neither S3 or Archiva have worked out well for us long term. On Monday, June 29, 2015 at 6:50:44 PM UTC-7, Daniel Compton wrote: > > Hi folks > > I wondered if one possible solution for ensuring Clojars long-term > viability and maintenance would be to use it to host private repositories > f

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 Cloju

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

2015-04-22 Thread Dave Sann
actually guarantee a specific ordering. > > On Wednesday, April 22, 2015 at 9:53:47 AM UTC-4, Andy Fingerhut wrote: >> >> Dave, you say "seq on a set cannot be pure unless you were to provide an >> argument to explicitly specify which order the items should be in"

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
eq set) does - then they cannot be. Dave On Wednesday, 22 April 2015 15:28:30 UTC+10, Andy Fingerhut wrote: > > One thing I was surprised by in my investigation was the lengths that some > people are willing to go to in order to avoid such things. > > Some people seem to *really

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
fact that the implementations sometimes maintain an order should not be used or relied upon at all. a seq of a set is not itself a set and therefore is not subject to the same referential transparency rules as a set. Dave On Wednesday, 22 April 2015 12:39:42 UTC+10, Mike Rodriguez wrote: > >

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
issue with someone or their decision, maybe it is better to take it up with them. That way you might get an outcome. If you don't think you get that then maybe it is better just to move on and forget about it (they probably have). You don't have to agree but it is better to be constructive

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: Om design query

2015-03-05 Thread Dave Della Costa
(cc'ing clojurescr...@googlegroups.com) Hi James, Let me make sure I understand what you're asking: you have a parent enclosing component that has to do calculations to position a set of child component element, but you can only properly calculate positioning for those child elements (in the pare

Re: [ANN] Understanding the Persistent Vector

2015-03-02 Thread Dave Della Costa
This is wonderful, I can't wait to dig in! On 2015/03/01 1:14, Jean Niklas L'orange wrote: > Hello fellow Clojurians, > > I am happy to announce that I have finished my blogpost series on the > persistent > vector. It consists of five parts: > > 1. The basic algorithms >

Re: Reflection warning on setCaretPosition

2015-02-27 Thread Dave Ray
(let [^JEditorPane html-table (editor-pane ...)] ...) should fix it. Or just set the caret position in the create function: (editor-pane :caret-position 0) or use config: (config! editor-pane :caret-position 0) Dave On Fri, Feb 27, 2015 at 4:07 AM, Cecil Westerhof wrote: > 2015-02-27

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: datomic <-> datascript transfers

2015-02-19 Thread Dave Dixon
We're having success with the Datomic <-> Datascript scenario by treating the Datascript DB as an immutable value, rather than a ref + transactor, at least in the case for user's interactively changing data. When the user loads the data required for a scenario (e.g. editing an entity), we hold

Re: TDD and lein

2015-01-08 Thread Dave Della Costa
One more suggestion as you mentioned wanting to see more output, although this may be different from what you were asking--but still worth knowing about: https://github.com/pjstadig/humane-test-output Cheers, DD On 2015/01/08 20:30, andrea crotti wrote: > Hi guys, > > I'm starting to use Cloju

Re: Implementing a Oauth2 provider with clauth and friend

2014-12-15 Thread Dave Della Costa
17:40), Sebastian Bensusan wrote: > Hi Dave, > > I am planning to use friend-oauth2 to handle "third party workflows". It > is exactly what I need to consume third party oauth services, but from > what I understood from the source code, it doesn't help me offer my own &

Re: Implementing a Oauth2 provider with clauth and friend

2014-12-14 Thread Dave Della Costa
You could also take a look at friend-oauth2 if you are using it in the context of Friend--if it doesn't work for you for some reason I'd like to know why, as I'd like it to be able to handle this use-case. https://github.com/ddellacosta/friend-oauth2 Thanks! DD (2014/12/15 3:08), Sebastian Bens

Re: what do you think about this code?

2014-12-09 Thread Dave Della Costa
s ago, and it's really valuable to think hard on it! Making high quality, maintainable software is challenging and deserves careful thought. Best, Dave (2014/12/09 9:24), Philip Schwarz wrote: > Hello David, > > I had set myself the constraint that I wanted the solution to explo

Re: Open html file in Clojure

2014-12-08 Thread Dave Ray
Nope. It barely renders HTML3. JavaFX, I think, has a real embedded browser component. And, of course, it's always easy to just launch a browser: http://docs.oracle.com/javase/6/docs/api/java/awt/Desktop.html#browse%28java.net.URI%29 Dave On Mon, Dec 8, 2014 at 4:23 AM, Gary Verhaegen

Re: snubbed on clojurescript one

2014-11-17 Thread Dave Della Costa
Hi Kevin, my understanding is that ClojureScript One is not actively maintained and pretty out of date at this point. You're probably better suited to starting from a different place in the eco-system. What are your goals in using ClojureScript? If you want to describe a bit what you're after (i

Re: a nicer way to write 1 - 2 + 3 - 4 ... +/- n

2014-11-13 Thread Dave Ray
How about: (->> (map * (cycle [1 -1]) (range 1 n)) (reduce +)) ? Dave On Thu, Nov 13, 2014 at 5:31 PM, Andy L wrote: > Hi, > > All I was able to come up with was this > > (defn altsum[n] (reduce + (map * (range 1 (inc n)) (interpose -1 (repeat > 1)

Re: [JOB] Clojure DevOps Engineer

2014-10-30 Thread Dave Della Costa
FYI folks, Alex (akhudek) and I (ddellacosta) hang out on IRC often so feel free to ping us w/questions there. Thanks! DD (2014/10/31 12:28), Alexander Hudek wrote: > Note that this position is 50% Clojure development and 50% DevOps/Sysadmin. > > > Best, > > Alex > > > -- > > > CLOJURE DE

Re: CCW bug [SEVERE]

2014-10-28 Thread Dave Ray
Do the names Ken Wesson or Cedric Greevey mean anything to you? Just checking. On Tue, Oct 28, 2014 at 1:28 PM, Fluid Dynamics wrote: > On Tuesday, October 28, 2014 12:19:29 PM UTC-4, Marcus Blankenship wrote: >> >> Agreed. I've been amazed at how kind this group has been, despite your >> attit

Re: CCW bug [SEVERE]

2014-10-25 Thread Dave Della Costa
Here's the counterclockwise project home page, as far as I can tell: https://code.google.com/p/counterclockwise/ Issue tracker: https://code.google.com/p/counterclockwise/issues/list Users google group: https://groups.google.com/forum/#!forum/clojuredev-users I think you'd get a lot more mile

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

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
). Dave On Thursday, 20 June 2013 13:38:32 UTC+10, Jason Wolfe wrote: > > We're starting to use potemkin at Prismatic, and the part we've found most > useful which Zach didn't mention in his post are the smart types. > Especially definterface+, which is like a lo

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

Re: leiningen resources folder

2014-09-11 Thread Dave Ray
clojure.java.io/resource isn't specific to the resources folder. It just scans the classpath. Your classpath probably looks like "test:src:resources" or something so "test" wins. If there was a test/readme.txt file you'd also get that rather than resources/readme.txt.

Re: Clojure & Vim & Ctags (oh my!)

2014-09-05 Thread Dave Ray
ctrl-o will take you back to your previous position after gf. At least it does for me. Dave On Fri, Sep 5, 2014 at 11:47 AM, Alan Thompson wrote: > Thanks for the 'gf' reference. I can't seem to find a way to go back, > though (like popping the tag stack with crtl-T)

how do you name your protocols?

2014-09-05 Thread Dave Sann
convention? IBlah PBlah BlahP Blah ...other ...doesn't matter 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 members are moderated - please be pa

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
;0.4.0" :exclusions [org.clojure/clojure]].) ([com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket "0.1.0.6"] -> [net.cgrand/parsley "0.9.1"] -> [net.cgrand/regex "1.1.0"] -> [org.clojure/clojure "[1.2.0,)"] Consider

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: Supplied-p parameter in clojure similar to lisp lambda lists

2014-08-18 Thread Dave Tenny
ug 17, 2014 at 11:02 PM, dennis zhuang wrote: > I think that adding a :p option to destructuring would be great: > > (let [ {:keys [a b c] :p {a a-p}} params] > (if a-p > (println a) > (println "a is not exists."))) > > > > > > >

Re: Supplied-p parameter in clojure similar to lisp lambda lists

2014-08-17 Thread Dave Tenny
}] ...) > > You can use map primitives on a-map. But you can also supply defaults > here. > On Jun 20, 2014 2:14 PM, "Dave Tenny" > > wrote: > >> What is the commonly accepted technique for declaring/using 'supplied-p' >> type lambda list f

Compilation failure to reject arguments matching formal parameters

2014-08-15 Thread Dave Tenny
This is getting old. Any suggestions or plans to fix it? Do I need to use some other common declaration style for functions? ; CIDER 0.5.0 (Clojure 1.6.0, nREPL 0.2.3) user> (defn foo [& {:keys [bar]}] bar) #'user/foo user> (foo :baz 1) nil In my opinion the compilation of the call to foo sho

Re: Stumped: unable to resolve symbol in macro expansion

2014-07-22 Thread Dave Tenny
t; > I guess the fact that (foo x) recycled the name of the parameter used in > the function definition is what made the error message confusing? > > > On Monday, July 21, 2014 9:49:10 AM UTC-7, Dave Tenny wrote: > >> In my case, I'm trying to use a the expression '[x

  1   2   3   4   5   6   7   8   >