MichalStrehovsky/zerosharp
View on GitHub ↗ ★ 2,125 C#
Demo of the potential of C# for systems programming with the .NET native ahead-of-time compilation technology.
19 mentions on Hacker News by 15 people: 6 stories, 13 comments · first 2019-03-25 · latest 2024-12-13
20082026
-
…since there are few docs/templates. [0] - https://github.com/MichalStrehovsky/SeeSharpSnake [1] - https://github.com/MichalStrehovsky/zerosharp/tree/master/ef...
comment by to11mtm · 2024-12-13 · in Garbage collected smart pointers in Rust via concurrent cycle collection -
…targets like UEFI. From the same author there's an example of completely runtime-less C# as well: https://github.com/MichalStrehovsky/zerosharp . It remains a usable language because C# has a large subset of C and features for manual…
comment by neonsunset · 2024-08-27 · in Microsoft donates the Mono Project to the Wine team -
▲ 2
Writing windows APIs with C# EFi no runtime?story by lowlevelCsharp · 2024-03-01 · 1 comment
-
…(which is, of course, impractical, just use Rust :D) [0] https://github.com/bflattened/bflat [1] https://github.com/MichalStrehovsky/zerosharp/tree/master/no...
comment by neonsunset · 2023-12-19 · in Using Zig to Unit Test a C Application -
NativeAOT definetely can do bare metal, here's an example of a very basic EFI boot application: https://github.com/MichalStrehovsky/zerosharp/tree/master/ef...
comment by Deukhoofd · 2023-01-03 · in Bflat – a single ahead-of-time crosscompiler and runtime for C# -
…memory access if you want to. https://docs.microsoft.com/en-us/dotnet/csharp/language-refe... https://github.com/MichalStrehovsky/zerosharp
comment by 9wzYQbTYsAIc · 2022-02-22 · in Microsoft YARP -
…a native language with some effort. Here's an example running Hello World as a C# EFI boot program: https://github.com/MichalStrehovsky/zerosharp/tree/master/ef...
comment by Deukhoofd · 2021-11-09 · in .NET 6 Released -
▲ 228
C# for Systems Programmingstory by pjmlp · 2021-09-01 · 153 comments
-
…the GC off entirely (at this point the language is very barebones). See ZeroSharp by same author: https://github.com/MichalStrehovsky/zerosharp So on top of this surprising viability for fairly low-level or native programming, it's also: -…
comment by gavinray · 2021-06-25 · in Bflat: C# as you know it but with Go-like tooling -
…perform stunts like make a 5KB Hello World or a EFI application that runs with no operating system: https://github.com/MichalStrehovsky/zerosharp I did a survey recently of binary sizes for .NET apps and comparisons to other languages.…
comment by MarkSweep · 2021-06-25 · in Bflat: C# as you know it but with Go-like tooling -
…small. I had the weird things lying around from when I did an EFI boot application in C# last year: https://github.com/MichalStrehovsky/zerosharp/tree/master/ef... I won't lie - being one of the architects of the CoreRT ahead of time…
comment by MStrehovsky · 2020-01-03 · in Building a self-contained game in C# under 8 kilobytes -
▲ 2
C# for Systems Programmingstory by ofrzeta · 2019-08-28 · 0 comments
-
> but unlike C# or Java https://github.com/MichalStrehovsky/zerosharp/blob/master/ef...
comment by apta · 2019-05-07 · in Tetris clone written in Zig running on WebGL and WebAssembly -
▲ 41
C# 'Hello World' on x64 bare metal (no OS)story by dlivingston · 2019-03-26 · 1 comment
-
…of code than doing the same thing in pure Asm: https://gist.github.com/yackx/a52010a05a430496ae11 https://github.com/MichalStrehovsky/zerosharp/blob/master/ef... (The Asm above was for good old BIOS, here's the EFI version:…
comment by userbinator · 2019-03-26 · in EFI Boot Application in C# -
Thanks. One level above your link is I think the best explanation: https://github.com/MichalStrehovsky/zerosharp " no-runtime is a rather pointless sample that demonstrates how to write code in C# that is directly runnable without a…
comment by acqq · 2019-03-25 · in EFI Boot Application in C# -
…You can get Hello World down to 5k by implementing a even more stripped down core library: https://github.com/MichalStrehovsky/zerosharp/blob/master/no...
comment by MarkSweep · 2019-03-25 · in EFI Boot Application in C# -
▲ 217
EFI Boot Application in C#story by pjmlp · 2019-03-25 · 39 comments
-
▲ 3
EFI Boot Application in C#story by elisee · 2019-03-25 · 1 comment