News for hackers. Stuff that matters.
Re:Why Python keeps growing, explained by nindalf on Friday March 03, 2023 @09:45AM (#35010244)
> a whole bunch of the footguns

Could you expand on this in the context of Rust?

Re:Why Python keeps growing, explained by benrutter on Friday March 03, 2023 @10:16AM (#35010676)
Sure thing! Footguns might be the wrong word, and I know as a low level language Rust is insanely safe, but for a high level developer it's type system is gonna mean spending a lot of time in the compiler figuring out type errors, at least initially. That might not be a traditional footgun, but if you're just trying to, I dunno, build a crud api or something, its gonna nuke your development time.

Please don't read this as "rust is difficult and bad", I definitely don't think it is! But its a low level language, and working with it means dealing with complexity that for some tasks just might not be relevant.

Re:Why Python keeps growing, explained by pkolaczk on Friday March 03, 2023 @10:35AM (#35010926)
I find figuring out type errors is usually less work than figuring out the runtime bugs they prevented.
Re:Why Python keeps growing, explained by benrutter on Friday March 03, 2023 @11:12AM (#35011444)
I agree, but for something like the CRUD app example I made bringing in pydantic or something would solve that. Rust's type system is a lot stricter because it's solving problems in a space that doesn't touch a lot of Python developers.
Re:Why Python keeps growing, explained by namaria on Friday March 03, 2023 @03:10PM (#35014403)
In all fairness Rust was never meant for writing database interfaces, more like storage engines.