News for hackers. Stuff that matters.
Re:Implementing tile encoding in rav1e by rom1v on Friday April 26, 2019 @03:41AM (#19755509)
> The negative spin would be: how to spend a lot of effort to solve a problem you would never have if you didn't use rust.

I can't totally disagree, I sometimes had this feeling during the implementation.

Contrary to other languages, you can't always choose your trade-offs: memory-safety is in practice almost non-negotiable in Rust (you can use unsafe code locally, but you won't implement the whole application in unsafe), so everything else has to adapt. For example, in another language, I probably would have kept slice+stride to avoid many refactors.

In the end, I am quite happy with the tiling structures API, but a lot of work (and [boilerplate](https://github.com/xiph/rav1e/tree/f1c43dbdc52016f67ecf33383...) was necessary to implement them.

There are no comments on this comment yet.