3 ms·
NIM NIM should be part of the conversation. Typically, people trade slower compute time for faster development time. With NIM, you don’t need to make that tr
by tiffanyh 4y ago
NIM
NIM should be part of the conversation.
Typically, people trade slower compute time for faster development time.
With NIM, you don’t need to make that trade-off. It allows you to develop in a high-level but get C like performance.
I’m surprise its not more widely used.
- goodpoint 4y agoIt's written Nim, not NIM.
- dgan 4y agoat that point, almost anything compiled will be at least an order of magnitude faster than python
- Spivak 4y agoThe dichotomy between "compiled/interpreted" languages is completely meaningless at this point. You can argue that Python is compiled and Java is interpreted. I mean one of our deployment stages is to compile all our Python files. The thing that makes the difference isn't the compilation steps, it's how dynamic the language is and how much behind the scenes work has to be done per line and what tools the language gives you to express stronger guarantees that can be optimized (like __slots__ in Python).
- Too 4y agoNo, compiling JIT like Java/.NET/V8 becomes real cpu machine instructions on the fly. Compiling to .pyc files is still byte code that later the python interpreter will read in what is more or less a gigantic while(true)switch/case (operation_type). What you save with pyc compilation is just the text parsing of the source code. How dynamic the language is, does however affect how feasible it is to do JIT compilation and here python has done itself a big disfavor of simply being too dynamic. Some attempts at JITing it have been done before (pypy, ironpy), usually by nerfing the language a bit to get rid of the most dynamic parts - something that is probably for the better anyway.
- sergiotapia 4y agoI've used Nim for about 2 years now. It's a wonderful language but it's desperately lacking a proper web framework and a proper ORM. If such a thing existed I would probably drop Elixir for Nim career-wise.
- xigoi 4y agoWhat's wrong with Jester, Prologue, Norm, etc.?
- 41b696ef1113 4y ago>I’m surprise its not more widely used. It's a ~community language without the backing of an 800lb gorilla to offer up both financial and cheerleading support. I love the idea of Nim, but it is in a real chicken-and-egg problem where it is hard for me to dedicate time to a language I fear will never reach a critical mass.