Question (genuine, not trolling): what's the use-case for Nim regarding other languages? What are its pros/cons?
Nim 1.0
31–40 of 308 posts
Re: Nim 1.0
#32Does it support tabs for indentation yet?
but please, dont
Re: Nim 1.0
#33Congrats to the team! Could Nim be used to generate a framework for Xcode and the the same code be used in a Windows C++ or .NET project? I've been looking for ages for a cross platform solution that can be used to create dynamic or static libraries that isn't C++.
Re: Nim 1.0
#34> Type identifiers should be in PascalCase [1] I don't get why some languages adopt the 'PascalCase for types' approach (which is fine), but then a bunch of the built-in types such as 'string', 'set', 'int64', etc. are lowercase... it's annoyingly inconsistent. [1] https://nim-lang.org/docs/nep1.html#introduction-naming-conv...
On the contrary, I feel that the stylistic [and sometimes semantic] separation of primitive and boxed types in languages (e.g., `byte` VS `Byte` in Java) improves the developer experience, in that I can very quickly dissect the type of value that I’m dealing with when reading the code.
In C++ it can matter for correctness because primitives are uninitialized by default. But other types might be too and the standard library uses under_scores for things that are initialized on construction, so it's not a great example of this distinction.
Why do you care in other languages? In Rust for example I'm a little fuzzy on why I care if something is considered a primitive.
Re: Nim 1.0
#35Question (genuine, not trolling): what's the use-case for Nim regarding other languages? What are its pros/cons?
It's as easy as Python and as fast as C. That was my take when I looked at it and bought the book last year.
I mean, it actually is C, since the code is transpiled to C.
Re: Nim 1.0
#36Congrats to the team! Could Nim be used to generate a framework for Xcode and the the same code be used in a Windows C++ or .NET project? I've been looking for ages for a cross platform solution that can be used to create dynamic or static libraries that isn't C++.
Re: Nim 1.0
#37Earlier quoted context omitted.
And it turns out Crystal 0.31 [1] is released! And it is ( or should be ) closing to 1.0 release as well, once Windows Support and MultiThreading matures. May be 2020? On the list of languages I only know the first few up to Zig, will need to check out the others. There is also one noticeable missing and that is Elixir. [1] https://crystal-lang.org/2019/09/23/crystal-0.31.0-released....
Curious why you're adding Elixir in this list ? It operates is in a completely different space than nim / zig, as far as I know (Not statically checked, heavy but powerful runtime, much "higher level" abstractions, etc...) Not to prevent you from trying it, of course - to each and everyone their own...
Re: Nim 1.0
#38It was published in 2017 but we've ensured Nim is compatible with it (all book examples are in Nim's test suite), so apart from some minor deprecation warnings all examples should continue to work.
Grab a copy here: https://manning.com/books/nim-in-action?a_aid=niminaction&a_...
Re: Nim 1.0
#39Earlier quoted context omitted.
And it turns out Crystal 0.31 [1] is released! And it is ( or should be ) closing to 1.0 release as well, once Windows Support and MultiThreading matures. May be 2020? On the list of languages I only know the first few up to Zig, will need to check out the others. There is also one noticeable missing and that is Elixir. [1] https://crystal-lang.org/2019/09/23/crystal-0.31.0-released....
Curious why you're adding Elixir in this list ? It operates is in a completely different space than nim / zig, as far as I know (Not statically checked, heavy but powerful runtime, much "higher level" abstractions, etc...) Not to prevent you from trying it, of course - to each and everyone their own...
Re: Nim 1.0
#40Great! I love this language, so simple and powerful, so fast executables! I hope I don't spoil the party by asking: What's the status of GUI bindings?
So all in all I'd say it's pretty decent, but I still have plans for my own toolkit that would solve my personal gripes with creating cross platform UIs.