5 ms·
I think the following kind of sums up its appeal to me: * Compiled language, sits in a similar kind of language category to Go where it compiles to a native bi
by captainbland 7y ago
I think the following kind of sums up its appeal to me:
* Compiled language, sits in a similar kind of language category to Go where it compiles to a native binary but also has a GC, so it sits in that kind of performance ballpark
* But has generics
* A powerful AST based macro system, which gives it a kind of lisp-like meta-programmability. This means you can create DSLs and other tools which compile down to native code.
* Python-like syntax
But yeah, this is like one of the first steps that you really need to do effective development on Android. It's an impressive project, but it's not going to bring Android developers flocking from Java/Kotlin. However, it is quite cool for existing Nim developers who'd like to try targetting Android.
- giancarlostoro 7y agoGo has certain things out of the box that I think attributed to it's success: Built-In libraries out of the box for web and other things which are useful. The out of the box web server isn't Django, but it works, and it's clear what it's doing under the hood. Also all the code is documented as well. I think if Nim could have a usable web server in the std lib (same with Rust and D) it would be a game changer. It doesn't have to be ultra fast, just good enough to be production ready (SSL and other secure things, and make setting up a static directory easy, numerous static directories). The first thing I test when I try any language is the web frameworks, it tells me how expressive / powerful the language can be. This is why I always loved CherryPy from Python, because I can mentally map classes, objects, and methods to http routes without too much mental overhead. If I need to get crazier I can pull in a routing library as well.
- dom96 7y ago> Go has certain things out of the box that I think attributed to it's success: Yes, Google's backing. :) > I think if Nim could have a usable web server in the std lib (same with Rust and D) it would be a game changer. Nim does have an HTTP server in its stdlib[1], but I wouldn't go as far as to say that this is a game changer. > The first thing I test when I try any language is the web frameworks You should give my web framework, Jester[2], a try :) 1 - https://nim-lang.org/docs/asynchttpserver.html https://nim-lang.org/docs/asynchttpserver.html 2 - https://github.com/dom96/jester https://github.com/dom96/jester
- giancarlostoro 7y agoI may have to, now that I'm at a new job where I only do Java, I feel like I can experiment with other languages more since I dont have to keep juggling between front-end and back-end code. Does it handle sessions and such? Also not familiar with database driver support for Nim.
- nimmer 7y ago> but also has a GC, so it sits in that kind of performance ballpark No, Nim is way much faster. Also the GC is optional and in-line in each thread.