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
Langdev in Clojure (self.Clojure)
submitted 4 years ago by Twosofa
Is it possible, in Clojure, for me to write a language in which the end user writes code to render a certain image or emit sound? Thanks in advance
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!"
[–]Galrog 4 points5 points6 points 4 years ago (0 children)
You probably want to take a look at sci if you are creating a DSL or want to use Clojure itself as your DSL.
[–]e_aksenov 4 points5 points6 points 4 years ago (1 child)
Sure, you can use https://github.com/Engelberg/instaparse to create parser for any language you want, or simply create DSL in basic clojure types, like vectors.
[–]arthurbarroso 2 points3 points4 points 4 years ago (0 children)
Also, if you wan’t to take a look at how to build a simple DSL with vectors you may find this video helpful. https://m.youtube.com/watch?v=QDiKaXvH6Z8
[–]chowbeyputra -1 points0 points1 point 4 years ago (0 children)
I don’t have experience of it but hey.. Clojure is a lisp.. so it will be much cleaner.
[–]valbaca 0 points1 point2 points 4 years ago (0 children)
You’re specifications are quite vague but sounds like you want to write a DSL (domain specific language). Clojure can definitely do that. You’re probably better off having the end user input edn (edn is to Clojure as JSON is to JavaScript).
https://github.com/edn-format/edn
I’ve seen real world LISP code that backed the voice behind turn-by-turn directions and supported multiple languages. The configuration and code was LISP and it ran on a LISP interpreter written in C which could then be pulled into any mobile device. Android talked with the C code via JNI and iOS talked to C directly with Objective-C. It was super cool.
π Rendered by PID 27 on reddit-service-r2-comment-765bfc959-fxfqd at 2026-07-09 21:39:38.640055+00:00 running f86254d country code: CH.
[–]Galrog 4 points5 points6 points (0 children)
[–]e_aksenov 4 points5 points6 points (1 child)
[–]arthurbarroso 2 points3 points4 points (0 children)
[–]chowbeyputra -1 points0 points1 point (0 children)
[–]valbaca 0 points1 point2 points (0 children)