HackerTrans
TopNewTrendsCommentsPastAskShowJobs

WaffleIronMaker

4 karmajoined 6 часов назад

comments

WaffleIronMaker
·6 часов назад·discuss
It seems these are the statements the original commenter has an objection to:

    As a community, we want to be friendly too. People from around the world, of all backgrounds, genders, and experience levels are welcome and respected equally. See our community code of conduct for more.

    Black lives matter. Trans rights are human rights. No nazi bullsh*t. 
https://gleam.run/
WaffleIronMaker
·3 года назад·discuss
to me, reading these overviews is a very rewarding experience, as every article title in the category gives me a rewarding rush of memories and context all related to a common theme. and if I don't know about a topic, it's an effective way to find the gaps in my knowledge. maybe it's not a traditional form of art, but I can see how it's a unique way to interact with a large domain of content.
WaffleIronMaker
·4 года назад·discuss
I know this is a joke, but I think it's important to recognize that it's because the ChatGPT language model does not have the ability to introspect and decide how accurate its knowledge is in a given domain. No amount of training on new input data can ensure it provides accurate responses.
WaffleIronMaker
·4 года назад·discuss
Technically, you don't need a macro at all:

    use std::io::Write;

    fn main() {
        std::io::stdout().write(b"Hello, world!\n").unwrap();
    }
The reason people often use println! is that println! is variadic and can support any number of arguments to format in the string. For example:

    println!("x is: {}", x);
This also has the benefit of allowing type checking at compile time, as opposed to using a function like printf in C, which does not have such power. Additionally, this allows Rust to take references to the variables entered without the programmer's specification, in order to prevent unnecessary copying.

These reasons tie directly into Rust's philosophy of making it easy to write reliable, performant code.