File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Jython/Python and the fly likes Python lossing place against Scala? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Python lossing place against Scala?" Watch "Python lossing place against Scala?" New topic
Author

Python lossing place against Scala?

ignacio giagante
Greenhorn

Joined: Apr 11, 2011
Posts: 5
Is it true the tittle? O just a comment? Scala mixes two powerful paradigms and is one the best static type language at moment. So, if Python is dynamic, should I compare these two language? I have not taken yet a decision about what language choice. So, let me know or give me an advise to continue in one direction.
Sayth renshaw
Ranch Hand

Joined: Apr 17, 2011
Posts: 44
More comparable would be Python and Groovy. both Dynamic.

I wouldn't start learn Scala, Python would be the clear winner there however if your goal is to work on the JVM then Groovy or Java would be choice of languages. Groovy does have a bonus in that you can write both static and dynamically, however there are fewer learning resources for Scala and Groovy as most writers assume your knowledge of java.

For a functional language try haskell and a good beginner book Learn You a haskell http://www.haskell.org/haskellwiki/Image:Lyah.png
ignacio giagante
Greenhorn

Joined: Apr 11, 2011
Posts: 5
I´m gonna check Groovy and of Course Python. Thanks!
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Is it true the tittle?

No!
O just a comment?

Where did you hear/read it?
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Sayth renshaw wrote:

I wouldn't start learn Scala, Python would be the clear winner there however if your goal is to work on the JVM then Groovy or Java would be choice of languages. Groovy does have a bonus in that you can write both static and dynamically, however there are fewer learning resources for Scala and Groovy as most writers assume your knowledge of java.

If the OP's goal is to work on the JVM, then why he shouldn't consider Scala programming language?
Groovy does have a bonus in that you can write both static and dynamically

True for Scala too (Scala enjoys type inference).
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4369
    
    8

Hussein Baghdadi wrote:
Groovy does have a bonus in that you can write both static and dynamically

True for Scala too (Scala enjoys type inference).

Type inference isn't the same as dynamic typing, though. It just makes strong typing easier.
Lanny Gilbert
Ranch Hand

Joined: Jun 11, 2002
Posts: 103
Python (actually Jython) also has an advantage (in my job anyway) in that it is the basis for the Weblogic Scripting Tool (WLST), which allows you to do amazing things with Weblogic with regards to server config, server monitoring and application deployment.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Matthew Brown wrote:
Hussein Baghdadi wrote:
Groovy does have a bonus in that you can write both static and dynamically

True for Scala too (Scala enjoys type inference).

Type inference isn't the same as dynamic typing, though. It just makes strong typing easier.

Yes indeed!
However, Martin Odersky added "Dynamic" type to Scala: https://lampsvn.epfl.ch/trac/scala/changeset/23993
That (according my my understanding) brings some dynamic typing to Scala.
Raf Szczypiorski
Ranch Hand

Joined: Aug 21, 2008
Posts: 383
It is actually a high exaggeration that you can write statically typed Groovy code. It just allows you to declare types, and at runtime, the system performs casts, that's all. You can still call any method on such instances, including those that are _not_ in the target type, or those that are not visible / defined in the target type - welcome to duck typing.
To be clear - I am not bashing groovy in any way. I am a huge fan of both it and python, but I use them for different purposes. But that's a story that requires a different topic.
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 199
    
    1

Not long ago, was I laughing out at an article that said Java was dead for FOSS(Free Open Source Software) projects...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Python lossing place against Scala?