Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Scala Is The Next Scala

Scala Is The Next Scala

Kevin Webber, CEO of RedElastic, will discuss reasons why Scala will likely remain a specialized programming language, and why becoming The Next Java isn’t what the Scala community needs in order to continue fostering a vibrant community, culture, and ecosystem.

The Rule Of Least Power is the philosophy of using the least powerful technology capable of solving a given problem, which is the philosophy that lead to the development of modern generalist languages like Google’s Go. Even more profound are the changes to modern systems architectures; today, a modern system might be composed of tens or hundreds of discrete services. No longer do teams need to choose a single language to accomplish the difficult task of launching a production-grade system, now teams can be very specific about which language is best suited to an individual component of a system. These trends in software development takes the pressure off of Scala to become The Next Java, which gives the Scala community the opportunity to focus on the essence of what makes Scala unique, and why it might be the language of choice to leverage against the most exciting opportunities in your business.

Drawing on almost ten years of Scala experience, along with meeting hundreds of technology leaders who are using Scala on mission-critical projects, Kevin will draw on these experiences to discuss the past of Scala and where the language and ecosystem may evolve to over the next decade.

Kevin Webber

May 13, 2017
Tweet

More Decks by Kevin Webber

Other Decks in Technology

Transcript

  1. SCALA IS THE NEXT SCALA Kevin Webber Consultant & Founder

    @ RedElastic e: [email protected] m: medium.com/@kvnwbbr t: @kvnwbbr
  2. MY STORY ▸ Started exploring Scala in 2008 while at

    the Bank of Montreal ▸ Former Lightbend customer (2012-2014) ▸ Enterprise Architect & Advocate at Lightbend (2014-2016) ▸ Founded RedElastic in 2016
  3. Era Scala Java 2008 2.7.x Java SE 6 2010 2.8.x

    2011 2.9.x Java SE 7 2013 2.10.x 2014 2.11.x Java SE 8 2016 2.12.x 2017 (Q3) Java SE 9 2018 (Q1) 2.13.x
  4. WHY EVALUATE SCALA? ▸ Capital Markets (FX, wire transfers) ▸

    Struggling with multi-threaded Java ▸ Struggling with clustered WebLogic ▸ Needed easier concurrency model
  5. Language features SCALA 2.7 JAVA SE 6 REPL ✓ x

    Option<T> ✓ x abbreviated syntax ✓ x lambda expressions ✓ x pattern matching ✓ x
  6. SUCCESS? REJECTED AS AN APPROVED LANGUAGE DUE TO: ▸ Lack

    of commercial support ▸ Lack of tooling ▸ Lack of experienced developers
  7. WHY ATTEMPT TO USE SCALA AGAIN? ▸ Needed to build

    an advanced ecommerce platform with very few back-end developers ▸ A talk by Sadek Drobi at QCon New York brought Scala back to mind and introduced me to Play ▸ Built platform as a monolithic Play application, iterated over time
  8. Language features FEATURE SCALA 2.9 JAVA SE 7 REPL ✓

    x Option<T> ✓ x abbreviated syntax ✓ x lambda expressions ✓ x pattern matching ✓ x
  9. SUCCESS? APPROVED AS A LANGUAGE: ▸ Commercial support was available

    ▸ Technical leadership first approved Play and Akka ▸ Language choice was the last decision we made ▸ Viewed as a developer concern as long as it supported the JVM
  10. MEASURE, MEASURE, MEASURE ▸ The benefits of Scala with Play

    & Akka were measurable ▸ Had to support 5+ million page views per minute ▸ Zero downtime ▸ Small Scala team delivered walmart.ca in < 12 months ▸ Significantly bigger front-end team
  11. Language features FEATURE SCALA 2.11 JAVA SE 8 REPL ✓

    x Option<T> ✓ ✓ abbreviated syntax ✓ x lambda expressions ✓ ✓ pattern matching ✓ x
  12. MOMENTUM ▸ At the beginning of 2014 tooling was still

    emerging ▸ The ecosystem has been maturing steadily (e.g, OpsClarity for monitoring) ▸ Many Scala success stories since: Intel, Verizon, Samsung, UniCredit, Walmart, Barclays ▸ Scala has gone from "underdog" to "enterprise approved"
  13. Language features FEATURE SCALA 2.12 JAVA SE 9 REPL ✓

    ✓ Option<T> ✓ ✓ abbreviated syntax ✓ x lambda expressions ✓ ✓ pattern matching ✓ x
  14. The new features of Java 9 ▸ Java + REPL

    (jshell) ▸ New HTTP Client /w HTTP 2.0 ▸ Security improvements ▸ Improved immutable collections ▸ Reactive Streams (java.util.concurrent.Flow provides interfaces)
  15. A better Java is good for Scala 2.12 ("COMPILER RELEASE")

    ▸ Java 8 (λ, SAM, default) ▸ New backend & optimizer
  16. The Scala ecosystem is catching up SCALA 2.12 JAVA SE

    9 SAST (HP Fortify) ✓ ✓ Fast compilation ✓ (Hydra) ✓
  17. Force ranked priorities DEVELOPER MANAGER EXECUTIVE Syntax 1 3 6*

    Ecosystem 2 2 5 Hiring 4 1 1 Support 3 4 4 Indemnity 6 2 Terms 5 3
  18. Force ranked priorities DEVELOPER MANAGER EXECUTIVE Syntax 1 3 6*

    Ecosystem 2 2 5 Hiring 4 1 1 Support 3 4 4 Indemnity 6 2 Terms 5 3
  19. Force ranked priorities DEVELOPER MANAGER EXECUTIVE Syntax 1 3 6*

    Ecosystem 2 2 5 Hiring 4 1 1 Support 3 4 4 Indemnity 6 2 Terms 5 3
  20. Cultures of total dedication look crazy from the outside, partly

    because the most notorious cults were homicidal. — Peter Thiel, Zero To One
  21. We need to understand objections so we can advise others

    in a rational, thoughtful way, not based on total dedication.
  22. EXECUTIVE OBJECTIONS ▸ "I hire smart people and get out

    of their way. I don't care what language they use." ▸ "What's the ROI of Scala?" ▸ "Scala has not been approved by our architecture team."
  23. OBJECTION HANDLING ▸ "Our use of Scala opened up hiring

    opportunities never before possible." ▸ "A small team of Scala developers can achieve significant productivity with very little code." ▸ "Scala is the language of choice in strategic domains."
  24. DEVELOPMENT MANAGER OBJECTIONS ▸ "Scala is difficult and only for

    the elite." ▸ "There are not enough Scala developers in the market." ▸ "Scala doesn't support [Maven, HP Fortify, etc]."
  25. OBJECTION HANDLING ▸ "We were able to recruit top-shelf Java

    talent that wants to expand their skills in functional programming by using Scala." ▸ "Scala is a JVM language, fully compatible with most Java libraries, and the ecosystem is very mature." ▸ "You can accomplish more with fewer developers." ▸ "You will unlock the full potential of your developers."
  26. DEVELOPER OBJECTIONS ▸ "We don't know [category theory, calculus, linear

    algebra, etc]." ▸ "Functional programming is terrifying!" ▸ "Scala is very unopinionated. I don't know where to start!" ▸ "I don't have time to learn a new language. I can do all of this in Java."
  27. OBJECTION HANDLING ▸ "You don't need [calculus, category theory, linear

    algebra] for business programming in Scala." ▸ "You can stretch yourself for library programming, though!" ▸ "Functional programming is strategic for your career; it's widely used in high-growth domains."
  28. SCALA IS ACTIVE! ▸ Significant contributions by the open-source community

    ▸ Significant contributions by partners ▸ Releases average 2x per year
  29. Coursera's Functional Programming in Scala specialization 1. Functional Programming Principles

    in Scala 2. Functional Program Design in Scala 3. Parallel programming 4. Big Data Analysis with Scala and Spark 5. Functional Programming in Scala Capstone
  30. SCALA IS WELL POSITIONED ▸ Cloud computing ▸ Data (big

    data, fast data) ▸ Distributed systems ▸ Modern architecture (Domain-Driven Design, CQRS, Event Storming)
  31. LIBRARIES AND TOOLS LEADING THE CHARGE ▸ Kafka (Confluent) ▸

    Spark (Apache) ▸ Akka & Reactive Streams (Lightbend) ▸ Apache Gearpump (Intel)
  32. SCALA IS NOT THE NEXT JAVA ▸ Scala must continue

    to push functional programming forward ▸ Enterprises will continue to embrace Java given the closing gap in language features ▸ Enterprises will use Scala when and where it makes sense ▸ Scala and Java will continue to co-exist together (JVM, interop, ecosystem)
  33. SCALA IS THE NEXT SCALA ▸ Scala must always retain

    "first-mover advantage" ▸ Scala will push all developers to new heights in exciting domains like machine learning, AI, big data, and distributed systems ▸ Scala will continue to unlock the full potential of developers
  34. Summary ▸ Value is always in flux ▸ Being the

    next something is not aspirational ▸ Java will remain a popular choice for large enterprise projects
  35. Scala is the optimum choice for ▸ mission-critical projects, in

    ▸ strategic domains, with ▸ small teams, and ▸ modular architectures