Re:Django, now with JavaScript tests
by arthur_debert on Friday July 03, 2015 @01:41AM
(#9823723)
Has nothing to do with Java.
There's no stack.
They're simply chose the best Javascript compiler available.
Pretty simple, really
> Why Clojure?
Not Clojure, the Lisp dialect. Closure is a JavaScript dialect invented by Google with some niceties added. They seem to be using their minifier.
If you are running Eclipse, you already have a Java runtime somewhere in your machine anyway.
AFAIK there isn't a widely-used, solid JS compressor written in Python, so you're adding a dependency either way. You either need a Java runtime for the Closure Compiler, or you need Node to run uglify or similar.
> Behind the scenes, compress.py is a front-end for Google’s Closure Compiler which is written in Java. However, the Closure Compiler library is not bundled with Django directly, so those wishing to contribute complete JavaScript patches will need to download and install the library independently. The Closure Compiler library requires Java 7 or higher.
Why Java? Why Clojure?
How did the core team of django come to the conclusion that Java should be apart of the stack?