5 ms·
I really have a hard time seeing Python losing to Clojure on (2), (5) and (6). What kind of software/library would you find on Clojure but not Python? How is Py
by rglullis 17y ago
I really have a hard time seeing Python losing to Clojure on (2), (5) and (6). What kind of software/library would you find on Clojure but not Python? How is Python not WORA? Where does Python lack in text processing?
- francoisdevlin 17y agoJava & the JVM give me 2 & 5. While Pythons text processing is great, I think functional composition & juxtaposition give Clojure and edge. Plus, strings are simply sequences, so the core language works well with them too.
- KirinDave 17y ago> What kind of software/library would you find on Clojure but not Python? Java has a lot of great libraries for which there are not terrific examples in Python. Clojure gets all of them. > Where does Python lack in text processing? Clojure handles large strings better than Python (unless you start using substrings, in which case an underlying java bug hits you). (oh, and Clojure is not a deliberately and comically crippled language).
- rufugee 17y agoHow is Python deliberately and comically crippled? I'm honestly curious.
- hugoc 17y agoI think he may be refering to the GIL.
- KirinDave 17y agoThat and certain deficiencies spawned by a desire for “simplicity.”
- technomancy 17y agoDon't forget one-line lambdas.
- KirinDave 17y agoIt is true. I really, really, really do not like those. I dislike them to the point of irrationality.
- felixmar 17y agoNot Python specific but languages that regularly interface with C code are often troublesome on Windows because the library writer assumes Posix functionality is available or the library depends on Unix libraries that are at best badly ported to Windows. Haskell is one language where i encountered that too often, whereas Clojure's Windows support does not feel second rate. The portability of the JVM and Java's libraries combined with a joyful functional language like Clojure is very attractive.
- dagw 17y agoMany python libraries have a C component which makes them a no go when it comes to app engine. Two big examples are image manipulation and numeric and scientific computation. The pure java libraries in these categories are much faster and more complete than the pure python libraries.
- sreque 17y agoAll your repliers seem to forget that Jython exists and can be run on the app engine as well, putting Jython on par with Clojure in terms of available Java libraries.
- melling 17y agoLet's not forget JRuby. Java might be stalled but the JVM is really starting to show a lot more value.
- jacquesm 17y agoInterestingly in the beginnings of java the JVM was just another abstraction layer. Now that the JVM is really running just about anywhere it has become a viable platform to target, and java is just one more language that targets it. Clojure, groovy and scala are built on top of the JVM, but there are also plenty of languages that are available on mutliple platforms. Whoever came up with just-in-time compilation deserves a gold medal, without that none of this would have ever happened.
- btilly 17y agoWhoever came up with just-in-time compilation deserves a gold medal, without that none of this would have ever happened. My understanding is that JIT in Java is a variation on what the Smalltalk world called dynamic optimization. That was introduced into Smalltalk by Peter Deutsch and Allan Schiffman in the 1980s, but I don't know whether or not they invented it independently.
- jacquesm 17y agoYes, that's true. I'm not claiming that the just-in-time compilation technique was invented specifically for java, merely that it was a very useful addition to it and that whoever did invent it probably helped saving the platform. That invention pre-dates java itself by quite a few years, but then again, java has a lot of elements in it that were considerably older, iirc there was UCSD pascal P-code, which was another virtual machine like environment with an abstracted machine, and the 'forth' language which has quite a bit in common with how the JVM operates on the lowest level.
- jwr 17y agoPython has no parallelism story. Once you start using the Clojure parallel primitives, there is no going back: you will never want to deal with managing threads and mutexes again. It's kind of similar to the feeling you get once you've programmed in a language with GC. You really don't want to go back, unless you have to.