background preloader

Scala

Facebook Twitter

How to Make Apache Hive 100X Faster? Apache Hive Stinger. UPDATE: Since this article was posted, the Stinger initiative has continued to drive to the goal of 100x Faster Hive.

How to Make Apache Hive 100X Faster? Apache Hive Stinger

You can read the latest information at Introduced by Facebook in 2007, Apache Hive and its HiveQL interface has become the de facto SQL interface for Hadoop. Today, companies of all types and sizes use Hive to access Hadoop data in a familiar way and to extend value to their organization or customers either directly or though a broad ecosystem of existing BI tools that rely on this key proven interface. The who’s who of business analytics have already adopted Hive. Apache Hive was originally built for large-scale operational batch processing and it is very effective with reporting, data mining and data preparation use cases. So, What is Stinger? To this end, we have launched the Stinger Initiative, with input and participation from the broader community, to enhance Hive with more SQL and better performance for these human-time use cases.

Why reinvent the wheel? Scala Quick Guide. Scala, short for Scalable Language, is a hybrid functional programming language.

Scala Quick Guide

It was created by Martin Odersky and it was first released in 2003. Scala School. Other Languages: About Scala school started as a series of lectures at Twitter to prepare experienced engineers to be productive Scala programmers.

Scala School

Scala is a relatively new language, but draws on many familiar concepts. Thus, these lectures assumed the audience knew the concepts and showed how to use them in Scala. We found this an effective way of getting new engineers up to speed quickly. Approach. Scala Tutorial. The Scala programming language is a newer, very interesting language, with a lot of new features compared to Java.

Scala Tutorial

The reason Scala is interesting to Java programmers is, that Scala is compiled to run on the Java Virtual Machine. In other words, Scala is compiled into Java bytecodes. Contents. Is Scala really more complicated than Java? Off the WallIs Scala really more complicated than Java?

Is Scala really more complicated than Java?

By Dick WallSeptember 17, 2009 Summary After a conversation with a guy at work, I was inspired to take a look at whether Scala is inherently more complex than Java, and decided it wasn't. Today, I was asked by a friend to provide an alternative to the following Java one-liner: This is a one-liner that unsurprisingly prints out the happy birthday song. Easy enough. . (1 to 4).map { i => "Happy Birthday %s".format(if (i == 3) "Dear XXX" else "To You") }.foreach { println(_) } When another friend saw this, he immediately opined that the Scala version was too complicated and would be hard to maintain. Why does it look so wierd? Well, there are a number of reasons for why this looks hard to understand. For(int i=0; i<4; i++) {} It's familiar to all of us, but really would we hold it up as a perfect example of readability. IBM on Scala. Java to Scala with the Help of Experts. Java to Scala with the Help of Experts Many leading experts in the industry have recognised the importance of Scala and are enthusiastic to help others appreciate the language.

Java to Scala with the Help of Experts

They have written excellent reviews and teaching materials that range from broad evaluations of the language to detailed cook-books on how to use the scala language. Each one comes from a different programming background and quite likely you will find one like your own. At times we all get stuck on learning a specific topic, just don't seem to get it. A short Scala tutorial for Java Developers - Junda Ong. This post is a tutorial guide for Java programmers who want to learn Scala.

A short Scala tutorial for Java Developers - Junda Ong

I myself have programmed in Java for many years, yet jumping straight into Scala has made me clueless, and so I started to read some baby steps to learn the new language. The following post is what I have learnt. Methods Declaration We use an example of a max function to illustrate the different ways to declare a method. You do it like this, in a single line. Or, you can skip the return type (Int in this case) and let the compiler infer. If the method is more than a single line, you can wrap with curly braces. You might have already notice. To be verbose, you can specify the return type with the return keyword. Scala for Java Refugees Part 1: main(String[]) 7 Jan 2008 This article is also available in Spanish and Bulgarian.

Scala for Java Refugees Part 1: main(String[])

You know who you are. You’re the developer who picked up Java years ago, maybe as a second language and better alternative to C++, maybe as your first language coming into the industry. You’re comfortable with Java, you know its ins and outs, its moods. It’s like an old girlfriend; you may not feel the vibe anymore, but you know just how to rub it so it smiles. You’re starting to to become a bit pragmatic about your language choice though. The good news is that there’s light at the end of the tunnel. The only problem you have now is figuring out where to start. Have no fear, ye refugee of Java EE grid iron, all is not lost. Introductions If you’re like me and can identify with the above, then this series is for you.

Learning Scala. Getting Started Install Scala on your computer and start writing some Scala code!

Learning Scala

Dive straight into the API. Tutorials Digest bite-size pieces of the essentials. Online Learning. A Tour of Scala. Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way.

A Tour of Scala

It smoothly integrates features of object-oriented and functional languages. Scala is object-oriented Scala is a pure object-oriented language in the sense that every value is an object. Types and behavior of objects are described by classes and traits. Programming in Scala, First Edition. Programming in Scala, First Editionby Martin Odersky, Lex Spoon, and Bill VennersDecember 10, 2008 Martin Odersky made a huge impact on the Java world with his design of the Pizza language. Although Pizza itself never became popular, it demonstrated that object-oriented and functional language features, when combined with skill and taste, form a natural and powerful combination. Pizza's design became the basis for generics in Java, and Martin's GJ (Generic Java) compiler was Sun Microsystem's standard compiler starting in 1.3 (though with generics disabled).

I had the pleasure of maintaining this compiler for a number of years, so I can report from first-hand experience that Martin's skill in language design extends to language implementation. Since that time, we at Sun tried to simplify program development by extending the language with piecemeal solutions to particular problems, like the for-each loop, enums, and autoboxing. Scala by Example, pdf 140. Programming Scala.