Skip to content

Instantly share code, notes, and snippets.

View vzarytovskii's full-sized avatar
🐱
Slacking

Vlad Zarytovskii vzarytovskii

🐱
Slacking
View GitHub Profile
@vzarytovskii
vzarytovskii / # emacs-plus - 2024-01-30_14-45-17.txt
Created January 30, 2024 13:45
emacs-plus (vzarytovskii/emacs-plus/emacs-plus) on macOS 14 - Homebrew build logs
Homebrew build logs for vzarytovskii/emacs-plus/emacs-plus on macOS 14
Build date: 2024-01-30 14:45:17
@vzarytovskii
vzarytovskii / # emacs-plus - 2024-01-30_14-41-50.txt
Created January 30, 2024 13:43
emacs-plus (vzarytovskii/emacs-plus/emacs-plus) on macOS 14 - Homebrew build logs
Homebrew build logs for vzarytovskii/emacs-plus/emacs-plus on macOS 14
Build date: 2024-01-30 14:41:50
namespace Custom.Builder
open Fun.Blazor
module Main =
[<EntryPoint>]
let main _ =
let test =
div {
div {
style'' {
@vzarytovskii
vzarytovskii / Project.fs
Created September 15, 2023 14:05
F# Xaml demo, please somebody kill me
module Project
open System
open System.Windows
open System.IO
open System.Windows.Markup
open System.Windows.Controls
open System.Reflection
let getTypeCheck (syntaxTree: SyntaxTree) : NodeCode<TypeCheck> =
node {
let! input, _sourceRange, fileName, parseErrors = syntaxTree.ParseNode.GetOrComputeValue()
use _ = Activity.start "BoundModel.TypeCheck" [| Activity.Tags.fileName, fileName |]
IncrementalBuilderEventTesting.MRU.Add(IncrementalBuilderEventTesting.IBETypechecked fileName)
let capturingDiagnosticsLogger = CapturingDiagnosticsLogger("TypeCheck")
let diagnosticsLogger = GetDiagnosticsLoggerFilteringByScopedPragmas(false, input.ScopedPragmas, tcConfig.diagnosticsOptions, capturingDiagnosticsLogger)
use _ = new CompilationGlobalsScope(diagnosticsLogger, BuildPhase.TypeCheck)
[Trace - 5:11:12 PM] Sending request 'fsharp/workspacePeek - (26)'.
Params: {
"Directory": "c:\\Users\\vlza\\code\\fsharp",
"Deep": 1,
"ExcludedDirs": [
".git",
"eng",
"artifacts",
"fcs-samples",
"tests/projects",
Method Mean Error StdDev Median Min Max Gen0 Gen1 Gen2 Allocated
ParseAndTypeCheckProject_Resumable 382.906 ms 16.6768 ms 17.1258 ms 377.704 ms 356.566 ms 424.642 ms 2000.0000 1000.0000 1000.0000 229.03 MB
ParseAndTypeCheckProject_Normal 359.397 ms 18.5518 ms 19.8502 ms 363.683 ms 333.375 ms 401.576 ms 2000.0000 1000.0000 1000.0000 229.56 MB
ParseAllFilesInProjectSequential_Resumable 20.691 ms 1.2518 ms 1.3913 ms 20.766 ms 18.529 ms 23.995 ms 34.5395 17.2697 - 6.79 MB
ParseAllFilesInProjectSequential_Normal 20.904 ms 0.8382 ms 0.9653 ms 20.669 ms 19.498 ms 22.755 ms 33.1790 16.2037 -
marp title theme progress paginate
true
F#7 and next
uncover
true
true

What's new in F# 7

@vzarytovskii
vzarytovskii / Discriminated Unions.md
Last active December 12, 2022 13:58
F# Compiler Notes

Discriminated unions notes

General

Reference DUs

Notes

Reference DUs constructors (cases) are represented as nested inherited classes.

@vzarytovskii
vzarytovskii / fsharp7.md
Last active November 7, 2022 11:50
fsharp7.md
post_title username microsoft_alias featured_image categories summary desired_publication_date
What’s new in F# 7
fsharp512.png
F#, .NET, .NET Core
F# 7 is now released
2022-11-15