November 24, 2020

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

GREAT HORNY TOADS – Cho Aniki – (Part 4)

July 12, 2020

July 12, 2020 20

As always, the commentary on this was done while playing the game, not afterwards. YEEEEEEEEEEP Some of the other shmup...

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

Horned lizard – Video Learning – WizScience.com

July 9, 2020

July 9, 2020

“Horned lizards” are a genus of lizards which are the type genus of the family Phrynosomatidae. The horned lizard is...

Top 10 games about Gladiators The best games about Gladiators

July 7, 2020

July 7, 2020 33

This video contains the best gladiator games. Gladiator fights always attracted their entertainment. In computer games, we can see the...

What 1000 HOURS of Gladiator EXPERIENCE Looks Like – For Honor

July 8, 2020

July 8, 2020 33

Hi hoy guys! What 1000 HOURS Of Gladiator Experience Looks Like… Gosh, I play this game too much… Have fun!...

Dirty Drawers (hilarious drawing game) | Beer and Board Games

July 9, 2020

July 9, 2020 39

Quick! Draw a hula hooping sumo wrestler praying to a shrine of chodes! GET THE GAME NOW: • BUY US...

Bratz: Girlz Really Rock! | Dolphin Emulator 5.0-8989 [1080p HD] | Nintendo Wii

July 12, 2020

July 12, 2020

Dolphin 5.0 (dev build 8989) Bratz Girls Really Rock! Nintendo Wii in 1080p HD. The Dolphin emulator is officially available...

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

Even Dumber Ways To Die

July 11, 2020

July 11, 2020 27

Download Rise of Kingdoms today and immortalize your journey! Be sure to check out the link above where you can...

TERA CLASSIC Mobile MMORPG First Gameplay Videos

July 9, 2020

July 9, 2020 19

TERA CLASSIC Mobile MMORPG by Lantu Games for Android / iOS First Gameplay Videos. 🚩Subscribe for new games: 🚩Support me:...

Toysbuster.com Vtech V.Smile V-Motion Active Learning System Toys Games.mp4

July 11, 2020

July 11, 2020

Product Description: With Quiz Biz Math Mania, your child will be wired for the ultimate in cool gaming while his...

How To Play Battleship

July 9, 2020

July 9, 2020 40

This video tutorial will teach you how to play Battleship. Shop the Battleship game on Amazon: This video will start...

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

Harrison Ford – Exclusive 'Ender's Game' Interview (2013)

July 8, 2020

July 8, 2020 2

Interview with: Harrison Ford Harrison Ford – Exclusive ‘Ender’s Game’ Interview (2013) International Editor Luke Goodsell chats up the cast...

RED ANTS vs BLACK ANTS! HUGE Ant Surface INVASION (Empires of the Undergrowth Part 2 Gameplay)

July 8, 2020

July 8, 2020 22

Empires of the Undergrowth Ep 2 – Building up our Ant Colony, Queens Nest and Surface Battles! (Empires of the...

Comments
Leave a Reply

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