Skip to content

Instantly share code, notes, and snippets.

View ScottHutchinson's full-sized avatar

Scott Hutchinson ScottHutchinson

  • ICI Services
  • Westlake Village, California
View GitHub Profile
@ScottHutchinson
ScottHutchinson / format_checking.fs
Last active November 30, 2017 02:24
Compile-time checking of format specifications
// https://sharplab.io/#v2:DYLgZgzgNAJiDUAfYBTALgAhgewPpgEsVgYMwBbTANwwF4BYAKAxYwAcAnAgOzTG7KUMVJkwDaAHgCivDgE8ACth5oAfAF0mqTOQCGPDLjpNWWPIWKkARAFICVjFYASxYNgwB1bBxJWTrAGU5CDQUcgA6AGFsbghsVHCAJRRdGAAZHhQACgBKDERVDAIAc25vFH8WAAYMAHpajA50AFcOAV0BFRRilA4MFAAPAkwAY2wYCsYgA==
// https://dotnetfiddle.net/aUGh3I
let getResult arg =
let rand = new System.Random()
let v = (arg * rand.NextDouble()) - 1.0
v
let do_field fmt v =
printfn fmt v
@ScottHutchinson
ScottHutchinson / FSharp.Compiler.Service build.cmd error.txt
Created February 17, 2018 20:35
FSharp.Compiler.Service build.cmd error
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.5.5
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
C:\Users\scott\source>cd C:\Users\scott\source\repos\FSharp.Compiler.Service
C:\Users\scott\source\repos\FSharp.Compiler.Service>git clean -xfd
Unlink of file 'fcs/.vs/FSharp.Compiler.Service/v15/Server/sqlite3/db.lock' failed. Should I try again? (y/n) y
warning: Could not stat path 'fcs/.vs/FSharp.Compiler.Service/v15/Server/sqlite3/storage.ide-shm': No such file or directory
@ScottHutchinson
ScottHutchinson / FSharp.Compiler.Service build.cmd Release error.txt
Created February 17, 2018 21:09
FSharp.Compiler.Service build.cmd Release error
C:\Users\scott\source\repos\FSharp.Compiler.Service>build.cmd Release
Paket version 5.138.0
Performance:
- Runtime: 1 second
dotnet --version
C:\Users\scott\AppData\Local\dotnetcore\dotnet.exe --version
Deleting contents of C:\Users\scott\AppData\Local\dotnetcore
Installing 'https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.2/dotnet-dev-win-x64.2.0.2.zip' to 'C:\Users\scott\AppData\Local\dotnetcore\dotnet-dev-win-x64.2.0.2.zip'
Installing 'https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.0.2/dotnet-sdk-2.0.2-win-x64.zip' to 'C:\Users\scott\AppData\Local\dotnetcore\dotnet-sdk-2.0.2-win-x64.zip'
@ScottHutchinson
ScottHutchinson / FSharp.Compiler.Service fcs\build.cmd errors.txt
Created February 19, 2018 16:28
FSharp.Compiler.Service fcs\build.cmd errors
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.5.5
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
C:\Users\scott\source>cd C:\Users\scott\source\repos\FSharp.Compiler.Service
C:\Users\scott\source\repos\FSharp.Compiler.Service>fcs\build.cmd
Paket version 5.138.1
Performance:
@ScottHutchinson
ScottHutchinson / CpuBenchmark1.md
Created February 24, 2018 19:51
CPU Benchmark 1
BenchmarkDotNet=v0.10.12, OS=Windows 10 Redstone 3 [1709, Fall Creators Update] (10.0.16299.248)
Intel Core m3-7Y30 CPU 1.00GHz, 1 CPU, 4 logical cores and 2 physical cores
Frequency=1570311 Hz, Resolution=636.8165 ns, Timer=TSC
.NET Core SDK=2.1.4
  [Host]     : .NET Core 2.0.5 (Framework 4.6.26020.03), 64bit RyuJIT DEBUG
  DefaultJob : .NET Core 2.0.5 (Framework 4.6.26020.03), 64bit RyuJIT
Paket version 5.148.0
Downloading FAKE 4.64.4 (Build)
Download of FAKE 4.64.4 (Build) done in 6 seconds.
Downloading runtime.fedora.23-x64.runtime.native.System.Security.Cryptography 4.3.3
Downloading Chessie 0.6
Downloading System.ComponentModel.Annotations 4.4.1
Downloading System.Numerics.Vectors 4.4
Downloading System.Threading.Tasks.Dataflow 4.8
Download of System.Numerics.Vectors 4.4 done in 805 milliseconds.
Download of runtime.fedora.23-x64.runtime.native.System.Security.Cryptography 4.3.3 done in 935 milliseconds.
Paket version 5.148.0
Performance:
- Runtime: 1 second
Building project with version: LocalBuild
Shortened DependencyGraph for Target DotnetPack:
<== DotnetPack
<== Clean
<== DotnetTest
<== DotnetBuild
<== AssemblyInfo
Paket version 5.148.0
Performance:
- Runtime: 1 second
Building project with version: LocalBuild
Shortened DependencyGraph for Target DotnetPack:
<== DotnetPack
<== Clean
<== DotnetTest
<== DotnetBuild
<== AssemblyInfo
Paket version 5.148.0
Performance:
- Runtime: 1 second
Building project with version: LocalBuild
Shortened DependencyGraph for Target DotnetPack:
<== DotnetPack
<== Clean
<== DotnetTest
<== DotnetBuild
<== AssemblyInfo
Paket version 5.148.0
Performance:
- Runtime: 1 second
Building project with version: LocalBuild
Shortened DependencyGraph for Target DotnetPack:
<== DotnetPack
<== Clean
<== DotnetTest
<== DotnetBuild
<== AssemblyInfo