RegEx101
SmallestDotnetHelloWorlds
RegEx101 | SmallestDotnetHelloWorlds | |
---|---|---|
5 | 2 | |
3,175 | 8 | |
- | - | |
3.0 | 0.9 | |
12 days ago | about 1 year ago | |
C# | ||
- | - |
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.
RegEx101
-
How small is the smallest .NET Hello World binary?
> I wonder if this could be used to make C# webassembly more viable.
You might enjoy reading this GitHub thread [0] where the community contributed a WASM library wrapping the C# regex code so that regex101.com could have a "C# mode". Lots of nerd sniping about reducing the payload size.
(There's also another thread [1] discussing the minification of a rust version of that same regex101 wasm library to provide a "rust mode" using @burntsushi's regex crate.)
[0]: https://github.com/firasdib/Regex101/issues/156
[1]: https://github.com/firasdib/Regex101/issues/1208
-
[Media] Regex101 now supports Rust!
That’s correct, compiled to WASM. You can see all the nitty gritty here https://github.com/firasdib/Regex101/issues/1208
-
Regex101.com needs help getting a small Rust WASM binary
Excellent comparisons. ~150KB without unicode would make Rust the smallest wasm on Regex101 as far as I can tell. pcrelib comes in at 198KB. Personally, I think ~400KB with unicode features is just fine for .wasm size. The heaviest flavor C# is around 4.91MB and was added back in February of this year. They also had a performance comparison which would also be interesting.
- Want to help bring Ruby support to Regex101 (online regexp suite)?
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?
RegExr - RegExr is a HTML/JS based tool for creating, testing, and learning about Regular Expressions.
Ryujinx - Experimental Nintendo Switch Emulator written in C#
Regexly - WYSIWYG Regex playground for those who JavaScript
tinyPE - Smallest possible PE files. Artisanal, hand-crafted with love and care.
RegExpBuilder
Jellyfin - The Free Software Media System
oniguruma - regular expression library
asdf-dotnet-core - ✨ .Net Core plugin for asdf version manager
Onigmo - Onigmo is a regular expressions library forked from Oniguruma.
UnityWebGL-LoadingTest - Unity WebGL platform and version comparisons with a lot of nice extras
regex - An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
PeLib - This is a modified version of https://github.com/LADSoft/DotNetPELib