Stream

Join this community to post or comment

John Sullivan

Libraries  - 
 
I started writing documentation for this utility library I wrote
This is the second post in the Introducing Emblem series, where I discuss a reflection-based utility library I have developed called emblem. The first post presented a high-level overview of the library. In this post, we look...
1
Add a comment...

Steven Scott

Articles, Podcasts, Talks  - 
 
Hopefully an official and supported port of Akka to Scala.js will come out, but until then you could try out https://github.com/CodeMettle/jsactor. Akka-alike actors, in your browser, seamlessly talking to server-side JVM actors (we've even used it across akka-cluster)!
8
1
Steven Scott's profile photoEric Wilson's profile photo
4 comments
 
(oh, and an example project https://github.com/CodeMettle/jsactor-spa-example showing messages [Scala case classes/case objects] flowing to/from backend actors)
Add a comment...

jilen nil

Libraries  - 
 
I've written a tiny library that auto gen slick mapping via macro annotation
slickext - Slick extensions, currently only auto-mapping macros are implemented
5
Add a comment...

Sebastian Nozzi
moderator

SBT & Build Related  - 
 
Slow compile times...?

Do you suffer from slow compilation times with Scala / SBT ? (as perceived by you or related to other languages)

A. No. Scala / SBT compile times are not an issue for me.

B. Yes. I often wish Scala / SBT compiled faster.

I always wondered how the community feels about this...

P.S. This is a new version of my previous post / question (now deleted). I felt that there was not enough contrast between the choices.
120 votes  -  votes visible to Public
23%
77%
A
23%
B
77%
1
Add a comment...

Siddhartha Gadgil

Misc. Dialog & Discussion  - 
 
Scala is magic: apply+unapply replaces case class

My code uses a case class modelling the property that a function is positive:

case class FuncPositive(func : RealFunc, domain: Interval) extends ConstantTyp with Func

I needed to generalise this to bounds on functions. The brilliant abstract pattern matching in scala lets me replace this by:

case class FuncBound(func: RealFunc, domain: Interval, bound: Real, sign: Sign) extends ConstantTyp with Func with Bound

and

  object FuncPositive{
    def apply(func : RealFunc, domain: Interval) : ConstantTyp with Func = FuncBound(func, domain, 0 : Real, -1 : Sign)
    
    def unapply(typ: Typ): Option[(RealFunc, Interval)] = typ match {
      case fb @ FuncBound(func, domain, 0, -1) => Some((func, domain))
      case _ => None
    }
  }
1
Add a comment...

Sebastian Nozzi
moderator

Articles, Podcasts, Talks  - 
 
Scala Days SF 2015 - Parleys online!

"Most videos of Scala Days SF now up on parleys"
-- Martin Odersky

#scala   #scaladays   #parleys   #talks   #presentations  
35
12
Raghava Nellaturu's profile photoMaatary Okouya's profile photoEric Wilson's profile photoIsrael Fernández Cabrera's profile photo
 
Happy to see an example of people transitioning from PHP to scala in the Hootsuite talk, and talks about how to become fluent in Scala. It sounds like the community is starting to create enough info about best practices for an Effective Scala book to be published, showing how it should be best written.
Add a comment...

Adam Warski

Articles, Podcasts, Talks  - 
 
Supler live-coding at London LJC meetup! #Scala  + #Javascript  
Let’s face it. Creating websites with complex forms is a pain, and usually ends in lots of code duplication and frustration. And even though it's the age of big data and microservices, form-based applications still take a large share of our development time.  That’s why we have decided to create Supler, a Rapid Form Development library. Supler has a very focused set of functionality: * a Scala DSL for defining forms, generating JSON form descrip...
3
2
VonVictor Rosenchild's profile photoJuraj Burian's profile photo
Add a comment...

Leonardo Giordani

Articles, Podcasts, Talks  - 
 
A humble try to learn Scala.

#Scala  
1
Add a comment...

Vladimir Kostyukov

Core Language  - 
 
Designing a Purely Functional Data Structure
[home] [about me] [rss]. 04 Apr 2015 on scala, fp. Designing a Purely Functional Data Structure. Functional programming nicely leverages constraints on how programs are written thereby promoting a clean and easy to reason about coding style. Purely functional data structures are (surprisingly) ...
14
5
Yoel R GARCIA DIAZ's profile photoKuba Tyszko's profile photo
Add a comment...

Simeon Fitch
owner

Web App. Development  - 
 
Big announcement from Typesafe. I think it's the ScalaDays "one last thing" we've been waiting for...
15
2
Eric Kolotyluk's profile photoSimeon Fitch's profile photoRyanne Dolan's profile photoVonVictor Rosenchild's profile photo
3 comments
 
+Daniel Hanke You're one step closer with the FOAAS cousin, SHOUTCLOUD.IOhttps://github.com/metasim/sbt-SHOUT
Add a comment...

Simeon Fitch
owner

Core Language  - 
 
Best article on writing types classes yet!
For the TL; DR version, go straight to the Summary.
15
7
Reto Matter's profile photoBinshuo Hu's profile photo
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

ndifreke ekott

Core Language  - 
 
Hello guys. Am new to Scala. I read a few code on reading files using the scala.io.Source.fromFile method. I have checked the documentation and can't find the "fromFile" method anywhere. Can someone explain where this is coming from?
1
ndifreke ekott's profile photoIvano Pagano's profile photo
4 comments
 
+ndifreke ekott It's a known issue, and some idea came up on the mailing list to better show that the link is in effect a link!
Add a comment...

Raúl Raja Martínez

Articles, Podcasts, Talks  - 
 
Check out my latest post on #Scalaz Validation and the first of a series for folks getting introduced to Functional Programming in #Scala http://buff.ly/1FrXzfI
FP for the average Joe is a series of posts where functional Programming constructs are explained and shown in a clear way for folks getting introduced to FP and Scala - Part 1 - Scalaz Validation
13
4
Ryanne Dolan's profile photoMargaret Leber's profile photoBinshuo Hu's profile photoBernd Dutkowski's profile photo
2 comments
 
Thanks +Derek Morr​ glad you liked it!
Add a comment...

Wei Liu

Core Language  - 
 
Scala is at least 1024 times better than shell scripting, but can we just replace shell scripting with Scala? Are there any alternatives?
10
2
Wei Liu's profile photoEric Wilson's profile photoJohn Sullivan's profile photo
9 comments
 
for fast Scala script launch times, just run it from inside SBT http://scabl.blogspot.com/2013/05/scripting-with-scala-and-sbt.html
Add a comment...

Sebastian Nozzi
moderator

Misc. Dialog & Discussion  - 
 
If Haskell ran on the JVM...

Since many Scala users also have familiarity with Haskell (and many claim it's superior) I was pondering about this hypothetical question...

Imagine that Haskell, or something at least as good, ran seamlessly on the JVM.

Would that impact your usage of Scala?

A. It would not. It would not change how much I use Scala.
B. It would. I would use Scala less in favour of that language.
156 votes  -  votes visible to Public
A. Would use Scala the same.
74%
B. Would use Scala less.
26%
4
2
Pedro Rodriguez's profile photoBob Hiestand's profile photoDENE BURTON's profile photoEric Wilson's profile photo
16 comments
 
+Alexey Raga Before Lisp? You're off by about 30 years.
Add a comment...

Dennis Sosnoski

Articles, Podcasts, Talks  - 
 
The latest article in my IBM developerWorks JVM Concurrency series is now online. This one's a basic introduction to Akka and the actor model, with more Akka follow-ups on the way.
The actor model, a long-established approach to concurrent programming, gives you an easy way to build applications for high concurrency and scalability. Learn about the actor model and start working in Scala or Java with the Akka implementation of the model.
7
1
Omar Mendoza's profile photo
Add a comment...

Adam Warski

Libraries  - 
9
1
Maatary Okouya's profile photoEric Wilson's profile photo
 
Congrats !!!!
Add a comment...

Noel Yap

Core Language  - 
 
 
The Second Edition of Atomic Scala is out!
In PDF, epub and mobi (Kindle) format. The changes to the second edition include a large number of fixes to the exercises and solutions, corrections from bug reports, and any updates necessary for Scala version 2.11. Some examples are replaced or improved, and much of the book's prose is ...
View original post
1
1
Raffaella Ventaglio's profile photo
Add a comment...

Robert Thorpe

Core Language  - 
 
Check out Giovanni Costagliola´s new Scala ZEEF page!

https://scala.zeef.com/giovanni.costagliola
2
1
Ivano Pagano's profile photo
Add a comment...

Simeon Fitch
owner

Distributed Computing  - 
 
Intro article on Apache Spark's new DataFrames API.
This API is inspired by data frames in R and Python (Pandas), but designed from the ground-up to support modern big data and data science applications.
6
7
VonVictor Rosenchild's profile photoReto Matter's profile photo
Add a comment...