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

Some Trends in Open Source / The State of the S...

Some Trends in Open Source / The State of the Scala Center

Heather Miller

September 19, 2017
Tweet

More Decks by Heather Miller

Other Decks in Programming

Transcript

  1. .. Heather Miller @heathercmiller Scala World, September 19th, 2017 scalacenter

    Some Trends in Open Source… / The State of the Scala Center
  2. The same is true for digital infrastructure Open source software

    is our shared digital infrastructure. free/libre and open source = FLOSS
  3. The same is true for digital infrastructure Open source software

    is our shared digital infrastructure. Like physical infrastructure, anybody can use these things.
  4. “ ” Fill That Hole contacts the highway authority to

    get it fixed. Concerned citizen observes pothole. Report to loca government. Government fixes it. 2 1 3 (UK app)
  5. This is going to be in large part a talk

    about general FLOSS. Towards the end, we’ll come back to Scala.
  6. Roads and Bridges: The Unseen Labor Behind Our Digital Infrastructure

    W R I T T E N B Y Nadia Eghbal + many blog articles, surveys, etc, that will be cited in-line. Nadia Eghbal Pieter Hintjens Several sources of information for this talk: I found many of these references via Nadia’s excellent report! —
  7. https://www.blackducksoftware.com/2016-future-of-open-source Black Duck 2015 & 2016 “Future of Open Source”

    Survey Open source survey Interviewed 1,313 companies Key points (in 2016) 78% “of companies run on open source” Interviewed 1,240 companies (in 2015) This is up 2x over 2010! (in 2015) Companies are depending more and more on floss
  8. https://www.blackducksoftware.com/2016-future-of-open-source Black Duck 2015 & 2016 “Future of Open Source”

    Survey Open source survey Quality of solutions Key points (in 2016) top 3 reasons to use floss #1 Competitive features & technical capabilities #2 Ability to customize & fix #3 66% of companies consider FLOSS options before proprietary alternatives. (in 2015) floss is the default choice!
  9. https://bothsidesofthetable.com/understanding-changes-in-the-software- venture-capital-industries-b69a7e3a1ec7#.4m1gkd577 FLOSS is widely viewed as a way to

    help startups scale quickly and save money Mark Suster Entrepreneur & VC (in 2011) When I built my first company starting in 1999 it cost $2.5 million in infrastructure just to get started and another $2.5 million in team costs to code, launch, manage, market & sell our software. Open source became a movement — a mentality. Suddenly infrastructure software was nearly free. We paid 10% of the normal costs for the software and that money was for software support. A 90% disruption in cost spawns innovation — believe me.
  10. https://opbeat.com/blog/posts/picking-tech-for-your-startup/ FLOSS is widely viewed as a way to help

    startups scale quickly and save money Mike Krieger Instagram co-founder Borrow instead of building whenever possible There are hundreds of fantastic open-source projects that have been built through the hard experience of creating and scaling companies; especially around infrastructure and monitoring…that can save you time and let you focus on actually building out your product. Blog article: Advice on picking tech for your startup
  11. Meanwhile, OpenSSL was maintained by only a few volunteers 66%

    of all web servers were using OpenSSL In 2014, [1]: https://news.netcraft.com/archives/2014/04/08/half-a-million-widely-trusted-websites- vulnerable-to-heartbleed-bug.html 1 [2]: https://fordfoundcontent.blob.core.windows.net/media/2976/roads-and-bridges-the- unseen-labor-behind-our-digital-infrastructure.pdf Steve Marquess, noticed that one contributor, Stephen Henson, was working full time on OpenSSL. Curious, Marquess asked him what he did for income, and was shocked to learn that Henson made one-fifth of Marquess’s salary. Marquess had always considered himself to be a strong programmer, but his skills paled in comparison to Henson’s. … Henson had been working on OpenSSL since 1998. 2 2
  12. [2]: https://fordfoundcontent.blob.core.windows.net/media/2976/roads-and-bridges-the- unseen-labor-behind-our-digital-infrastructure.pdf I had always assumed, (as had the

    rest of the world) that the OpenSSL team was large, active, and well resourced. 2 In reality, OpenSSL wasn’t even able to support one person’s work. – Steve Marquess 2 And yet, industry, government, etc are largely unaware of infrastructure’s funding issues.
  13. Have you ever heard of the Truck factor? It gets

    worse. the minimal # of developers that have to be hit by a truck (or quit) before a project is incapacitated The Truck Factor:
  14. Have you ever heard of the Truck factor? Look at

    the 133 most active projects on GitHub It gets worse. https://peerj.com/preprints/1233.pdf the minimal # of developers that have to be hit by a truck (or quit) before a project is incapacitated The Truck Factor: Determine the amount of information concentrated in individual team members from commits. 64% of projects relied on 1-2 devs to survive. Result:
  15. Table 2: Truck Factor results TF Repositories 1 alexreisner/geocoder ,

    atom/atom-shell , bjorn/tiled , bumptech/glide , celery/celery , celluloid/celluloid , dropwizard/dropwizard , dropwizard/metrics , erikhuda/thor , Eugeny/ajenti , getsen- try/sentry , github/android , gruntjs/grunt , janl/mustache.js , jr- burke/requirejs , justinfrench/formtastic , kivy/kivy , koush/ion , kriswallsmith/assetic , Leaflet/Leaflet , less/less.js , mailpile/Mailpile , mbostock/d3 , mitchellh/vagrant , mitsuhiko/flask , mongoid/mongoid , nate-parrott/Flashlight , nicolasgramlich/AndEngine , paulas- muth/fnordmetric , phacility/phabricator , powerline/powerline , puphpet/puphpet , ratchetphp/Ratchet , ReactiveX/RxJava , sandstorm- io/capnproto , sass/sass , sebastianbergmann/phpunit , sferik/twitter , silexphp/Silex , sstephenson/sprockets , substack/node-browserify , thoughtbot/factory_girl , thoughtbot/paperclip , wp-cli/wp-cli 2 activeadmin/activeadmin , ajaxorg/ace , ansible/ansible , apache/cassandra , bup/bup , clojure/clojure , composer/composer , cucumber/cucumber , driftyco/ionic , drupal/drupal , elas- ticsearch/elasticsearch , elasticsearch/logstash , ex- cilys/androidannotations , facebook/osquery , facebook/presto , FriendsOfPHP/PHP-CS-Fixer , github/linguist , Itseez/opencv , jadejs/jade , jashkenas/backbone , JohnLangford/vowpal_wabbit , jquery/jquery-ui , libgdx/libgdx , meskyanichi/backup , netty/netty , omab/django-social-auth , openframeworks/openFrameworks , plataformatec/devise , prawnpdf/prawn , pydata/pandas , Re- spect/Validation , sampsyo/beets , SFTtech/openage , sparklemo- tion/nokogiri , strongloop/express , thinkaurelius/titan , ThinkU- pLLC/ThinkUp , thumbor/thumbor , xetorthio/jedis 3 bbatsov/rubocop , bitcoin/bitcoin , bundler/bundler , divio/django-cms , haml/haml , jnicklas/capybara , mozilla/pdf.js , rg3/youtube-dl , mrdoob/three.js , spring- projects/spring-framework , yiisoft/yii2 4 boto/boto , BVLC/caffe , codemirror/CodeMirror , gra- dle/gradle , ipython/ipython , jekyll/jekyll , jquery/jquery 5 iojs/io.js , meteor/meteor , ruby/ruby , WordPress/WordPress 6 chef/chef , cocos2d/cocos2d-x , diaspora/diaspora , em- berjs/ember.js , resque/resque , Shopify/active_merchant , spotify/luigi , TryGhost/Ghost 7 django/django , joomla/joomla-cms , scikit-learn/scikit-learn 9 JetBrains/intellij-community , puppetlabs/puppet , rails/rails 11 saltstack/salt , Seldaek/monolog , v8/v8 12 git/git , webscalesql/webscalesql-5.6 13 fog/fog 14 odoo/odoo 18 php/php-src 19 android/platform_frameworks_base , moment/moment 23 fzaninotto/Faker 56 caskroom/homebrew-cask 130 torvalds/linux 250 Homebrew/homebrew PrePrints The Truck Factor Results: The higher the TF the better! Only a handful of projects with a high TF…
  16. All the cool kids are doing it: US Dept of

    Defense: Going FLOSS-crazy
  17. All the cool kids are doing it: US Dept of

    Defense: A 2003 report showed that the US DoD was a major user of FLOSS. Going FLOSS-crazy http://dodcio.defense.gov/Portals/0/Documents/FOSS/dodfoss_pdf.pdf FLOSS even being used in mission-critical situations. Report concluded: Don’t ban FLOSS at the DoD! Instead, promote promote broader and more effective use of FLOSS at the DoD. Moar! Unexpectedly, DoD security depends heavily on FLOSS. “FOSS applications tend to be much lower in cost than their proprietary equivalents, yet they often provide high levels of functionality with good user acceptance.”
  18. A few trends. Using FLOSS over proprietary is now mainstream.

    Startups, enterprise, and even governments are depending on this digital infrastructure. most users of floss unaware of these trends! Orders of magnitude more users, same or fewer contributors.
  19. How can we reverse this? More companies should allow engineers

    to contribute to FLOSS If you profit off of it, give back to this shared infrastructure!
  20. A not-for-profit center established at EPFL EPFL (the Swiss Federal

    Institute of Technology at Lausanne) First a 30 second intro to the SC…
  21. O u r m i s s i o n

    Independently guide and support the entire Scala community. Coordinate and develop open source libraries and tools for the benefit of the overall Scala community. Provide deep, quality, and freely available educational materials for Scala.
  22. A not-for-profit center established at EPFL EPFL Equally backed by

    8 companies. All major stakeholders in Scala
  23. Trond Bjerkestrand Corey Minter Ahmad Ragab Kei Nakazawa Samuel Halliday

    Matic Potočnik Shane Delmore Kingsley Davies Jatin Puri and more… Heiko Seeberger Andy Hicks
  24. The SC aims to make it easier to contribute to

    core Scala + the Scala ecosystem. We want to grow contributor base across core libs + ecosystem. Higher truck factor 
 = good :)
  25. What we’ve been up to in the past few months.

    = Lots. Providing interactive compilation profiling info. - Code migration & linting tools - New Scala Collections - Work on sbt - Work on incremental compilation (Zinc) - Scala in the browser! (as well as Dotty, Scala Native, etc) - Work on Scaladex; the Scala Package Index - Work on Scala Native - New websites! - Running the SIP/SPP process -
  26. Interactive Profiling Info Jorge Vicente Cantero Collect statistics and optimize

    checks Collect statistics per instance of Global. (Currently in the PR queue to scala/scala) Timers/counters to count/profile: - expansions of macros - implicit searches triggered Compiler plugin for putting it all in a “profiledb” Can be used by other tools! Integration with VS Code (prototype)
  27. Code migration & linting tools Ólafur Páll Geirsson Scalafix Rewriting,

    refactoring, and linting. Inital goal: Tool to upgrade Scala 2.x codebases to Dotty. Scalafix can also be used to do automatic refactorings in library upgrades. E.g., Xor to Either:
  28. Code migration & linting tools Ólafur Páll Geirsson Scalafix Now

    with basic linting! When we encounter non-final case class: E.g., FinalCaseClass linter that reports an error if a case class is not marked as final.
  29. New Scala Collections For 2.13 & Dotty Julien Richard Foy

    with Stefan Zeiger at Lightbend Or the scala-lang blog: http://scala-lang.org/blog/2017/09/12/collections- status.html Citation: Stefan Zeiger’s presentation yesterday
  30. Work on sbt & Zinc Jorge Vicente Cantero Martin Duhem

    Zinc 1.0.0 released! Zinc sbt Contributed to the push for sbt 1.0 alongside of the Lightbend sbt team. Incremental compiler focused on making compilation times faster without sacrificing correctness. Continued and released class- based dependency analysis introducted by G. Kossakowski.
  31. Scala in the browser! Guillaume Massé scalac, Dotty, Scala.js, Scala

    Native, and Typelevel Scala compilers – in the browser. + any indexed library! https://scastie.scala-lang.org
  32. The Scala Package Index Guillaume Massé Michael Viveros Now with

    contributing info! https://index.scala-lang.org
  33. Work on Scala Native & SIP/SPP Process Jorge Vicente Cantero

    Martin Duhem SIP/SPP process ongoing. Needs a kick on getting people to confirm availabilities for the live meetings, but generally moving forward. SIP/SPP Scala Native Compiling scalac with Scala Native. Lots of improvements in areas like caching, support for Enumeration, support for scala.util.Properties, many smaller fixes.
  34. Up next… We’re taking on Macros Goal: production-ready implementation of

    macros for 2.13 & Dotty. Non-experimental from 2.14 onwards.
  35. Back to my open source points… Tomorrow the Scala Center

    is hosting an Open Source Spree! ? ? ? Spree?
  36. Structure and process for bringing people together to work on

    Scala ecosystem projects Community-building exercise Pair programming Library author in the room Library author curates ~5 todos, accomplishable in 3hrs by newcomers ahead of time Goal of participants: 1 PR merged by end of hackathon “Scala Sprees” Growing Our FL/OSS Community
  37. Portable, repeatable. For any library/project. Soon: Recipe for meetup group

    organizers to follow in their cities. Goal: Teaching Open Source “Scala Sprees”
  38. In the last five years, open source infrastructure has become

    an essential layer of our social fabric. But much like startups or technology itself, what worked for the first 30 years of open source’s history won’t work moving forward. In order to maintain our pace of progress, we need to invest back into the tools that help us build bigger and better things. If you remember anything from this, remember this quote by Nadia Eghbal:
  39. Thank you We don’t want your money. We want PRs!*

    *For everybody not just Scala core repos. Questions? And remember…