What Is Clojure?
Clojure is a Lisp family language, open source, dynamic type system and general purpose programming language developed for the Java Virtual Machine (JVM) and created by Rich Hickey.
Clojure is a compiled language.
Clojure is a dialect of Lisp and a powerful macro system.
Clojure is a wonderfully simple language and I hope you love it.
Clojure is open source, dynamic type system and general purpose programming language.
What Are the Languages Fundamentals?
Clojure is based on Lisp and general purpose programming language.
Clojure is functional programming language
Clojure is dynamic type system
Clojure is runs on the JVM
Clojure is open source
How do I install Clojure?
Clojure is a library managed as part of a project and Leiningen is the user interface to that library.
Installation on Mac using brew -
brew install clojure
If you already installed then upgrade with latest version -
brew upgrade clojure
Installation on Windows - Not yet available!
Installation on Linux - Installed- curl, rlwrap, and Java and it contain the dependencies.
curl -O https://download.clojure.org/install/linux-install-126.96.36.1996.sh
chmod +x linux-install-188.8.131.526.sh
How to run Clojure?
Local build -
git clone https://github.com/clojure/clojure.git
Then start the REPL with the local jar -
java -jar clojure.jar
Try Clojure online - Provides a browser based Clojure repl for interactive exploration.
How do I create a Clojure Project?
You can use Leiningen to generate the scaffolding of a new Clojure application-
lein new app project_name
Generating a project called “project-name” and it’s based on the “app” template.
Does It have a build Automation System?
It helps developers to scaffold new projects, resolve dependencies, run tests, etc.
How To Create Your First Project?
Create your first Clojure program and looks like-
lein new app my-proj
# Have a look at the "-main" function in src/my_proj/core.clj.
Reference - https://clojure.org/guides/getting_started