logo

ClojureScript Gets Async/Await

Posted by Borkdude |5 hours ago |23 comments

osener 2 minutes ago

Surprised to see Clojure/ClojureScript come up on socials more often all of a sudden. I used it professionally for a few years around ~2012 and like many others moved off JVM and moved into typed [functional] languages.

Is the sudden buzz due to agentic coding? Does it rip through code faster with no type checking and fewer invalid syntax errors and reserved keywords to deal with? are we in for a sexp resurgence?

midnight_eclair 4 hours ago[1 more]

fun fact: clojurescript had support for asynchronous paradigm through core.async library (CSP style) long before async/await landed in javascript itself.

edit: i'm in no way trying to diminish the value of this release, just pointing out how cool it is that you can get new language features before they are available in the host language by just adding a library to your dependencies. clojure is awesome!

timwis 3 hours ago[4 more]

I wish an alternative to JS for the front end would catch on and be something more than obscure... I'd love to use something like clojurescript, but I struggle to imagine doing so for anything but a personal side project :/ Maybe this is easier to adopt if you're already a clojure shop for the backend?

boczez 2 hours ago

Massive, cheers dude and congrats on the release. I’d say it’s such a good time to get into Clojure/Script but, well … it has been for a while!

nbardy 3 hours ago[2 more]

Seems like wrapping async await functions with CSP was a better way to handle this . Clojure already had a nicer pattern for this

slifin 2 hours ago

This is important for JavaScript interop without having to include additional libraries very cool and was missing for a long time

Congratulations on the release :-)

rockyj 2 hours ago[1 more]

Nice! Now also get rid of the elephant in the room - "Google Closure Compiler" and then we can really celebrate.

zerr 4 hours ago[1 more]

For the moment thought the article was about CoffeeScript... But it already supports async/await :)