News for hackers. Stuff that matters.
Re:Building a Cloud Database from Scratch: Why We Moved from... by jjnoakes on Friday February 10, 2023 @10:13AM (#34740652)
Says who? I love prototyping things in Rust.
Re:Building a Cloud Database from Scratch: Why We Moved from... by verdagon on Friday February 10, 2023 @10:41AM (#34741074)
I think both can be true. I think Rust is more fun to prototype in, but it does take more effort and time than other languages due to extra constraints that add artificial complexity especially for the prototyping phase. [0] I love prototyping in it too, but it's not great at prototyping compared to other languages.

[0] https://verdagon.dev/blog/when-to-use-memory-safe-part-2

Re:Building a Cloud Database from Scratch: Why We Moved from... by verdagon on Friday February 10, 2023 @03:29PM (#34745365)
Both viewpoints make sense; whether Rust is good for prototyping depends on the domain.

If it fits the borrow checker well (like in CLI apps, stateless servers, data transformation) then the borrow checker fits beautifully and seamlessly.

In other settings (complex turn-based games, some compilers, GUI), the borrow checker can cause some artificial complexity and prototyping slowdowns compared to other paradigms.

Re:Building a Cloud Database from Scratch: Why We Moved from... by jjnoakes on Friday February 10, 2023 @06:18PM (#34747373)
I guess it depends on your point of view. For me, having Rust catch issues even when prototyping makes me enjoy prototyping more. I absolutely hate (even when prototyping) when I try to run something, it chugs along for a bit, and then hits a runtime error due to some stupid typo.

In fact I like Rust for prototyping precisely because I don't yet have tests, and the extra compiler diligence frees me to focus on the prototype.

Re:Building a Cloud Database from Scratch: Why We Moved from... by menaerus on Saturday February 11, 2023 @03:56AM (#34750724)
> and then hits a runtime error due to some stupid typo.

I don't think that the parent comment implied prototyping in dynamic languages but rather in statically compiled ones.

FWIW in C or C++ you don't have to do as much code gymnastics to satisfy the compiler so consequently prototyping is both faster and easier when compared to Rust.

Re:Building a Cloud Database from Scratch: Why We Moved from... by jjnoakes on Sunday February 12, 2023 @12:16AM (#34760066)
Again for me personally, I find the opposite true. With C and C++ I'll find that once in a while, quick sloppy coding gets me something that seems to work for a bit and then fails in subtle and hard to debug ways. That's a time sink that just doesn't exist when I whip something together in Rust.