- F-Words - Functional Programming Terms With More Than Four Letters - Calvin Bottoms
- Reactive Game Development For The Discerning Hipster - Bodil Stokke
- Erlang Patterns Matching Business Needs -- Torben Hoffman
- Equivalence Classes, xUnit.net, FsCheck, Property-Based Testing -- Mark Seemann
- Functional programming design patterns -- Scott Wlaschin
- Write Your Own Compiler in 24 Hours -- Phillip Trelford
| #r "System.Xml.dll" | |
| #r "System.Runtime.Serialization.dll" | |
| open Microsoft.FSharp.Reflection | |
| open System.IO | |
| open System.Reflection | |
| open System.Runtime.Serialization | |
| open System.Runtime.Serialization.Formatters.Binary | |
| open System.Runtime.Serialization.Json | |
| open System.Text |
| open System | |
| open System.Windows | |
| open System.Windows.Controls | |
| open FSharpx | |
| type MainWindow = XAML<"Window.xaml"> | |
| let loadWindow() = | |
| let window = MainWindow() | |
| window.Button1.Click.Add(fun _ -> |
| // have no idea what exact type should look like | |
| type Node = { Reference : int } | |
| let mkArgs0 (target : Node) (source : Node) = dict ["n", box target.Reference; "m", box source.Reference] | |
| // symbolic operators FTW | |
| let (=>) (a : string) b = a, box b | |
| let mkArgs1_1 (target : Node) (source : Node) = dict ["n" => target.Reference; "m" => source.Reference] | |
| let (!) = box |
| (* | |
| This script analyzes the dependencies between top level types in a .NET Assembly. | |
| It is then used to compare the dependency relationships in some F# projects with those in some C# projects. | |
| Note that no attempt has been made to optimize the code yet! | |
| REQUIRES: | |
| * Mono.Cecil for code analysis | |
| From http://www.mono-project.com/Cecil#Download |
| asnp *SharePoint* -ErrorAction SilentlyContinue | |
| // URL of the Web App to change the Application Pool of. | |
| $WebAppURL = "http://WebApp" | |
| // name of the name Application Pool that will be created. | |
| $NewAppPoolName = "NewAppPool" | |
| //the user account that the Application Pool will run under the context of. | |
| $NewAppPoolUserName = "contoso\apppool" |
A response to http://ayende.com/blog/170849/why-ravendb-isnt-written-in-f-or-the-cost-of-the-esoteric-choice
As you know, I generally recommend using SqlServer for data storage.
But many people have suggested that using RavenDB rather than SqlServer would dramatically reduce the development effort.
My reply to that was that using RavenDB would also lead to a lot more complexity, reduced support by other teams, harder to find DBAs and increased costs all around.
Full source code can be found here
- 2017-01-04
- New performance test - Paul Westcott (@manofstick) provided his implementation of Lazy semantics (called Lazzzy) which I included in the graphs. This implementation is intended to be equivalent to
Lazy<'T>in .NET with regards to functionality. - 2017-01-17
- New performance test - is working on a PR for .NET Core. I wanted to include performance numbers for the updated
Lazy<'T>class.
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.