News for hackers. Stuff that matters.
Re:Rust Is Surprisingly Good as a Server Language by microcolonel on Monday July 13, 2020 @08:13AM (#23819897)
Maybe with some heuristics, you could hide some latency by beginning to compile before saving.
Re:Rust Is Surprisingly Good as a Server Language by steveklabnik on Monday July 13, 2020 @08:30AM (#23820020)
Maybe. At the rate I hit :w, probably not :)
Re:Rust Is Surprisingly Good as a Server Language by nicoburns on Monday July 13, 2020 @08:43AM (#23820132)
One of the first computer system I used frequently was Windows ME. This system used to crash (BSOD) extremely frequently (depending on what you were doing, it could be as frequently as every 20 minutes), and any unsaved work would be lost.

I have therefore developed a reflex where I hit Cmd-S every time I finish typing. I actually have to put conscious effort in to stop this when using software where saving is slow.

Re:Rust Is Surprisingly Good as a Server Language by steveklabnik on Monday July 13, 2020 @08:51AM (#23820204)
I used to work on some 3D printing related software, and so I had to type “Objet” a bunch and it was impossible to not type “object.”
Re:Rust Is Surprisingly Good as a Server Language by mlindner on Monday July 13, 2020 @08:35AM (#23820055)
How do you have Vim (or neovim) set up to do that and report errors inline?
Re:Rust Is Surprisingly Good as a Server Language by steveklabnik on Monday July 13, 2020 @08:43AM (#23820127)
I use VS Code with the vim plugin.

I hear you can get this working with vim/neovim but I haven’t done it myself.

Re:Rust Is Surprisingly Good as a Server Language by ricree on Monday July 13, 2020 @09:57AM (#23820802)
I use ALE, which I believe includes Rust by default.

https://github.com/dense-analysis/ale

Re:Rust Is Surprisingly Good as a Server Language by sudosysgen on Monday July 13, 2020 @09:07AM (#23820333)
How I did it is that I install VimPlug then CoC then the rust extension.