This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Microsoft.FSharp.Quotations | |
open Microsoft.FSharp.Quotations.Patterns | |
open System.Reflection | |
let hashList f seed = List.fold (fun h v -> h * 37 + f v) seed | |
let (<+) x y = x * 37 + y | |
let (!<) f x y = x <+ f y | |
let rec hashC funcs = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creating new threads | |
open System | |
open System.Threading | |
//What will execute on each thread | |
let threadBody() = | |
for i in 1..5 do | |
//Wait 1/10 of a second | |
Thread.Sleep(100) | |
printfn "[Thread %d] %d ..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "System.Xml.Linq" | |
open System | |
open System.IO | |
open System.Xml.Linq | |
let script = seq { | |
//TODO: this currently loads fsproj's in alphabeticall order, we should instead | |
//build the dependencies graph of the fsproj's and load them in topological sort order |
NewerOlder