Re: Why is Clojure slow? (fibonacci)

2017-08-13 Thread Kevin Baldor
You could also memoize. Sent from my iPad > On Aug 13, 2017, at 7:27 AM, James Reeves wrote: > > With type hints your implementation should run faster: > > (defn fib ^long [^long n] > (if (< n 2) > n > (+ (fib (- n 2)) (fib (- n 1) > > What does your Java

Re: Leiningen template for pure Clojure/ClojureScript project ?

2017-07-25 Thread Kevin Baldor
I haven't used Clojurescript, so I can't address that part of your question. For the Clojure part, you can execute the contents of a file with java -cp clojure.jar clojure.main file.clj On Tue, Jul 25, 2017 at 9:09 AM, Khalid Jebbari wrote: > Hello, does anyone

Re: Modern opengl bindings in clojure

2017-07-14 Thread Kevin Baldor
I see that it's uploaded to clojars so it might be a bit late to ask, but what is the convention on naming libraries like this? I'm used to seeing something like clj-gl for libraries that provide a Clojure wrapper around an existing library. Regardless, this is awesome and I hope to play with it

Re: Clojure <--> LISP

2017-07-10 Thread Kevin Baldor
And for good and ill, being hosted means that some of the semantics are affected by the host language. There is a discussion of differences between Clojure and Clojurescript here https://www.clojurescript.org/about/differences and I'm sure there's a similar set for differences between Clojure on

Re: error in nrepl

2017-06-23 Thread Kevin Baldor
. Maybe I can find some time to upgrade my whole Emacs setup next > weekend. It is a bit out of date. > > I'm curious if folks think it is easier to work with Emacs on a Linux > machine, or on a Mac? > > > > On Friday, June 23, 2017 at 5:39:42 PM UTC-4, Kevin Ba

Re: error in nrepl

2017-06-23 Thread Kevin Baldor
Have you tried following the instructions at http://www.braveclojure.com/basic-emacs/ ? It's a bit heavy-handed (replacing your entire .emacs directory), but it might give you a starting point to figure out how to integrate it into your emacs setup. On Fri, Jun 23, 2017 at 4:36 PM,

Re: Spec without global registry?

2017-06-12 Thread Kevin Baldor
I'm interested in the answer to whether it is just an accident of implementation or if there is some compelling reason for the global registry. I'm still new to Clojure and it would be good to hear the tradeoffs and design process that led to the current implementation. On Mon, Jun 12, 2017 at

Re: What makes Clojure Clojure?

2017-03-05 Thread Kevin Baldor
I feel like it should be obvious, but what are the acronyms (initialisms?) clj and cljc? I'm assuming that cljs is ClojureScript. Sent from my iPhone > On Mar 4, 2017, at 6:46 PM, John Newman wrote: > > Yeah, only Rich can really answer that question, right? :) But for me,