All Projects → panesofglass → computation-expressions-workshop

panesofglass / computation-expressions-workshop

Licence: Unlicense license
F# Computation Expressions Workshop

Programming Languages

F#
602 projects

Projects that are alternatives of or similar to computation-expressions-workshop

QuickDAO
Simple Data Access Object library with LinQ and multiengine support for (Windows,Linux,OSX/IOS/Android) and freepascal (Windows/Linux)
Stars: ✭ 49 (-15.52%)
Mutual labels:  linq
starter-guides
Getting Started with OpenShift for Developers workshop
Stars: ✭ 127 (+118.97%)
Mutual labels:  workshop
elm-workshop
An introductory workshop to learn Elm
Stars: ✭ 15 (-74.14%)
Mutual labels:  workshop
WorkshopManager
CLI tool to install and update Steam Workshop mods
Stars: ✭ 25 (-56.9%)
Mutual labels:  workshop
go-workshops
Go language basic workshops for devz
Stars: ✭ 68 (+17.24%)
Mutual labels:  workshop
testingconferences.github.io
A simple list of Software Testing Conferences and Workshops
Stars: ✭ 91 (+56.9%)
Mutual labels:  workshop
tensorflow-workshop
Code samples, slides and materials for TensorFlow Workshops
Stars: ✭ 46 (-20.69%)
Mutual labels:  workshop
amqv7-workshop
No description or website provided.
Stars: ✭ 22 (-62.07%)
Mutual labels:  workshop
hacn
A "monad" or DSL for creating React components using Fable and F# computation expressions
Stars: ✭ 34 (-41.38%)
Mutual labels:  computation-expressions
macrodynamics
Look at your macros in a whole new scope.
Stars: ✭ 24 (-58.62%)
Mutual labels:  language-extensions
workshop-intro-to-cassandra
Learn Apache Cassandra fundamentals in this hands-on workshop
Stars: ✭ 208 (+258.62%)
Mutual labels:  workshop
intenseye-boun-workshop
Code for the workshop in BOUN Tech Summit (03.03.2019)
Stars: ✭ 32 (-44.83%)
Mutual labels:  workshop
workshop
Paralect Workshop
Stars: ✭ 31 (-46.55%)
Mutual labels:  workshop
docker-k8s-workshop
Workshop covering Docker and Kubernetes
Stars: ✭ 17 (-70.69%)
Mutual labels:  workshop
wye
Wye is a workshop collaboration software
Stars: ✭ 66 (+13.79%)
Mutual labels:  workshop
unix-programming-and-regular-expressions-workshop
A workshop on Unix Programming Principles using tools such as grep, sed, awk, shell programming and regular expressions
Stars: ✭ 25 (-56.9%)
Mutual labels:  workshop
rmarkdown-workshop
A workshop format for rmarkdown. Releases contain locations in chronological order
Stars: ✭ 27 (-53.45%)
Mutual labels:  workshop
linq
LINQ to Objects for Java.
Stars: ✭ 151 (+160.34%)
Mutual labels:  linq
book-python
Python 3: from None to Machine Learning; ISBN: 9788395718625
Stars: ✭ 127 (+118.97%)
Mutual labels:  workshop
linq4c
LINQ for C(GroupBy, GroupJoin, Join, Take, Where, Select, etc)
Stars: ✭ 39 (-32.76%)
Mutual labels:  linq

Computation Expressions Workshop

The Computations Expressions Workshop collects and presents the content of several papers and presents the material as a set of tutorials. This content is intended to be used in a workshop setting.

Setting up

The workshop uses the dotnet CLI as a base case. However, attendees may elect to use an editor of their choice, though the steps to use those tools will be omitted from the tutorials.

Install dotnet

NOTE: Some IDEs will also install the dotnet CLI.

git clone Workshop Repository

Clone the workshop repository so you have the materials available locally. Each tutorial is also tagged so that you can reference the finished result if you get stuck. git clone https://github.com/panesofglass/computation-expressions-workshop

Create a New Expecto Project

Now that you have the basics, you can get started by creating a new project with Expecto.

  • Install the Expecto template with dotnet new -i Expecto.Template
  • Create a new project with dotnet new expecto -lang fsharp

Outline

Introduction

What?

  1. Computation Expressions
  2. Query Expressions

Why?

  1. Reduce arrowhead pattern
  2. Familiar syntax, e.g. let and do with extensions: let!, do!, return, etc.
  3. Language integrated queries (LINQ), e.g. query { for x in source do select x }
  4. Language extensions without macros

Exercises

  1. Computation Expressions: OptionBuilder
    1. Without a computation expression
    2. Return
    3. Bind
    4. Side effects and Delay
    5. Running a delayed computation
    6. do! with a unit result using Combine
    7. if ... then without an else
  2. Combining Results: ChoiceBuilder
  3. CEs for Compuations: StateBuilder
    1. Without a computation expression
    2. Side effects passed into a computation
    3. Differences between "container" and "computation"
  4. Sequences: StackBuilder
    1. Yield = Return
    2. For = Bind
    3. Differences in Delay
  5. Error Handling, Disposal, and More
    1. TryWith
    2. TryFinally
    3. Using
    4. While
    5. Quote
  6. Extending Computation Expressions
    1. Method Overloads
    2. Adding Custom Extensions
  7. Query Expressions
  8. Embedded DSLs
    1. NuGet
    2. IL
    3. Saturn
    4. Freya

Project

Wrap up

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].