Live data from Hacker News

Nim versions 1.4.4 and 1.2.10

nim-lang.org

31–40 of 44 posts

Re: Nim versions 1.4.4 and 1.2.10

#31
post #29
post #2

One thing I'm missing in all these languages is 100% auto-completion like the one you have in Java or C#. I have yet to experience a single instance of Intellij not being able to auto-complete something or not do it completely. I know Nim and Rust have good VS Code plugins that do that to some extent but it is not something I can rely upon. Maybe I'm just spoiled.

If I don't remember how to use some function it's a sign that I have to read the documentation. The documentation can have important tips around performance, security & recommended usage patterns that I need to know. And if you don't remember a lot of methods it means you might be out of your league and need to read the documentation and go through a tutorial to understand what you are doing. Keyword, method and vari…

Unfortunately, there are functions where I know how to use them, and still can't reliably spell them correctly. Also it helps preventing confusion between languages. Is it length or size? Are the math operations qualified with type information or overloaded (e.g., labs/abs/fabs in cmath)?

Lastly, at least the auto completion I used in intellij and visual studio is a peak into the documentation, it lists the full method signature, including all other methods, and opens the documentation on click.

Re: Nim versions 1.4.4 and 1.2.10

#32
post #2

One thing I'm missing in all these languages is 100% auto-completion like the one you have in Java or C#. I have yet to experience a single instance of Intellij not being able to auto-complete something or not do it completely. I know Nim and Rust have good VS Code plugins that do that to some extent but it is not something I can rely upon. Maybe I'm just spoiled.

There is an official Nim plugin from JetBrains now. It won't be as polished as Java support for obvious reasons, but at least you can stick with your preferred environment.

Excellent news, thank you !

Re: Nim versions 1.4.4 and 1.2.10

#33
post #2

One thing I'm missing in all these languages is 100% auto-completion like the one you have in Java or C#. I have yet to experience a single instance of Intellij not being able to auto-complete something or not do it completely. I know Nim and Rust have good VS Code plugins that do that to some extent but it is not something I can rely upon. Maybe I'm just spoiled.

The rust plugin for intellij is pretty good and keeps getting better, both in terms of intellisense and refactoring.

Re: Nim versions 1.4.4 and 1.2.10

#35

How does Nim's static typing compared to TypeScript and (Simple) Haskell?

Comparable to TypeScript, but a little weaker in the advanced features. Nim object types and tuple types are similar to TypeScript interface definitions and just as light weight. The type inference is pretty similar, but Nim's is a little weaker. Nim also has object variants, which can achieve most of what I want out of union types. TypeScript has a pretty long list of advanced typing features, like key types, mapped types, and conditional types, which Nim cannot express. But the Nim macro system can work here in taking code and modifying it before the type system runs.

Re: Nim versions 1.4.4 and 1.2.10

#36
post #20
post #19

I wish more effort was made by the NIM team to focus on web development as a use for NIM.

A Javascript backend is better focus than one usually sees. There are also quite a few web dev projects in the nimbleverse, and https://forum.nim-lang.org is written in Nim and there is much support code in the Nim stdlib. Frameworks/simplifications are better left to the broader community that knows their own web-needs. It took many years for things like Django for Python or Rails for Ruby to appear. Even now, those…

This! Nim has shown it has capable JS support and web support, but it can't do everything on it's own. There are web frameworks popping up but they need more contributors to them. But one can get far right now with Nim and web development.

Re: Nim versions 1.4.4 and 1.2.10

#37

How does Nim's static typing compared to TypeScript and (Simple) Haskell?

Relevant sections [1] [2] in the Nim Manual might be of interest. Nim has nice type classes and can constrain generics to only apply to one (or a sum type of them, etc.). It also has concepts [3] that are a sort of compile-time duck-typing construct (under active development).

[1] https://nim-lang.org/1.4.4/manual.html#types

[2] https://nim-lang.org/1.4.4/manual.html#generics

[3] https://nim-lang.github.io/Nim/manual_experimental.html#conc...

Re: Nim versions 1.4.4 and 1.2.10

#38
post #2

One thing I'm missing in all these languages is 100% auto-completion like the one you have in Java or C#. I have yet to experience a single instance of Intellij not being able to auto-complete something or not do it completely. I know Nim and Rust have good VS Code plugins that do that to some extent but it is not something I can rely upon. Maybe I'm just spoiled.

Most languages (that aren't Java) don't really need autocomplete.

When I started enjoying autocomplete Java did not even exist!

C and C++ development on VC++ on Windows and XEmacs on UNIX.

Re: Nim versions 1.4.4 and 1.2.10

#39
post #25
post #2

One thing I'm missing in all these languages is 100% auto-completion like the one you have in Java or C#. I have yet to experience a single instance of Intellij not being able to auto-complete something or not do it completely. I know Nim and Rust have good VS Code plugins that do that to some extent but it is not something I can rely upon. Maybe I'm just spoiled.

25 years ago I would have said people were just being lazy for expecting autocompletion. Now I think we should demand autocompletion, and much more. We should want both our languages to be smarter (type inference) so we can type less, and our tools are should know what we want to type. https://www.tabnine.com/

Type strong to type less. :)

Re: Nim versions 1.4.4 and 1.2.10

#40
post #2

One thing I'm missing in all these languages is 100% auto-completion like the one you have in Java or C#. I have yet to experience a single instance of Intellij not being able to auto-complete something or not do it completely. I know Nim and Rust have good VS Code plugins that do that to some extent but it is not something I can rely upon. Maybe I'm just spoiled.

There is an official Nim plugin from JetBrains now. It won't be as polished as Java support for obvious reasons, but at least you can stick with your preferred environment.

In which editor? This would really help me. IdE support and no pandas/numpy are the main things holding me back from full nim adoption
Post reply on HN