projects:fsharp_workshop
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
projects:fsharp_workshop [2015/03/13 23:27] – created mkucia | projects:fsharp_workshop [2015/04/17 21:35] – mkucia | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== F# workshop ====== | ====== F# workshop ====== | ||
- | <wrap hi>highlighted</wrap> | + | |
+ | * f(x) = Hello_Word | ||
+ | * Type providers (strongly typed) | ||
+ | * Matching | ||
+ | * Options | ||
+ | |||
+ | ===== How to use? Where to get? ===== | ||
+ | Try F# in browser: | ||
+ | http:// | ||
+ | |||
+ | Want to get a full distribution? | ||
+ | http:// | ||
+ | |||
+ | ===== [Hello] ===== | ||
+ | <code fsharp> | ||
+ | let hello = printf "Hello World" | ||
+ | </code> | ||
+ | |||
+ | ===== Why? ===== | ||
+ | |||
+ | |||
<WRAP group> | <WRAP group> | ||
<WRAP half column box> | <WRAP half column box> | ||
Pros: | Pros: | ||
+ | * Open Source | ||
+ | * Multi platform (Mono, .NET core) | ||
+ | * Modern, rising popularity | ||
* Lazy evaluation | * Lazy evaluation | ||
* Reusable | * Reusable | ||
* Reduced code | * Reduced code | ||
+ | * Strongly typed | ||
</ | </ | ||
<WRAP half column box> | <WRAP half column box> | ||
Cons: | Cons: | ||
- | * Not suitable for real time | + | * Not suitable for real time (unpredictable performance) |
- | * requires different | + | * Different |
</ | </ | ||
</ | </ | ||
+ | <hidden ↘ C# equivalent> | ||
+ | |||
+ | ===== Pitfalls and drawbacks ===== | ||
+ | Functional languages fundamentally don't model how your computer works. | ||
+ | Harder to optimize. | ||
+ | |||
+ | ===== References ===== | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * [[https:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * [[https:// |
projects/fsharp_workshop.txt · Last modified: 2015/05/02 12:45 by mkucia