News for hackers. Stuff that matters.
Re:Introducing Rust Language Server by steveklabnik on Tuesday October 18, 2016 @08:57PM (#12740093)
There was a talk at RustConf by Raph Levien about his editor, Xi. It almost entirely uses JSON-RPC to communicate through a distributed architecture, and next-level speed is one of his design goals: https://confreaks.tv/videos/rustconf2016-a-modern-editor-bui...

> I've been keeping an eye on Rust's MSVC progress before I consider using it for a real-world project

The latest builds of MSVC claim to have native Rust syntax highlighting and autocomplete, I have not yet tried it myself: https://www.visualstudio.com/news/releasenotes/vs15-relnotes

Re:Introducing Rust Language Server by wbond on Tuesday October 18, 2016 @09:18PM (#12740206)
I'm referring to the MSVC "backend" for Rust, not Visual Studio.
Re:Introducing Rust Language Server by steveklabnik on Tuesday October 18, 2016 @09:35PM (#12740285)
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.
Re:Introducing Rust Language Server by wbond on Tuesday October 18, 2016 @09:47PM (#12740351)
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 by retep998 on Wednesday October 19, 2016 @12:10AM (#12741013)
Yay, someone actually follows that issue.

If you have the time, you should really consider helping to improve the Rust experience on Windows. There's a huge shortage of Windows developers in the Rust community.

Re:Introducing Rust Language Server by wbond on Wednesday October 19, 2016 @06:05AM (#12742465)
Unfortunately I am already overcommitted with open source projects. For now I am content to wait and see how it all plays out. It will be great to have another language where Windows support is really first-rate.
Re:Introducing Rust Language Server by steveklabnik on Wednesday October 19, 2016 @12:20AM (#12741042)
Seconded, and you have done so much work on this front. It'd be wonderful if we had more people to advocate for and help do this work.
Re:Introducing Rust Language Server by Rusky on Tuesday October 18, 2016 @10:58PM (#12740667)
Probably the biggest drawback of the MSVC backend is that its debugging symbols only have line numbers, no variable/type information. The rest is mostly Windows-specific issues like manifests and subsystems.
Re:Introducing Rust Language Server by retep998 on Wednesday October 19, 2016 @12:12AM (#12741019)
Actually, the PDB debug info has variable and type information and a lot of it actually works. There's just a few minor issues here and there with stuff like fat pointers.
Re:Introducing Rust Language Server by Rusky on Wednesday October 19, 2016 @12:49AM (#12741155)
Oh, that's fantastic- how recent is this? Last time I tried debugging an -msvc binary was only a couple months ago.
Re:Introducing Rust Language Server by retep998 on Wednesday October 19, 2016 @08:24AM (#12743112)
It might have been due to either https://github.com/rust-lang/rust/pull/31319 or an LLVM upgrade. But stuff like looking at the values of basic integer types, the fields of structs, tuple fields, thin pointers, and even many enums works fine. You just have to make sure you have debug info enabled.

Keep in mind std in the Rust distribution was built without debuginfo, so if you step into functions from that, things don't work too well.

Re:Introducing Rust Language Server by IsmaOlvey on Wednesday October 19, 2016 @05:38AM (#12742374)
MSVC is commonly used to refer to Visual Studio, more specifically the C++ compiler that's part of it (originally "Microsoft Visual C++"), which would explain the parent confusing the two.