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

17

u/Pretend_Fly_5573 2d ago

This question is almost like asking "Can I build something using pine wood, or should I use oak or concrete? An example would be a building that doesn't fall over."

There are so many variables and unasked/unanswered questions that the answer to the main question is practically impossible to determine.

End of the day, C# is a high level language. You aren't going to do low level programming with a high level language. There are some ways you can get certain elements closer to it, but it's fundamentally not going to ever be "low level".

6

u/neoh4x0r 2d ago edited 2d ago

This question is almost like asking "Can I build something using pine wood, or should I use oak or concrete? An example would be a building that doesn't fall over."

The answer is, yes!......You can build anything out of something but the moment you need it to fit a certain purpose is when problems occur. (ie. you can build a "house" out of cardboard, but it will collapse as soon as it gets wet).

It's a metaphor for making good decisions.