Live data from Hacker News

Introducing Rust Language Server

internals.rust-lang.org

41–50 of 108 posts

Re: Introducing Rust Language Server

#41

This most likely originated from TypeScript, which actually went further with compiler and code analysis integrated

We've been planning this for a while, and it's largely been a joint effort between Jonathan and Nick; Jonathan _did_ work on TypeScript before coming to work on Rust, though.

Re: Introducing Rust Language Server

#42
post #36

Earlier quoted context omitted.

The syntax highlighting is done in process using a declarative format, eg: https://github.com/Microsoft/vscode/blob/master/extensions/g... .

I was referring to the paragraph about Swift and Source kit. To my knowledge, the majority of editors do not do syntax highlighting outside of the main editor process.

Oh I see. Yes that does seem prohibitively slow.

Re: Introducing Rust Language Server

#43

For anyone interested in similar tools, Microsoft recently published a protocol[1] for this type of service, and an implementation[2] of it for VSCode+NodeJS. Swift also has a library[3] called SourceKit which does the same thing for Swift – it can run as an out-of-process daemon, and people have written integrations for Atom, Emacs, etc. to get autocomplete, syntax highlighting, def links, etc. [1] https://github.co…

The first one of these that I remember reading about is Marijn Haverbeke's Tern: http://ternjs.net

Re: Introducing Rust Language Server

#44
post #29

Earlier quoted context omitted.

I'm referring to the MSVC "backend" for Rust, not Visual Studio.

Ah! What things are you looking for in its maturity? In some ways, it's actually the most mature backend; stack probes work with it, for example. Windows isn't my personal area of expertise though.

I've been following https://github.com/rust-lang/rfcs/issues/1061 for a while. It seems that high-level pieces are there, but that certain elements useful in day-to-day software engineering still need some more time.

Re: Introducing Rust Language Server

#45
post #28

Earlier quoted context omitted.

I actually agree, it's not that hard, yes one can definitely grasp that with some efforts. But my point really is: the time from start learning Rust till when you can deliver your project is definitely longer than many other languages out there. So Rust needs more tooling than many other languages out there, which is not a bad thing considering all the merits in Rust. That's why we are seeing tooling growing very rap…

I think it's more because we like making development easier and having tools to do that is great because it means I can spend more time with the compiler telling me I coded something wrong.

It would be great if Rust Language Server supports Language Server Protocol.

Re: Introducing Rust Language Server

#46
post #45

Earlier quoted context omitted.

I think it's more because we like making development easier and having tools to do that is great because it means I can spend more time with the compiler telling me I coded something wrong.

It would be great if Rust Language Server supports Language Server Protocol.

(As mentioned below, it's the default protocol it uses)

Re: Introducing Rust Language Server

#47

Earlier quoted context omitted.

I think that's a side effect of making a welcoming community a priority. The Rust Language Server grew out of feedback from the Rust Language Survey, in which many people responded that they wanted good IDE support. That isn't a glamorous task to work on, especially if you're already comfortable with the level of editor support you have, but it helps bring more people into the community, which has a multiplicative ef…

I think it's a side effect of having a punishing language. Coding Rust is always described as fighting with the compiler, I don't think Rust would have ever taken off if there weren't great tools to fight the compiler with. I think that's a part of it, anyway.

Its not punishing, it's helping. Fixing bugs in development sure beats fixing bugs in production. And most of the things it complains about are in fact bugs.

Re: Introducing Rust Language Server

#48
post #3

I think the most astonishing thing to me about the Rust language project is not the language it self (sure it's innovative but there's also still a lot of work to be done to make it get out of your way). It's the speed and tenacity with which the project has managed to push development of the supporting tooling. The development tools surrounding a language can often be more important for productivity than the languag…

I think that's a side effect of making a welcoming community a priority. The Rust Language Server grew out of feedback from the Rust Language Survey, in which many people responded that they wanted good IDE support. That isn't a glamorous task to work on, especially if you're already comfortable with the level of editor support you have, but it helps bring more people into the community, which has a multiplicative ef…

I can't upvote this enough. I found the Rust community incredibly welcoming, and loved the focus on tooling - making our day-to-day lives so much better. So much so, that after a few weeks of working with Rust I contributed a few small fixes to the IntelliJ Rust plugin.

So, yeah - the community inspired me, and I hope the RLS inspires other people to contribute to Rust and the tooling around it as well!

Re: Introducing Rust Language Server

#49

Earlier quoted context omitted.

I think that's a side effect of making a welcoming community a priority. The Rust Language Server grew out of feedback from the Rust Language Survey, in which many people responded that they wanted good IDE support. That isn't a glamorous task to work on, especially if you're already comfortable with the level of editor support you have, but it helps bring more people into the community, which has a multiplicative ef…

Not a Rust developer, but this project sounds sexy to me! :) I use Emacs as much as possible, but for Java dev use IntelliJ because the Java plugins I've tried were always relatively clunky. Having great language support regardless of editor sounds wonderful!

You can develop Rust with IntelliJ as well. There's a plugin out there.

Re: Introducing Rust Language Server

#50
post #49

Earlier quoted context omitted.

Not a Rust developer, but this project sounds sexy to me! :) I use Emacs as much as possible, but for Java dev use IntelliJ because the Java plugins I've tried were always relatively clunky. Having great language support regardless of editor sounds wonderful!

You can develop Rust with IntelliJ as well. There's a plugin out there.

They gave it a snazzy site: https://intellij-rust.github.io/

One really interesting thing about this effort is that the IntelliJ folks have their own stuff for autocomplete; they're not using racer.

Post reply on HN