Live data from Hacker News

Try Clojure – An interactive tutorial in the browser

tryclojure.org

11–20 of 96 posts

Re: Try Clojure – An interactive tutorial in the browser

#11
For the site author, thanks for this tool! Clojure has changed the way I program and I've been using it for 6 years now. Anything to help more people get into Clojure is much appreciated, especially if it's REPL-oriented.

For some feedback, you might consider using Let's Encrypt for setting up free TLS certs, or hosting on Github Pages to get it automatically. With just HTTP, my browser (and many others) will show a scary warning telling me not to use the site.

Re: Try Clojure – An interactive tutorial in the browser

#12

I started playing around with Clojure back in 2014 by implementing a rudimentary polyglot persistent news feed microservice. That microservice used Ring which sits on top of Jetty. I blogged about that implementation at https://glennengstrand.info/software/architecture/oss/clojur... which is my personal blog. Last year, I re-evaluated Clojure with a feature identical microservice. This time, I integrated with Donkey…

Clojure absolutely does not reflect on every call, and no it does require type hinting every argument to every function to get that speed. Especially after Clojure 1.8 came out, huge performance gains were had by inlining far more direct function calls. You can achieve near Java performance on most code, especially if you are okay sacrificing the immutable data structures and lazy sequences. I think this is what makes Clojure shine: you get a beautiful, functional, immutable, easy to understand world, and mostly it is extremely performant, and if it's not, you can have a few functions wrapping uglier but more performant bits, and Java interop is also extremely easy if you want to drop another level down. All the Java tooling for analyzing stack traces and bottlenecks works pretty well if you need to chase performance issues too. And my god it's going to be a lot faster than a lot of Ruby and Python etc apps. I say that with love as long term Rails programmer.

Re: Try Clojure – An interactive tutorial in the browser

#13
post #11

For the site author, thanks for this tool! Clojure has changed the way I program and I've been using it for 6 years now. Anything to help more people get into Clojure is much appreciated, especially if it's REPL-oriented. For some feedback, you might consider using Let's Encrypt for setting up free TLS certs, or hosting on Github Pages to get it automatically. With just HTTP, my browser (and many others) will show a…

Thanks!

https://tryclojure.org/ is working correctly. I'm figuring out why Netlify is not redirecting automatically.

Re: Try Clojure – An interactive tutorial in the browser

#14

I started playing around with Clojure back in 2014 by implementing a rudimentary polyglot persistent news feed microservice. That microservice used Ring which sits on top of Jetty. I blogged about that implementation at https://glennengstrand.info/software/architecture/oss/clojur... which is my personal blog. Last year, I re-evaluated Clojure with a feature identical microservice. This time, I integrated with Donkey…

You can take a look at this blog post to learn more about reflection calls in Clojure. There are other posts in that blog that goes deep into Clojure high performance.

https://cuddly-octo-palm-tree.com/posts/2022-02-20-opt-clj-6...

Re: Try Clojure – An interactive tutorial in the browser

#17
I would love to work with clojure. I thought there were opportunities for to work on a clojure project in my previous company. But I was told that no one likes to work on these products hence why they moving away from clojure and rewriting everything in java or scala. I wish I could tell you exactly why they hated it, I never got an answer. Speaking to some of the individuals, they thought it came down to tooling, no career benefits and some people really missed types.

Re: Try Clojure – An interactive tutorial in the browser

#18
I have been using Clojure professionally for the last 2.5 years, after doing 9 years of C#, and really enjoy it. I recently got a Windows laptop and was interested in ClojureCLR. It has a ways to go in terms of coming close to tooling of JVM and ClojureScript. David Miller has done an amazing job at keeping the project going and I hope I can give back to that community

Re: Try Clojure – An interactive tutorial in the browser

#20
post #2

Do I need to have a somewhat decent knowledge of Java to plunge into Clojure right away?

Non-trivial I/O requires knowledge of the host. Trivial I/O is things handled by the slurp or println functions. The obvious way of doing GUIs is swing (Java), 3D means JOGL (Java), file manipulation through clojure.java.io expects a grasp of Java's Reader/Writer abstractions and associated structures.

It doesn't require Java as such - I can't really program in Java and Clojure is great. A lack of Java fundamentals is still a handicap and probably around my #3 annoyance as a Clojure user. It makes dependency management (#2 annoyance) harder because the already complicated Java dependency management systems gets a thick layer of Clojure confusion ladled on top. The stacktraces obviously take the spot for #1 annoyance, which is a consequence of the Java but knowing Java won't help navigate them.

Can't recommend Clojure enough though. Very fun language.

Post reply on HN