Question on developing flexible libraries and best practices.

2014-12-18 Thread Tim
g. Now that I think further, it feels more like a spec than a library, only I'm trying to provide a single entry point with some very minimal loosely defined dispatches acting as constraints. Thanks for any helpful ideas/pointers. Tim Sent from my iPad -- You received this message bec

Re: How can I remove the nils in the result?

2014-12-22 Thread Tim
Another option (though Bens does look nicer!) (loop [xs (->> "00101110101110" (map vector (iterate inc 1)) (filter #(= (last %) \1)) (map first)) it nil] (let [steps (partition 2 1 xs) [i o] (split-with in-step steps)] (cond (every? empty? s

Re: How can I remove the nils in the result?

2014-12-22 Thread Tim
whoops... (defn in-step [xs] (let [[x1 x2] xs] (= (- x2 x1) 1))) On Monday, December 22, 2014 11:38:49 PM UTC-8, Tim wrote: > > Another option (though Bens does look nicer!) > > (loop [xs (->> "00101110101110" >

Doc strings for complex cases?

2017-11-05 Thread Tim
I'm seeing a need to assign a doc string per arity case for defn and also for each defmethod as opposed to storing it all in defmulti. Any solutions or plans for this? Tim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: Doc strings for complex cases?

2017-11-05 Thread Tim
in a doc-string" the-name multi-fn Or (defn "doc-string" ([x]...) "doc-string" ([x y] ...)) Or is there a reason not to consider adding this? Cheers, Tim -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: Doc strings for complex cases?

2017-11-09 Thread Tim
gether and have them linked to and stored elsewhere... Maybe just store a db id in the doc string and go from there. I'll need to mull it over ;) Thanks, tim -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: Doc strings for complex cases?

2017-11-09 Thread Tim
ting some older code trying figure out what was going on, but alas I had only put a high level description in for the defmulti. Anyways, it's all good. I've been revisiting editors and tooling and I just think that's the best use of my time. Cheers, Tim -- You received this me

Re: generators...?

2014-03-27 Thread Tim
I'm fairly new to Clojure and this was a fun little exercise to try. (def color-map (reduce #(assoc % (count %) %2) {} [:red :yellow :blue :green :purple])) color-map => {4 :purple, 3 :green, 2 :blue, 1 :yellow, 0 :red} (defn random-repeating-map ([coll-map] (random-repeating-map coll-map col

Re: anyone in Santa Cruz?

2014-03-27 Thread Tim
Yes, please! On Thursday, March 27, 2014 10:21:32 AM UTC-7, Brian Craft wrote: > > Looking for clojure users in the Santa Cruz, Ca area who are interested in > a meetup, study group, etc. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Should I be using deftype, gen-class or defrecord instead of this hack?

2013-12-11 Thread Tim
nded to fulfil all of them them; rather they only fill a specific functionality gap that appears to meet my needs. 2. I realize one wouldn't sort on a UUID, it's just an example to show the functionality. :) Thanks, Tim -- -- You received this message because you are subscribed to th

Re: Should I be using deftype, gen-class or defrecord instead of this hack?

2013-12-12 Thread Tim
sounds like you're basing your logic on data types, rather than the data > itself. > > - James > > > On 12 December 2013 04:26, Tim > wrote: > >> As an experiment, I've written a DSL that generates database queries >> using *effectively* only the data. T

Re: Should I be using deftype, gen-class or defrecord instead of this hack?

2013-12-12 Thread Tim
ort). > > To me, it doesn't make a huge amount of sense to tie sorting logic onto > the field itself. > > - James > > > On 12 December 2013 13:56, Tim > wrote: > >> Hi James, >> >> I'm not basing logic on types alone. That aside, here'

Re: Should I be using deftype, gen-class or defrecord instead of this hack?

2013-12-12 Thread Tim
Thanks for the responses. I took a look at your project and found it to be more useful than any documentation I've seen on deftype, so thanks for linking to it. Tim On Thursday, December 12, 2013 2:20:21 PM UTC-5, James Reeves wrote: > > gen-class is really there just for compati

Bug in CLJS compiler?

2012-10-27 Thread Tim
While playing around with a little test website I came across what, I believe to be a bug in the CLJS compiler. It seems like the generation of symbols for use in macros (e.g. var#) is broken when compiled into certain JavaScript forms. This is a bit of a contrived example but it illustrates t

Re: offtopic - where are you come from? (poll)

2008-10-20 Thread tim
California, USA --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

clojure.inspector doesn't work on sets?

2009-02-08 Thread Tim Martin
not sure I understand why this is happening though. The API docs note that nth works on seqs in O(n) time, and I thought that a set is- a seq? Explicitly coercing it to a seq seems to work, but what exactly is going on here? Is a new object being created, or are there any other efficiency concerns? Tim

Getting a result from a swing JDialog

2009-02-08 Thread Tim Martin
assume) a paradigm mismatch between Swing and functional languages. If the latter, would the Clojure community be well-served by a standard library of shims for making Swing fit better into the functional mould? Tim [1] My experience of Swing is minimal, so I'm ready to be corrected if this

Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-06-24 Thread Tim Gilbert
+1 from me. I don't think extremely literal names are bad things where plugins are concerned. Tim Mike Hinchey wrote: > I vote for EclipseClojure or eclipse-clojure. It's not as fun as some > of the others, but do you really need a distinct brand on this > projec

Compile Time Partial Evaluation

2009-07-11 Thread Tim Snyder
to do about lexical variables referred to within the macro, but really I don't think there is anything that / can/ be done with them. If the code has side effects, then some may be performed during compilation and others may be left for run-time. You should only use the macro on purely f

Compile Time Partial Evaluation

2009-07-11 Thread Tim Snyder
inally, there's the issue of macros, which I think I should expand and then process again. The expansion could be performed by either eval or macroexpand. What thoughts does anyone have? -- Tim --~--~-~--~~~---~--~~ You received this message because you are s

Accessing dynamic and lexical bindings

2009-07-14 Thread Tim Snyder
y to access the dynamic and lexical bindings directly, at compile time or run time? If not, are there any shortcuts around implementing my own tables and performing substitution? -- Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Loop, Recur, and Binding

2009-07-17 Thread Tim Snyder
I was experimenting with how binding behaves within a loop and found some inconsistent results: (def y 0) (loop [x 0] (println "x " x) (binding [y (inc y)] (println "y " y) (if (< x 10) (recur (inc x) The printed lines are what you'd expect: x 0 y 1 x 1 ... x 10 y 11 But if

Clojure Partial Evaluator

2009-07-20 Thread Tim Snyder
(+ (fibb (dec n)) (fibb (dec (dec n)) (defn fibb30 [] (fibb 30)) (defn fibb30* [] (par-eval (fibb 30))) (time (fibb30)) > "Elapsed time: 1353.797291 msecs" > 832040 (time (fibb30*)) > "Elapsed time: 0.128627 msecs" > 832040 -- Tim --~--~-~--~~--

Re: Clojure Partial Evaluator

2009-07-20 Thread Tim Snyder
ctional partial evaluator will create macros similar to what you'd get from using the clojure contrib template macros. Please take a look at the code and let me know what successes and problems you encounter! Tim On Jul 20, 10:46 am, Nicolas Oury wrote: > Hi, > > it sounds interesting

Re: Function of clojure.templates

2009-07-21 Thread Tim Snyder
apply-template is used internal to the template namespace by the do- template macro. The do-template macro that allows you to apply some code to groups of arguments. In order to get what I think you're after, use do-template in the following fashion: (do-template (+ _1 _1) 2) --> (+ 2 2) On Jul

Lazy Exceptions

2009-08-27 Thread Tim Snyder
t harder to deal with the exceptions. I've looked through the stack traces but can't see any solution. Is this due to the Java difference between checked and unchecked exceptions? Is there a reasonable way to work around it? Doall has no effect. Thanks for your help, Tim --~--~-

Re: Lazy Exceptions

2009-08-27 Thread Tim Snyder
Brandmeyer wrote: > Hi, > > On Aug 27, 5:47 am, Tim Snyder wrote: > > > > > > > I'm trying to understand how laziness affects exception handling.  I > > keep finding my exceptions wrapped in RuntimeExceptions. > > > If I have code that just throw

Re: Lazy Exceptions

2009-08-27 Thread Tim Snyder
lazy sequence may no longer be within the dynamic confines of the 'try' in which it was called and thus should be considered a runtime exception? Tim Snyder wrote: > Thanks for the replies. I'll have a look at the impl. of LazySeq > tonight and see if that helps. It sou

Problems With VimClojure (Minimal Example Included)

2009-10-05 Thread Tim Sally
th no luck. .vimrc: https://pastee.org/t828u tarball of my .vim directory (post install): http://dl.getdropbox.com/u/223699/vim.tar.gz ant build log: https://pastee.org/ey254 ant install log: https://pastee.org/3adj mil:~ tim$ vim --version VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 13 200

Re: Problems With VimClojure (Minimal Example Included)

2009-10-05 Thread Tim Sally
ssing step. Thanks for clearing that up! Tim On Oct 5, 2009, at 3:27 AM, Meikel Brandmeyer wrote: > > Hi, > > On Oct 5, 12:14 am, Tim Sally wrote: > >> I'm having a problem getting VimClojure working. I've tried with >> both >> the development and sta

Re: Infinite sequences hang sets and maps

2009-10-28 Thread Tim Clemons
How about having hashCode() on infinite sequences drill down into the composite infinite sequences until we arrive at the generative function? Given that values are generated on demand, the generators themselves can be compared. To take from your fibs example: hashCode(iterate f x) = hashCode(x

Re: Infinite sequences hang sets and maps

2009-10-28 Thread Tim Clemons
On Oct 28, 1:34 pm, John Harrop wrote: > This runs into problems with things like (repeatedly rand) though. How so? The repeatedly function returns a lazy sequence that (presumably) stores a reference to repeatedly as its generator function. That instance of repeatedly would, in turn, have to

Re: Infinite sequences hang sets and maps

2009-10-28 Thread Tim Clemons
On Oct 28, 4:33 pm, Richard Newman wrote: > I think John's point is this: > > user=> (take 3 (repeatedly rand)) > (0.07020342855887218 0.590736243072285 0.04997104958104426) > user=> (take 3 (repeatedly rand)) > (0.6445602419794128 0.12488917903865004 0.5784287452848529) > > Different sequences,

Re: Continuous Integration Server & Maven/Ivy Repo

2009-11-05 Thread Tim Dysinger
I had to move the repository url. I was having trouble with it on the same url and hudson. Plus you can't poke around because hudson would take the request. So the new url is http://build.clojure.org/snapshots for maven2/ivy/etc Sorry I changed it 8 hours ago and forgot to post. :( On Wed, N

Re: Clojure Conference

2010-01-22 Thread Tim Dysinger
Amit and I are teaming up on it. We'll have a website up soon w/ a call for papers. On Fri, Jan 22, 2010 at 6:05 AM, Howard Lewis Ship wrote: > I've heard, indirectly, that you are putting together a Clojure > conference. I've been speaking about Clojure at NFJS (Seattle), > TheServerSide, Dev

Re: Clojure Conference Poll

2010-01-24 Thread Tim Dysinger
We don't know what the cost is going to be yet - I want to keep it _low_ but we don't have any sponsors yet nor do we have a small (narrowed) list of locations picked out. We plan on working on these items this month and will release more info soon as we know more. On Sun, Jan 24, 2010 at 9:42 AM

Fwd: Berlin Lispers Meetup: February 2, 2010 - Clojure presentation

2010-01-29 Thread Tim Lossen
FYI: if anybody happens to be in berlin next week -- there is going to be an interesting presentation about clojure "in the cloud" ... tim Begin forwarded message: > From: Hans Hübner > Date: 2010-01-29 11:53:25 > To: lisp-ber...@googlegroups.com, lisp-ber...@lists.bknr.net

Re: Seattle Clojure meeting

2010-02-04 Thread Tim Clemons
I'm interested as well. Either the 11th or 15th works for me. -- Tim. On Feb 4, 5:57 pm, Howard Lewis Ship wrote: > I might drive up on the 15th, or take the train.  I'm just getting > back from London on the 14th though, so maybe next meeting for me. > > > > On

Re: Clojure for system administration

2010-02-04 Thread Tim Clemons
Perhaps the solution is to have a *nix shell implemented in Clojure. That would limit the start-up issue to a single initial instance. Then the user can proceed to use regular command-line functionality interspersed with Clojure scripts. Think of it as a hybrid REPL. On Feb 4, 9:35 am, Phil Hagel

Parallel version of list comprehension

2010-02-07 Thread Tim Snyder
Is there a straight-forward way to get parallelization when using list comprehension? The form of "for" syntax is much preferable to the closest I could come up with using pmap. I also was having trouble getting the correct level of nesting down when using pmap, though probably because I'm tired.

Re: Parallel version of list comprehension

2010-02-08 Thread Tim Snyder
s (proc process e) (dec depth))] (cons e t I was playing around with nested pmap calls last night but I always got one extra layer of nesting for each depth I went. Any help is much appreciated, Tim On Feb 8, 8:22 am, Sean Devlin wrote: > Do you have a specific example, some co

Re: group tag for clojure newsgroup

2010-03-04 Thread Tim Daly
[groupname] tag convention. If you know of a way to filter emails by list-id in thunderbird I will withdraw the suggestion. Tim Garth Sheldon-Coulson wrote: I agree that this would obstruct the subject line needlessly, a particularly inconvenient thing for anyone who (like me) often reads list emails

Re: group tag for clojure newsgroup

2010-03-04 Thread Tim Daly
Garth, Worked. Thank you. Rich, consider the question closed. Tim Garth Sheldon-Coulson wrote: Hi Tim, I just downloaded Thunderbird to take a look, and I haven't tested this, but you might try the following (have you already tried this? you mentioned List-ID, so maybe this doesn&#

Web Programming with clojure

2010-03-16 Thread Tim Johnson
-- Tim t...@johnsons-web.com http://www.akwebsoft.com -- 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

Re: Web Programming with clojure

2010-03-16 Thread Tim Johnson
* David Nolen [100316 12:12]: > On Mon, Mar 15, 2010 at 3:11 PM, Tim Johnson wrote: > > > My niche currently is web programming and web interfaces. I have not > > used java and I have a certain comfort level with lisp dialects. > > I use emacs 22.3.1 on slackware 13.0 3

Re: Web Programming with clojure

2010-03-16 Thread Tim Johnson
nk you Matt. :) I'm taking notes like crazy here. cheers -- Tim t...@johnsons-web.com http://www.akwebsoft.com -- 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: Web Programming with clojure

2010-03-16 Thread Tim Johnson
h newlisp, really liked it, but one day I posted to the newlisp community whether any of them had contemplated writing newlisp in java. The developer replied: "That's clojure". So here I am. cheers -- Tim t...@johnsons-web.com http://www.akwebsoft.com -- You received

Clojure 101 - Slime installation

2010-03-18 Thread Tim Johnson
See http://vimeo.com/8398020 Great video! But, it would be great if I could capture the *text* of the video, (if available) that would be very helpful in referrencing Lau's instructions Anyone know how to do that? thanks -- Tim t...@johnsons-web.com http://www.akwebsoft.com -- You rec

Re: Web Programming with clojure

2010-03-18 Thread Tim Johnson
* LauJensen [100318 00:26]: > Hey Tim, > > Welcome - I might be restating, but this should get you going quickly: Oh that's great Lau! I have been looking at your videos and was wondering where I could find text instructions (see my posting subject: "Clojure 101 -

Re: getRuntime exec call?

2010-03-19 Thread Tim Daly
ot;)) (getInputStream)) it works and gives me the result of the "ls" system call. If I replace the Runtime line with (. (. (. Runtime (getRuntime)) (exec "ls *.o")) (getInputStream)) it fails even though it has a string argument. Suggestions? Tim Daly --

Installation issues on slack 13.0 (ant?)

2010-03-19 Thread Tim Johnson
`ant'. Looks like I need to install it. So what am I looking for? Is it apache-ant, or some other system? And where do I download it? Note: slack has very good build tools for applications with C as the source, so if ant is written in C, source would be fine Thanks -- Tim t...@johnsons-we

Re: Installation issues on slack 13.0 (ant?)

2010-03-19 Thread Tim Johnson
* Micha?? Marczyk [100319 15:56]: > On 20 March 2010 00:32, Tim Johnson wrote: > > So what am I looking for? > > Is it apache-ant, or some other system? > > And where do I download it? > > Yes, it's Apache Ant: > > http://ant.apache.org/ > Thanks. I

Re: Installation issues on slack 13.0 (ant?)

2010-03-19 Thread Tim Johnson
en2/ant/ I'm looking at that URL now. --- where is the .jar file to be installed? (Feel free to point me to documentation) --- Example - on my machine the java binary is at: /usr/lib/java/bin/java t

Re: Installation issues on slack 13.0 (ant?)

2010-03-19 Thread Tim Johnson
administrator that will find this acceptable is one that I'm going to love to play poker with - because I am going to clean him out. If there are enough fools like that that I can find, I can retire from coding and just make a living playing poker. :) Before I procede o: Installa

Re: Installation issues on slack 13.0 (ant?)

2010-03-20 Thread Tim Johnson
* Steve [100320 05:24]: > On Mar 20, 2:44 pm, Tim Johnson wrote: > > Unless you're hacking on clojure itself you don't need to build it, > there's a pre-built jar file in the zip you downloaded (clojure.jar). > So you won't need ant (ant is a like make for

Re: Swank, ELPA and Emacs version do you use?

2010-03-20 Thread Tim Johnson
o you use? I'm using 23. I just installed it yesterday - in part to better use ELPA. 23 compiled and installed with 0 issues. I then bootstrapped ELPA with 0 issues. -- Tim t...@johnsons-web.com http://www.akwebsoft.com -- You received this message because you are subscribed to the Google G

Why I have chosen not to employ clojure

2010-03-21 Thread Tim Johnson
luck with that! Here's how I installed the flash player on my system. 1)Downloaded install_flash_player_10_linux.tar.gz 2)Unzipped libflashplayer.so 3)Copied to /usr/lib/firefox-3.5.2/plugins/ Make clojure "install and deployment" like the example above and more of us w

Re: holding types or units in metadata vs pattern matching

2010-04-03 Thread Tim Snyder
One approach to consider is using clojure.contrib.types, which provides general and abstract data types. If you're familiar with pattern matching from Scala, you'll feel right at home. On Apr 2, 6:47 pm, strattonbrazil wrote: > What's the best way to keep track of what kind of value something is

Re: Examples of Clojure in production?

2010-04-19 Thread Tim Harper
inline lead appraisal system, leadtune.com Tim -- 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

Re: tutorial on clojure protocols 1.2

2010-04-26 Thread Tim Harper
On Mon, Apr 26, 2010 at 10:20 AM, Stuart Halloway wrote: > I have created a short (30 min) tutorial on clojure protocols at > http://vimeo.com/11236603. Hope some of you will find it useful. > > Feedback welcome! > > Stu > Watched it today during lunch, it was great! Thanks Stuart. -- You rece

My First Clojure Program -- Can Someone Critique It?

2010-05-10 Thread Tim Morgan
ritique me a bit. Tear it apart. Thanks! -Tim Morgan -- 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 yo

Re: My First Clojure Program -- Can Someone Critique It?

2010-05-10 Thread Tim Morgan
Ruby "symbols") as functions is a bit foreign to me. Need to work on that for sure. Also need to look through the standard lib a few hundred times to get a feeling for all the functions available to me. -Tim On May 10, 7:15 am, Stuart Halloway wrote: > Hi Tim, > > Very reada

Re: My First Clojure Program -- Can Someone Critique It?

2010-05-10 Thread Tim Morgan
xists)] ip)) > > (defn used-ips [subnet] >   (for [{:keys [ip exits]} :when exists] ip)) > > hth, > > Christophe > > On Mon, May 10, 2010 at 1:32 PM, patrik karlin wrote: > > > > > hello nott a expert my self > > but *#*(:ip %) == :ip > > and *#

Re: My First Clojure Program -- Can Someone Critique It?

2010-05-10 Thread Tim Morgan
t i thought it > > was better just to ask :) > > Thanks, > > Kaminski > > > On Mon, May 10, 2010 at 8:32 AM, patrik karlin > > wrote: > > >> hello nott a expert my self > >> but #(:ip %) == :ip > >> and #(:exists %) == :exists > > &g

Re: do clojure and la(tex) have something in common ?

2010-05-24 Thread Tim Daly
27;t think this is possible, check out "Lisp In Small Pieces" which is a full book containing a full lisp (interpreter, compiler, etc). I haven't tried this with Clojure yet as I'm still trying to find my way around the language. When I build an application with Clojure it will be

Re: do clojure and la(tex) have something in common ?

2010-05-25 Thread Tim Daly
ka wrote: Tim, I don't know much about either lisp or latex :). But it looks like a really neat idea at a first thought to me. Have two remarks- 1. From the developer's pov - I'm not sure how the developer, who is accustomed to looking at just code + some comments, will mana

Re: do clojure and la(tex) have something in common ?

2010-05-27 Thread Tim Daly
write the code that handles, say string processing, is trivial compared with the effort to document it, make it a standard, get it through the various social aspects and committees. Clojure has a LONG way to go. There is no royal road to viable software. Tim ka wrote: Hi Tim, Thanks! f

Defining the ground truth

2013-05-22 Thread Tim Daly
ot;the person" who holds it all together? Is your whole project "dead code" if certain people leave? If you want your code to live, communicate. Write words for people who will maintain your code but you'll never meet. Tim Daly Knuth fanboi -- -- You received this message becau

Re: Making things go faster

2013-06-04 Thread Tim Visher
On Tue, Jun 4, 2013 at 4:51 PM, David Pollak wrote: > So... the questions: > > * Is there a faster cycle than to change code, change tests and type "lein > test" to see the results? > * Is there a way to keep everything in a hot JVM (I've done a little > research on Nailgun... but it seems to be o

Performance optimizations dealing with java collections

2013-06-17 Thread Tim Jones
t;Class.getComponentType path. This is related to http://dev.clojure.org/jira/browse/CLJ-1200, although called via a different path. Does anyone have any ideas on how I could avoid these calls? Thanks, Tim -- -- You received this message because you are subscribed to the Google Groups "Clo

Re: Performance optimizations dealing with java collections

2013-06-18 Thread Tim Jones
e a polemic for clojure and "the java version of this program is 30% faster" isn't where I want to start. Am I missing something? On Monday, June 17, 2013 3:34:07 PM UTC-7, Tim Jones wrote: > > I'm working on a small clojure program which pulls data from a custom > me

Re: Performance optimizations dealing with java collections

2013-06-18 Thread Tim Jones
On Tuesday, June 18, 2013 9:58:20 AM UTC-7, Michael Klishin wrote: > > 2013/6/18 Tim Jones > > >> How do I get to near-java performance? > > > Start by providing a snippet of your code and profiling. > > Great. Here's the context: iterate through a list of

Re: Performance optimizations dealing with java collections

2013-06-19 Thread Tim Jones
e this? > > (String/format (.get link 1) (doto (make-array String 1) (aset 0 (.get > link 2))) > > I'm not suggesting that's idiomatic, but if it addresses the issue then > you can focus on the difference and look for a happy medium. > > > On Tue, Jun 18, 2013 at 4

Re: Functions that return seqs

2013-07-02 Thread Tim Visher
On Tue, Jul 2, 2013 at 4:45 AM, Islon Scherer wrote: > One things that always bugged me about clojure is that most functions that > work on collections return seqs and not the original data structure type: > > (= [2 4 6] (-> [2 [4]] flatten (conj 6))) > => false > > Every time I transform collecti

Re: clojure 1.5.1, emacs/nrepl and clojure.repl

2013-07-08 Thread Tim Visher
On Mon, Jul 8, 2013 at 11:43 AM, Colin Yates wrote: > If using clojure 1.4.0 then when I start nrepl (CcMj) then I the > clojure.repl namespace is automatically 'used. If I upgrade to Clojure > 1.5.1 then it doesn't. I can still (use 'clojure.repl) but is this a bug? > > I can't believe I would

Re: [ClojureScript] [ANN] Austin — the ClojureScript browser-REPL, rebuilt stronger, faster, easier

2013-08-05 Thread Tim Visher
This looks awesome. I can't wait to dig into it. On Mon, Aug 5, 2013 at 9:21 AM, Chas Emerick wrote: > As you might know, I've been tinkering with an easier-to-use variant of > ClojureScript's browser-REPL for some time. I've finally wrapped that up > into its own project, Austin: > >

Is it possible to increase the canvas size of an Incanter chart?

2013-08-06 Thread Tim Visher
`(view … :width … :height …)` isn't what I want as that doesn't seem to intrinsically increase the size that incanter thinks it can use to draw. It more seems to have the effect that scaling the resulting window has, which is not desirable. I'm putting a bunch of box and whisker data on a single c

Re: Story

2013-08-07 Thread Tim Daly
to another person. This almost certainly involves reordering and restructuring code. The machinery needed to support literate programming is trivial. See http://axiom-developer.org/axiom-website/litprog.html > ... (snip) ... > * Tim Daly posted a tool that lets him essentially writ

Re: IDE feature

2013-08-08 Thread Tim Daly
"in my head" and that the computer is only useful for recording the results. For me, smart editing and IDEs get in my way, like a helpful newbie in a metal shop. Then again I don't use IDEs. If it works for you, go for it. Tim -- -- You received this message because you are subs

Re: Story

2013-08-08 Thread Tim Daly
Re: org-mode. I stand corrected. Some days my religious zeal overwhelms my fingers. Thanks for setting the record straight. Tim -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: Story

2013-08-08 Thread Tim Daly
s, adjacent and intermixed with the code, but written for humans-to-human communication. Clojure is heavy with great ideas and they need to be communicated intact. Tim Daly -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: Story

2013-08-08 Thread Tim Daly
han one package (namespace) so I guess I just haven't seen this as an issue. Styles vary. If you're using namespaces I presume you're also exporting an API. Logically that implies that the namespace and its functions would live in a separate chapter I suppose. Tim Daly -

Re: [ANN] Leiningen 2.3.0 released

2013-08-09 Thread Tim Visher
`lein upgrade` Just Worked™ for me. On Fri, Aug 9, 2013 at 11:48 AM, Marcus Blankenship wrote: > No good deed goes unpunished, so here's my error *after* upgrading… > > Error occurred during initialization of VM > java/lang/ClassNotFoundException: error in opening JAR file > /Users/marcus/.lein/

Should ` ` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread Tim Visher
Should ` ` be trimmed using `clojure.string/trim`? EOM -- -- 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: Should ` ` be trimmed using `clojure.string/trim`? EOM

2013-08-11 Thread Tim Visher
Sorry, I should have been more clear. In the following the space at the end of the string is a no break space and the first execution is under clojurescript, the second under clojure. user> (clojure.string/trim "54 ") "54" bible-plan.mcheyne> :cljs/quit :cljs/quit bible-plan.pi

Re: Should ` ` be trimmed using `clojure.string/trim`? EOM

2013-08-12 Thread Tim Visher
Hi Andy, On Mon, Aug 12, 2013 at 12:17 AM, Andy Fingerhut wrote: > Clojure's clojure.string/trim uses Java's String/trim, but > clojure.string/triml and trimr use Java's Character/isWhitespace to > determine which characters are white space to remove. CLJ-935 has a > suggested patch to make them

Re: Help with Incanter and Emacs

2013-08-13 Thread Tim Visher
On Tue, Aug 13, 2013 at 1:59 PM, Akhil Wali wrote: > Hi All, > > A really noob question. > > Why do I get "FileNotFoundException Could not locate incanter__init.class or > incanter.clj on classpath: clojure.lang.RT.load (RT.java:443)" when i load > a file that uses incanter in emacs? > Here's th

Re: function creation, partial or #()

2013-08-13 Thread Tim Visher
On Tue, Aug 13, 2013 at 8:47 AM, Jay Fields wrote: > Say you have a simple function: (defn do-work [f] (f)) > > When you want to call do-work you need a function, let's pretend we > want to use this function: (defn say-hello [n] (println "hello" n)) > > Which of the following solutions do you pref

Re: Help with Incanter and Emacs

2013-08-13 Thread Tim Visher
> :repl-options {:nrepl-middleware >[ritz.nrepl.middleware.javadoc/wrap-javadoc > > ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}} > > > > On Tuesday, August 13, 2013 11:35:58 PM UTC+5:30, Tim Visher wrote: >> >> On Tue, Aug 13

Re: Help with Incanter and Emacs

2013-08-13 Thread Tim Visher
l-jack-in. >> >> On Tuesday, August 13, 2013 11:54:24 PM UTC+5:30, Tim Visher wrote: >>> >>> And you're connecting to the project how? >>> >>> On Tue, Aug 13, 2013 at 2:11 PM, Akhil Wali >>> wrote: >>> > Well

Re: function creation, partial or #()

2013-08-16 Thread Tim Visher
I will also note that any lamdba of more than one (_maybe_ two) args _must_, for me, be in the `(fn […] …)` form. Not only does it have the advantage of taking the function name, but it also is much easier to read what it's doing when I can explicitly name it's inputs. On Fri, Aug 16, 2013 at 7:3

Re: tools for minimizing forward declaration

2013-08-19 Thread Tim Visher
The most annoying thing to me about forward declaration is that it prevents what Uncle Bob calls 'Newspaper Style Code' where I can structure my code in such a way that the high-level functions are right at the top and the primitives that they might need are found below so that I or someone else wh

Re: tools for minimizing forward declaration

2013-08-19 Thread Tim Visher
I'll point out as well that though I thought Yegge's criticisms of Clojure were a bit polemical (I guess that's his style), the single pass compiler issue was one of his biggest gripes, and I do think it still rings true. I feel like I have to babysit clojure in this regard, when I usually feel lik

Re: tools for minimizing forward declaration

2013-08-20 Thread Tim Visher
On Mon, Aug 19, 2013 at 11:09 PM, Armando Blancas wrote: >> I'll point out as well that though I thought Yegge's criticisms of >> Clojure were a bit polemical (I guess that's his style), the single >> pass compiler issue was one of his biggest gripes, and I do think it >> still rings true. I feel

Lisp in Tex

2013-08-21 Thread Tim Daly
TeX is viewed as a document markup language but it is turing complete. Occasionally people get ambitious. Here is executable lisp in a Latex document: ctan.org/pkg/lisp-on-tex Perhaps some bright spot can do a Clojure-in-tex during the next Google summer of code :-) Tim Daly -- -- You

Re: Clojure for the Brave and True, an online book for beginners

2013-09-05 Thread Tim Visher
On Wed, Sep 4, 2013 at 6:32 PM, Daniel Higginbotham wrote: > With the C-s/C-r keybindings, I think the emacs.d I point has swapped > isearch and regexp search. I'll double-check that. > This is an amazing microcosm of _exactly_ why Rich and others seem to be pointing people away from Emacs lately

Re: [ANN] clojuretip.herokuapp.com

2013-09-07 Thread Tim Visher
Hah! Love it! On Sat, Sep 7, 2013 at 1:09 PM, Steven Degutis wrote: > Yesterday in #clojure: > > To get your random API learnin' of the day, just run: (->> > clojure.core quote the-ns ns-publics seq rand-nth val meta ((juxt :name > :doc)) (map println) dorun) > > Awesome, right? So I put a lil w

Re: [ClojureScript] ANN: ClojureScript 0.0-1877 (Breaking change)

2013-09-09 Thread Tim Visher
On Sun, Sep 8, 2013 at 7:42 PM, David Nolen wrote: > ClojureScript, the Clojure compiler that emits JavaScript source code. > > README and source code: https://github.com/clojure/clojurescript > > New release version: 0.0-1877 > > Leiningen dependency information: > > [org.clojure/clojurescrip

Re: [ANN] Chestnut 0.7.0

2015-03-08 Thread Tim Gilbert
lein new behavior somehow. At any rate, running lein new in a directory without a project.clj file in it is working fine for me. Tim On Saturday, March 7, 2015 at 5:38:41 AM UTC-5, webber wrote: > > I tested the v 0.7.0 of chestnut and I encountered the following error. > The v 0.6.0 w

Re: [ANN] Chestnut 0.7.0

2015-03-10 Thread Tim Gilbert
e I'm not understanding what you're trying to do. Tim On Monday, March 9, 2015 at 6:30:48 PM UTC-4, webber wrote: > > I've commented chestnut/lein-template from the ~/.lein/projects.clj as > follows, then it worked. > It worked using 0.6.0 if there was the chestnut/lein-tem

  1   2   3   4   5   >