PeLib
SmallestDotnetHelloWorlds
PeLib | SmallestDotnetHelloWorlds | |
---|---|---|
4 | 2 | |
6 | 8 | |
- | - | |
0.0 | 0.9 | |
over 1 year ago | about 1 year ago | |
C++ | C# | |
GNU General Public License v3.0 only | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PeLib
- How small is the smallest .NET Hello World binary?
-
Thoughts on building on a VM (in particular, .NET/CLR) but not "exposing" the underlying VM?
I'm usually working with the third edition of the ISO 23271 standard, which corresponds to ECMA 335 5th Edition. There is also the book ".NET IL Assembler" (2014) by Serge Lidin which gives some additional context and a good structure to learn the details. My compiler is written in C++, not depending on the .Net framework; I don't use the reflection and emit features of .Net, but https://github.com/rochus-keller/Pelib/ to generate assemblies; also the generated code only requires minimal mscorlib.dll features, so I can use a minimal CLR.
-
KT/COBOL — Choosing a VM edition — I need to hear your experiences with the VM you're currently using for your project.
Most of my languages have VM backends; see e.g. https://github.com/rochus-keller/Oberon; I implemented different backends generating LuaJIT bytecode; a year ago I switched to Mono which is based on ECMA-335; here is a discussion why I switched: https://github.com/rochus-keller/Oberon/releases/tag/IDEv0.9.0; I implemented utility libraries for both LuaJIT and CIL bytecode; see https://github.com/rochus-keller/LjTools/, https://github.com/rochus-keller/Pelib/ and https://github.com/rochus-keller/MonoTools/. I evaluated many VMs and think the mentioned ones are best suited. There were a lot of challenges with both technologies, what is to be expected, and too much to describe here.
-
Is the Mono CLR really slower than CoreCLR?
And as I understand now achieving optimal performance with CoreCLR requires inside know-how of RyuJIT and Roslyn (which I don't have anyway), i.e. ECMA-335 alone is not sufficient; the actual compilation target to achieve optimal performance with CoreCLR is therefore Roslyn, not ECMA-335; of course I could generate C# instead of IL, but then I would depend on the framework and slow down the compiler. My current code generator based on https://github.com/rochus-keller/PeLib is about 30 times faster than ILASM.
SmallestDotnetHelloWorlds
-
How small is the smallest .NET Hello World binary?
I have some comparisons here:
https://github.com/AustinWise/SmallestDotnetHelloWorlds
-
C# as you know it but with Go-like tooling (small, selfcontained, native exes)
The author’s ZeroSharp project is also interesting. It shows how you can compile C# without any runtime. No garbage collection, no exceptions. You can 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. Things like NativeAOT (on which Bflat is built) and Graal Native Image let these languages get down to a binary size , startup speed, and deployment model similar that enjoyed by Go and Rust developers.
https://github.com/AustinWise/SmallestDotnetHelloWorlds
What are some alternatives?
core - .NET news, announcements, release notes, and more!
Ryujinx - Experimental Nintendo Switch Emulator written in C#
SharpLab - .NET language playground
tinyPE - Smallest possible PE files. Artisanal, hand-crafted with love and care.
Oberon - Oberon parser, code model & browser, compiler and IDE with debugger
Jellyfin - The Free Software Media System
LjTools - LuaJIT 2.0 bytecode parser, viewer, assembler and test VM. Lua 5.1 parser, IDE and debugger.
asdf-dotnet-core - ✨ .Net Core plugin for asdf version manager
Semi.Avalonia - Avalonia theme inspired by Semi Design
UnityWebGL-LoadingTest - Unity WebGL platform and version comparisons with a lot of nice extras
Citrus.Avalonia - Modern styles for Avalonia controls.
MonoTools - Mono Debugger Interface and MDB generator for Oberon+ IDE II