Re: Use of script languages (Was: Tomcat user authentication question.)

rejoc wrote:
Arne Vajhøj a écrit :
I think that there are plenty of room for both the
compiled "big elephants" like J2EE and ASP.NET and for
smaller solutions including PHP and script languages
like Python and Ruby (especially Python and Ruby in
web context).

both Java and Python applications run on top of a virtual machine... Why do you considere that one is more "compiled" than the other ?

Because that is how it is.

This is how the implementations currently are and this
is how due to the difference in nature of the languages
it will probably always be.

> Ok, in
Python, the "compilation" is done automaticaly when it discovers that there is a source (.py) newer than the .pyc file... but is it enough to considere that the Java virtual machine does not "interpret" the Java byte-code ?

No. But JIT is.

You can even "compile" a Python code into Java byte-code (Jython).

And ? The interpreted nature of Python does not vanish by magic
just because is uses Java byte code.

The issue between Java and Python or any other scripting language is not about compiled or not. You could speak about ecosystem, ease of programming, performance...

Several of theese are determined by the compiled and interpreted
nature of the languages.


Relevant Pages

  • Re: Basic inheritance question
    ... used 'this' in C++ and Java. ... but in Python it doesn't. ... you meant "in languages that has implicit instance reference available in methods"? ...
  • Re: Basic inheritance question
    ... Old Java habits die slowly. ... No, seriously it isn't Java habits only, most other languages wouldn't ... That's not very far from what a Python method object does - ... reference to the current instance is to pass it as an argument to the ...
  • Re: why is "self" used in OO-Python?
    ... When you define a method in Java there is an implicit 'this' passed to the ... Python cannot tell when you define a function whether the function ... Some languages don't allow you to encapsulate ...     def phone: ...
  • Re: Java -> ActionScript?
    ... Lage sein Java zu verdrängen? ... In Ruby geht das ja, ... Andere Sprachen wie Python oder auch Ruby sind eh ... Die Syntax sollte jedoch das Programm nicht begraben. ...
  • Re: What do you want in a new web framework?
    ... But there are interesting things in Ruby (and Ruby 2 should take care of ... lots of warts Ruby 1.8 has) that Python could learn from. ... Lisp family of languages whereas Python's statement-based syntax is ... These two aspects of frameworks ...