Live data from Hacker News

Announcing Rust 1.16

blog.rust-lang.org

91–95 of 95 posts

Re: Announcing Rust 1.16

#91
post #87

Earlier quoted context omitted.

Incremental recompilation is still underway; expect some news on it reasonably soon. Even then, it's just the start, and there's more that we can do.

When it's out, can we actually get the same responsiveness as, let's say Java? I assume it also depends on the IDE but I would really like to see instant hints during coding session, ex. when I make mistakes.

You can already get instant hints now with VS Code and the Rust Language Server (RLS). It's still in alpha and the initial setup is a bit involved, but it already works very well for me.

https://github.com/rust-lang-nursery/rls

https://github.com/jonathandturner/rls_vscode

For some reason, code completion via Racer doesn't work yet for me via RLS, so I use the "old" RustyCode extension for that (https://github.com/saviorisdead/RustyCode).

Re: Announcing Rust 1.16

#92
post #72

Earlier quoted context omitted.

> Or you're going to have to be more specific about what you're trying to do. I want to allocate arrays, maps, etcetera inside the region of a memory mapped file. Then, later, when I mmap the same file to a different region in memory, I want the arrays and maps to still work. That's all.

As others have explained, it's definitely possible to construct those data structures in Rust and use them from a crate. But you can't just flip a switch to get the standard library collections to work that way. You could probably get pretty far by copy pasting the standard library containers you're interested in and replace Box with something like OffsetBox which uses indices into your memmap arena instead of pointe…

Perhaps a solution would be to introduce the concept of relative pointers. I.e., the pointer becomes a signed value that should be added to the address of the pointer to obtain the address of the location pointed to. Not sure what the implications would be. Of course the standard data-structures would need to support such pointers.

After some searching, I found that Microsoft Visual Studio supports something similar, and exactly for the application I had in mind: [1].

[1] https://msdn.microsoft.com/en-us/library/57a97k4e.aspx

Re: Announcing Rust 1.16

#93
post #91
post #87

Earlier quoted context omitted.

When it's out, can we actually get the same responsiveness as, let's say Java? I assume it also depends on the IDE but I would really like to see instant hints during coding session, ex. when I make mistakes.

You can already get instant hints now with VS Code and the Rust Language Server (RLS). It's still in alpha and the initial setup is a bit involved, but it already works very well for me. https://github.com/rust-lang-nursery/rls https://github.com/jonathandturner/rls_vscode For some reason, code completion via Racer doesn't work yet for me via RLS, so I use the "old" RustyCode extension for that ( https://github.com/s…

I am not talking about code completion. I am talking about mistakes. Currently I have to build a project. With new Rust 1.16 I can check, but that's still a separate task that has to be launched manually. Yet, IntelliJ with Java will show you problems instantly, as well as gives you most probable options to solve them.

Re: Announcing Rust 1.16

#94
post #93
post #91

Earlier quoted context omitted.

You can already get instant hints now with VS Code and the Rust Language Server (RLS). It's still in alpha and the initial setup is a bit involved, but it already works very well for me. https://github.com/rust-lang-nursery/rls https://github.com/jonathandturner/rls_vscode For some reason, code completion via Racer doesn't work yet for me via RLS, so I use the "old" RustyCode extension for that ( https://github.com/s…

I am not talking about code completion. I am talking about mistakes. Currently I have to build a project. With new Rust 1.16 I can check, but that's still a separate task that has to be launched manually. Yet, IntelliJ with Java will show you problems instantly, as well as gives you most probable options to solve them.

I wasn't only talking about code completion either - when I make any syntax/type error I get a red squiggly after about a second and hovering shows the compiler error (which often has hints for solving it). Same goes for compiler warnings (e.g. green squigglies for dead code). Feels quite close to IntelliJ already (I use PyCharm...).

Re: Announcing Rust 1.16

#95
post #57
post #55

Earlier quoted context omitted.

Honestly, it's extremely taxing to maintain this pace without everything falling apart. The size of the team employed by Mozilla is quite modest. Firefox, which has a similar release schedule, has an entire team dedicated to just getting the releases out (though Firefox is yet the significantly larger product). We have no entire people, but employ some very rigorous testing.

>We have no entire people You mean people dedicated to releases, or just that everyone must cut off an appendage to join the team? :)

I suspect Niko is part alien
Post reply on HN