How to handle dependencies on multiple versions of the same library?

2012-05-02 Thread Andy Fingerhut
, and C only works with Z v3. Is there a straightforward way to load in both versions of Z to a single JVM, and make everything work? Perhaps this is the kind of situation that Gradle, OSGi, and probably other tools/frameworks are meant to help address? Thanks, Andy -- You received this me

Re: Odd termination behaviour of a program that uses pmap

2012-05-08 Thread Andy Fingerhut
you call (shutdown-agents) before the end of your program. http://dev.clojure.org/jira/browse/CLJ-124 Andy On May 7, 2012, at 3:16 PM, Muharem Hrnjadovic wrote: > Hello there! > > I only started learning Clojure today, so please forgive me if this is > a stupid question or something

Re: Odd termination behaviour of a program that uses pmap

2012-05-08 Thread Andy Fingerhut
ojure futures, I've added examples to those two functions that recommend reading the examples for future. Andy On May 8, 2012, at 11:18 AM, Andy Fingerhut wrote: > Not desired, but currently normal behavior. > > This happens whenever certain concurrency features of Clojure are used

Re: docstrings of if-let and when-let incorrect

2012-05-15 Thread Andy Fingerhut
clear or "least surprising" than any of the others. Permitting only one makes that part of the behavior clear, at least. Andy On May 15, 2012, at 12:09 PM, Hubert Iwaniuk wrote: > I tried using if-let with multiple binding in past as well. > Following least surprise principle,

Re: [ANN] Clojure Namespace Browser (clj-ns-browser "1.0.0")

2012-05-16 Thread Andy Fingerhut
Did you use the instructions under "Install & Start-up" on this page? https://github.com/franks42/clj-ns-browser Also, what OS are you using (and if Windows, are you using Cygwin, too?), and what do you get as output of the command "lein version"? Thanks, Andy On

Re: Different behavior at REPL vs compiled code

2012-05-19 Thread Andy Fingerhut
argue that such auto-conversion of types, while convenient in many cases in Perl, is also a source of errors in programs. Andy On May 19, 2012, at 1:05 AM, Ankit Goel wrote: > Thanks a lot for the help Meikel and Jim. > @ Meikel: it worked great as per your suggestion. > > I was jus

Re: Using Clojure internal libraries in another project

2012-06-03 Thread Andy Fingerhut
tees you wanted from an STM. Andy On May 29, 2012, at 3:08 PM, Edward Yang wrote: > Hello all, > > We're interested in using some of Clojure's internal libraries (in > particular, it's STM implementation), in the runtime for another programming > language. We

Re: hyphenate - imperative for

2012-06-06 Thread Andy Fingerhut
takes practice to get faster at it, that is for sure. Andy On Jun 6, 2012, at 5:46 AM, Dave Sann wrote: > Hi Stephen, thanks for the answer. > > Let me be more clear. I am porting the functionality, not the form of the > code. I want to use pure clojure - because I'd lik

why String is not a collection (of Character)

2012-06-07 Thread Andy Coolware
Hi, So my questions is as in subject. I did a bit of research but could not find a good answer. Would appreciate an insight ... (thank you 'Andy) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: why String is not a collection (of Character)

2012-06-07 Thread Andy Coolware
I was wondering cause we can do all awesome stuff like that: user=> (last "abc") \c user=> (first "abc") \a user=> (map (fn[z] (str z "-")) "abc") ("a-" "b-" "c-") but this renders false user=> (coll? "abc") false A. -- You received this message because you are subscribed to the Google Groups

Re: why String is not a collection (of Character)

2012-06-07 Thread Andy L
On 06/07/2012 09:22 PM, Ambrose Bonnaire-Sergeant wrote: Every Seqable is not Sequential. (sequential? {:a 1}) => false Is there a simple test for sequable? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

Re: [PATCH] RFC: Add Functions `tabify` And `untabify`

2012-06-08 Thread Andy Fingerhut
etween-Clojure-hosts regex implementation and adds that to clojure.string? That seems like a fairly big chunk of code, even if you implement "only" what Java regexes have, and avoid making it better in its Unicode support. It also adds yet another slightly different regex implementation to th

Re: load namespace programmatically

2012-06-08 Thread Andy Fingerhut
Does this do what you want? (defn require-from-string [s] (require (symbol s))) Andy On Jun 8, 2012, at 5:37 PM, Leandro Oliveira wrote: > Hi, > > What is the best way to implement require-from-string? > > Ex: > > # require-from-string words like require but accepts

scanLeft

2012-06-11 Thread Andy Coolware
Hi, I am looking for a way to express following function in Clojure: scala> scanLeft(List(1,2,3))(0)(_ + _) res1: List[Int] = List(0, 1, 3, 6) Any insight? Andy ... -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

Re: scanLeft

2012-06-11 Thread Andy Coolware
thx, I see it now. -- 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,

so why it has to be so complicated / Longest Increasing Sub-Seq

2012-06-12 Thread Andy Coolware
not compelling at all. Bottom line, I want to have a idiomatic Clojure solution ... Any insight Thx, Andy -- 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 fr

Re: so why it has to be so complicated / Longest Increasing Sub-Seq

2012-06-12 Thread Andy Coolware
Nice. But I wonder if sorting and (count coll) actually forces the algorithm to load everything into memory. My Clojure solution is more convoluted (will post it later) and suffers the same due to a recursive algorithm doing the transformation I described at the end. However I think I have someth

Re: so why it has to be so complicated / Longest Increasing Sub-Seq

2012-06-12 Thread Andy Coolware
forgot full listing: scala> List[Int](6, 7, 8, 1, 2, 3, 4, 1, 11, 10 ,11 ,12 ,13, | 3).foldLeft(List[List[Int]]()){(a,b)=> | if(a.isEmpty) List(List(b)) | else if(a.last.last < b) a.dropRight(1):::List(a.last:+b) | else a:::List(List(b)) | }.filter(_.

Re: so why it has to be so complicated / Longest Increasing Sub-Seq

2012-06-13 Thread Andy Coolware
On Wed, Jun 13, 2012 at 4:05 AM, JuanManuel Gimeno Illa wrote: > My solution: > > (defn lis [s] >   (->> s >        (partition 2 1) >        (partition-by (partial apply <=)) >        (filter (fn [[[a b]]] (< a b))) >        (reduce (fn [m s] (if (> (count s) (count m)) s m)) []) >        (#(cons

Re: so why it has to be so complicated / Longest Increasing Sub-Seq

2012-06-13 Thread Andy Coolware
> > (defn lis [coll] >   (or (->> coll >            (partition-between (partial apply >=)) >            (sort-by (comp - count)) >            (filter next) >            (first)) >       [])) Totally agree on decomposing the problem into a single independent steps. This is what I did not like about

Re: 'dotimes' will not work inside a 'doto'...

2012-06-14 Thread Andy Fingerhut
ns to macro invocations. I suspect Jim's concern would be addressed if the documentation for doto were made more accurate, e.g. in the sentence: "Evaluates x then calls all of the methods and functions with the value of x supplied at the front of the given arguments." replace t

Re: 'dotimes' will not work inside a 'doto'...

2012-06-14 Thread Andy Fingerhut
I highly recommend clojuredocs.org for adding examples of pitfalls/traps. I've added several there myself, e.g. for clojure.core/future (and also clojure.core/pmap, clojure.java.shell/sh): http://clojuredocs.org/clojure_core/clojure.core/future It takes only a few minutes to do so. Andy

Re: Why is lein so slow?

2012-06-14 Thread Andy Fingerhut
e noticeably slower on Windows XP + Cygwin than the same operations on Mac OS X or Ubuntu Linux. I don't know the reasons for this, but it is a very obvious difference. Andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

meta-questions - [clojure] in front of Subject line

2012-06-17 Thread Andy Coolware
Hi, I have been subscribed to a couple of groups as well as other stuff and find it useful to have a Subject line prefix indicating the source of conversation. Would it be possible to add something like that [clojure] Thx, Andy -- You received this message because you are subscribed to the

Re: clojure.inspector.inspect-table gives up when first element is nil...

2012-06-18 Thread Andy Fingerhut
ble and want to use it, put it in your own local library and use it (or make your own local modified version of Clojure for your own use). Andy On Jun 18, 2012, at 12:07 PM, Sean Corfield wrote: > JIRA - http://dev.clojure.org/jira/browse/CLJ (since this is a "core" > Clojure na

Re: meta-questions - [clojure] in front of Subject line

2012-06-18 Thread Andy Coolware
to split the traffic by group in some automated fashion ... Cheers, Andy -- 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

Re: meta-questions - [clojure] in front of Subject line

2012-06-19 Thread Andy Coolware
So I followed the steps and it did not work: >  3) This will automatically create a filter on words: > list:"" however after changing filter to >>Matches: to:(clojure.googlegroups.com) Do this: Apply label "clojure"<< all seems to be just fine and I

Re: How to speed up Clojure Training for New Recruitment

2012-06-20 Thread Andy Coolware
> Oh, and I also believe training is mostly a waste of resources. Training is > pushing information. It really depends how it is constructed. If it is a domain knowledge - this is just a info push. If this is a skill to be acquired - I have seen many hands on dedicated labs very effective. Now

struggling with two simple list of lists operations

2012-06-24 Thread Andy Coolware
to the list ... Any simple ideas? Thx, Andy -- 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: struggling with two simple list of lists operations

2012-06-24 Thread Andy Coolware
I know, but this is list :-) -- 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 th

Re: General subsequence function

2012-06-28 Thread Andy Fingerhut
do one of the above. That can be anywhere on the scale of amazingly quick & easy, to incredibly frustrating & hard, depending upon your ideas, how persuasive you are, and who reads your arguments. Andy On Jun 28, 2012, at 10:55 AM, Warren Lynn wrote: > Here is "another lang

Re: General subsequence function

2012-06-29 Thread Andy Fingerhut
making backwards-incompatible changes as they become more widely used. Andy On Jun 28, 2012, at 12:47 PM, Warren Lynn wrote: > Andy: > > Thanks for laying out the options to move it forward. I think those functions > belong to clojure.core, but I will see how persuasive I am, or h

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Andy Fingerhut
There are links to older discussions on this topic in the description of ticket CLJ-703: http://dev.clojure.org/jira/browse/CLJ-703 Also proposed patches to Clojure, although I don't know whether some of those may lead to incorrect behavior. Andy On Jul 16, 2012, at 12:48 PM, Raju B

Re: Immutability rules when it comes to Ref type

2012-08-10 Thread Andy Fingerhut
"Modifying" the map pointed to by the ref merely means that the pointer is changed from pointing to one immutable map, to pointing at a different immutable map. Neither of the two maps becomes mutable as a result of this. Andy On Aug 10, 2012, at 9:21 AM, Hussein B. wrote: > Hi, &

Re: recursion question

2012-08-14 Thread Andy Fingerhut
namic programming methods that work faster if the sum of the numbers is small enough, but require holding in memory an array of at least N bits, where N is the target. Andy On Aug 14, 2012, at 4:17 PM, John Holland wrote: > I thought of doing something like that, but part of the requirements

Re: What is the meaning of :while in a for ?

2012-08-23 Thread Andy Fingerhut
I've added some examples of :when and :while, including those given by Herwig and Tassilo in this thread, at ClojureDocs: http://clojuredocs.org/clojure_core/clojure.core/for Note: Anyone with a free account can add/edit examples on that site. Andy On Aug 21, 2012, at 8:34 AM, nico

Re: A Performance Comparison of SBCL & Clojure

2012-08-27 Thread Andy Fingerhut
of effort), regex-dna, and binary-trees problems. Andy On Aug 27, 2012, at 6:58 PM, Ben Mabey wrote: > Looking at clojure's benchmarks they seem to already be highly optimized (in > terms of employing all the standard tricks). Does anyone have any idea if > more could be done

Re: Deprecation of Swank Clojure, long live nrepl.el

2012-08-28 Thread Andy Fingerhut
convenient for you to try. Andy On Aug 28, 2012, at 8:48 AM, Warren Lynn wrote: > > > With Tim's pointer, I worked around the completion exception on namespace by > redefining the resolve-class. However, there is still another problem: > > If my cursor stops at the end of

Re: assoc with uneven arguments

2012-08-29 Thread Andy Fingerhut
> >> (assoc {} :a 1 :b) >> ;=> {:a 1, :b nil} >> >> Thoughts? > > Yes, please. That's just wrong. > > - Chas http://dev.clojure.org/jira/browse/CLJ-1052 Vote for it and/or comment on it, if you are interested. Andy -- You received this mess

how to translate this snippet from Scheme to Clojure

2012-08-29 Thread Andy Coolware
> (define (A) 1) # > A # > (A) 1 > (define ((A)) 1) # > A # > (A) # > ((A)) 1 Just wondering ... Andy -- 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

Re: how to translate this snippet from Scheme to Clojure

2012-08-30 Thread Andy Coolware
On Wed, Aug 29, 2012 at 10:14 PM, Baishampayan Ghose wrote: > Something like this? > > (defn A [] > 1) > > (defn A [] > (fn [] 1)) That would work but I wonder about how "(define ((A)) 1)" is evaluated in Scheme and why similar and easier approach is not possible in Clojure? -- You received

Re: how to translate this snippet from Scheme to Clojure

2012-08-30 Thread Andy Coolware
I use Rocket Scheme. The question was inspired by "Structure and Interpretation" http://www.youtube.com/watch?v=2Op3QLzMgSY at almost end of the video @ 1:11:11 I actually think that "((A))" is more just a symbol name since apparently you define "A" not a "((A))"/ It is more like a recursive/ne

Fwd: how to translate this snippet from Scheme to Clojure

2012-08-30 Thread Andy Coolware
Let's focus on that for a sec: (define ((A)) 1) is the same as (define (A) (lambda () 1));; defines procedure "(A)" I wonder if you meant >>defines procedure "((A))"<< instead. Assuming that, if "((A))" is just a name of the procedure, then "A" and "(A)". Should not evaluate at all. Appa

Re: Question about sets

2012-09-04 Thread Andy Fingerhut
icate keys, although sorted-map does not for some reason (probably an oversight when the duplicate key checks were added?). The following works, but is a bit clunky: (assoc {} a 5 b 7) Thanks, Andy On Sep 3, 2012, at 7:49 PM, Sean Corfield wrote: > On Mon, Sep 3, 2012 at 6:06 PM, Mark Engelber

Re: Question about sets

2012-09-04 Thread Andy Fingerhut
& map literals were to quietly allow duplicates, with a new compiler option like the following that would give the error, for those that like it? (set! *error-on-duplicates* true) Perhaps it is starting to look like feature creep, but I thought I'd throw out the idea to see what happens.

Re: Question about sets

2012-09-04 Thread Andy Fingerhut
On Sep 4, 2012, at 4:53 PM, Jim - FooBar(); wrote: > On 04/09/12 21:02, Andy Fingerhut wrote: >> >> Stuart Halloway mentioned the idea of having two kinds of set/map >> constructor functions, one kind which quietly eliminates duplicates, another >> which throws

Re: Question about sets

2012-09-05 Thread Andy Fingerhut
I've copied and pasted Mark's arguments to the Wiki page here: http://dev.clojure.org/display/design/Allow+duplicate+map+keys+and+set+elements Andy On Sep 5, 2012, at 6:41 AM, Stuart Halloway wrote: > Hi Mark, > > Thanks for extracting a summary of the conversation so far

Re: A Performance Comparison of SBCL & Clojure

2012-09-07 Thread Andy Fingerhut
program in assembler? For that matter, who wants to write large programs in C? Andy On Aug 28, 2012, at 7:02 AM, Ben Mabey wrote: > Thanks Andy for the insightful report! I knew you and others have worked > hard on the benchmarks so this kind of analysis is very helpful. > > Thanks fo

Re: Question about sets

2012-09-07 Thread Andy Fingerhut
occurrence of the same key. All constructor functions explicitly say this in their doc strings. Andy On Sep 7, 2012, at 2:06 PM, Rich Hickey wrote: > > On Sep 7, 2012, at 3:35 PM, Sean Corfield wrote: > >> On Fri, Sep 7, 2012 at 10:49 AM, Rich Hickey wrote: >>> I&#x

Re: Question about sets

2012-09-09 Thread Andy Fingerhut
I think I may have figured it out. New patch attached to ticket CLJ-1065 that should eliminate run-time checks for duplicate map keys, for those maps whose keys are all compile-time constants. Andy On Sep 8, 2012, at 4:38 PM, Andy Fingerhut wrote: > Rich: > > I'm not sure wh

Re: ClojureDocs and Clojure 1.4

2012-09-11 Thread Andy Fingerhut
.4 to ClojureDocs is not high on their list of priorities. They do say you can fork their code and send them a pull request if you like, but it would probably be best to first find out whether they are actually in the process of rewriting the server code. Andy On Sep 11, 2012, at 4:01 AM, Wo

Re: Question about sets

2012-09-11 Thread Andy Fingerhut
ssary check for unique keys? And by the word "restore" do you mean to imply that it was this way at one time before? Thanks, Andy On Sep 8, 2012, at 5:29 AM, Rich Hickey wrote: > Thanks! > > I'm still interested in patch for recommendation #3: > > Restore the fa

Re: ClojureDocs and Clojure 1.4

2012-09-12 Thread Andy Fingerhut
modify the code running on that new site. CCing Zachary Kim, in hopes he will reply and let us know what he would recommend. Andy On Sep 12, 2012, at 8:35 AM, Eric MacAdie wrote: > I am also interested in helping out with ClojureDocs. > > - Eric MacAdie > > On Wed, Sep 12, 2

Re: Using println inside a for print out some "nil"

2012-09-16 Thread Andy Fingerhut
es of side effects, and the return value is unimportant, try 'doseq' instead. Andy On Sep 13, 2012, at 6:54 PM, Giuliani Sanches wrote: > Hi guys, > > Maybe the subject does not give a got clue about my question, so here's a > snippet of code: > > http://pasteb

Re: Evolving the Clojure contribution process and goals

2012-09-18 Thread Andy Fingerhut
motivate you, go for it. Bonus points if you have a team of people working on it that can keep it going even as people move on to other projects in their lives. Andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: Evolving the Clojure contribution process and goals

2012-09-19 Thread Andy Fingerhut
On Sep 19, 2012, at 12:11 AM, kovas boguta wrote: > On Wed, Sep 19, 2012 at 1:12 AM, Andy Fingerhut > wrote: >> On Tue, Sep 18, 2012 at 9:01 PM, Paul deGrandis >> wrote: >>> >>> 1.) Clojure.org should have a better host of documentation, especially f

Re: ref to array suddenly changes type

2012-09-20 Thread Andy Fingerhut
son that Clojure's STM is able to be implemented as it is, is because *only* the refs, agents, and atoms can change, but all of the things they "point to" are immutable. Feel free to ask a followup question if that didn't make sense :-) Andy On Sep 20, 2012, at 1:40 PM, Pio

Re: Which power function is right for Clojure?

2012-10-01 Thread Andy Fingerhut
It depends. Are you trying to optimize for speed? Teaching a particular style of programming? Code size? Range of input values handled correctly? Time to write it? Something else? Andy On Oct 1, 2012, at 4:45 PM, Grant Rettke wrote: > (ns power.examples) > > (defn non-acc-pow

Re: performance in versions >= 1.4.0

2012-10-02 Thread Andy Fingerhut
Have you run a profiler on your tests to see where the time is spent with Clojure 1.3 vs Clojure 1.4? Andy On Oct 2, 2012, at 4:24 PM, Karsten Schmidt wrote: > Today, I decided to finally switch one of my projects from Clojure > 1.3.0 to 1.4.0 (and test driving the 1.5.0 snapshot) but quic

Re: interleave

2012-10-03 Thread Andy Fingerhut
I don't know the reason for the current implementation rather than your suggested one, but at least on the comment about 0 or 1 arguments has a ticket for it: http://dev.clojure.org/jira/browse/CLJ-863 Andy On Oct 3, 2012, at 11:03 AM, Marc Dzaebel wrote: > clojure.core/interleave

Re: Question about sets

2012-10-04 Thread Andy Fingerhut
committed. Andy On Sep 12, 2012, at 3:22 AM, Rich Hickey wrote: > > On Sep 8, 2012, at 7:38 PM, Andy Fingerhut wrote: > >> Rich: >> >> I'm not sure what you mean by the not-fastest-path possible that exists in >> today's Clojure code, so if you get a ch

Re: ANN: a Clojure docs site, and github organization

2012-10-05 Thread Andy Fingerhut
ld you be able to describe them briefly? Curious to know what is planned there. Thanks, Andy -- 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

Re: ANN: a Clojure docs site, and github organization

2012-10-06 Thread Andy Fingerhut
isn't terribly arcane. Andy On Oct 6, 2012, at 9:02 AM, Jay Fields wrote: > The CA process isn't what stops me from contributing, the post a patch > to Jira is what seems broken to me. I don't even remember how to > create a patch. Clojure is on github - we live in a for

Re: ANN: a Clojure docs site, and github organization

2012-10-06 Thread Andy Fingerhut
quick-and-reliable-but-$200. Those are significantly higher barriers than for developers based in the USA and Canada, where it is a 44 cent stamp and a few days to get there quite reliably. Andy On Oct 6, 2012, at 8:40 AM, Softaddicts wrote: > This insistence on the so-called "CA pain

Re: lein run deadlocking?

2012-10-08 Thread Andy Fingerhut
Which OS are you using? Which JVM? (i.e. output of "java -version") Andy On Oct 8, 2012, at 5:25 PM, Brian Craft wrote: > I'm noticing that very regularly "lein run" will hang. Where it hangs is > variable. At the moment it's right here: > &

Slightly updated Clojure cheatsheet available

2012-10-08 Thread Andy Fingerhut
the bottom of this page: http://clojure.org/cheatsheet The version on clojure.org will likely be updated soon. Andy -- 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: Slightly updated Clojure cheatsheet available

2012-10-08 Thread Andy Fingerhut
ivation to modify the program for that purpose, unless it is very similar to one of those. Andy On Oct 8, 2012, at 7:25 PM, Grant Rettke wrote: > On Mon, Oct 8, 2012 at 8:41 PM, Andy Fingerhut > wrote: >> The only changes since the previous version are to add a mention of &g

Re: lein run deadlocking?

2012-10-09 Thread Andy Fingerhut
his behavior, though: https://github.com/ztellman/gloss/pull/1 Andy On Oct 9, 2012, at 9:00 AM, Brian Craft wrote: > This is reproducible on ubuntu with a different jre: > > java version "1.6.0_24" > OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1)

Re: Bug: incorrect stack trace for function names containing ->

2012-10-09 Thread Andy Fingerhut
Clojure itself creates symbols with -> in them (I think defrecord creates functions named by such symbols). Andy On Oct 9, 2012, at 6:12 AM, Mauricio Aldazosa wrote: > Hi there. > > According to the reader documentation (http://clojure.org/reader), it seems > that &#x

Re: What is this function?

2012-10-09 Thread Andy Fingerhut
ojure/clojure.git Or any other method you like to get it from here: http://github.com/clojure/clojure You can also see it from the REPL with: (source clojure.core/spread) Andy On Oct 9, 2012, at 10:03 AM, Larry Travis wrote: > As participants in this googlegroup have often observed, an excel

Re: ANN: a Clojure docs site, and github organization

2012-10-10 Thread Andy Fingerhut
ect anyone to make these changes, but because you sound like you might know the answer, i.e. maybe you have been in communication with those people. Thanks, Andy -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: where is pvmap?

2012-10-13 Thread Andy Fingerhut
d in an older version of Clojure from about 2 years ago, I think. Andy -- 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 patien

ANN: Clojure 1.3 and 1.4 Cheat Sheet v7

2012-10-14 Thread Andy Fingerhut
My recent updates prompted me to go through my to do list of enhancement ideas for the Clojure cheat sheet, and I did some of them. It is now up in the usual places: http://clojure.org/cheatsheet Several other versions, including ones with tooltips containing doc strings: http://jafingerhut.gi

Re: ANN: Clojure 1.3 and 1.4 Cheat Sheet v7

2012-10-14 Thread Andy Fingerhut
tsheet myself. Alex Miller has been doing it for me, since he has the necessary permissions to do it. I believe he looked into publishing the tooltip version there but had some kinds of difficulties figuring out how. Perhaps someone else with permissions to edit clojure.org could help look into

Re: Evaluating an anonymous function with closure

2012-10-15 Thread Andy Fingerhut
ues you do not yet know until run time. This trick won't help you in that case. For the case of arithmetic on compile-time constants, I believe that many C, Java, etc. compilers already perform the arithmetic at compile time. Andy -- You received this message because you are subscrib

Re: ANN: Clojure 1.3 and 1.4 Cheat Sheet v7

2012-10-16 Thread Andy Fingerhut
2, I haven't attempted to reorder the content to fit more nicely into 3. Do you have any use cases for the PDF that the HTML won't do? Andy On Oct 16, 2012, at 7:15 AM, Nick Klauer wrote: > I noticed that the PDF downloads seems a bit off. At least in my case, the > standa

Re: Cdr car

2012-10-16 Thread Andy Fingerhut
re changed -- first and rest work on all kinds of data structures besides lists, and return implementations of a sequence abstraction, not necessarily pointers to cons cells. Andy On Oct 16, 2012, at 3:40 PM, Curtis wrote: > Hello - I was familar with lisp years ago and am very new to cloju

Re: Cdr car

2012-10-17 Thread Andy Fingerhut
(car my-list) ...). No setf. Instead you make new data structures that are like existing ones, but with changes to them (like a new first/last element, or a new key/value pair in a map). Andy On Oct 17, 2012, at 11:16 AM, Curtis wrote: > Cons seems to be strange > > How do i use

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

2012-10-18 Thread Andy Fingerhut
about whether this enhancement should be included in the yet-to-be-released Clojure 1.5: http://dev.clojure.org/jira/browse/CLJ-1025 Andy On Oct 18, 2012, at 4:12 AM, Henrik Mohr wrote: > Hi there! > > I'm wondering why ClojureScript seems to handle international characters

Re: How to Aliasing Java Class Names?

2012-10-21 Thread Andy Fingerhut
As mentioned in a recent thread "class name clashes on importing classes of same name from different Java package", you can use the classes with fully qualified names without importing them at all. I am not aware of any way to alias them. Andy On Oct 21, 2012, at 6:57 PM, JvJ wro

Re: core.logic for constraint logic programming

2012-10-24 Thread Andy Fingerhut
s SourceForge, it is also available as a MacPorts package called lp_solve, or an Ubuntu 12.04 package "lp-solve" (probably Debian and other Ubuntu versions, too, but I only checked that one). Andy On Oct 24, 2012, at 2:17 PM, nathanmarz wrote: > Cool, thanks for the quick response. We&#x

Re: (if (io/file path-to-session-file) -- returns false though file exists

2012-10-25 Thread Andy Fingerhut
ays returns false in your code example, because (io/file "string") returns a Java File object even if there is no such file, and Clojure if evaluates that as true, not false. Andy On Oct 25, 2012, at 3:21 PM, larry google groups wrote: > So, again, I'm trying to use Clojure t

Re: monads

2012-10-26 Thread Andy Fingerhut
with several examples of those kinds of problems. Andy On Oct 26, 2012, at 9:06 AM, Brian Craft wrote: > I've read about four tutorials on monads so far, but it still escapes me. > > In fact, I'm still not sure what problem it solves. I'm familiar with the > problem of hav

Re: with-open and line-seq

2012-10-26 Thread Andy Fingerhut
clojure-contrib/blob/061f3d5b45657a89faa335ffa2bb80819f2e6918/src/main/clojure/clojure/contrib/io.clj#L302 Andy On Oct 26, 2012, at 5:23 PM, Devin Walters wrote: > I usually wind up with the line-seq from old contrib. Could you be more clear > about what isn't satisfying about that? For me it usually boils down to:

Re: Cdr car

2012-10-29 Thread Andy Fingerhut
video on blip.tv, it would be cool if they did that. Andy On Oct 17, 2012, at 12:10 PM, Jeff Heon wrote: > If I may suggest the following presentation: > > http://blip.tv/clojure/clojure-for-lisp-programmers-part-1-1319721 > http://blip.tv/clojure/clojure-for-lisp-programme

Re: Clojure CA over email thread on clojure-dev

2012-10-30 Thread Andy Fingerhut
places in the world than before, and might meet the legal criteria that the Clojure/core team wants to preserve (whatever that might be). I'm not saying that is what the process will become, but it is one among many possibilities. Andy On Oct 30, 2012, at 2:51 PM, Michael Klishin wrote: >

Re: Clojure CA over email thread on clojure-dev

2012-10-30 Thread Andy Fingerhut
On Oct 30, 2012, at 3:58 PM, Michael Klishin wrote: > 2012/10/31 Andy Fingerhut > I don't think the idea of the discussion is to go by majority vote > > It's not about making decisions by majority vote, Andy. It is about > making sure many members of the community

Re: Fail to run dynamic binding code with Clojure1.4

2012-10-30 Thread Andy Fingerhut
e 1.3 and later. Andy On Oct 30, 2012, at 5:42 PM, Satoru Logic wrote: > Hi, all. > > I am reading Clojure in Action. > > In the "scope" section of Chapter3, there are examples like this: > > defn twice [x] > (println "original function") > (

Re: What's the difference between `seq` and `lazy-seq`?

2012-11-02 Thread Andy Fingerhut
ar case of (seq (range 5)) I believe it will evaluate the entire sequence because of a performance optimization where range returns a "chunked" lazy sequence that produces values in chunks of 32 elements at a time). Andy On Nov 2, 2012, at 7:37 AM, Satoru Logic wrote: > > > O

Re: Java-to-Clojure source translation?

2012-11-04 Thread Andy Fingerhut
re of the code, not just local method-by-method or function-by-function changes. This takes much more time, and for programs with any complexity at all you'd have to do lots of re-testing to ensure your Clojure implementation was correct, but the end result should be more maintainable. Andy

Re: Proposal/request: Give clojure.core/conj a unary implementation

2012-11-04 Thread Andy Fingerhut
I created CLJ-1103 and attached a patch that makes this change, as well as related changes to conj! assoc assoc! and dissoc! (dissoc, disj and disj! already handled these cases). http://dev.clojure.org/jira/browse/CLJ-1103 Andy On Nov 4, 2012, at 5:52 AM, Jonathan Fischer Friberg wrote: >

Re: Slow image convolution

2012-11-09 Thread Andy Fingerhut
ess, mind you. I haven't tried out smaller experiments to see whether >that is true in general, or whether it is something about this particular >function that causes that. Andy On Nov 8, 2012, at 6:50 PM, Cedric Greevey wrote: > I can now add that the 30 taken by the cache lookup

Re: Slow image convolution

2012-11-09 Thread Andy Fingerhut
code in Java and call it from Clojure. Java is to Clojure as in-line assembler is to C, except that it isn't in-line :-) Andy On Nov 9, 2012, at 8:57 AM, Yakovlev Roman wrote: > what a mess if it is a function it's huuge did you try split it to useful > chunks ? it's just

Can anyone explain this behavior of clojure.java.shell/sh ?

2012-11-09 Thread Andy Fingerhut
h, and it is stopping when waiting for the evaluation of either @out or @err in the final line of the function. If I do the same commands above on Mac OS X, with "open" instead of "xdg-open", it all works as I expect. Any clues? Thanks, Andy -- You received this message beca

Re: Can anyone explain this behavior of clojure.java.shell/sh ?

2012-11-10 Thread Andy Fingerhut
CLJ-896 is committed, which is the reason I was testing this and finding the odd behavior. http://dev.clojure.org/jira/browse/CLJ-896 Thanks, Andy On Nov 10, 2012, at 12:26 PM, Aaron Cohen wrote: > I'm pretty sure xdg-open ends up being a thin wrapper that delegates > to your des

Re: Why does re-matcher return a mutable object?

2012-11-14 Thread Andy Fingerhut
t;, even though internally they mutate data. By "purely functional at the API level", I mean that the only mutable data accessed by the function is allocated by it, and becomes garbage before the function returns. re-pattern, re-matches, re-seq, clojure.string/replace, clojure.string/repla

Re: Proposed change to let-> syntax

2012-11-15 Thread Andy Fingerhut
Check git commit logs from a month or so ago. Rich Hickey committed it. Andy Sent from my iPhone On Nov 15, 2012, at 2:41 PM, Mark Engelberg wrote: > Where did you find the proposal? I can't find any info about let-> > > -- > You received this message because you a

Re: [ANN] lein-clojuredocs 1.0.2, cadastre 0.1.1, and Eisago

2012-11-16 Thread Andy Fingerhut
ere are, it would be good to mention that the line should be removed after running clojuredocs. Thanks, Andy On Nov 16, 2012, at 7:58 AM, Lee Hinman wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > I'm pleased to announce three different projects, all relate

Re: Clojure to Haskell Compiler

2012-11-17 Thread Andy Fingerhut
rograms to take much advantage of Haskell's library, unless you basically created an "Object" type in Haskell that could hold objects of any type. Perhaps clojure-py might be a better fit? https://github.com/halgari/clojure-py Anyway, some things you might be interested in looking at.

Re: Clojure Recursion (loop-recur) Questions

2012-11-19 Thread Andy Fingerhut
infrastructure. They're calling scheme is nothing like Java's, right? You have to pass additional things, or trampoline, or whatever. Clojure does none of that. Clojure has pedal to the metal calling conventions that match Java's, so I don't have tail recursion, because you

<    5   6   7   8   9   10   11   12   >