r/Clojurescript

582 archived posts · Sep 2011 – May 2026

Random post

u/vitorqb23•

4 months ago I started a personal project which is basically my private playground for learning clojurescript. Today I want to share my personal feelings about this lovely language. By no means I want to sound like I'm the owner of the truth - by the contrary, I just want to share a newbie perspective with the community. So if you are an experienced clojurescript developer, don't feel offended by the things I consider bad - they are just difficulties I found and places where I think the language and ecosystem can improve.

I will be talking about Clojurescript + Reagent for web development.

The good:

​

Immutable data structures

Cljs immutable data structures are a p

368

u/OstravaBro•

I'm comfortable with Clojure. But I have no idea where to start when it comes to clojurescript! I see some places say lein and figwheel, I see some places say shadow-cljs.

Figwheel has a good tutorial and the docs seem decent enough, I haven't looked into shadow-cljs enough to know if they are comparable or not.

I need to learn react as well, what is reagent?

Can someone point to some good starting points or books that assume I know Clojure and will show me how in CLojurescript you lay out a project, get it up and running in a dev environment, how the html and the clojurescript play together, how to publish the site. How to get hot-reloading working. How to interop with javascript. You k

2615


u/gtgoku•

I have been trying to learn clojurescript and towards that effort I tried building an app that would be atleast mildly useful (instead of an app that displays foobar or says hello).

Towards that goal I built saved-for-reddit, a javascript application that allows you to search through your reddit saved posts and filter them based on subreddits, etc.

Please checkout the application here.

The source code is available here on github.

I know that the search bar in the app doesnt work yet. That was however a low priority issue, since all the posts can be searched using your browser's find function (`c

217


u/piotr-yuxuan•

Hi Reddit ❤️

When compiling cljs into JS, it appears code isn't properly tree-shook. Vast packages are entirely included even if only a tiny part of them is required. As you can see in this minimal example repo, bundle size varies greatly from 792 KB to 5.74 MB after I import and use one single Material-UI icon.

It is a known issue and common solutions exist in JS-land, which deal with the library import in ES6. These solutions appear not to be (easily) applied to cljs code. Any general idea about how to

170