June 9, 2021

10 tips to write fast stack-safe functional code in Scala: the automatic-batch… – Christophe Calvès



10 tips to write fast stack-safe functional code in Scala: the automatic-batching library experience report

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. It is based on my experience implementing [Auto-Batch]( a pure functional-programming Scala library to automatically batch API calls. Through these 10 tips, we’ll discuss many subjects together: 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, which free data-structure to choose for your need, how to use smart constructors to speed things up, “hidden” features of the IO monads, applicatives vs monads, why parametricity is your friend, are Generalized Algebraic Data Types really useful (spoiler alert, they are!), is there a concrete use-case of continuation-passing style, …

Nguồn: https://ka-nom.com/

Xem thêm bài viết khác: https://ka-nom.com/game/

in Game
Related Posts

Mirip Yang di PC ! TERA ORIGIN MOBILE GAME ! MMORPG !

July 12, 2020

July 12, 2020 4

Download : Jangan Lupa Buat Follow Sosial Media Gua di : Instagram ► Twitter ► Facebook Page ► Steam ►...

TERA HERO Gameplay Android / iOS Mobile MMORPG Unreal Engine 4

July 9, 2020

July 9, 2020 14

TERA HERO (테라 히어로) Gameplay Video 1080p Ultra. TERA HERO by Red Sahara Studio Inc. is a mobile MMORPG on...

Ender's Game – 05 The Battle Room (OST 2013 HD)

July 8, 2020

July 8, 2020 22

The fabolous Score from “Ender’s Game” Enjoy the Track and the Score;) Enjoy the Album in HD 🙂 You find...

Red Ants Kill Black Ant Queens! – Empires of the Undergrowth Gameplay – Demo Update

July 12, 2020

July 12, 2020 23

Welcome to Empires of the Undergrowth! Empires of the Undergrowth is a game like Sim Ant. Our goal is to...

FROG PRINCE drawing for DUNGEON KNIGHT Board Game

July 12, 2020

July 12, 2020 10

***SUPPORT CHANNEL ON PATREON: Support me on Patreon and get Full-time normal speed video, 4k wallpaper image, layered PSD file,...

Predicting ALL 32 TEAMS 2019 NFL Record Game-by-Game

July 9, 2020

July 9, 2020 36

Predicting ALL 32 Team’s 2019 NFL Record Game-by-Game AFC Cleveland Browns – 0:00 Cincinnati Bengals – 2:05 Baltimore Ravens –...

Bloodborne Old Hunters NG+ ► DLC IS TOO DAMN HARD!! (SO MUCH RAGE!!) #3

July 9, 2020

July 9, 2020 32

Bloodborne Old Hunters NG+ – DLC IS TOO DAMN HARD!! (SO MUCH RAGE!!) #3. FromSoft has out done themselves with...

Ender's Game – Mazer Rackham Monologue – Orson Scott Card – Atticus Reads

July 10, 2020

July 10, 2020 6

My favorite monologue from Ender’s Game (the book), which was cut from the movie. Mazer Rackham goes on a long...

Backyard NFL Football Obstacle & Gear Test for Kids!!! KIDCITY

July 12, 2020

July 12, 2020

Hey Kids! Today we’ve put together the ultimate Backyard NFL Football Obstacle – we’ll learn to pass and kick and...

Vitalii Honta at #ScalaUA – Scala 3 in action

July 8, 2020

July 8, 2020

Vitalii Honta – Scala 3 in action – ScalaUA-2020 Conference Abstract: New and shiny Scala 3 is coming soon. The...

Ender's Game Trailer – Homemade

July 8, 2020

July 8, 2020 30

Now that’s an epic homemade Ender’s Game trailer! Want a new Homemade Movie every Tuesday? SUBSCRIBE TO CINEFIX — Watch...

Hướng dẫn chi tiết cách tải game bắn cá miễn phí về điện thoại nhanh nhất

December 4, 2020

December 4, 2020

Nhu cầu tải game bắn cá miễn phí về điện thoại để giải trí những lúc rảnh rỗi đang được...

Ender's Game Fantasy Suite

July 8, 2020

July 8, 2020 1

This is my compilation of Steve Jablonsky’s score to Ender’s Game. Listed below are the tracks I used, in order....

TERA ORIGIN (Netmarble) – MMORPG GAMEPLAY (ANDROID/IOS)

July 8, 2020

July 8, 2020 36

TERA ORIGIN (Netmarble) (テラオリジン) – MMORPG GAMEPLAY (ANDROID/IOS) Netmarble announced today a new spinoff prequel of Korean MMORPG Tera Online,...

Building a Data Science Platform in Scala

July 10, 2020

July 10, 2020 2

In this talk, John A. De Goes, CTO of Precog, presents the high-level architecture of PrecogDB, a data science platform...

Comments
Leave a Reply

Your email address will not be published. Required fields are marked *