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
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
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
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
. 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
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,
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
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,