Stream

Join this community to post or comment

Simeon Fitch
owner

Distributed Computing  - 
 
A "must-read" for anyone looking to do machine learning in #ApacheSpark.
Distributed Machine Learning Pipelines in Apache Spark.
8
4
Raffaella Ventaglio's profile photoGonzalo Ferreyra Jofré's profile photo
Add a comment...

Kevin Lee

Core Language  - 
 
If you haven't noticed, Scala 2.11.7 is out.

Release Notes
http://scala-lang.org/news/2.11.7

Download
http://scala-lang.org/download/

Mac OSX users can just
brew upgrade scala
as you know (or
brew install scala --with-src --with-docs
if you haven't installed it using brew before)

Ubuntu users can just follow
https://github.com/Kevin-Lee/for-linux/tree/master/Scala
and can get the latest Scala and SBT.

Windows users, I'm sorry this is the best I can get for Windows. http://scala-lang.org/download/
We are very pleased to announce the availability of Scala 2.11.7! We would like to highlight the following changes: Exhaustivity checking for pattern matching is now much snappier — thank you @gbasler! (SI-9181); A 300x more embeddable Scala REPL, brought to you by a team effort with Apache ...
12
Siddhartha Gadgil's profile photo
 
Can somebody explain how the embeddable repl is to be used?
Add a comment...

Giampaolo Trapasso

Articles, Podcasts, Talks  - 
 
Scala Days videos are on Parleys.
12
4
Ivano Pagano's profile photoRaffaella Ventaglio's profile photoMichael Bolz's profile photoVadim Bondarev's profile photo
 
Excellent thanks!
Add a comment...
 
Pittsburgh Functional Programming - Kickoff Round-table
http://www.meetup.com/Pittsburgh-Functional-Programming-Meetup/events/223441254/
2
Add a comment...

Loïc Descotte

Articles, Podcasts, Talks  - 
 
Play Framework + Akka Streams + Twitter API POC
#reactivestreams
8
7
Lionel Frachon's profile photoOmar Mendoza's profile photoBert Huygens's profile photoEric Wilson's profile photo
2 comments
 
+Jim Powers thanks :)
Add a comment...

Sebastian Nozzi
moderator

Core Language  - 
 
"Typesafe co-founder and Scala creator, Martin Odersky, discusses with DATABIZ of the opportunity to recover Scala to .NET."

Summary of his response:
- The .NET type-system makes implementing Scala's type-system a difficult task
- .NET has good languages on its platform already (C# / F#) so that the incentives to invest in a port and compete there are low
- But since it's all open-source, anyone is free to try
11
2
Alexey Raga's profile photoDanny Trieu's profile photo정도현 (Charlie Dohyun Jung)'s profile photo
 
There used to be a joint effort between TypeSafe and MS to build Scala.NET, but since CLR reifies types (and the way it does it), and Scala relies much on erasure it didn't seem to be possible co accomplish. 
For the same reason F# only have types, but not kinds, so it is not possible to abstract over what so-called "generics", neither in C# nor in F#.

Once (and if) CLR changes and makes it possible it would be much easier to make Scala.NET happen. But, again, in this case F# would get more sophisticated type system so the need of Scala.NET is questionable.
Add a comment...

Sebastian Nozzi
moderator

Misc. Dialog & Discussion  - 
 
Advanced Scala Concepts

What are the most advanced concepts of the Scala language you are struggling with? (or you feel have not yet mastered)

For the ones having mastered them:
* How did you learn these concepts?
* What are good ways to master them?
1
1
Valeriy Lysenco's profile photoAlexey Raga's profile photoAhsan Dar's profile photo
15 comments
 
Macros
Type lambdas and type-level programming in general.
Add a comment...

Facundo Viale

Articles, Podcasts, Talks  - 
 
#scala   #akka   #streams  
I’m a very big fan of the electronics. So, a couple of months ago, I started a project in which I needed to develop a pr…
7
1
Ahsan Dar's profile photo
Add a comment...
 
#CodeMesh London 3-4 November
Two days, 8 tracks, over 50 speakers on alternative tech ! And Sir Tony Hoare confirmed he will be speaking! Other speakers are F# creator Don Syme, co-inventors of Erlang Joe Armstrong and Robert Virding, co-designer of Haskell John Hughes and co-creator of Julia Stefan Karpinski.

Call For Talks is up until 26 June 

40 Very Early Bird tickets released on Thursday, 4 June. They are priced at £399 (+VAT) which will save you a hefty £250. Hurry up and get your tickets, judging by last year they'll be gone in no time!http://www.codemesh.io/codemesh2015/?utm_source=CMgoogleplus&utm_medium=website&utm_campaign=VEB#speakers
1
Add a comment...

John Sullivan

Articles, Podcasts, Talks  - 
 
 
final post in this series!
In the last essay of the Advancing Enterprise DDD series, we wrapped up our discussion on immutability, as well as the technical discussion overall. In this essay, we wrap up the series by reflecting on what we've learned, an...
View original post
1
Add a comment...

About this community

A Google+ community for articles and discussions related to the Scala programming language. (picture (c) Miles Sabin) Posts and conduct should follow the Scala Code of Conduct - http://docs.scala-lang.org/conduct.html This includes: no job postings.
World Wide

Giampaolo Trapasso

Articles, Podcasts, Talks  - 
 
Now that Java is introducing functional elements, does make sense to move to Scala? Martin Odersky replies.
28
11
Mark Bridge's profile photoSantiago Munín González's profile photoPaweł Menich's profile photomistafry's profile photo
 
audio is not good as wanted, enable subtitles if needed.
Add a comment...

Sebastian Nozzi
moderator

Web App. Development  - 
 
Towards Browser and Server Utopia with Scala.js. Share on Twitter. Posted: 10 Jun 2015; by: Richard Dallaway. At Scala Days 2015 in Amsterdam I talked about Scala.js, and in particular focussed on the great interoperability with JavaScript. This post gives additional links if you want to dig ...
7
1
Raffaella Ventaglio's profile photo
Add a comment...

Giampaolo Trapasso

Articles, Podcasts, Talks  - 
 
First 3 videos of Scala Italy are available on Vimeo: vimeo.com/channels/932072 .

Martin Odersky - Keynote - The Evolution of Scala
Phil Calçado - Your Microservice as a Function
Jon Pretty - Demystifying Type Inference
9
Add a comment...

tim wilkins

Core Language  - 
 
Quick noob question. I am wrong to genericize a case class into a trait in Scala (as you would genericize a class to an interface in Java)?

Reason I ask is that I always run into the issue of the trait not having the 'copy' method (which generally I need). 

I've read this can be overcome with macros but I want to steer clear of them.

Is there a simple workaround or should I not bother with the trait and just stick to using a specific case class?
1
tim wilkins's profile photoGary Coady's profile photo
9 comments
 
Ah. The "old" doctrine is probably to avoid concrete implementations of behaviour. However, the optimal way to write CASE classes is to avoid adding any behaviour to the class itself; case classes just represent the stored state of your data. So then you don't actually need a trait, as there should be no alternative definition of what the state is. And without side effects, there is no need for mocking functionality, etc.

This follows the idea of "anaemic domain models", which some Java people consider to be an anti-pattern, but can work well in a functional programming paradigm. See, for example, http://debasishg.blogspot.ie/2014/05/functional-patterns-in-domain-modeling.html

Your behaviour then goes elsewhere, e.g. another object in the package (the companion object is one useful place for utilities).
Add a comment...

Ivan Arambula

Core Language  - 
 
Hi everyone,

I have this code and I want to use the selector parameter to get XML dynamic xpath calls this is my code:

class XMLParser(xml:String) {
   def select(selector:String)={
   var result=(xml \\ selector)
   result
  }
}

How can the selector be a dynamic xpath input?
1
Khalid Shakir's profile photo
 
Not sure exactly what calls to your `XMLParser` you're trying to make, but I suspect you'll need more of the `scala.xml._` package.

I left a couple examples here that you can copy from the left and paste into the REPL on the right: http://codebunk.com/b/67838099/
Add a comment...

Sebastian Nozzi
moderator

Web App. Development  - 
 
Scala.js: first impressions

http://fedragon.github.io/scalajs-first-impressions/

"I recently got curious about Scala.js and decided to give it a try. Here are a few personal considerations about my experience so far."
6
1
Jan Eriksson's profile photoEric Wilson's profile photo
 
I'm just amazed about how well scalajs is working. When I started experimenting with it I was missing a bindings-library (scala-js-bindings wasn't updated för sjs 6). That got me looking at widok ("..a reactive web framework for the JVM and Scala.js" - https://widok.github.io/). After having used it in a private project it quickly become my favourite framework for web-development.
Add a comment...

Hector Yee

Libraries  - 
 
I wrote the model training part of Aerosolve in Scala (and Spark) and just released it on github this morning. Have fun!

http://nerds.airbnb.com/aerosolve/
Have you ever wondered how Airbnb’s price tips for hosts works? In this dynamic pricing feature, we show hosts the probability of getting a booking (green for a higher chance, red for a lower chance), or predicted demand, and allow them to easily price their listings dynamically with a click of a button. Many features …
7
8
Neo Lin's profile photoEric Wilson's profile photo
Add a comment...

Sebastian Nozzi
moderator

Events  - 
 
"A new and unusual non-profit conference focused on 
programming languages & emerging challenges in industry."

Where: Prague
When: 6 - 7 July

Features a talk about #Akka , and about many other cool languages and technologies. Definitely worth checking out.

More details from +Heather Miller  directly:

"""It has a killer speaker lineup: Phil Wadler (co-designer of Haskell), Brendan Eich (creator of JavaScript), Gilad Bracha (Java Generics), Bjarne Stoustroup (creator of C++), Cliff Click (author of HotSpot JVM), Jeff Bezanson & Stefan Karpinski (creators of Julia), and many other speakers responsible for emerging languages/technologies as well... Well-known languages represented: Haskell, Clojure, Scala. Emerging languages: Rust, Julia, Elm, logic programming (miniKanren), Crystal, Ceu, amongst several others."""

Early registration finishes in a couple of days!
1
Add a comment...

Kevin Lee

Misc. Dialog & Discussion  - 
6
1
Sebastian Nozzi's profile photoKevin Lee's profile photoStefano Peruzzi's profile photo
7 comments
 
Yeah!!! immutability rocks!. So you don't need to worry about sharing your car with some people you don't like. :) If you do share, they can't change anything on it. Oh, another very cool advantage is that it can be turned into anything you want on the way to your destination because it's also Monad!!! :)
Add a comment...