News for hackers. Stuff that matters.

vincenv

Re:Using unwrap() in Rust is okay on Monday August 08, 2022 @01:13PM (#32388267)
You can get that with anyhow [1] by calling unwrap after `.with_context`.

[1]: https://docs.rs/anyhow/latest/anyhow/

Re:Crossbeam – Tools for concurrent programming in Rust on Sunday April 17, 2022 @04:42AM (#31059479)
You could use async_channel [1] it provides async multi-producer multi-consumer.

[1]: https://docs.rs/async-channel/latest/async_channel/

Re:Learn Rust by writing a small OS on Friday February 25, 2022 @10:57AM (#30468620)
Another book I found very helpful is Programming Rust [1], it expands on many concepts in the Rust book, the chapters on closures, iterators, collections, concurrency and async have very good explanations on how things work.

[1]: https://www.oreilly.com/library/view/programming-rust-2nd/97...

Re:Rust 1.50 on Thursday February 11, 2021 @10:55AM (#26102935)
I found the Rust Programming Language book [1] very helpful for learning, and with rust installed you can open it by typing rustup doc --book.

[1] https://doc.rust-lang.org/stable/book/

Re:TimescaleDB vs. Amazon Timestream on Thursday December 03, 2020 @12:31PM (#25291644)
I played with it recently, being a PostgreSQL extension I found it easy to implement a rust client [1] to test ingestion rate performance, on my laptop was able to insert ~600K rows/sec.

The documentation on their website [2] is also very good.

[1] https://github.com/vincev/tsdbperf [2] https://docs.timescale.com/latest/main

Re:Ask HN: Good resources about legacy code? on Saturday December 30, 2017 @11:06AM (#16035787)
"Object-Oriented Reengineering Patterns" has some good advice on how to approach a legacy system and rewrite parts of it, pdf available from the authors website:

http://scg.unibe.ch/download/oorp/