News for hackers. Stuff that matters.
Re:Test for lists in Cython by volta83 on Monday April 19, 2021 @07:32AM (#26861527)
To add, it is trivial to guarantee that Rust code is "zero-copy", so if this is something you care about, Rust allows your program to fail to compile if it tries to make a copy.
Re:Test for lists in Cython by mhh__ on Monday April 19, 2021 @07:36AM (#26861569)
Godbolt example?
Re:Test for lists in Cython by adwn on Monday April 19, 2021 @08:36AM (#26862025)
Here you go:

https://play.rust-lang.org/?version=stable&mode=debug&editio...

Because the data structure LotsOfData doesn't implement the Clone trait, attempting to create a copy will fail at compile-time.

Re:Test for lists in Cython by mhh__ on Monday April 19, 2021 @09:21AM (#26862436)
OK. I was curious whether it was part of the type system or one of those #[feature] thingies.

https://run.dlang.io/is/jOXfJz is a D equivalent