Live data from Hacker News

Nim versions 1.4.4 and 1.2.10

nim-lang.org

1–10 of 44 posts

Re: Nim versions 1.4.4 and 1.2.10

#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.

Re: Nim versions 1.4.4 and 1.2.10

#3
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.

Kite is doind pretty well for me in Python.

In my experience a lot of stuff that is auto-completed in java is boilerplate, stuff that I don't really need in python.

Re: Nim versions 1.4.4 and 1.2.10

#4
post #3
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.

Kite is doind pretty well for me in Python. In my experience a lot of stuff that is auto-completed in java is boilerplate, stuff that I don't really need in python.

The names of methods and parameters are boilerplate? I'd be interested to hear how you avoid the need for those in Python.

Re: Nim versions 1.4.4 and 1.2.10

#5
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.

Many of these languages rely on code generation, whether it's templates, macros, preprocessor. Since a lot of the code doesn't exist until compile time, it's hard to have the same level of autocomplete as in Java/C#, where everything is basically known from the start.

Re: Nim versions 1.4.4 and 1.2.10

#7
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.

This issue is taken seriously and there are plans for improving developer tooling:

https://github.com/nim-lang/RFCs/issues/300

Re: Nim versions 1.4.4 and 1.2.10

#8
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.

Re: Nim versions 1.4.4 and 1.2.10

#9
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.

Nim, in particular, has rather terse but elegant ways to package abstractions so that use is "obviously" locally scoped.

Just as one example (more fully elaborated here [1]), there is no pointer arithmetic by default, but one can write a tiny little template to add those operators and then invoke it in a local scope like:

    ...surrounding code...
    ptrMath:
      let address = base + offset
    ...surrounding code...
In this way many different & arbitrary "generally unsafe but also sometimes very convenient" constructs can still be used at an author's discretion, but be used in a way to make a reader (perhaps) pay better attention in a way that is more specific than some "generically 'unsafe'" block.

This is, of course, just the tip of a meta-programming iceberg.

[1] https://forum.nim-lang.org/t/1188#7366

Re: Nim versions 1.4.4 and 1.2.10

#10
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.

If you mean that autocomplete saves you less typing in other languages, I agree, but as long as it's a language with methods (where you're not always sure how the method you want to use is called) and parameters (where you're not always sure about the order), autocomplete is helpful. Of course, if you're a rockstar ninja genius who has every single method of every single class memorized, you're not gonna need it, but us mere mortals appreciate it...
Post reply on HN