TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why Use Nim over C#?

45 pointsby planetisabout 2 years ago

12 comments

cardanomeabout 2 years ago
C# is an excellent language with an great ecosystem and lots of jobs available. Also, if you ever want to go a bit more functional, F# is excellent.<p>My personal reason for avoiding it is purely political: I don&#x27;t trust Microsoft. I try to not rely on languages that are controlled by a single monopolistic corporations. Considering the recent case of the golang compiler planning on getting telemetry, I feel validated in that decision.<p>As for game development, I think the game engine of choice will already dictate what one should learn.<p>Unity is still king of casual and mobile games, so if that is your niche, learning C# is a no-brainer. Plus Godot has decent C# support now, if you ever need to change horses.<p>As for more complex 3d games, Unreal 5 is just insanely good. Nanite and Lumen offer tremendous improvements in both development experience and end result. Here learning some C++ is advised but funny enough, there are actually Nim bindings as well. If you don&#x27;t mind getting into somewhat untested waters, Nim might be a very good choice here.
评论 #34983108 未加载
评论 #34983249 未加载
评论 #34982291 未加载
评论 #34981037 未加载
Idiot_in_Vainabout 2 years ago
There are literally millions of professional developers using C#. Any problem you run into has a solution documented online.<p>Languages like Nim are a good choice for developers who need the adrenaline rush of dealing with complicated problems alone.
评论 #34981001 未加载
评论 #34981045 未加载
评论 #34980838 未加载
bilekasabout 2 years ago
&gt; but i do like how nim programs consistently have few lines of code than the same program in really most other languages which seems like a good thing<p>Interesting take.. I could share some codeGolf languages that you might like to play with in that case!<p>That said there are a few fallacies in the comments also that bother me a bit. Specifically the assumption that &#x27;once its closer to C its automatically more performant.&#x27;<p>Wild comments too like : `Nim runs on many more platforms than C#`<p>Without being specific this claim is just weird..<p>&gt; beware though that usually the people who wrote the benchmarks might not be experts on Nim<p>So you need to be an expert to benchmark it.. Red flag.
评论 #34980806 未加载
评论 #34980742 未加载
评论 #34980710 未加载
DeathArrowabout 2 years ago
I currently use C# for most of my work. I would love to use Nim, as I like its design, its simplicity, its performance and the fact that it doesn&#x27;t enforce OOP, but here are the problems:<p>-not enough libraries<p>-not enough frameworks<p>-not enough support
评论 #34980785 未加载
评论 #34980852 未加载
xupybdabout 2 years ago
Does Nim really have no competition in the meta programming space? I assumed Haskell would do well there?
评论 #34980724 未加载
评论 #34981061 未加载
评论 #34980767 未加载
评论 #34987534 未加载
scotty79about 2 years ago
My main reason for using C# is that&#x27;s it&#x27;s nice enough but Visual Studio feels amazing.
评论 #34981176 未加载
gigatexalabout 2 years ago
For game dev? Use C#. It’s got all the bindings to the engines and other such things you’ll need.
评论 #34980745 未加载
dvdkonabout 2 years ago
There&#x27;s one area where Nim is better than most alternatives, especially those with a separate required runtime, and that is binary size. I write quick scripts and daemons with Nim, knowing that they won&#x27;t take up space on my disk or in RAM.
Santosh83about 2 years ago
&gt; But if you use windows, there is no inline assembly so shrug.<p>(in Nim presumably)<p>Can anyone say why?
WithinReasonabout 2 years ago
I didn&#x27;t realize you can mix Nim an Assembler like this:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;mratsim&#x2F;constantine&#x2F;blob&#x2F;1cb6c3d&#x2F;constantine&#x2F;math&#x2F;arithmetic&#x2F;assembly&#x2F;limbs_asm_mul_x86_adx_bmi2.nim#L90-L111">https:&#x2F;&#x2F;github.com&#x2F;mratsim&#x2F;constantine&#x2F;blob&#x2F;1cb6c3d&#x2F;constant...</a>
AdrianB1about 2 years ago
Stupid question of the week that came to me after reading this: is there any language that compiles to dot net intermediate language, so it runs on do net like C# but with a different syntax like Nim? There are advantages and disadvantages, I am just curious if anyone wanted to go this way.
评论 #34981057 未加载
评论 #34981053 未加载
DeathArrowabout 2 years ago
Also, this might be an interesting read: <a href="https:&#x2F;&#x2F;mode80.github.io&#x2F;7-langs-in-12-months.html" rel="nofollow">https:&#x2F;&#x2F;mode80.github.io&#x2F;7-langs-in-12-months.html</a>