3 ms·
I wrote my first Nim app recently (an agent for reporting server data) and I must say, I like the language. It was a quick and painless learning experience. As
by plainOldText 5y ago
I wrote my first Nim app recently (an agent for reporting server data) and I must say, I like the language. It was a quick and painless learning experience. As of now my binary is about 400KB and uses about 1.3MB in memory consumption.
Indeed – as others have reported – Nim feels very much like Python, while the superfast compilation time means I can test code changes quickly during the development cycle.
For reference, I mostly write web apps in Elixir, but I needed another language in my toolbox that is statically compiled and lightweight.
I looked at Rust, Nim and Crystal. I ended up choosing Nim, because Rust is too complex for my taste, and Crystal’s syntax resembles Elixir (they both drew inspiration from Ruby) and it would be confusing when switching between the two languages.
Ultimately, they’re all cool, modern languages, so pick whatever fits your brain and helps you reach your objectives easier, while engaging in this social (or solitary) activity called programming.
- sp33der89 5y ago> Ultimately, they’re all cool, modern languages, so pick whatever fits your brain and helps you reach your objectives easier, while engaging in this social (or solitary) activity called programming. Extremely, extremely true!
- elcritch 5y agoHave you tried Nimler? It’s pretty nice! I haven’t used it for a year or so.
- plainOldText 5y agoWell, I wanted to try Nimler (as an alternative to Rustler) but I couldn’t get it to compile on my Mac. Something about some missing symbols if I remember correctly. I’ll have to investigate deeper when I have the time, as it seems quite appealing to be able to rewrite the slower Elixir parts in Nim.
- elcritch 5y agoOdd, but hopefully fixed. The ability to add "noexceptions" annotation to ensure you handle any possible exceptions and avoid killing beam is awesome.