Create lists from columns
I have data in a text file formatted like this:
Clojure state and persistence
I’m learning Clojure to see if it’s something I can leverage at my current job, and more importantly, how I can convince my bosses that Clojure has a ‘killer feature’ over java that makes it worth the investment1.
What limitations does the JVM impose on tail-call optimization
Clojure does not perform tail call optimization on its own: when you have a tail recursive function and you want to have it optimized, you have to use the special form recur
. Similarly, if you have two mutually recursive functions, you can optimize them only by using trampoline
.
For csv database extracts, how do map keys not create a dependency?
A lot of my work is done with .csv extracts (reports) from databases. As I have been programming in Clojure, I’ve received comments that relying on vector indexes creates dependencies. I understand why, and concur.
Does Clojure have continuations/coroutines/etc?
I started programming with Python, and I was really confused by concepts like coroutines and closures.
What does using (vec col) or (vector arg1 & args) cost?
I am working through some Lisp exercises using Clojure. If I were to convert Lisp lists to Clojure vectors, solving some of the problems would be simpler, so here is my question:
Understanding clojure keywords
I’m taking my first steps with Clojure. Otherwise, I’m somewhat competent with JavaScript, Python, Java, and a little C.
Alternate method to dependent, nested if statements to check multiple states
Is there an easier way to process multiple true/false states than using nested if statements? I think there is, and it would be to create a sequence of states, and then use a function like when
to determine if all states were true, and drop out if not. I am asking the question to make sure there is not a preferred Clojure way to do this.
Setting up Clojure Project And Sub Projects
This is primarily a lein question about setting up a major project and its sub-projects, and is not intended to be a discussion question. Instead, I am interested in either a pointer to documentation or to a Clojure/lein best practices link.
Can Clojure’s thread-based agents handle c10k performance?
I’m writing a c10k-style service and am trying to evaluate Clojure’s performance. Can Clojure agents handle this scale of concurrency with its thread-based agents? Other high performance systems seem to be moving towards async-IO/events/greenlets, albeit at a seemingly higher complexity cost.