Skip to content

Instantly share code, notes, and snippets.

-- Mono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 09:52:44 UTC 2015)
This code worked in 4.0.4 and .NET as i don't get exception but yet.
btw my "OutputSettings.Encoding" is "System.Text.Latin1Encoding" as in xslt
```F#
open System.Xml
open System.Text
let xslt = new Xsl.XslCompiledTransform()
```
python 50 docs: 61.0 sec / apptime: 1.221 sec
nim 50 docs: 6.28 sec / apptime: 0.125 sec
f# 50 docs: 18.1 sec / apptime: 0.362 (1.100 mono 4.0.2)
go 50 docs: 20.0 sec / apptime: 0.402
haskell 50 docs: 45.0 sec / apptime: 0.891
scala 50 docs: 51.0 sec / apptime: 1.036
rust 50 docs: ~45.0 sec / apptime: ~0.800 sec
nodejs 50 docs: ~81.0 sec / apptime: ~1.600 sec
@s-trooper
s-trooper / README.md
Last active January 23, 2019 08:50
program interaction with the world

FSharpFormat

F# source code formatter, similar to C# formatter in Visual Studio. It formats spacing and indentations. In oposite to Fantomas it doesn't rearrange source code by adding or removing newlines. Also one of goals of the project is not to break an existing code and as a reference test to leave intact VisualFsharp Project after formatting.

Prerequisites

In order to build or run this tool you will need to have .NET Core (SDK) installed.

Installation

X = inputs
y = output
m = length(y);
theta = initial_theta = 0;
sigmoid(z) = 1.0 ./ (1.0 + e.^-z);
h = sigmoid(X * theta);
% gradient descent, here we go find theta ...
alpha = 0.001;