January 24, 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

How To Find Your PERFECT Role In Valorant

July 10, 2020

July 10, 2020 37

Want instant, easily-accessible, 24-7 coaching from PRO players? Then check out our website: See more highly informative videos like this...

Carrom board drawing step by step / How to draw Carrom board / Drawing for kids

July 8, 2020

July 8, 2020 4

Carrom board drawing step by step / How to draw Carrom board / Drawing for kids Click here to SUBSCRIBE...

Game Boy World Direct Footage #021: Battleship

July 7, 2020

July 7, 2020 5

Straight gameplay (no commentary or edits) of Battleship (aka Navy Blue) for Game Boy, developed by Pack-In Video and published...

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 ►...

【GAMEMAKER】 SAVE COLOUR TO INI file

July 12, 2020

July 12, 2020 3

Source Code: —————————————————– —————————————————– edwardize.blogspot.com with ❤ by Edward Lance Lorilla How to learn HTML,CSS,JavaScript,DOM,jQuery,PHP,SQL,XML,Python,Bootstrap,Web,tutorials,programming,development,training,learning,quiz,primer,lessons,reference,examples,source code,colors,demos,tips with Practical full Project...

Animanimals: Ant

July 11, 2020

July 11, 2020 50

The ants are working together perfectly. But there is one ant who is doing everything differently. Script & Direction: Julia...

FIRE ELEMENTAL drawing for DUNGEON KNIGHT Board Game

July 8, 2020

July 8, 2020 14

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

TERA MOBILE | First Impressions | IS THE HYPE REAL?! Mobile MMORPG

July 10, 2020

July 10, 2020 22

Today I check out one of the most anticipated Mobile MMORPGS to hopefully come out later this year. A game...

Bratz: Girlz Really Rock Walkthrough Part 1 (Wii, PS2) 1080p

July 8, 2020

July 8, 2020 12

Bratz: Girlz Really Rock Walkthrough Part 1 for Wii and PS2. Played, recorded and edited by myself for my own...

Berbagai Jenis Vitamin Yang Cocok Untuk Hamster + Manfaat

July 9, 2020

July 9, 2020 40

Hamster Mania – Channel Edukasi Hamster dan Hewan Lainnya membahas Jenis Hamster, Kandang Hamster, Aksesoris Hamster, Mainan Hamster, Pakan Hamster,...

Elixir vs Scala – LUDWIK BUKOWSKI

July 9, 2020

July 9, 2020 1

This video was recorded at Code BEAM SF 2020 – Get involved in Code Sync’s next conference – — ELIXIR...

MINECRAFT AS AN ENDER DRAGON

July 9, 2020

July 9, 2020 22

LEARN HOW TO PLAY AS AN ENDERDRAGON IN MINECRAFT!! 🎬 SUBSCRIBE ► 🔔 AND CLICK THE BELL! 👕 SHIRTS &...

Best Plays of LA Gladiators Hydration | Overwatch League Season 1

July 12, 2020

July 12, 2020 41

João Pedro “Hydration” Goes Telles is a Brazilian/American DPS player for the LA Gladiators known for playing various heroes at...

Let's Play Bloodborne New Game Plus Part 1 – Cleric Beast

July 9, 2020

July 9, 2020

Watch more Bloodborne! Support what I do by subscribing on Patreon! My Twitter: My Other Let’s Play Channel: Our Twitter:...

How to make an outdoor Stump game

July 8, 2020

July 8, 2020 5

In this video, I make a Stump game. It’s a cool Midwest outdoor drinking game (root beer, of course) where...

Comments
Leave a Reply

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