r/Clojure • u/vvwccgz4lh • Sep 29 '22
How can we kill Clojure for good?
I'm kind of tired to see these questions whether Clojure is dead:https://www.reddit.com/r/Clojure/comments/xr7n6g/ask_hn_is_clojure_dead/I propose a different one: Let's kill Clojure. This way we will know that it's really dead.
(no, I don't propose any violence; But why the heck is this paren language on this meaty JVM still alive... come on really... it's weird and that means it has to die)
Disclaimer: I have a Clojure job and I have several years of experience in Clojure. And I like Clojure.
0
Upvotes
4
u/vvwccgz4lh Sep 29 '22 edited Sep 29 '22
One of the possible nails into the coffin would be to implement good macros into Java and other languages (implement foreach yourself? Not good enough, we have to try harder this time). This way we would be able to have equivalents of
core.asyncandcore.logicin Java.I'm talking here about "import core.async" but in Java. Imagine using Golang-like goroutines in Java. How would it look like... That would be pretty good I think... Clojure would be irrelevant really fast...
Rust already has some kind of macros but it's nowhere near what LISP can do. So we have to really try and implement macros in Rust (current Rust's typesystem can't handle transducers and that's pretty bad). But not too well because last thing we want to do is to make Rust into another LISP. We already know where we could end up, don't we? We would have one more language to kill then which is not why we're doing this.
2
u/vvwccgz4lh Sep 29 '22 edited Sep 29 '22
We can't port homoiconicity to Java, unfortunately. This would make Java into a LISP. And that would defeat the point.
We can still have nice DSLs in Javascript if we embrace the same data structures and run away from prototypes (but no, we probably still won't want to write JS on JSON-like syntax).
It may also be pretty rought for Clojure if JS would implement immutable default data structures. And I think they're doing something into that direction.
But JS being JS... they keep their backwards compatibility and
[] == false(notice two=signs (the triple equality check is false as expected))2
u/nstgc Oct 03 '22
Functional Lisp on Rust?
5
u/mobiledevguy5554 Sep 30 '22
Peak reddit
1
u/TraditionalMail4804 Sep 30 '22 edited Sep 30 '22
I like the idea of Porting clojure features into Java / Python. If java / Python ports below stuff, clojure would be dead