Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
F# High Performance

You're reading from   F# High Performance Increase your F# programming productivity and focus on performance optimization with best practices, expert techniques, and more

Arrow left icon
Product type Paperback
Published in Jan 2017
Publisher Packt
ISBN-13 9781786468079
Length 338 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Eriawan Kusumawardhono Eriawan Kusumawardhono
Author Profile Icon Eriawan Kusumawardhono
Eriawan Kusumawardhono
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Performing Common Optimizations in F# FREE CHAPTER 2. Performance Measurement 3. Optimizing Data Structures 4. Introduction to Concurrency in F# 5. Advanced Concurrency Support in F# 6. Optimizing Type Provider 7. Language Features and Constructs Optimization 8. Optimizing Computation Expressions

General computation expression design considerations


We have implemented a very simple computation expression using Bind, Return, and Zero as a starting sample.

We can conclude that the use of Bind will translate into let! as the result of let! expression will be composed nicely. The other translations are available on the official MSDN docs page of computation expression.

The translation of builder methods into syntaxes of language constructs such as let!, return, return!, and  do! are samples of syntactic sugar. The syntactic sugar of a computation expression is the ability to translate the builder methods into very neat declarative expressions to combine expressions and functions nicely. It is quite easier to have computation expressions instead of directly calling the method builder after instantiating the builder object's constructor.

Based on the discussion in the previous sections, we have concluded that there are some aspects of best practices and some advice that must be taken into...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime