Hacker GitHub

← All repos

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

Mentions per year 19 mentions · busiest year 2019 (8)
20082026
  1. …since there are few docs/templates. [0] - https://github.com/MichalStrehovsky/SeeSharpSnake [1] - https://github.com/MichalStrehovsky/zerosharp/tree/master/ef...
  2. …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…
  3. ▲ 2
    Writing windows APIs with C# EFi no runtime?
    story by lowlevelCsharp · 2024-03-01 · 1 comment
  4. …(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
  5. 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...
  6. …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
  7. …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
  8. ▲ 228
    C# for Systems Programming
    story by pjmlp · 2021-09-01 · 153 comments
  9. …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: -…
  10. …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.…
  11. …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…
  12. ▲ 2
    C# for Systems Programming
    story by ofrzeta · 2019-08-28 · 0 comments
  13. > but unlike C# or Java https://github.com/MichalStrehovsky/zerosharp/blob/master/ef...
  14. ▲ 41
    C# 'Hello World' on x64 bare metal (no OS)
    story by dlivingston · 2019-03-26 · 1 comment
  15. …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#
  16. 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#
  17. …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#
  18. ▲ 217
    EFI Boot Application in C#
    story by pjmlp · 2019-03-25 · 39 comments
  19. ▲ 3
    EFI Boot Application in C#
    story by elisee · 2019-03-25 · 1 comment