3 ms·
From TFA: > 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
by anon3_ 11y ago
From TFA:
> 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?
- arthur_debert 11y agoHas nothing to do with Java. There's no stack. They're simply chose the best Javascript compiler available. Pretty simple, really
- alexhill 11y agoAFAIK 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.
- rbanffy 11y ago> 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.