Thursday, June 20, 2013

What is SCALA

What is SCALA:
SCALA is a Object Oriented Functional programming language, designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages, enabling Java and other programmers to be more productive. Code sizes are typically reduced by a factor of two to three when compared to an equivalent Java application.

SCALA boost up the development productivity as the lines of code is reduced also it will increase application scalability and overall reliability.

SCALA programs run on the Java VM, are byte code compatible with Java so we can make full use of existing Java libraries or existing application code. We can call SCALA from JAVA and we can call JAVA from SCALA, the integration is seamless. Also Scala Supports .NET Framework also.

How SCALA Compiler developed:
After having written hundreds of thousands lines of Java himself, Martin Odersky, Professor at EPFL, was well aware of the frustrations faced by Java programmers. He formed the vision of applying the best knowledge of the academic research community to the problem of making the Java programming experience better, even fun. His first pragmatic step was Java Generics, seen as a major success by the Java community. Later he wrote a compiler and named it as SCALA.
Scala was released late 2003/early 2004 on the Java platform, and on the .NET platform in June 2004.

Why Scala is Object Oriented and also Functional:
Scala is Object Oriented language because every value in Scala is an Object. Types and behavior of objects are described by classes and traits.

Scala is also a functional language in the sense that every function is a value. Scala provides a lightweight syntax for defining anonymous functions, it supports higher-order functions, it allows functions to be nested,

No comments:

Post a Comment