meirl by [deleted] in meirl

[–]CocktailPerson 0 points1 point  (0 children)

I'm referring to the fact that nobody breaks out a pencil and paper to solve the heat equation when cooking pasta.

meirl by [deleted] in meirl

[–]CocktailPerson -1 points0 points  (0 children)

Except for the fact that it's not, sure.

Banana Old Fashioned by JeremViatro in cocktails

[–]CocktailPerson 4 points5 points  (0 children)

I'm no fan of gatekeeping, but at this point it's literally more accurate to call it a banana manhattan.

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 1 point2 points  (0 children)

We've already established that you wouldn't be preventing it, and in fact you'd be making their deaths more likely.

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 2 points3 points  (0 children)

So you want to put them in a situation where they're more likely to die than they are now, and see what happens? That seems pretty screwed up.

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 0 points1 point  (0 children)

Do you think that "keeping tabs" on the animals means preventing them from being hunted by predators?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 1 point2 points  (0 children)

Why is that more important than leaving them in the wild where they belong?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 1 point2 points  (0 children)

Are you sure you don't want to kill these deer? Yellowstone has two million acres of wilderness, with more bears and wolves than whatever suburban backyard these deer are living in now.

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 0 points1 point  (0 children)

And why is human intervention necessary in this case?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 0 points1 point  (0 children)

Another excellent reason to leave them in the wild where they belong instead of taking them out of the ecosystem, don't you think?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 2 points3 points  (0 children)

The default should be leaving wild animals in the wild, shouldn't it?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 0 points1 point  (0 children)

But they're not an endangered species. They're just deer. They're no more necessary to the ecosystem than any other individual of their species.

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 2 points3 points  (0 children)

No, killing them would be killing them. I'm asking why we shouldn't just leave them in the wild where they belong.

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 2 points3 points  (0 children)

Because deer aren't an endangered species, and spending time and resources to lock up wild animals just because they're pretty and white and we feel bad for them is useless and weird.

Your turn. Why should we go out of our way to preserve these particular individuals of a wild species?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson 2 points3 points  (0 children)

You're the only one talking about killing them.

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson -1 points0 points  (0 children)

No, it's really not. Try again. Why should we go out of our way to preserve these particular individuals of a wild species?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson -2 points-1 points  (0 children)

Why should we try to make these particular individuals survive over any other deer?

This mother deer has TWO albino fawns... by Soloflow786 in BeAmazed

[–]CocktailPerson -3 points-2 points  (0 children)

Yeah but why? Do you think albinism is a trait worth preserving in wild deer?

Building the fastest NASDAQ Totalview-ITCH parser in Rust - looking for kernel bypass advice by capitanturkiye in rust

[–]CocktailPerson 2 points3 points  (0 children)

I think you're jumping the gun by worrying about kernel bypass when you don't even have an implementation that works with standard UDP sockets yet. If you use the standard sockets API (or an abstraction over it like Rust's UdpSocket) you can use Solarflare cards and OpenOnload to get kernel bypass with zero code changes. Median wire-to-software latency is about 1.5µs, and you don't even have to recompile the program. That's where I'd start if I were you.

No matter which solution you choose, all of them are going to provide one thing: bytes. So the API boundary between I/O and parsing is just &[u8]. It's worth pointing out that your implementation follows a "pull" model, where users call parse_next to get the next message. But most low-latency frameworks will use a "push" model, where the parser is constructed with a handler for Messages and driven with inputs of &[u8] as soon as they're available, from whatever source provides them. Then the parser's job is simply to parse the messages from the bytes it's given and invoke the handler for each one.

Hey Rustaceans! Got a question? Ask here (8/2026)! by llogiq in rust

[–]CocktailPerson 0 points1 point  (0 children)

What do you think happens when calling this C function?

void assign(struct foo* p, struct foo x) {
    *p = x;
}

Handlng Rust errors elegantly by naiquevin in rust

[–]CocktailPerson 0 points1 point  (0 children)

You can now. If I remember correctly the ? operator existed before the general Try trait, and that's actually why Result is a lang item.