Re: [JOB] Software Engineer | Red Planet Labs | Fully distributed team

2020-02-21 Thread Don Waldhalm
Please expound "radically change the economics of software development." On Thursday, February 20, 2020 at 2:01:33 PM UTC-5, Nathan Marz wrote: > > We're a well-funded startup building a new kind of software development > tool that will radically change the economics of software development. > W

Component question/advice

2019-09-16 Thread Don Jackson
n the System dependency injection, but AFAICT they don't need to. The above seems like it would work fine, but also seems like it is not idiomatic Component. I would welcome any thoughts/advice as to how best to structure this with Component. Thanks Don -- You received this message becau

Assuming too much in docs

2014-11-12 Thread Don Wilde
Hi, Rich - Love what Clojure is up to, and was thrilled to see that the tar-ball was less than 5 MB in size... you rock. This is the essence of HLL development, and I say that from thirty years of non-HLL slogging! I have a lot of docs to go through to be productive, but I'd like to point out

Re: emacs - some output goes to stdout when using cider

2014-05-27 Thread Don Hill
Thanks for the explanation. I will also check out emacs-live On Mon, May 26, 2014 at 10:31 PM, Carlo Zancanaro wrote: > On Mon, May 26, 2014 at 08:32:45AM -0700, Don Hill wrote: > > I am in a project with a test.clj file and if I do a (println "Hi") C-x > C-e > > it

emacs - some output goes to stdout when using cider

2014-05-26 Thread Don Hill
I am making a switch to emacs and trying to get cider setup. I think for the most part everything is working correctly. I am in a project with a test.clj file and if I do a (println "Hi") C-x C-e it goes to repl as expected. If I do something like (+ 1 2 3) it seems to go to stdout below the s

Re: [ANN] Throttler: a library for rate limiting

2014-05-16 Thread Don Jackson
On May 16, 2014, at 11:11 PM, Bruno Vecchi wrote: > As per having a random frequency between an interval, could you clarify a > bit? Do you want the time between requests to be drawn randomly from some > distribution each time? If that's the case, the best way I can think of would > require a

Re: [ANN] Throttler: a library for rate limiting

2014-05-16 Thread Don Jackson
thinking that approach would work well with your throttle-fn Best regards, Don -- 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 - ple

Re: executing conditional if like iif from other languages

2014-05-09 Thread Don Hill
e for this maybe by parsing what's in each bucket by using :then/:else as delimiters. Don On Thursday, May 8, 2014 11:56:20 PM UTC-5, Atamert Ölçgen wrote: > > > > > On Fri, May 9, 2014 at 5:44 AM, Don Hill > > wrote: > >> I am trying to get a couple of edge

executing conditional if like iif from other languages

2014-05-08 Thread Don Hill
I am trying to get a couple of edge cases to past and since I am very new to clojure/lisp (2 days total) I thought I would ask. I am using defmacro like the following. I have 2 edge case which are failing. I would like to be able to process these cases where there are extra bits and as you pro

Re: Potential improvement to select-keys ?

2013-11-03 Thread Don Jackson
quot; Clearly dissoc makes the promise to return a map of the same type that select-keys doesn’t. A potential non-code change to select-keys might be to emphasize that the return map will be a hash-map, regardless of the kind/type of input map. Don > > > On Sat, Nov 2, 2013 at 8:49 A

Potential improvement to select-keys ?

2013-10-31 Thread Don Jackson
select-keys currently returns a regular hash-map, regardless of the kind of map provided as the input argument. Alternately, select-keys could call empty on it’s map argument to obtain the map it will return, thereby preserving the type of map provided. FYI, Mark Engelberg recently pushed a c

Re: Can a protocol method have the same name as a clojure.core function?

2013-02-07 Thread Don Jackson
gt; deftype that implements a *different* protocol with a function *also* > named "get". > > On Thu, Feb 7, 2013 at 9:24 PM, Don Jackson > wrote: >> >> I'd like to name a protocol method to be the same name as a clojure.core >> function, for example, g

Can a protocol method have the same name as a clojure.core function?

2013-02-07 Thread Don Jackson
I'd like to name a protocol method to be the same name as a clojure.core function, for example, get. Is this possible, and if so, how? user=> (ns ptest.protocol (:refer-clojure :exclude [get])) nil ptest.protocol=> (defprotocol TestProtocol (get [_ ke

Re: Why is there not much conversation on Spreadsheet like APIs in this group?

2013-02-03 Thread Don Jackson
lly updatable realization/implementation, somewhat similar to the way that Prismatic compiles their graphs into maps , lazy maps, or a map with each subcomputation spawned in parallel via futures. I'm definitely interested in talking/working with others with similar interests/re

(into [] (take n v)) vs (subvec v 0 n)

2013-01-31 Thread Don Jackson
[n vec] (into [] (take n vec))) Might be easier/faster. subvec returns a clojure.lang.APersistentVector$SubVector whereas (into [] (take …)) returns a vector. Any thoughts on which of the above is "better"? Thanks, Don -- -- You received this message b

Advice/recommendations for generating templated (non-Clojure) s-expressions?

2012-09-02 Thread Don Jackson
quote within a Clojure function, but again, syntax-quote is resolving/namespace-qualifying the symbols, and of course, a function's arguments are always evaluated on the way in, which leads to tedious and unpleasant quoting of SUO-KIF symbols. I'd welcome any thoughts/pointers about how

tools.logging question

2012-02-17 Thread Don Jackson
appen? Obviously/alternately I could wrap all my logging in (when (log-decision args) (log :level "message")) But right now I'd rather do all this with just the log call,and I'm hoping there is already a way to do what I ask above, or if not, willingness to add something

Re: No longer able to write a UUID to Postgres with ClojureQL

2011-12-06 Thread Don Jackson
On Dec 6, 2011, at 11:23 AM, Sean Corfield wrote: > On Tue, Dec 6, 2011 at 6:12 AM, Herwig Hochleitner > wrote: >> 2011/12/6 Sean Corfield : >>> So the question is probably: why is ClojureQL assuming all generated >>> keys are integers? >> It shouldn't, and doesn't now: >> https://github.com/Lau

No longer able to write a UUID to Postgres with ClojureQL

2011-12-05 Thread Don Jackson
[clojureql "1.1.0-SNAPSHOT"] ]) I woud definitely appreciate/welcome any suggestions about why this is happening, or how it might be fixed…. I've pushed this example test case/project up to GitHub in case anyone wants to poke around: dcj/postgres-uuid-test

Re: FYI: problem I had with namespace, defrecord, and import, or "Hyphen characters in namespaces considered harmful"

2011-12-04 Thread Don Jackson
ile….totally my fault, but further motivation that catches be very specific about what they are catching, and I'd like to understand how best to do that without defining custom classes. Best regards, Don -- You received this message because you are subscribed to the Google Groups &q

FYI: problem I had with namespace, defrecord, and import, or "Hyphen characters in namespaces considered harmful"

2011-12-02 Thread Don Jackson
their searches… Don -- 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

Re: New to Clojure

2011-06-09 Thread Don Jackson
how people solve these puzzles… :-( Don -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post

Re: Clojure ideas repository / todo list

2011-05-15 Thread Don Jackson
On May 14, 2011, at 2:17 PM, Islon Scherer wrote: > Is there anyplace people post ideas of libraries/frameworks/functions > that would be nice to be implemented in clojure? > Sometimes I want to help the community but I don't know what to do (an > idea), what's already done (yeah, I know one can

Re: Clojure ideas repository / todo list

2011-05-15 Thread Don Jackson
On May 15, 2011, at 1:34 AM, Thorsten Wilms wrote: > * Wrapper around git or darcs for using them as storage backends See: rnewman/clj-git - GitHub for a start on this. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: [ANN] emacs-nexus (Emacs client for Nexus Maven repository servers)

2011-02-15 Thread Don Jackson
On Feb 14, 2011, at 8:21 PM, Michael Ossareh wrote: > > Along with anything that is listed in :repositories in your project.clj ? +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 No

Re: Clojure 1.3: Integrating clj-stacktrace?

2010-08-25 Thread Don Jackson
On Aug 24, 2010, at 9:55 PM, Phil Hagelberg wrote: > > Thoughts? +1. The existing stack traces are pretty horrible. Phil's proposal, or something similar, would be a huge improvement. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

ANN: clj-facebook, a Clojure client library for Facebook apps

2010-03-19 Thread Don Jackson
I'd like to announce the initial release of clj-facebook, a Facebook client library in Clojure. The code can be found here: http://github.com/rnewman/clj-facebook We welcome comments and proposed code improvements. Don -- You received this message because you are subscribed to the G

ANN: clj-facebook, a Clojure client library for Facebook apps

2010-03-19 Thread Don Jackson
I'd like to announce the initial release of clj-facebook, a Facebook client library in Clojure. The code can be found here: http://github.com/rnewman/clj-facebook We welcome comments and proposed code improvements. Don -- You received this message because you are subscribed t

Re: Minimum value in a vector

2009-12-02 Thread Don
(do (if (= (get d1 i) (reduce min (map #(get % i) (list d1 d2 d3 d4 d5 (recur (inc i) (conj v 1)) (recur (inc i) (conj v 0 On Dec 2, 7:43 pm, Chouser wrote: > >> On Wed, Dec 2, 2009 at 6:22 PM, Don wrote: > >> > Thank you Stefan and Kevi

Re: Minimum value in a vector

2009-12-02 Thread Don
(map vector [0 1 0 0 0] [0 0 0 1 0] [0 0 0 0 1] [0 0 0 0 1]) > > and that will give you > > [0 0 0 0] [1 0 0 0] [0 0 0 0] [0 1 0 0] [0 0 1 1] > > > > > > On Wed, Dec 2, 2009 at 6:22 PM, Don wrote: > > Thank you Stefan and Kevin.  Awesome solutions that answer m

Re: Minimum value in a vector

2009-12-02 Thread Don
Forgot to mention that i'm still calculating the minimum distance between the vectors, but my output isn't actually the minimum value. The output is the minimum value in terms of the vectors, if that makes sense. On Dec 2, 3:22 pm, Don wrote: > Thank you Stefan and Kevin.  Awes

Re: Minimum value in a vector

2009-12-02 Thread Don
6 7] [1 3 9 2] [2 4 5 6] [6 1 3 8] [4 8 2 1])) > [1 1 2 1] > user=> > > On Wed, Dec 2, 2009 at 2:53 PM, Stefan Kamphausen > > > > > > wrote: > > Hi, > > > On Dec 2, 11:43 pm, Don wrote: > >> I am having difficulty approaching this probl

Minimum value in a vector

2009-12-02 Thread Don
I am having difficulty approaching this problem. I'm not sure if it can be done in one swoop, or requires a few steps. I have 5 vectors as such: a [2 4 6 7] b [1 3 9 2] c [2 4 5 6] d [6 1 3 8] e [4 8 2 1] And I want to take the minimum value at a given index between the vectors. Therefore, min

Re: Remove Value From Vector at Given Index

2009-12-01 Thread Don
Thank you Wilson. On Dec 1, 7:31 pm, Wilson MacGyver wrote: > you can do it using partition and flatten from clojure.contrib.seq-utils > > (use 'clojure.contrib.seq-utils) > (flatten (partition 2 3 [2 4 5 8 6 4])) > > this yields (2 4 8 6) > > > > > > On

Remove Value From Vector at Given Index

2009-12-01 Thread Don
I have a vector [2 4 5 8 6 4] And I want to remove a value based on index. Specifically, I want to remove every third item. So my new vector would be [2 4 8 6] Thank you. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send

Re: Updating Agent

2009-12-01 Thread Don
(comp second list) []) > (send a (constantly [])) > (send a empty) > ... > > > > > > On Tue, Dec 1, 2009 at 2:37 PM, Don wrote: > > I actually came up with this function that takes in an agent and > > proceeds to pop each item while agent still has items. >

Re: Updating Agent

2009-12-01 Thread Don
c pop) (await c) (recur (dec i))) On Dec 1, 2:27 pm, Don wrote: > I am having trouble resetting an agent. > > I created a vector agent as such: > > (def ce2 (agent [])) > > I add to this vector by: > > (send ce2 conj 2) > (await ce2) > &

Updating Agent

2009-12-01 Thread Don
I am having trouble resetting an agent. I created a vector agent as such: (def ce2 (agent [])) I add to this vector by: (send ce2 conj 2) (await ce2) But I am having trouble thinking of a way to reset this agent. I don't believe there is a reset function for agents. Thank You -- You receiv

Re: String to Decimal Conversion

2009-11-22 Thread Don
Awesome Kevin. That solution is sexy. I don't even need the java library anymore. On Nov 22, 5:02 pm, Kevin Downey wrote: > user=> (read-string "1.1") > 1.1 > user=> > > > > > > On Sun, Nov 22, 2009 at 4:48 PM, Don wrote: > > Thanks a b

Re: String to Decimal Conversion

2009-11-22 Thread Don
Awesome Kevin. That solution is sexy. I don't even need the libraries anymore. On Nov 22, 5:02 pm, Kevin Downey wrote: > user=> (read-string "1.1") > 1.1 > user=> > > > > > > On Sun, Nov 22, 2009 at 4:48 PM, Don wrote: > > Thanks a b

Re: String to Decimal Conversion

2009-11-22 Thread Don
Thanks a bunch Richard. On Nov 22, 4:47 pm, Richard Newman wrote: > > I am having a problem converting a string to decimal.  I want to > > convert "1.0" to decimal 1.0. > > For a double (not decimal): > >         (Double/parseDouble "1.1") >         => >         1.1 > > for a decimal: > >        

Re: String to Decimal Conversion

2009-11-22 Thread Don
athematical sense) so expecting to be > representable as one, is kind of... odd. > > > > > > On Sun, Nov 22, 2009 at 4:14 PM, Don wrote: > > I am having a problem converting a string to decimal.  I want to > > convert "1.0" to decimal 1.0.  I have trie

String to Decimal Conversion

2009-11-22 Thread Don
I am having a problem converting a string to decimal. I want to convert "1.0" to decimal 1.0. I have tried the java.lang.Integer class use=> (Integer/parseInt "1.1") java.lang.NumberFormatException: For input string: "1.1" (NO_SOURCE_FILE:0) But it won't give. It does however work when I run i

Vector manipulation problem, possible function for a solution.

2009-11-09 Thread Don
I am having a problem with vectors. It seems there should be a function for this however I am not sure. I have a vector a [ [2 3] [4 5] [6 7] ] And I want to be able to get [2 3 4 5 6 7] Any suggestions greatly appreciated. Thank you. --~--~-~--~~~---~--~~ You

Recursion Problem?

2009-11-05 Thread Don
I'm having problems with a recursive call I make. The problem (as far as I gather) is that I have two recursive calls within a condition and I'm not sure if the second recursive call is being made. After both recursive calls have completed, I combine their results with 'rslt' to form a new vector