Tags "clojure" Result

Are there any good Clojure benchmarks?

Edit: The Clojure benchmarks are up on the Benchmarks Game. I have made this question community wiki and invite others to keep it updated. Is anyone aware of benchmarks of Clojure's performance? I have done some of my own (although nothing too formal) and it didn't fair too well in comparison to other functional languages (tried Haskell an

it1352 2 2019-05-13

Is there a colored REPL for Clojure?

I'd like to get a colored REPL for clojure code, similar to what you can do with IRB for Ruby. Are there any libraries or settings for user.clj that provide automatic coloring of the REPL? Example IRB: Solution I do not know of any way to have the basic Clojure REPL, as started by something like java -cp clojure.jar clojure.main, do syntax hig

it1352 3 2019-05-13

Porting Common Lisp code to Clojure

How practical is it to port a Common Lisp application to Clojure? To be more specific, what features exist in Common Lisp that do not exist in Clojure, and would have to be re-written? Solution There's a list on clojure.org of differences between Clojure and other Lisps. Some other things I've noticed using Clojure: Idiomatic Clojure leans heav

it1352 0 2019-05-13

How to invoke Clojure function directly from Java

I have Clojure function generate-id. Source code: (ns url62.core) ... (defn generate-id [] (int-to-base62 (java.math.BigInteger. (clojure.string/replace (str (java.util.UUID/randomUUID)) "-" "") 16))) https://github.com/8protons/url62/blob/master/src/url62/core.clj I need to execute this function from Java. I have try with code like t

it1352 4 2019-05-22

A gentle tutorial to Emacs/Swank/Paredit for Clojure

I am moving to Emacs to work on Clojure/Lisp. What is all the information I need to setup on Emacs to be able to do the following? automatic matching/generation of corresponding closing brackets autoindent Lisp/Clojure style, not C /Java style Syntax highlighting Invoking REPL To be able to load a part of code from file into the REPL and evaluat

it1352 2 2019-05-16

A gentle tutorial to Emacs/Swank/Paredit for Clojure

I am moving to Emacs to work on Clojure/Lisp. What is all the information I need to setup on Emacs to be able to do the following? automatic matching/generation of corresponding closing brackets autoindent Lisp/Clojure style, not C /Java style Syntax highlighting Invoking REPL To be able to load a part of code from file into the REPL and evaluat

it1352 0 2019-05-13

Clojure editor/IDE recommendations on Mac OS X

I am starting to learn the Clojure programming language. Are there any recommendations for Clojure editors/IDEs on Mac OS X? Update 2009-09-23: The Clojure space has changed tremendously since I originally posted this question. Many of the links below, especially those that refer to clojure-mode with Emacs, are out-of-date. The best Clojure IDE I

it1352 0 2019-05-13

clojure and scala interop

I am familiar that scala classes / objects can be called from clojure, as scala compiles to bytecode, and clojure is comfortable with it. However is it as painless calling clojure functions, and importing namespaces from scala ? I would like to mix the excellent lift framework and clojure, basically call clojure code from lift. Solution Semant

it1352 4 2019-05-13

Problem compiling in Clojure

I've been trying to compile a very simple test.clj in Clojure without any success. I have a thread on the Clojure Google Group with several responses, but nothing has helped. To quickly summarize, here is my clojure file: (ns test.test (:gen-class)) (defn -main [gre] (println (str "Hello " gre))) Basically it's the example file pr

it1352 0 2019-05-13