Scala is a general purpose programming language principally targeting the Java Virtual Machine. Designed to express common programming patterns in a concise, elegant, and type-safe way, it fuses both imperative and functional programming styles.

learn more… | top users | synonyms

24
votes
5answers
7k views

Performance of Scala compared to Java

First of all I would like to make it clear that this is not a language-X-versus-language-Y question to determine which is better. I have been using Java for a long time and I intend to keep using it. ...
7
votes
3answers
2k views

Functional Programming approach for a simplified game using Scala and LWJGL

I, a Java imperative programmer, would like to understand how to generate a simple version of Space Invaders based on Functional Programming design principles (in particular Referential Transparency). ...
4
votes
1answer
661 views

How is Scala scalable? [duplicate]

Possible Duplicate: Why is Scala more scalable than other languages? The Wikipedia page on Scala says: The name Scala is a portmanteau of "scalable" and "language", signifying that it ...
5
votes
1answer
351 views

Resources relating to Java EE and Scala

Are there any good sites / blogs / books / articles on using Java EE together with Scala? Or indeed articles saying that it should not be done. Many Scala resources talk about using Akka and Lift. ...
3
votes
2answers
213 views

Cross “Machine” Code?

Some languages (mostly ones made in the last 2 decades or so) can now not only run (after some compilation step or directly) on several platforms, but also can be compiled to run on several virtual ...
2
votes
5answers
513 views

Programming language with native concurrency support for large graphs?

I'm currently looking for a new programming language to learn (currently working through some C++, know some C and Python), specifically one that has built-in concurrency support? I want to try to ...
1
vote
4answers
522 views

Online Courses/Certifications questions

I have some free time now - waiting to apply to college next year for a Master's degree - and I've been looking at online courses / certification programs like W3CSchools and O'Reilly and there are a ...
13
votes
4answers
609 views

Unit testing statically typed functional code

I wanted to ask you people, in which cases it makes sense to unit test statically typed functional code, as written in haskell, scala, ocaml, nemerle, f# or haXe (the last is what I am really ...
10
votes
2answers
898 views

Do you need to know Java before trying Scala

I'm interested in learning Scala. I've been reading a lot about it, but a lot of people value it because it has an actor model which is better for concurrency, it handles xml in a much better way, ...
17
votes
5answers
2k views

Why these attempts to water down Scala?

So now Eclipse has offered Xtend and JetBrains is offering Kotlin - both of which seem to be watered down versions of Scala. My question is why? I've played with Scala a bit and it's not that hard. ...
10
votes
1answer
484 views

(Dis-)advantages of structural typing

I’ve just watched this talk by Daniel Spiewak where he talks about the advantages of structural typing as compared to Scala’s ans Java’s nominal typing. One example for this difference would be the ...
4
votes
4answers
513 views

what is the object oriented counterpart to haskell / coq

I have detailed information on the latest developments in functional programming. I think haskell is quite an advanced and high level programming language. With coq and agda this gets even more ...
3
votes
3answers
555 views

Developing a Project in a Statically Typed Language Entirely in VIM

I've recently started taking Scala to heart (sweet Python, I still love you, but your collections just can't match Scala's), and in doing so am now using IntelliJ IDEA almost entirely for development. ...
3
votes
2answers
398 views

Are there any good Java/JVM libraries for my Expression Tree architecture?

My team and I are developing an enterprise-level application and I have devised an architecture for it that's best described as an "Expression Tree". The basic idea is that the leaf nodes of the tree ...
3
votes
4answers
536 views

Which framework is durable and has a HA message bus?

I'm looking for a messaging framework for a distributed financial application that should meet the following requirements: No data loss or duplication, hence, a message should be sent exactly once ...
7
votes
4answers
2k views

Would scala be a good choice instead of Java?

We will be starting a new project which will involve training all the .net developers in Java (frameworks/ECO system etc). We have a lot of code written in C# and it seems that all of this will be ...
4
votes
2answers
341 views

What has been learned about making variance part of the type?

In Java, the variance of parameterized types is indicated depending on how it's used: <A extends B,B> void store(ArrayList<B> list, A elem) { list.add(elem); } Whereas in Scala it ...
27
votes
3answers
986 views

What are the benefits and disadvantages in the approaches of C#, Java and Scala to Closures/Lambdas/…?

I wonder what the technical implementation differences between C# and Scala are and how both solutions compare to the implementation ideas and concerns voiced in the email Peek Past lambda by Brian ...
0
votes
1answer
416 views

restful web development in scala

I ve been a php developer for the past 4 years and worked in OO PHP and almost all sorts of PHP mvc frameworks. Ive joined a new company now and here we use scala for web development. We have a ...
2
votes
1answer
133 views

What is a domain of automatic testing tools such as ScalaCheck?

I've seen not so many examples of testing with automatic tools, i.e. serializing/deserializing of JSON (which was paired in the following way: val actual = deserialize(serialize(string))), checking ...
24
votes
5answers
7k views

Is Groovy going away? [closed]

I am sure this question has been asked many times. However, I like to ask it again with the intention of what is the future of these languages. I was first introduced to Groovy and really liked it. I ...
4
votes
1answer
310 views

How do I view Scala code without all the syntactic sugar?

I have been studying Scala, but what I keep running into is the optimization of syntax. I'm sure that will be great when I am an expert, but until then.. Not so much. Is there a command or a program ...
6
votes
7answers
633 views

Help me deal with higher level languages

I'm trying to learn Scala (I have previously glanced at Erlang, Haskell, Ruby and had similar issues). I do enjoy it, but I feel bad about some things it does and I wonder if that's just due to all ...
2
votes
3answers
540 views

difference between passing a value vs passing a function as a parameter in scala

I often hear that scala has a ability to pass function as a parameter to another function. I would like to know the difference between passing a value as a parameter vs passing function itself as the ...
18
votes
3answers
2k views

Is Clojure, Scala and other restrained by the JVM vs CLR

The Java implementors seem slow to adopt language improvements, for example compare C# with full closures, expression trees, LINQ etc.. to Java, and even the push back of some stuff to Java 8 will ...
9
votes
3answers
944 views

Getters and Setters in Functional Languages

One of the tenets of Functional Programming is the use of Pure Functions. A Pure function is one that is side-effect free and referentially transparent. Getters are not referentially transparent - ...
4
votes
2answers
504 views

Scala: From concept to working

Second attempt to ask my question more concisely. I want to say I am a Scala fan, or at least I want to be. I've resigned myself to learning one of these functional languages [Scala, Haskell, ...
2
votes
2answers
1k views

How to use Anorm correctly [closed]

So I'm new in scala-play world. And just got a look at Anorm and it seemed quite cool. But I was wondering what is the proper way to use it? I guess we shouldn't just put pseudo-SQL everywhere in our ...
1
vote
4answers
460 views

Usage of “Multi-Paradigm Languages” in commercial applications

I am currently learning the two languages F-Sharp and Scala. These two languages are, in my opinion, both quite comprehensive to grasp. Nonetheless, what seems to make Scala and F-Sharp similar, is ...
4
votes
3answers
280 views

How do I get feedback about whether escape analysis had any affect on my code or not?

One problem I have with compiler optimization is, that I actually never know what the compiler (or in this particular case the Jit) does with my code. So is there any possibility for me to know ...
3
votes
2answers
728 views

Using an actor model versus a producer-consumer model?

I'm doing some early-stage research towards architecting a new software application. Concurrency and multithreading will likely play a significant part, so I've been reading up on the various topics. ...
5
votes
2answers
322 views

Do resumable exceptions make any sense?

Following up my previous question I wonder if resumable exceptions make any sense. It looks like nobody uses them in Java. Don't they use resumable exceptions because of Java limitations or just ...
4
votes
1answer
401 views

Scala - learning by doing

coming from the PHP-framework symfony (with Apache/MySQL) I would like to dive into the Scala programming language. I already followed a few tutorials and had a look at Lift and Play. Java isn't a ...
13
votes
4answers
4k views

Why Use Scala over Java

I am totally into Scala as a language ... and still I struggle with why any company should switch from Java to Scala. Is Scala just syntatic sugar on top of the JVM or are there fundamental ...
4
votes
3answers
779 views

Scala Roadmap Beyond 2.9

With the Scala 2.9.0 RC3 now available and the release page http://www.scala-lang.org/node/7285 describing the great features that were added in that release, does anyone know what we can expect in ...
20
votes
8answers
2k views

Is Scala ready for prime time?

Now that I've done a few trivial things with Scala (which I love for "hello world" and contrived applications!) I am left wondering.. part about maturity of the tools to support development, and part ...
15
votes
7answers
1k views

How do I kick-start my migration from Java to Scala?

In Scala, what are the essential areas that beginners (in my case, I migrating from Java) has to learn to master the language? Regardless of the method of learning (e.g., books, reading blogs, ...
8
votes
6answers
2k views

Is there a clear leader amongst JVM-based languages?

What is the current status of these projects, and has any one (or two) emerged as a clear leader? To demonstrate my motives for asking this question, cast your mind back several years. Prototype and ...
11
votes
8answers
3k views

Why was Scala not implemented with C or C++

Does anybody know why was Scala implemented in Java and .NET instead of C or C++? Most languages are implemented with Cor C++ [i.e Erlang, Python, PHP, Ruby, Perl]. What are the advantages for Scala ...
3
votes
4answers
550 views

How to disseminate Scala?

With the announcement of Ceylon, and after observing the slides describing its intent and feature list, I reckoned this language to be a Scala competitor. Furthermore, as a Scala programmer, I can ...
64
votes
6answers
5k views

What's the difference between Scala and Red Hat's Ceylon language?

Red Hat's Ceylon language has some interesting improvements over Java: The overall vision: learn from Java's mistakes, keep the good, ditch the bad The focus on readability and ease of learning/use ...
5
votes
3answers
425 views

Arguments in support of organizational transition to Scala development

I work in an organization that does extensive Java development. Our group is small with a short-lived project, agile development charter. We will leverage existing QA resources of other groups, and ...
12
votes
1answer
1k views

Which Scala open source projects should I study to learn best coding practices

What open source projects would you recommend for people to study to learn how the pros write Scala? Some of the attributes that I'm looking for - though they don't all have to be present in every ...
11
votes
5answers
1k views

Is functional programming strongly related to mathematics?

Is functional programming so related to mathematics because much of the functional programming is depicted with mathematical notions? Is it a MUST to have a strong base of maths to learn & ...
7
votes
4answers
3k views

How Scala Developers Are Being Interviewed

How are Scala programmers being interviewed? What are the aspects that the interviewer looks for when interviewing a Scala developer?
1
vote
3answers
2k views

Advantages of Scala vs. Groovy with JAVA EE 6 Applications

Please let me first emphasize that I am not looking for flame wars. I just want advice from people who have real experiences. I started learning JAVA EE 6 as real newbie and am having a difficult ...
23
votes
3answers
1k views

Introducing Scala to a Technical Manager

I've been promoting Scala at work as something we should try out for things like testing with Specs http://code.google.com/p/specs/ and rapid prototyping of web services with tools like Scalatra ...
18
votes
10answers
6k views

What do Java developers think of Scala? [closed]

I've noted that IDE support is nowhere near as good, but the language itself supports functional programming idioms much more cleanly.
11
votes
5answers
2k views

Why is Scala more scalable than other languages?

Scala is billed as a scalable language, a feature that's even included in its name: The name Scala is a portmanteau of "scalable" and "language", signifying that it is designed to grow with the ...
12
votes
2answers
2k views

Is there a canonical book on Scala?

I'm interested in learning Scala, but due to is relative newness, I can't seem to find a whole lot of books about it. Is there a book out there that's the de-facto standard for describing best ...