News for hackers. Stuff that matters.
Re:Rust Is Surprisingly Good as a Server Language by spuz on Monday July 13, 2020 @05:50AM (#23818989)
Could someone who is familiar with Rust clarify something for me? If I am using an IDE such as IDEA's Rust plugin, and I write some function which contains a type error, do I have to compile in order for the IDE to tell me there is a type error, or can I rely on automatic type-checking like I can in e.g. Java? In other words, is Rust slow to validate code, or is simply slow to compile code into a runnable binary? If it is the former then I can totally understand why Rust would turn certain programmers away. If it is only the latter, then I find it slightly harder to understand.
Re:Rust Is Surprisingly Good as a Server Language by zozbot234 on Monday July 13, 2020 @05:57AM (#23819022)
> In other words, is Rust slow to validate code, or is simply slow to compile code into a runnable binary?

The latter. Validation/type checking is super quick. It might slow down a little bit if you do a lot of compile-time processing via macros, etc. IDE support is also improving a lot, and many Rust devs use an experimental component known as rust-analyzer to do the IDE-based validation you're talking about.

Re:Rust Is Surprisingly Good as a Server Language by tadzik_ on Monday July 13, 2020 @05:58AM (#23819027)
Something like aforementioned rust-analyzer will catch errors like that within a second of you writing it, there's no need for recompilation.