News for hackers. Stuff that matters.
Re:Nim – Python-like statically-typed compiled language by aidenn0 on Sunday August 16, 2020 @12:51PM (#24179252)
If the compiler is fast enough, you don't need LSP support; many editors can be configured to run any sort of compiler or linter for doing error checking, and can be configured to do so when saving or as you edit &c.

Vim, for example, has a plugin called "syntastic" that is kind of a meta-plugin aggregating lots of these, and indeed it seems to have support for nim error checking.

LSP is a nice step forward, but people had error highlighting for decades before it was invented.

[edit]

Doesn't change anything above, but someone pointed me at ALE which is a newer tool that can run lint engines asynchronously (using interfaces that didn't exist when syntastic was created). For vim specifically that may be a better tool, but I haven't tried it yet.

Re:Nim – Python-like statically-typed compiled language by Naac on Sunday August 16, 2020 @02:10PM (#24179853)
>> and can be configured to do so when saving or as you edit

That's true, but being able to quickly click on the line that has the error and have your editor navigate to the file automatically is slightly more painful to setup, and is bespoke for whatever tool you are using.

My point was just that a tight integration between language and IDE/editor makes the overall language experience much nicer. For example:

Racket/Dr. Racket Python/Pycharm Java/Intellij Emacs lisp/Emacs

Re:Nim – Python-like statically-typed compiled language by aidenn0 on Sunday August 16, 2020 @09:43PM (#24183029)
>> That's true, but being able to quickly click on the line that has the error and have your editor navigate to the file automatically is slightly more painful to setup, and is bespoke for whatever tool you are using.

In the event that the tool doesn't output in one of the common formats, it's usually just a regex; again I had this in Vim for several different languages back in the 90s.

>> My point was just that a tight integration between language and IDE/editor makes the overall language experience much nicer.

I agree (happy SLIME user here), but it often seems like I'm in the minority. I've literally never met someone in person besides me that uses pycharm, and you are about the 3rd person online I've seen mention it in a favorable light.

Re:Nim – Python-like statically-typed compiled language by fwip on Sunday August 16, 2020 @01:05PM (#24179352)
ALE is quite nice. LSP is nicer-still, but ALE is a good step up in usability from syntastic.
Re:Nim – Python-like statically-typed compiled language by llimllib on Sunday August 16, 2020 @01:23PM (#24179483)
ALE will use LSP servers when they are available
Re:Nim – Python-like statically-typed compiled language by qppo on Sunday August 16, 2020 @02:10PM (#24179854)
The LSP enables a lot more than diagnostic reporting
Re:Nim – Python-like statically-typed compiled language by aidenn0 on Sunday August 16, 2020 @09:44PM (#24183040)
It sure does, but GP specifically mentioned diagnostic reporting as something missing when using the "new hot" languages