fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V>
where K: Borrow<Q>,
Q: Hash + Eq
👨💻2
Use a LinkedList when:
• You are absolutely certain you really, truly, want a doubly linked list.
https://doc.rust-lang.org/std/collections/index.html#use-a-linkedlist-when
To get this out of the way: you should probably just use Vec or HashMap. [...] Even when Vec and HashMap are technically suboptimal, they’re probably a good enough choice to get started.
That's just bad
👨💻1
https://blog.zorinaq.com/i-contribute-to-the-windows-kernel-we-are-slower-than-other-oper/
BridgeLiver wrote: Who gives a fuck what you found offensive, James?
Forwarded from import __hello__
😢2
https://github.com/ftilde/ugdb
What's that? Oh, yes. Yes, you can totally use ugdb to debug ugdb debugging ugdb.
unsafe fn jmp(addr: *const u8) {
let fn_ptr: fn() = std::mem::transmute(addr);
fn_ptr();
}👾2
Two independent groups of researchers have identified a total of 6 vulnerabilities in rsync
https://www.openwall.com/lists/oss-security/2025/01/14/3
😊😊
https://www.openwall.com/lists/oss-security/2025/01/14/3
In the most severe CVE, an attacker only requires
anonymous read access to a rsync server, such as a public mirror, to execute arbitrary code on the machine the server is running on.
😊😊
https://github.com/cessen/ropey
write your own vi
Even on texts that are multiple gigabytes large, edits are measured in single-digit microseconds.
write your own vi
GitHub
GitHub - cessen/ropey: A utf8 text rope for manipulating and editing large texts.
A utf8 text rope for manipulating and editing large texts. - cessen/ropey
👨💻2