livingcoder

joined 2 years ago
[–] livingcoder 2 points 4 hours ago

I'm surprised this doesn't already exist.

[–] livingcoder 2 points 1 week ago* (last edited 1 week ago)

After many years of using SO, I've started using ChatGPT for all of my programming questions and have not looked back once. For my usual "I know X is possible, but how do I do that in Y language" questions, it's been a dream using ChatGPT.

[–] livingcoder 4 points 2 weeks ago

In Rust, using the Option and Result types make the general flow of the application much easier to organize, make modular, and reuse.

[–] livingcoder 24 points 2 weeks ago

This was a good blog post. I particularly appreciated the statement about the validate and parse function comparison: "Both of these functions check the same thing, but parseNonEmpty gives the caller access to the information it learned, while validateNonEmpty just throws it away."

[–] livingcoder 2 points 2 weeks ago (3 children)

Is that a water dispenser? I need something like that.

[–] livingcoder 6 points 2 weeks ago (1 children)

They apologize in situations when it's not even a big deal, like walking past someone in the grocery store aisle who's trying to look at the items on the shelf.

[–] livingcoder 11 points 3 weeks ago

I would love to see professional chess players give this a fair chance. The clock could stop when they declare their move verbally (ensuring that the game doesn't devolve into an endurance test) and start up again for the next player upon the move being completed.

[–] livingcoder 1 points 1 month ago

Boo, just missed it.

[–] livingcoder 1 points 1 month ago

Is this already in a crate? I'd be happy to change over from rusqlite to limbo, at least for the async functionality.

[–] livingcoder 1 points 1 month ago

That's something I haven't heard before about the memory safety. In what ways is it not memory-safe?

[–] livingcoder 2 points 1 month ago

At first I was disappointed to see this, but after looking into it it looks like they weren't using hyper as a means to migrate the project to Rust. If they're not going to move away from C, it seems like a fair decision.

[–] livingcoder 2 points 1 month ago

There is a market for a game engine that uses algebraic variables and geometry to guarantee purely accurate collision detection. That said, a bit of searching shows that it's going to be much slower then current approximate approaches.

view more: next ›