Re: Java 8 vs Scala
If you takes time to actually learn Scala starting from its fundamental concepts AND quite importantly get familiar with general functional programming concepts, you'd immediately realize the things that you'd really miss going back to Java (8). On Fri, Jul 17, 2015 at 8:14 AM Wojciech Pituła wrote: > IMHO only Scala is an option. Once you're familiar with it you just cant > even look at java code. > > czw., 16.07.2015 o 07:20 użytkownik spark user > napisał: > >> I struggle lots in Scala , almost 10 days n0 improvement , but when i >> switch to Java 8 , things are so smooth , and I used Data Frame with >> Redshift and Hive all are looking good . >> if you are very good In Scala the go with Scala otherwise Java is best >> fit . >> >> This is just my openion because I am Java guy. >> >> >> >> On Wednesday, July 15, 2015 12:33 PM, vaquar khan < >> vaquar.k...@gmail.com> wrote: >> >> >> My choice is java 8 >> On 15 Jul 2015 18:03, "Alan Burlison" wrote: >> >> On 15/07/2015 08:31, Ignacio Blasco wrote: >> >> The main advantage of using scala vs java 8 is being able to use a >> console >> >> >> https://bugs.openjdk.java.net/browse/JDK-8043364 >> >> -- >> Alan Burlison >> -- >> >> - >> To unsubscribe, e-mail: user-unsubscr...@spark.apache.org >> For additional commands, e-mail: user-h...@spark.apache.org >> >> >> >>
Re: Java 8 vs Scala
IMHO only Scala is an option. Once you're familiar with it you just cant even look at java code. czw., 16.07.2015 o 07:20 użytkownik spark user napisał: > I struggle lots in Scala , almost 10 days n0 improvement , but when i > switch to Java 8 , things are so smooth , and I used Data Frame with > Redshift and Hive all are looking good . > if you are very good In Scala the go with Scala otherwise Java is best fit > . > > This is just my openion because I am Java guy. > > > > On Wednesday, July 15, 2015 12:33 PM, vaquar khan > wrote: > > > My choice is java 8 > On 15 Jul 2015 18:03, "Alan Burlison" wrote: > > On 15/07/2015 08:31, Ignacio Blasco wrote: > > The main advantage of using scala vs java 8 is being able to use a console > > > https://bugs.openjdk.java.net/browse/JDK-8043364 > > -- > Alan Burlison > -- > > - > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > > > >
Re: Java 8 vs Scala
I struggle lots in Scala , almost 10 days n0 improvement , but when i switch to Java 8 , things are so smooth , and I used Data Frame with Redshift and Hive all are looking good .if you are very good In Scala the go with Scala otherwise Java is best fit . This is just my openion because I am Java guy. On Wednesday, July 15, 2015 12:33 PM, vaquar khan wrote: My choice is java 8On 15 Jul 2015 18:03, "Alan Burlison" wrote: On 15/07/2015 08:31, Ignacio Blasco wrote: The main advantage of using scala vs java 8 is being able to use a console https://bugs.openjdk.java.net/browse/JDK-8043364 -- Alan Burlison -- - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org
Re: Java 8 vs Scala
On 15/07/2015 21:17, Ted Yu wrote: jshell is nice but it is targeting Java 9 Yes I know, just pointing out that eventually Java would have a REPL as well. -- Alan Burlison -- - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org
Re: Java 8 vs Scala
jshell is nice but it is targeting Java 9 Cheers On Wed, Jul 15, 2015 at 5:31 AM, Alan Burlison wrote: > On 15/07/2015 08:31, Ignacio Blasco wrote: > > The main advantage of using scala vs java 8 is being able to use a console >> > > https://bugs.openjdk.java.net/browse/JDK-8043364 > > -- > Alan Burlison > -- > > - > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >
Re: Java 8 vs Scala
My choice is java 8 On 15 Jul 2015 18:03, "Alan Burlison" wrote: > On 15/07/2015 08:31, Ignacio Blasco wrote: > > The main advantage of using scala vs java 8 is being able to use a console >> > > https://bugs.openjdk.java.net/browse/JDK-8043364 > > -- > Alan Burlison > -- > > - > To unsubscribe, e-mail: user-unsubscr...@spark.apache.org > For additional commands, e-mail: user-h...@spark.apache.org > >
Re: Java 8 vs Scala
On 15/07/2015 08:31, Ignacio Blasco wrote: The main advantage of using scala vs java 8 is being able to use a console https://bugs.openjdk.java.net/browse/JDK-8043364 -- Alan Burlison -- - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h...@spark.apache.org
Re: Java 8 vs Scala
Why would you create a class and then instantiate it to store data and change the class every time you have to add a new element? In OOPS terminology a class represents an object, and an object has states - does it not? Purely from a data warehousing perspective - one of the fundamental principles in delivering a DW system is to ensure a Single Version of Truth and that is what a Functional way of thinking naturally supports. We can say by extension that data analytics algorithms are quite in tune with functional way of thinking and therefore Scala, whereas object oriented way of thinking needs to adapt itself to be functional. Of course we can use OOPS concept for delivering data solutions just like we can implement OOPS concept in C. Java is good for solving certain things which require OOPS rigor and Scala mostly in problems that can use functional way of problem solving - purely from a data processing perspective. Those who are using performance timings to compare these two languages should start coding in Machine Level Language and then see the performance gains in terms of Java and MLL and should switch over to MLL. Of course MLL is a bit more verbose than Java just as Java is a bit more verbose than Scala and Python - but who's complaining. Of course, these are my personal thoughts and I may be completely wrong and will be grateful if someone could illustrate how. Regards, Gourav On Wed, Jul 15, 2015 at 10:03 AM, Reinis Vicups wrote: > We have a complex application that runs productively for couple of > months and heavily uses spark in scala. > > Just to give you some insight on complexity - we do not have such a huge > source data (only about 500'000 complex elements), but we have more than a > billion transformations and intermediate data elements we do with our > machine learning algorithms. > Our current spark/mesos cluster consists of 120 CPUs, 190 GB RAM and > plenty of HDD space. > > Now regarding your question: > > - scala is just a beautiful language itself, it has nothing to do with > spark; > > - spark api fits very naturally into scala semantics because of the > map/reduce transformations are written more or less identicaly for local > collections and RDDs; > > - as with any religious topic, there is controverse discussion on what > language is better and most of the times (I have read quite a lot of > blog/forum topics on this) argumentation is based on what religion one > belongs to (e.g. Java vs Scala vs Python) > > - we have checked supposed performance issues and limitations of scala > described here: (http://www.infoq.com/news/2011/11/yammer-scala) by > re-factoring to "best practices" described in the article and have observed > both performance increase in some places and, at the same time, performance > decrease in other places. Thus I would say there is no noticeable > performance difference between scala vs java in our use case (of course > there are and always will be applications where one or other language > performs better); > > hope I could help > reinis > > > > On 15.07.2015 09:27, 诺铁 wrote: > > I think different team got different answer for this question. my team > use scala, and happy with it. > > On Wed, Jul 15, 2015 at 1:31 PM, Tristan Blakers > wrote: > >> We have had excellent results operating on RDDs using Java 8 with >> Lambdas. It’s slightly more verbose than Scala, but I haven’t found this an >> issue, and haven’t missed any functionality. >> >> The new DataFrame API makes the Spark platform even more language >> agnostic. >> >> Tristan >> >> On 15 July 2015 at 06:40, Vineel Yalamarthy >> wrote: >> >>> Good question. Like you , many are in the same boat(coming from >>> Java background). Looking forward to response from the community. >>> >>> Regards >>> Vineel >>> >>> On Tue, Jul 14, 2015 at 2:30 PM, spark user < >>> spark_u...@yahoo.com.invalid> wrote: >>> Hi All To Start new project in Spark , which technology is good .Java8 OR Scala . I am Java developer , Can i start with Java 8 or I Need to learn Scala . which one is better technology for quick start any POC project Thanks - su >>> >>> >>> >>> -- >>> >>> Thanks and Regards, >>> Venkata Vineel, Student ,School of Computing >>> Mobile : +1-385-2109-788 >>> >>> -*Innovation is the ability to convert **ideas into invoices* >>> >>> >> > >
Re: Java 8 vs Scala
We have a complex application that runs productively for couple of months and heavily uses spark in scala. Just to give you some insight on complexity - we do not have such a huge source data (only about 500'000 complex elements), but we have more than a billion transformations and intermediate data elements we do with our machine learning algorithms. Our current spark/mesos cluster consists of 120 CPUs, 190 GB RAM and plenty of HDD space. Now regarding your question: - scala is just a beautiful language itself, it has nothing to do with spark; - spark api fits very naturally into scala semantics because of the map/reduce transformations are written more or less identicaly for local collections and RDDs; - as with any religious topic, there is controverse discussion on what language is better and most of the times (I have read quite a lot of blog/forum topics on this) argumentation is based on what religion one belongs to (e.g. Java vs Scala vs Python) - we have checked supposed performance issues and limitations of scala described here: (http://www.infoq.com/news/2011/11/yammer-scala) by re-factoring to "best practices" described in the article and have observed both performance increase in some places and, at the same time, performance decrease in other places. Thus I would say there is no noticeable performance difference between scala vs java in our use case (of course there are and always will be applications where one or other language performs better); hope I could help reinis On 15.07.2015 09:27, 诺铁 wrote: I think different team got different answer for this question. my team use scala, and happy with it. On Wed, Jul 15, 2015 at 1:31 PM, Tristan Blakers mailto:tris...@blackfrog.org>> wrote: We have had excellent results operating on RDDs using Java 8 with Lambdas. It’s slightly more verbose than Scala, but I haven’t found this an issue, and haven’t missed any functionality. The new DataFrame API makes the Spark platform even more language agnostic. Tristan On 15 July 2015 at 06:40, Vineel Yalamarthy mailto:vineelyalamar...@gmail.com>> wrote: Good question. Like you , many are in the same boat(coming from Java background). Looking forward to response from the community. Regards Vineel On Tue, Jul 14, 2015 at 2:30 PM, spark user mailto:spark_u...@yahoo.com.invalid>> wrote: Hi All To Start new project in Spark , which technology is good .Java8 OR Scala . I am Java developer , Can i start with Java 8 or I Need to learn Scala . which one is better technology for quick start any POC project Thanks - su -- Thanks and Regards, Venkata Vineel, Student ,School of Computing Mobile : +1-385-2109-788 -/Innovation is the ability to convert //ideas into invoice*s*/
Re: Java 8 vs Scala
The main advantage of using scala vs java 8 is being able to use a console 2015-07-15 9:27 GMT+02:00 诺铁 : > I think different team got different answer for this question. my team > use scala, and happy with it. > > On Wed, Jul 15, 2015 at 1:31 PM, Tristan Blakers > wrote: > >> We have had excellent results operating on RDDs using Java 8 with >> Lambdas. It’s slightly more verbose than Scala, but I haven’t found this an >> issue, and haven’t missed any functionality. >> >> The new DataFrame API makes the Spark platform even more language >> agnostic. >> >> Tristan >> >> On 15 July 2015 at 06:40, Vineel Yalamarthy >> wrote: >> >>> Good question. Like you , many are in the same boat(coming from Java >>> background). Looking forward to response from the community. >>> >>> Regards >>> Vineel >>> >>> On Tue, Jul 14, 2015 at 2:30 PM, spark user < >>> spark_u...@yahoo.com.invalid> wrote: >>> Hi All To Start new project in Spark , which technology is good .Java8 OR Scala . I am Java developer , Can i start with Java 8 or I Need to learn Scala . which one is better technology for quick start any POC project Thanks - su >>> >>> >>> >>> -- >>> >>> Thanks and Regards, >>> Venkata Vineel, Student ,School of Computing >>> Mobile : +1-385-2109-788 >>> >>> -*Innovation is the ability to convert **ideas into invoices* >>> >>> >> >
Re: Java 8 vs Scala
I think different team got different answer for this question. my team use scala, and happy with it. On Wed, Jul 15, 2015 at 1:31 PM, Tristan Blakers wrote: > We have had excellent results operating on RDDs using Java 8 with Lambdas. > It’s slightly more verbose than Scala, but I haven’t found this an issue, > and haven’t missed any functionality. > > The new DataFrame API makes the Spark platform even more language agnostic. > > Tristan > > On 15 July 2015 at 06:40, Vineel Yalamarthy > wrote: > >> Good question. Like you , many are in the same boat(coming from Java >> background). Looking forward to response from the community. >> >> Regards >> Vineel >> >> On Tue, Jul 14, 2015 at 2:30 PM, spark user > > wrote: >> >>> Hi All >>> >>> To Start new project in Spark , which technology is good .Java8 OR >>> Scala . >>> >>> I am Java developer , Can i start with Java 8 or I Need to learn Scala . >>> >>> which one is better technology for quick start any POC project >>> >>> Thanks >>> >>> - su >>> >> >> >> >> -- >> >> Thanks and Regards, >> Venkata Vineel, Student ,School of Computing >> Mobile : +1-385-2109-788 >> >> -*Innovation is the ability to convert **ideas into invoices* >> >> >
Re: Java 8 vs Scala
We have had excellent results operating on RDDs using Java 8 with Lambdas. It’s slightly more verbose than Scala, but I haven’t found this an issue, and haven’t missed any functionality. The new DataFrame API makes the Spark platform even more language agnostic. Tristan On 15 July 2015 at 06:40, Vineel Yalamarthy wrote: > Good question. Like you , many are in the same boat(coming from Java > background). Looking forward to response from the community. > > Regards > Vineel > > On Tue, Jul 14, 2015 at 2:30 PM, spark user > wrote: > >> Hi All >> >> To Start new project in Spark , which technology is good .Java8 OR Scala >> . >> >> I am Java developer , Can i start with Java 8 or I Need to learn Scala . >> >> which one is better technology for quick start any POC project >> >> Thanks >> >> - su >> > > > > -- > > Thanks and Regards, > Venkata Vineel, Student ,School of Computing > Mobile : +1-385-2109-788 > > -*Innovation is the ability to convert **ideas into invoices* > >
Re: Java 8 vs Scala
Good question. Like you , many are in the same boat(coming from Java background). Looking forward to response from the community. Regards Vineel On Tue, Jul 14, 2015 at 2:30 PM, spark user wrote: > Hi All > > To Start new project in Spark , which technology is good .Java8 OR Scala . > > I am Java developer , Can i start with Java 8 or I Need to learn Scala . > > which one is better technology for quick start any POC project > > Thanks > > - su > -- Thanks and Regards, Venkata Vineel, Student ,School of Computing Mobile : +1-385-2109-788 -*Innovation is the ability to convert **ideas into invoices*
Re: Java 8 vs Scala
See previous thread: http://search-hadoop.com/m/q3RTtaXamv1nFTGR On Tue, Jul 14, 2015 at 1:30 PM, spark user wrote: > Hi All > > To Start new project in Spark , which technology is good .Java8 OR Scala . > > I am Java developer , Can i start with Java 8 or I Need to learn Scala . > > which one is better technology for quick start any POC project > > Thanks > > - su >
Java 8 vs Scala
Hi All To Start new project in Spark , which technology is good .Java8 OR Scala . I am Java developer , Can i start with Java 8 or I Need to learn Scala . which one is better technology for quick start any POC project Thanks - su