Slashdot Mirror


Scala, a Statically Typed, Functional, O-O Language

inkslinger77 notes a Computerworld interview with Martin Odersky on the Scala language, which is getting a lot of attention from its use on high-profile sites such as Twitter and LinkedIn. The strongly typed language is intended to be a usable melding of functional and object-oriented programming techniques. "My co-workers and I spend a lot of time writing code so we wanted to have something that was a joy to program in. That was a very definite goal. We wanted to remove as many of the incantations of traditional high-protocol languages as possible and give Scala great expressiveness so that developers can model things in the ways they want to. ... You can express Scala programs in several ways. You can make them look very much like Java programs which is nice for programmers who start out coming from Java. ... But you can also express Scala programs in a purely functional way and those programs can end up looking quite different from typical Java programs. Often they are much more concise. ... Twitter has been able to sustain phenomenal growth, and it seems with more stability than what they had before the switch, so I think that's a good testament to Scala. ... [W]e are looking at new ways to program multicore processors and other parallel systems. We already have a head start here because Scala has a popular actor system which gives you a high-level way to express concurrency. ... The interesting thing is that actors in Scala are not a language feature, they have been done purely as a Scala library. So they are a good witness to Scala's flexibility..."

17 of 299 comments (clear)

  1. Wanted: Scala Expert by sycodon · · Score: 5, Funny

    Scala Programmers: $35K - $45K

    Our company is looking for motivated individuals with 5 + years in depth experience with Scala.
    Must be familiar with all aspects of O-O Languages.

    We are an equal opportunity employer.

    --
    When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
    1. Re:Wanted: Scala Expert by Anonymous Coward · · Score: 1, Funny

      I'm getting a kick out of all the ACs whooshing eachother.

    2. Re:Wanted: Scala Expert by Anonymous Coward · · Score: 1, Funny

      *Whoosh!*

    3. Re:Wanted: Scala Expert by Anonymous Coward · · Score: 1, Funny

      *whoooooooosh*

  2. Re:pronounced ... by Profane+MuthaFucka · · Score: 5, Funny

    Same difference. You say potato, I say you're an asshole.

    --
    Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
  3. Re:Miracle language. by Doctor+O · · Score: 2, Funny

    maybe it will make my hair grow back

    OTOH, it might as well make your back hair grow, and who wants that?

    --
    Who is General Failure and why is he reading my hard disk?
  4. Re:Miracle language. by spun · · Score: 4, Funny

    ... Twitter has been able to sustain phenomenal growth, and it seems with more stability than what they had before the switch, so I think that's a good testament to Scala...Hmmmm, maybe I should switch my company's programming language to Scalia. After all, it cause market share to increase, computer systems to become more stable, and maybe it will make my hair grow back. I'm in!

    No, this is Scala, a language that is a blend of functional and object oriented programming. Scalia is mix of textualism and originalism with a very conservative framework. Some consider its inability to recuse itself to be its greatest asset.

    --
    - None can love freedom heartily, but good men; the rest love not freedom, but license. -- John Milton
  5. Re:Strongly typed language? by xgr3gx · · Score: 4, Funny

    Ah - duh. Immediately started thinking typed, as in the clicky clicky kind of typing done on a keyboard.
    Man, was that a loud and smelly brain fart.
    Thanks for that.
    Sorry. Sorry Everyone!

    --
    Shameless plug alert: Game server control panel
  6. Doomed by decipher_saint · · Score: 5, Funny

    Martin Odersky is beardless, Scala is doomed.

    --
    crazy dynamite monkey
  7. MVC framework by Godskitchen · · Score: 2, Funny

    Scala on Scales?

  8. Re:Reinventing the wheel is sometimes good by moon3 · · Score: 4, Funny

    already has C-like syntax

    Why not use the C instead then, or even better C++. After all many top websites run C++ (Google,eBay,Yahoo) as it is the fastest, well memory utilizing, best threading performance and green/CPU saving solution. With the native processor exceptions used properly it is also the most robust solution.

  9. Re:Bit more on the twitter culture. by MyLongNickName · · Score: 4, Funny

    Wow! You sure showed them!

    --
    See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
  10. Re:Strongly typed language? by StuffMaster · · Score: 2, Funny
  11. Re:oblig by d'fim · · Score: 3, Funny

    "C++ for everything. All the other languages start off with it after all."

    Examples: Fortran, Lisp, C.....

    --
    Adherence to the truth is a form of disloyalty.
  12. Re:Bit more on the twitter culture. by BitHive · · Score: 2, Funny

    Sounds to me like their bozofilter worked perfectly.

  13. Re:Strongly typed language? by libkarl2 · · Score: 4, Funny

    I don't mean to sound pedantic, or borish, but C is actually "yeah baby yeah" typed, to enable pointer arithmetic, stack space exhaustion, buffer overflows, and system level development. It's not incorrect to say that it is weakly typed, per se. It's just awkward having to try to explain the direct parallels between the C type system and a 70s style love-in (where anything goes) -- to your manager.

    --
    You are where you are at the time you are there.
  14. Re:Reinventing the wheel is sometimes good by mcvos · · Score: 2, Funny

    But if all you're doing is reinventing Perl with C-like syntax, it's not really a step forward.

    Any change to Perl's syntax is a step forward.

    (No idea what this has to do with Scala, though.)