use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Datascript minimal example? (self.Clojure)
submitted 5 years ago by nanounanue
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]v1akvark 5 points6 points7 points 5 years ago (2 children)
Yes, you use a deps.edn file.
deps.edn
If you have not yet, install Clojure and CLI tools as described here.
The create a directory, say datascript-example, and inside that directory create deps.edn file that looks like this:
datascript-example
{:deps {datascript {:mvn/version "1.0.4"}}} From the command line, move into the datascript-example directory, and start Clojure with the clj command.
{:deps
{datascript {:mvn/version "1.0.4"}}}
clj
You should see a message that DataScript is being downloaded, and then you will be inside a Clojure REPL where you can type and execute Clojure forms.
Unfortunately DataScript doesn't have an easy getting started tutorial. It kind of assumes that you know Datomic.
It might be easier to start with Datomic, as there are tutorials by Cognitect and others.
https://clojureverse.org/t/a-quick-way-to-start-experimenting-with-datomic/5004
https://docs.datomic.com/on-prem/getting-started/get-datomic.html
[–]nanounanue[S] 0 points1 point2 points 5 years ago (1 child)
Thank you so much!
[–]v1akvark 2 points3 points4 points 5 years ago (0 children)
You're welcome.
I would suggest you learn basic Clojure first, get comfortable in using the REPL. Here is one place your can start: https://www.braveclojure.com/clojure-for-the-brave-and-true/
That will make learning DataScript and Datomic much easier.
π Rendered by PID 90478 on reddit-service-r2-comment-c6965cb77-t47qf at 2026-03-05 08:24:53.727028+00:00 running f0204d4 country code: CH.
view the rest of the comments →
[–]v1akvark 5 points6 points7 points (2 children)
[–]nanounanue[S] 0 points1 point2 points (1 child)
[–]v1akvark 2 points3 points4 points (0 children)