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

Miniboxing presentation @PDXScala meetup

Miniboxing presentation @PDXScala meetup

Miniboxing presentation @PDXScala meetup

On youtube (partial recording):
https://www.youtube.com/watch?v=g5yFlQySQ5k

Project website: http://scala-miniboxing.org

Vlad Ureche

October 21, 2014
Tweet

More Decks by Vlad Ureche

Other Decks in Programming

Transcript

  1. scala-miniboxing.org 21st of October 2014
    PDXScala Meetup
    Portland, OR
    scala-miniboxing.org

    View Slide

  2. scala-miniboxing.org
    Vlad URECHE
    PhD student in the Scala Team @ EPFL
    Miniboxing guy. Also worked on Scala
    specialization, the backend and scaladoc.
    @
    @VladUreche
    @VladUreche
    [email protected]

    View Slide

  3. scala-miniboxing.org
    scala-miniboxing.org

    View Slide

  4. scala-miniboxing.org
    Miniboxing
    Theory
    Conclusion
    Practice
    Benchmarks

    View Slide

  5. scala-miniboxing.org
    Erased Generics
    Erased Generics
    def identity[T](t: T): T = t

    View Slide

  6. scala-miniboxing.org
    Erased Generics
    Erased Generics
    def identity[T](t: T): T = t
    scalac / javac

    View Slide

  7. scala-miniboxing.org
    Erased Generics
    Erased Generics
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    scalac / javac

    View Slide

  8. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)

    View Slide

  9. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)
    scalac / javac

    View Slide

  10. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)
    identity(j.l.Integer.valueOf(5)).intValue
    scalac / javac

    View Slide

  11. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)
    identity(j.l.Integer.valueOf(5)).intValue
    scalac / javac
    Object representation

    View Slide

  12. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)
    identity(j.l.Integer.valueOf(5)).intValue
    scalac / javac inflates heap
    requirements
    Object representation

    View Slide

  13. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)
    identity(j.l.Integer.valueOf(5)).intValue
    scalac / javac produces
    garbage
    inflates heap
    requirements
    Object representation

    View Slide

  14. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)
    identity(j.l.Integer.valueOf(5)).intValue
    scalac / javac produces
    garbage
    inflates heap
    requirements
    indirect
    (slow) access
    to the value
    Object representation

    View Slide

  15. scala-miniboxing.org
    Erased Generics
    Erased Generics
    identity(5)
    identity(j.l.Integer.valueOf(5)).intValue
    scalac / javac produces
    garbage
    breaks locality
    guarantees
    inflates heap
    requirements
    indirect
    (slow) access
    to the value
    Object representation

    View Slide

  16. scala-miniboxing.org
    Specialization
    Specialization
    def identity[T](t: T): T = t

    View Slide

  17. scala-miniboxing.org
    Specialization
    Specialization
    def identity[T](t: T): T = t
    specialization

    View Slide

  18. scala-miniboxing.org
    Specialization
    Specialization
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    specialization

    View Slide

  19. scala-miniboxing.org
    Specialization
    Specialization
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    specialization
    def identity_Z(t: bool): bool = t

    View Slide

  20. scala-miniboxing.org
    Specialization
    Specialization
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    specialization
    def identity_Z(t: bool): bool = t
    def identity_C(t: char): char = t

    View Slide

  21. scala-miniboxing.org
    Specialization
    Specialization
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    specialization
    def identity_Z(t: bool): bool = t
    def identity_C(t: char): char = t
    … (7 other variants)

    View Slide

  22. scala-miniboxing.org
    Specialization
    Specialization
    identity(5)

    View Slide

  23. scala-miniboxing.org
    Specialization
    Specialization
    identity(5)
    specialization

    View Slide

  24. scala-miniboxing.org
    Specialization
    Specialization
    identity(5)
    identity_I(5)
    specialization

    View Slide

  25. scala-miniboxing.org
    Specialization
    Specialization
    identity(5)
    identity_I(5)
    specialization
    The variant of identity
    specialized for int

    View Slide

  26. scala-miniboxing.org
    Specialization
    Specialization
    identity(5)
    identity_I(5)
    specialization
    The variant of identity
    specialized for int
    // no boxing!

    View Slide

  27. scala-miniboxing.org
    Specialization
    Specialization
    def tupled[T1, T2](t1: T1, t2: T2) ...

    View Slide

  28. scala-miniboxing.org
    Specialization
    Specialization
    def tupled[T1, T2](t1: T1, t2: T2) ...
    specialization

    View Slide

  29. scala-miniboxing.org
    Specialization
    Specialization
    def tupled[T1, T2](t1: T1, t2: T2) ...
    // 100 methods (102)
    specialization

    View Slide

  30. scala-miniboxing.org
    Specialization
    Specialization
    def tupled[T1, T2](t1: T1, t2: T2) ...
    // 100 methods (102)
    specialization

    View Slide

  31. scala-miniboxing.org
    Specialization
    Specialization
    def tupled[T1, T2](t1: T1, t2: T2) ...
    // 100 methods (102)
    specialization
    Can we do
    better?

    View Slide

  32. scala-miniboxing.org
    Miniboxing
    Miniboxing
    def identity[T](t: T): T = t

    View Slide

  33. scala-miniboxing.org
    Miniboxing
    Miniboxing
    def identity[T](t: T): T = t
    miniboxing

    View Slide

  34. scala-miniboxing.org
    Miniboxing
    Miniboxing
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    miniboxing

    View Slide

  35. scala-miniboxing.org
    Miniboxing
    Miniboxing
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    miniboxing
    def identity_M(..., t: long): long = t

    View Slide

  36. scala-miniboxing.org
    Miniboxing
    Miniboxing
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    miniboxing
    def identity_M(..., t: long): long = t
    long encodes all
    primitive types

    View Slide

  37. scala-miniboxing.org
    Miniboxing
    Miniboxing
    def identity[T](t: T): T = t
    def identity(t: Object): Object = t
    miniboxing
    def identity_M(..., t: long): long = t
    Only 2n variants
    long encodes all
    primitive types

    View Slide

  38. scala-miniboxing.org
    Miniboxing
    Miniboxing
    identity(3)

    View Slide

  39. scala-miniboxing.org
    Miniboxing
    Miniboxing
    identity(3)
    miniboxing

    View Slide

  40. scala-miniboxing.org
    Miniboxing
    Miniboxing
    identity(3)
    identity_M(..., int2minibox(3))
    miniboxing

    View Slide

  41. scala-miniboxing.org
    Miniboxing
    Miniboxing
    identity(3)
    identity_M(..., int2minibox(3))
    miniboxing
    The miniboxed
    variant of identity

    View Slide

  42. scala-miniboxing.org
    Miniboxing
    Miniboxing
    identity(3)
    identity_M(..., int2minibox(3))
    miniboxing
    Encoding the integer
    into a long integer
    The miniboxed
    variant of identity

    View Slide

  43. scala-miniboxing.org
    Miniboxing
    Theory
    Conclusion
    Practice
    Benchmarks

    View Slide

  44. scala-miniboxing.org
    Class Transformation
    Late Data Layout
    The Theory of Miniboxing
    ...

    View Slide

  45. scala-miniboxing.org
    Class Transformation
    Late Data Layout
    The Theory of Miniboxing
    ...

    View Slide

  46. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)

    View Slide

  47. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]

    View Slide

  48. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)
    C$mcI$sp
    C[T]

    View Slide

  49. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)
    C$mcI$sp C$mcJ$sp
    C[T]

    View Slide

  50. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)
    C$mcI$sp C$mcJ$sp
    C[T]
    C$mcD$sp … and 7 others

    View Slide

  51. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)
    C$mcI$sp C$mcJ$sp
    C[T]
    C$mcD$sp … and 7 others
    What is the field t
    In this class?

    View Slide

  52. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)
    C$mcI$sp C$mcJ$sp
    C[T]
    C$mcD$sp … and 7 others
    What is the field t
    In this class?
    Actually there are two
    fields: a generic one from
    C and a specialized one

    View Slide

  53. scala-miniboxing.org
    class C[
    class C[@specialized
    @specialized T](t: T)
    T](t: T)
    C$mcI$sp C$mcJ$sp
    C[T]
    C$mcD$sp … and 7 others
    What is the field t
    In this class?
    Actually there are two
    fields: a generic one from
    C and a specialized one
    That's bad:
    we waste memory
    SI-3585

    View Slide

  54. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)

    View Slide

  55. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C[T]

    View Slide

  56. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C[T]

    View Slide

  57. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C_L[T]
    C[T]

    View Slide

  58. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C_L[T]
    C[T]
    C_M[T]

    View Slide

  59. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C_L[T]
    C[T]
    A single field
    C_M[T]

    View Slide

  60. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C_L[T]
    C[T]
    A single field
    C_M[T]
    Erased (t: Object)

    View Slide

  61. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C_L[T]
    C[T]
    A single field
    C_M[T]
    Erased (t: Object) Miniboxed (t: long)

    View Slide

  62. scala-miniboxing.org
    class C[
    class C[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    C_L[T]
    C[T]
    A single field
    With specialized getters
    and setters declared
    in the interface
    C_M[T]
    Erased (t: Object) Miniboxed (t: long)

    View Slide

  63. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    extends C[T]
    extends C[T]

    View Slide

  64. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]
    extends C[T]
    extends C[T]

    View Slide

  65. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]
    extends C[T]
    extends C[T]
    D[T]

    View Slide

  66. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]
    C$mcI$sp C$mcI$sp C$mcI$sp … and 7 others
    extends C[T]
    extends C[T]
    D[T]

    View Slide

  67. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]
    C$mcI$sp C$mcI$sp C$mcI$sp … and 7 others
    extends C[T]
    extends C[T]
    D$mcI$sp D$mcI$sp D$mcI$sp … and 7 others
    D[T]

    View Slide

  68. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]
    C$mcI$sp C$mcI$sp C$mcI$sp … and 7 others
    extends C[T]
    extends C[T]
    D$mcI$sp D$mcI$sp D$mcI$sp … and 7 others
    D[T]

    View Slide

  69. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]
    C$mcI$sp C$mcI$sp C$mcI$sp … and 7 others
    extends C[T]
    extends C[T]
    D$mcI$sp D$mcI$sp D$mcI$sp … and 7 others
    D[T]
    NoSuchThingError: Multiple Inheritance on the JVM

    View Slide

  70. scala-miniboxing.org
    class D[
    class D[@specialized
    @specialized T](t: T)
    T](t: T)
    C[T]
    C$mcI$sp C$mcI$sp C$mcI$sp … and 7 others
    Class inhertance
    doesn't work
    SI-8405
    extends C[T]
    extends C[T]
    D$mcI$sp D$mcI$sp D$mcI$sp … and 7 others
    D[T]
    NoSuchThingError: Multiple Inheritance on the JVM

    View Slide

  71. scala-miniboxing.org
    class D[
    class D[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    extends C[T]
    extends C[T]

    View Slide

  72. scala-miniboxing.org
    class D[
    class D[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    extends C[T]
    extends C[T]
    C_L[T] C_M[T]
    C[T]

    View Slide

  73. scala-miniboxing.org
    class D[
    class D[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    extends C[T]
    extends C[T]
    C_L[T] C_M[T]
    C[T]
    D_L[T] D_M[T]
    D[T]

    View Slide

  74. scala-miniboxing.org
    class D[
    class D[@miniboxed
    @miniboxed T](t: T)
    T](t: T)
    extends C[T]
    extends C[T]
    C_L[T] C_M[T]
    C[T]
    D_L[T] D_M[T]
    D[T]
    Inheritance OK

    View Slide

  75. scala-miniboxing.org
    Class Transformation
    Late Data Layout
    The Theory of Miniboxing
    ...

    View Slide

  76. scala-miniboxing.org
    Late Data Layout
    Late Data Layout

    theory of the transformation
    – how T becomes long

    generalizes miniboxing
    – value classes
    – staging support
    – function representation
    – etc

    scala-ldl.org

    View Slide

  77. scala-miniboxing.org
    Class Transformation
    Late Data Layout
    The Theory of Miniboxing
    ...

    View Slide

  78. scala-miniboxing.org
    Miniboxing
    Theory
    Conclusion
    Practice
    Benchmarks

    View Slide

  79. scala-miniboxing.org
    Documentation
    Quirks
    Miniboxing in Practice
    Live Demo

    View Slide

  80. scala-miniboxing.org
    Documentation
    Quirks
    Miniboxing in Practice
    Live Demo

    View Slide

  81. scala-miniboxing.org

    View Slide

  82. scala-miniboxing.org
    scala-miniboxing.org

    View Slide

  83. scala-miniboxing.org
    scala-miniboxing.org

    View Slide

  84. scala-miniboxing.org
    scala-miniboxing.org
    tutorials

    View Slide

  85. scala-miniboxing.org
    scala-miniboxing.org
    tutorials
    sbt config

    View Slide

  86. scala-miniboxing.org
    scala-miniboxing.org
    tutorials
    sbt config
    examples

    View Slide

  87. scala-miniboxing.org
    scala-miniboxing.org
    tutorials
    sbt config
    examples
    support

    View Slide

  88. scala-miniboxing.org
    Documentation
    Quirks
    Miniboxing in Practice
    Live Demo

    View Slide

  89. scala-miniboxing.org

    View Slide

  90. scala-miniboxing.org
    Alex Prokopec, axel22.github.io

    View Slide

  91. scala-miniboxing.org
    Alex Prokopec, axel22.github.io

    View Slide

  92. scala-miniboxing.org
    Know the conditions for method specialization - method specialization
    Know the conditions for method specialization - class specialization
    Initialize specialized values outside constructor body
    Resolve access problems using the package-private modifier
    Use traits where possible
    Avoid traits where possible
    Make your classes as flat as possible
    Avoid super calls
    Be wary of vars
    Think about the primitive types you really care about
    Avoid using specialization and implicit classes
    Alex Prokopec, axel22.github.io

    View Slide

  93. scala-miniboxing.org
    Know the conditions for method specialization - method specialization
    Know the conditions for method specialization - class specialization
    Initialize specialized values outside constructor body
    Resolve access problems using the package-private modifier
    Use traits where possible
    Avoid traits where possible
    Make your classes as flat as possible
    Avoid super calls
    Be wary of vars
    Think about the primitive types you really care about
    Avoid using specialization and implicit classes
    Alex Prokopec, axel22.github.io

    View Slide

  94. scala-miniboxing.org
    Know the conditions for method specialization - method specialization
    Know the conditions for method specialization - class specialization
    Initialize specialized values outside constructor body
    Resolve access problems using the package-private modifier
    Use traits where possible
    Avoid traits where possible
    Make your classes as flat as possible
    Avoid super calls
    Be wary of vars
    Think about the primitive types you really care about
    Avoid using specialization and implicit classes
    Alex Prokopec, axel22.github.io

    View Slide

  95. scala-miniboxing.org
    Know the conditions for method specialization - method specialization
    Know the conditions for method specialization - class specialization
    Initialize specialized values outside constructor body
    Resolve access problems using the package-private modifier
    Use traits where possible
    Avoid traits where possible
    Make your classes as flat as possible
    Avoid super calls
    Be wary of vars
    Think about the primitive types you really care about
    Avoid using specialization and implicit classes
    Alex Prokopec, axel22.github.io
    = fixed by the 0.4 release

    View Slide

  96. scala-miniboxing.org
    Alex Prokopec, axel22.github.io
    Quirk

    View Slide

  97. scala-miniboxing.org
    Alex Prokopec, axel22.github.io
    Quirk = limitation

    View Slide

  98. scala-miniboxing.org
    Alex Prokopec, axel22.github.io
    Quirk = limitation + silent failure

    View Slide

  99. scala-miniboxing.org
    Alex Prokopec, axel22.github.io
    Quirk = limitation + silent failure
    let's make the limitations transparent

    View Slide

  100. scala-miniboxing.org
    Documentation
    Quirks
    Miniboxing in Practice
    Live Demo

    View Slide

  101. scala-miniboxing.org
    Miniboxing
    Theory
    Conclusion
    Practice
    Benchmarks

    View Slide

  102. scala-miniboxing.org
    Microbenchmarks
    Collections
    Benchmarks
    Spire

    View Slide

  103. scala-miniboxing.org
    Miniboxing Benchmarks
    Miniboxing Benchmarks
    on array buffers
    on array buffers

    View Slide

  104. scala-miniboxing.org
    Miniboxing Benchmarks
    Miniboxing Benchmarks
    on linked lists
    on linked lists

    View Slide

  105. scala-miniboxing.org
    Miniboxing Benchmarks
    Miniboxing Benchmarks
    on linked lists
    on linked lists
    3x faster
    On a non-contiguous
    data structure

    View Slide

  106. scala-miniboxing.org
    Miniboxing Benchmarks
    Miniboxing Benchmarks
    on the Spire library (RexBench)
    on the Spire library (RexBench)
    miniboxed
    specialized
    generic

    View Slide

  107. scala-miniboxing.org
    Miniboxing
    Theory
    Conclusion
    Practice
    Benchmarks

    View Slide

  108. scala-miniboxing.org
    Credits and Thank you-s

    Cristian Talau - developed the initial prototype, as a semester project

    Eugene Burmako - the value class plugin based on the LDL transformation

    Aymeric Genet - developing collection-like benchmarks for the miniboxing plugin

    Martin Odersky, for his patient guidance

    Eugene Burmako, for trusting the idea enough to develop the value-plugin based on the LDL transformation

    Iulian Dragos, for his work on specialization and many explanations

    Miguel Garcia, for his original insights that spawned the miniboxing idea

    Michel Schinz, for his wonderful comments and enlightening ACC course

    Andrew Myers and Roland Ducournau for the discussions we had and the feedback provided

    Heather Miller for the eye-opening discussions we had

    Vojin Jovanovic, Sandro Stucki, Manohar Jonalagedda and the whole LAMP laboratory in EPFL for the extraordinary atmosphere

    Adriaan Moors, for the miniboxing name which stuck :))

    Thierry Coppey, Vera Salvisberg and George Nithin, who patiently listened to many presentations and provided valuable feedback

    Grzegorz Kossakowski, for the many brainstorming sessions on specialization

    Erik Osheim, Tom Switzer and Rex Kerr for their guidance on the Scala community side

    OOPSLA paper and artifact reviewers, who reshaped the paper with their feedback

    Sandro, Vojin, Nada, Heather, Manohar - reviews and discussions on the LDL paper

    Hubert Plociniczak for the type notation in the LDL paper

    Denys Shabalin, Dmitry Petrashko for their patient reviews of the LDL paper
    Special thanks to the Scala Community for their support!
    (@StuHood, @vpatryshev and everyone else!)

    View Slide

  109. scala-miniboxing.org
    scala-miniboxing.org

    View Slide

  110. scala-miniboxing.org
    ScalaTeam @ EPFL

    View Slide

  111. scala-miniboxing.org
    ScalaTeam @ EPFL

    YinYang frontend multi-stage execution
    – based on macro transformations
    – Vojin Jovanovic/Sandro Stucki
    https://github.com/vjovanov/yin-yang

    View Slide

  112. scala-miniboxing.org
    ScalaTeam @ EPFL

    Scala.js backend
    – compiles Scala to JavaScript
    – Sébastien Doeraene/Tobias Schlatter
    http://www.scala-js.org/
    www

    View Slide

  113. scala-miniboxing.org
    ScalaTeam @ EPFL

    Lightweight Modular Staging
    – program optimization
    – Tiark Rompf + pretty much everyone
    http://scala-lms.github.io/
    www

    View Slide

  114. scala-miniboxing.org
    ScalaTeam @ EPFL

    Dependent Object Types calculus
    – core type system of the dotty compiler
    – Nada Amin/Tiark Rompf
    https://github.com/TiarkRompf/minidot
    https://github.com/lampepfl/dotty

    View Slide

  115. scala-miniboxing.org
    ScalaTeam @ EPFL

    Pickling framework and Spores
    – support for distributed programming
    – Heather Miller/Philipp Haller + others
    https://github.com/scala/pickling
    https://github.com/heathermiller/spores

    View Slide

  116. scala-miniboxing.org
    ScalaTeam @ EPFL

    Staged Parser-combinators
    – fast parser combinators through staging
    – Manohar Jonnalagedda + others
    https://github.com/manojo/experiments

    View Slide

  117. scala-miniboxing.org
    ScalaTeam @ EPFL

    dotty compiler
    – compiler for Scala but with the DOT type system
    – Martin Odersky/Dmitry Petrashko/Tobias Schlatter
    https://github.com/lampepfl/dotty

    View Slide

  118. scala-miniboxing.org
    ScalaTeam @ EPFL

    scala.meta metaprogramming support
    – Improved reflection, macros, and many more
    – Eugene Burmako/Denys Shabalin + others
    http://scalameta.org/
    www

    View Slide

  119. scala-miniboxing.org
    ScalaTeam @ EPFL

    scaladyno plugin
    – giving Scala a dynamic language look and feel
    – Cédric Bastin/Vlad Ureche
    https://github.com/scaladyno/scaladyno-plugin

    View Slide

  120. scala-miniboxing.org
    ScalaTeam @ EPFL

    miniboxing specialization
    – LDL transformation
    – Vlad Ureche/Aymeric Genêt + others
    http://scala-miniboxing.org/
    www

    View Slide

  121. scala-miniboxing.org
    ScalaTeam @ EPFL

    ScalaBlitz optimization framework
    – macro-based collection optimization
    – Dmitry Petrashko/Aleksandar Prokopec
    http://scala-blitz.github.io/
    www

    View Slide

  122. scala-miniboxing.org
    ScalaTeam @ EPFL

    LMS-Kappa protein simulator
    – using multi-stage programming for performance
    – Sandro Stucki
    https://github.com/sstucki/lms-kappa

    View Slide

  123. scala-miniboxing.org
    ScalaTeam @ EPFL

    Odds probabilistic programming framework
    – using scala-virtualized and macros
    – Sandro Stucki
    https://github.com/sstucki/odds

    View Slide

  124. scala-miniboxing.org
    ScalaTeam @ EPFL

    Type debugger for Scala
    – debugging aid for Scala type errors
    – Hubert Plociniczak
    http://lampwww.epfl.ch/~plocinic/
    type-debugger-tutorial/
    www

    View Slide

  125. scala-miniboxing.org
    ScalaTeam @ EPFL

    ScalaMeter benchmarking framework
    – google caliper for scala
    – Aleksandar Prokopec
    http://scalameter.github.io/
    www

    View Slide

  126. scala-miniboxing.org
    ScalaTeam @ EPFL

    Vector implementation using RRB trees
    – improved performance for Scala collections
    – Nicolas Stucki
    https://github.com/nicolasstucki/scala-rrb-vector
    www

    View Slide

  127. scala-miniboxing.org
    ScalaTeam @ EPFL

    the new scalac backend
    – good performance gains
    – Miguel Garcia

    on the job market right now
    http://magarciaepfl.github.io/scala/
    www
    @ [email protected]

    View Slide