4 ms·
I like the idea of clojure a lot, but I just despise having to touch the Java platform at all, everything is so over-engineered and bloated.
by TylerE 11y ago
I like the idea of clojure a lot, but I just despise having to touch the Java platform at all, everything is so over-engineered and bloated.
- paulddraper 11y agoCare to add any specifics? Looking at half of JS language features, I could say that's bloated too.
- TylerE 11y agoWell, for a very first point JVM startup time STILL sucks, even with an SSD.
- flippant 11y agoThe JVM startup time is actually negligible. What you're seeing is the time it takes to load the clojure jar.
- TylerE 11y agoDoes it matter? I don't experience this with nim or go or even python - but it does show up with every jvm language, including clojure.
- pjmlp 11y agoDon't blame the JVM for what it is a Clojure implementation problem. http://blog.ndk.io/jvm-slow-startup.html http://blog.ndk.io/jvm-slow-startup.html http://martinsprogrammingblog.blogspot.de/2012/02/why-is-clojure-so-slow.html http://martinsprogrammingblog.blogspot.de/2012/02/why-is-clo... If you program directly in Java it can be as fast as Nim or Go. Granted, if you want AOT to native code, your only option is a commercial JVM.
- merb 11y agoThis post is really old. Even Scala has improved in startup time. I don't think that numbers from 2012 are reasonable. Especially when Java 1.8 will hit these languages. It reduces build times and startup times since these lanaguages could share their bytecode when it comes to lambda's and such things. With -Xexperimental on Scala 2.11 and changing some things to lambda it will reduce the code size by 10-15% which is a lot in such a big codebase. And I think closure will have such stuff, too. This also means faster startup times. Also Java 9 and Java 10 will also help these languages to improve.
- pjmlp 11y agoSo is Clojure 1.8 performance any better than those numbers? For a long time I played with the idea of using it as common code between Android and Windows Phone, but the performance on Android and outdated CLR support demotivated me to pursue it, so it was back to C++11 (now C++14) for common code.
- merb 11y agoI'm not sure, I don't know how much Clojure 1.8 improved. Currently this will bring a big one: https://github.com/clojure/clojure/blob/master/changes.md#11-direct-linking https://github.com/clojure/clojure/blob/master/changes.md#11... Also Clojure isn't tied to Java 8, it's compatible back to Java 5, so this brings a lot of overhead.
- puredanger 11y agoClojure has required a minimum of Java 6 since Clojure 1.6.
- merb 11y agoStill a lot of old code, and sorry for my misinformation. Java 6 to Java 8 will reduce code size by a order of magnitude. Even Scala will reduce code size and Scala 2.12 is just amazing how good it fits to Java 8. I hope Clojure will do the same. We written a small ERP project and looking forward to have a calculation layer in clojure.
- fnordsensei 11y agoIt's changed a lot for the better over the last few releases to the point where it doesn't matter anymore. If it's still a concern, you can do what I did a while back and just write the app on top of Node.js. Then the startup time is more or less gone altogether.
- LeonidasXIV 11y agoClojure user here. What I find really annoying what came from the Java world: - JAR dependencies and dependency hell. My project.clj is usually full of exclusions, forcing versions and stuff like this. - Logging. Oh my, how I hate everything about logging, from terribly documented .properties files, even worse documented logback.xml files, to appenders which drop messages at peak times and this log4j/slf4j mess. On the other hand, startup times are ok. The biggest problem wrt to startup times is the nrepl-refactor JAR which I load in some profiles for refactoring features in CIDER. Probably not worth it.
- lmm 11y agoYou might like Dylan? It's a similar style but compiles to native code.