У нас вы можете посмотреть бесплатно 10 TIPS TO WRITE FAST STACK-SAFE FUNCTIONAL CODE IN SCALA - Christophe Calvès | Scalar 2020 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Have you ever heard the belief of functional programming being slow? Have you ever been caught by a StackOverflowError in your recursive functions? Have you ever rewritten your functional code into imperative style to make it fast and stack-safe? What if i told you how to write fast and stack-safe functional code? Even for non tail-recursive functions! ;) In this talk i’ll present you 10 tips to write fast and stack-safe functional code. They comes form our production experience implementing automatically batching of API calls. This experience led to the development of Auto-Batch, a pure functional-programming Scala library for automatic batching. These 10 tips will cover the whole story of how we solve this use case, from designing the user API to ensuring the performance and safety of the execution engine. They will be presented in context: what was the business needs?, what were the technical requirements? With a strong emphasis on the problems we faced and how we managed to solve them. Among the subjects discussed are : what `@tailrec` really means and how to bypass it, how to make most functions tail-recursive, how to be sure your code is really stack-safe, how to design your own data-structure that fits your needs, how to use smart constructors to speed things up, why parametricity is your friend, are Generalized Algebraic Data Types (GADT) really useful? (spoiler alert, they are!), is there a concrete use-case of continuation-passing style?, … ------ Join the next Scalar: http://scalar-conf.com/ / scalarconf Contact organisers: https://softwaremill.com/