• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Python lossing place against Scala?

 
ignacio giagante
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I´m gonna check Groovy and of Course Python. Thanks!
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it true the tittle?

No!
O just a comment?

Where did you hear/read it?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4567
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 212
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not long ago, was I laughing out at an article that said Java was dead for FOSS(Free Open Source Software) projects...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic