nerd, amateur programmer
I write software, and it sometimes works.
| pronouns | they/them/their |
| bird site | gone forever :) |
nerd, amateur programmer
I write software, and it sometimes works.
| pronouns | they/them/their |
| bird site | gone forever :) |
@federicomena The .cast() method on pointers doesn't seem to trigger the lint. It also comes with the added bonus that it can't accidentally cast *const into *mut.
@livingcoder One thing to note is that if you use traits like `Into` and `AsRef`, you might end up with a bunch of unnecessarily duplicated code bloating up your binary size.
You can avoid this with tricks like
fn do_thing_inner(x: Foo) {
// Implementation goes here...
}
pub fn do_thing<T: Into<Foo>>(x: T) {
do_thing_inner(x.into());
}
This trick is used in the standard library, for example: https://doc.rust-lang.org/1.70.0/src/std/fs.rs.html#325-330
@[email protected] @chrisdenton It installs the Rust compiler for you, but that only knows how to compile to object code - it doesn't know how to turn object code into a usable program.
I've not used Ubuntu in a few years now, but looking at the Ubuntu package list, try
$ sudo apt install gcc-mingw-w64-x86-64
@[email protected] @noboilerplate All of these options have trade-offs.
opt-level = 'z' is often slower than opt-level = 3.
lto = true and codegen-units = 1 both make compilation slower.
panic = 'abort' makes panics unrecoverable, and does not run destructors after a panic.
strip = true makes the program harder to debug.
@michellemanafy @condalmo just gonna drop these here, don't mind me
https://12ft.io/proxy?&q=https%3A%2F%2Fwww.ft.com%2Fcontent%2Fde808736-2e05-4c3b-a53c-55b170ae9efd
Support trans youth.
Reply to the consultation before Sunday.
Please share. https://twitter.com/Genderintell/status/1596458897228840963
🐦🔗: https://twitter.com/TransPrideSW/status/1598692326691553280