// F#
type BodyType =
| Sedan
| SUV
type Vehicle =
| Bus of riders:int * capacity:int * basePrice:decimal
| Taxi of riders:int * capacity:int * basePrice:decimal * body:BodyType * fares:int
root = true | |
# EditorConfig is awesome: https://EditorConfig.org | |
# Don't use tabs for indentation. | |
[*] | |
indent_style = space | |
charset = utf-8 | |
end_of_line = lf | |
[*.{cs,csx}] |
256: /MS-DOS/v4.0/src/CMD/GRAPHICS/GRCTRL.ASM | |
212: color | |
38: black | |
3: gun | |
3: firing | |
225: /MS-DOS/v4.0/src/SELECT/SCROLL.ASM | |
168: color | |
56: hook | |
1: uk | |
115: /MS-DOS/v4.0/src/SELECT/PANELS.ASM |
Program.cs
using System.Text.Json.Serialization;
var app = WebApplication.CreateBuilder(args).Build();
app.MapGet("/hi", () => "hi");
app.MapPost("send-money", (SendMoneyRequest request) =>
{
var receipt = new Receipt($"{request.From.FirstName} {request.From.LastName}",
https://github.com/credativ/omdb-postgresql
FROM postgres:latest
WORKDIR /omdb
COPY . .
RUN apt-get update \
&& apt-get install wget -y \
&& apt-get install bzip2 -y
.NET significantly improves from a few knobs here DOTNET_TC_AggressiveTiering=1 (to reach the steady-state faster) and DOTNET_GCDynamicAdaptationMode=1 (reduces memory usage down to 40mb for me, but not sure it works on macOS since GC regions are disabled for mac)
There is A LOT more. Microsoft has dedicated teams that contribute to the actual C++, Java, Python development. If you use those langs you use code and standards developed by the Microsoft employees.
VSCode: https://github.com/microsoft/vscode JDK: https://github.com/microsoft/openjdk TS: https://github.com/microsoft/typescript GitHub servers and GH Action runners run on Azure: https://cnbc.com/2022/10/12/microsoft-github-relying-more-on-azure-cloud-services-scott-guthrie.html
npm, Azure, XBox, ChatGPT, Copilot, DALLE, Playwright, Blizzard and all of their games.
Btw, dotnet, C#, and especially F# are not 100% developed by MS. There are thousands of pull requests from random people from around the world.
curl https://www.cs.cmu.edu/~biglou/resources/bad-words.txt | & { fi count words . $input -r --hidden } |