4 ms·
While Nim is for certain interesting and even pleasant to write code in, its small user base and environment discourage people to use it. I don't write code on
by DeathArrow 5y ago
While Nim is for certain interesting and even pleasant to write code in, its small user base and environment discourage people to use it.
I don't write code only for myself.
How would I convince my employer to let me use Nim instead of a better known language?
And even I would convince my employer, if we want to start a new project how could we find programmers well-versed in Nim?
And even id we can find those people, it would mean we would have to write many things ourselves, which in other languages we can take for granted as they have libraries for almost anything.
So having a nice, performant and good language is just a small part of achieving your goals. You also need the people and the ecosystem.
Go, Rust, Kotlin, Swift and even Julia have the luck of having some industry heavyweights behind them, pushing the ecosystem and contributing with money and developers. Nim has only a bunch of passionate people behind it.
- cnmlp 5y agoIn the case of Python, the "industry heavyweights" do very little and have a negative influence now. Why the phrase "only a bunch of passionate people"? This is how software gets written, parasitical corporations and their unproductive developers who are installed in existing OSS projects come later and mainly associate themselves with the result (speaking of Python again).
- dejj 5y ago> How would I convince my employer Turntables: if you were an employer, what would convince you to use Nim? Hiring for Nim skills can be a signal that a company has people who learn languages beyond the run-of-the-mill ones. A bunch of passionate people you might say. That would make the company promising to work for.
- WJW 5y agoInterestingly this was exactly the place Python was in back in the day: niche enough that anyone knowing it must've learned it because they thought it was cool rather than because it would get them a job. Those days are long gone of course.
- egwor 5y agoYou could make the same argument about rust right now., but rust is further along the 'programming language life path'.
- Zababa 5y agoNot really, Rust is way more established than Nim. Lots of people use it, lots of companies use it, the community is very large. Maybe 5 years ago, Rust was at the same point as Nim, but even then I doubt it. Nim seems to be one of those languages that will always remain low-profile, because it's an incremental improvement and isn't pushed by a platform.
- kgeist 5y ago>if we want to start a new project how could we find programmers well-versed in Nim? If a programmer can't pick up a language like Nim in a few weekends (from what I gather, it's similar to Python and not much different from most common languages, i.e. not something relatively exotic like Haskell) then I don't know. Our mainly PHP shop transitioned to Go quite effortlessly. Today we hire PHP juniors without any Go experience (easier to find), we teach them, and then they work on Go codebases already after a month of internship. So lack of "professional Nim programmers" doesn't look like a problem to me. Lack of libraries is a good point but from what I read, Nim compiles to C, so I understand they can have access to tens (hundreds?) of thousands C libraries without writing everything from scratch. However, indeed, if you are to choose between, for example, Nim and Go for a new project, then I am not sure why would anyone prefer Nim. I'm really interested to know.
- sound1 5y ago> However, indeed, if you are to choose between, for example, Nim and Go for a new project, then I am not sure why would anyone prefer Nim. I'm really interested to know. Same here, curious to know what HN crowd recommends between Nim vs Go for new projects.
- _dain_ 5y agoNim has hygienic AST macros, so it has really good metaprogramming capabilities. An example of the sort of thing you can do with it: use pattern matching to implement a functional programming DSL: https://nim-lang.org/blog/2021/03/10/fusion-and-pattern-matching.html https://nim-lang.org/blog/2021/03/10/fusion-and-pattern-matc... This makes it really easy to reduce boilerplate and create low- or 0-cost abstractions for your problem domain. Example of this done in a microcontroller project here: https://www.youtube.com/watch?v=j0fUqdYC71k https://www.youtube.com/watch?v=j0fUqdYC71k Async/await is also implemented by metaprogramming, rather than as a "core" part of the language: https://www.youtube.com/watch?v=i0RB7UqxERE https://www.youtube.com/watch?v=i0RB7UqxERE Unrelated to the above, Nim also compiles to Javascript. So you can use the same language for both the backend and frontend.
- Mikeb85 5y ago> And even I would convince my employer, if we want to start a new project how could we find programmers well-versed in Nim? Nim's easy to learn if you have any experience with any compiled language and can understand anything along the line of C#, Kotlin or Python syntax. Also because it compiles to C and JS it makes it easy to add it to a project incrementally in many cases.
- nimmer 5y ago> How would I convince my employer to let me use Nim instead of a better known language? This is a rephrasing of "nobody ever got fired for buying IBM". Some organization prioritize innovation and technical acumen. > So having a nice, performant and good language is just a small part of achieving your goals. You also need the people and the ecosystem. Many applications don't need a large ecosystem. People can learn. > Go, Rust, Kotlin, Swift and even Julia have the luck of having some industry heavyweights behind them Python was never corporate-driven, thankfully, and it is successful.