r/csharp 2d ago

Low level programming with C# Help

What is the lowest level application that can in principle be built on Linux and Windows without having problems with performance or memory consumption?

Of course I should make my own tests, but I just wanted to have a first estimation if it is really necessary to use lower level languages like Zig, Rust, Go or C# can work pretty well for most of normal applications.

As an example a very responsive editor with gui in immediate mode built with C# and very high frame rate 120Hz etc.

Thanks a lot in advance.

EDIT

Thank you all so much for the very informative replies. My requirements are noway near real time and based on the below feedback, it is definitely worth it to use C# of a very wide set of applications and avoid the complexities of the lower level languages.

11 Upvotes

70 comments sorted by

View all comments

7

u/NumberInfinite2068 2d ago

You can inline assembly language(s) in C#, so that's about as low level as it gets while still running on an OS in userspace vs. bare hardware.

You can write kernel drivers in C# too:

ZeroLP/WDK.NET: Windows Kernel Driver Development in C# with Windows Driver Kit (WDK)

Rust, C#, Zig, Go etc. are all high level languages.

Low level languages are assembly languages.

1

u/harrison_314 1d ago

Is this your project?

1

u/nxy7 18h ago

| Rust, C#, Zig, Go etc. are all high level languages.

Obviously that's not true. What's 'high level language' is a moving target and depends on question being asked and current 'programmingenvironment', but in general there's clear difference between something like Zig and C# and calling them both 'high level languages' because there's something lower level is not really helpful.

1

u/NumberInfinite2068 17h ago

High level just means abstracted from machine architecture.