One interesting quirk about the New Zealand government's decision to treat prediction markets as gambling, is that this would imply that winnings are tax free 🤔
Using impl Trait in the return position is one of Rust's most useful features for library authors.
It allows you to change the concrete type without breaking semver.
e.g. `fn printable() -> impl std::fmt::Display` would enable you to return anything that you want that implements Display.
ALT Code snippet:
// Start with something that you can use right now
pub fn evens(max: u32) -> impl Iterator<Item = u32> {
(0..max).filter(|n| n % 2 == 0)
}
// ..later on, you can swap this out for something
// more readable, efficient or idiomatic
pub fn evens(max: u32) -> impl Iterator<Item = u32> {
(0..max).step_by(2)
}
A gentle reminder that hits to your status page should be on your dashboard. If everything on your dashboard is green, but you receive a spike in visitors to your status page, then your dashboard is wrong.
Cargo fighting the big fight of keeping the ASCII standard alive with CARGO_ENCODED_RUSTFLAGS.
(I'm team ASCII by the way. CSV is not a real file format. ASCII Record Separator and ASCII Unit Separator for the win)
^W
Mythos is a big deal because of its second-order effects.
If it only cost $10b to train a cyber weapon that can easily penetrate all heavily-used operating systems, I expect that the information security industry will encounter many private variants within 24 months.
Do you have any examples of instructional tech videos that you really like?
I'm looking it at increasing the quality of mine and would love to know examples of formats that work well.
Not all safe Rust code is equally safe.
Here's what that means and why I argue that Rust has a spectrum of safety rather than one that's binary as indicated by the unsafe keyword.
Notes from "Pointer Poker" and more: Levels of safety beyond the safe/unsafe dichotomy patreon.com/posts/145552268
The Axiom level is really fascinating to me. This isn't something that exists in the Rust language, but I suspect that it will emerge. Some parts of Rust are so safe that they essentially require no further review.
Where to from here?
- 📖 Read the full post patreon.com/posts/145552268
- 🤔 Comments are very welcome
- 👋 If the algorithm has sent you here, please follow for more