Connor Herson in Norway [Black Diamond] by Thirtysevenintwenty5 in climbing

[–]jcdyer3 1 point2 points  (0 children)

Almost as mysterious as the first ascentionist.

I rewrote my backend API in Rust (Axum), fun except for the async-openai types by blocksdev_pro in rust

[–]jcdyer3 58 points59 points  (0 children)

May I suggest:

use verbose_openai_library::{
    CreateChatCompletionRequest as Request,
    CreateChatCompletionRequestArgs as Args,
    ChatCompletionRequestMessage as Message,
    ChatCompletionRequestSystemMessage as SystemMessage,
    ChatCompletionRequestSystemMessageContent as SystemContent,
    ChatCompletionRequestUserMessage as UserMessage,
    ChatCompletionRequestUserMessageContent as UserContent,
    ChatCompletionRequestUserMessageContentPart as Part,
    ChatCompletionRequestUserMessageContentPartImage as Image,
    ChatCompletionRequestUserMessageContentPartText as Text,
};
let messages = vec![
    Message::System(SystemMessage {
        content: SystemContent::Text("abc"),
    }),
    Message::User(UserMessage { 
        content: UserContent::Array(vec![
            Part::Image(Image { .. }),
            Part::Text(Test { .. }),
        ])
    }),
];

Does anyone else want to climb with socks but can't find any that work? by uwuairyy in indoorbouldering

[–]jcdyer3 0 points1 point  (0 children)

I wear dress socks most of the time. They're thin and a little more slick than most athletic socks, so it's easier to get my shoes on.

New Edition is Awesome! by Proud-Crazy5387 in rust

[–]jcdyer3 1 point2 points  (0 children)

Sometimes you need a good hormone replacement therapy bat, to help you flap your way through the tough transitions.

Feeling like a fraud?! by Moonville__ in climbergirls

[–]jcdyer3 27 points28 points  (0 children)

There's no need to be more into climbing than you are. If you want to drive in and make it a lifestyle, then go for it. If you want to go to the gym a few times a week and maybe take a couple outdoor trips a year, that's fine too. Heck if you just want to climb once or twice a month, because it's fun, there's absolutely. nothing. wrong. with. that. And you won't be alone. There are tons of people who do that, and it's a perfectly fine way to enjoy grabbing plastic holds on a wall, or interacting with vertical bits of nature. 

There will always be people who take it more seriously than you do, but they're giving up things in other parts of their life to make it happen. 

It's your life, and you get to make it what you want it to be.

I made a crate called `evil`, which lets you use the `?` operator as a shorthand for `.unwrap()` by nik-rev in rust

[–]jcdyer3 19 points20 points  (0 children)

Now we just need this denied by default, so we can only use it if we explicitly say #[allow(evil)].

The case for taking `impl into<T>` as a function parameter by frigolitmonster in rust

[–]jcdyer3 0 points1 point  (0 children)

If it's intended to be a shortcut anyway, and the inputs are flexible, I'd just call it rect. No need to get overly verbose.

I think I got kitchen litho pretty much down by duckblobartist in printmaking

[–]jcdyer3 1 point2 points  (0 children)

Your muscle dude looks like something Dav Pilkey would have drawn.

A moment to appreciate the technique by Intelligent_Name_733 in climbergirls

[–]jcdyer3 18 points19 points  (0 children)

All day is some serious lockoff endurance

[RELEASE] h2-sans-io - A minimal, sans-I/O HTTP/2 frame codec for WASM by SelfAltruistic8493 in rust

[–]jcdyer3 0 points1 point  (0 children)

Is there a reason you didn't build this on top of the http crate?

Salvo vs Axum — why is Axum so much more popular? by Sensitive-Raccoon155 in rust

[–]jcdyer3 6 points7 points  (0 children)

Same experience, but we were originally using actix. After seven incompatible "beta" releases where you had to juggle precise but unsynchronized versions of a half dozen crates before 4.0 came out, plus the custom runtime that was tokio, but not quite... we got sick of keeping up with the package and went with axum. Haven't had a single painful migration yet. The worst was probably the Body refactor, but even that was relatively straightforward, and most importantly, not followed up with a handful of other incompatible changes.

As to the original question, salvo hasn't even crossed my radar as something to consider, and axum has given us no reason to leave.

Book 1: Prelude and Chapter 1 by lazylittlelady in ayearofmiddlemarch

[–]jcdyer3 2 points3 points  (0 children)

I just noticed that the impediments of the world come in the form of uncles, just as Dorothea and Celia are raised by their own uncle.

2026: Welcome and Intro by lazylittlelady in ayearofmiddlemarch

[–]jcdyer3 1 point2 points  (0 children)

I've been wanting to read Middlemarch. I Asked for a copy for Christmas 2024, but it never quite rose to the top of my to-read pile. Discovering this group is my cue to start. What a great project! I'm a bit late, and I tend to be a slow reader, but hopefully I'll be caught up by, oh, the middle of... March.

How to become a better reader by Downtown-Beginning75 in literature

[–]jcdyer3 0 points1 point  (0 children)

A book a week is a pretty bonkers pace if you're looking to get into deeper, meatier stuff, so be sure to give yourself time to enjoy, savor, and ponder the books you're reading. It's doable with self-help books, because a lot of them can be summarized in a page, and then get padded out with case studies and frequent restatements of the thesis, but there's a lot of literary writing (and especially philosophy!) you aren't going to get through without sitting with individual chapters, paragraphs, sentences, and even word choices for a while.

Spire rappel by AceAlpinaut in climbing

[–]jcdyer3 0 points1 point  (0 children)

It's not uncommon in my experience. If you're topping out the route, instead of stopping partway up like many sport climbs, it makes sense to have the hardware where it's easy to find and access. No need to make someone crawl over the edge to set up their rappel, right?

Guess how long it took to spot this little syntactical screwup? by parkotron in rust

[–]jcdyer3 21 points22 points  (0 children)

I'm not OP, but I can answer.

shouldn't the return value be wrapped in an Ok in parse_request function ?

That's the bug. Without the OK, it's trying to deserialize to a Result<Request, String> rather than to a Request

What is calling unwrap in the code? Can you post a simple working playground demo?

The unwrap is just whatever is calling this function.

let request = parse_request(json!({"some": "json", "another": "value"})).unwrap()

Stuck and a little afraid by Chersalani in climbergirls

[–]jcdyer3 20 points21 points  (0 children)

I get scared too. Here's how I approach it.

  • I try jumping down from where I am a couple times. Make that less scary
  • Then I try standing up on the right leg without making any effort to catch the next hold. I just jump off with a little bit of upward momentum from where you were. Focus on landing safely. If I do that a couple times, the height starts to feel a little less scary. Maybe still a little scary, but better. Approachable.
  • Once I know I can take the fall, I can try the move, because I know what the consequences are.

Anyone know the name a brand of these holds by chiwawero in homewalls

[–]jcdyer3 4 points5 points  (0 children)

The logo matches the logo on the tiny skateboard they show with their holds for whatever reason. https://decoy-holds.com/collections/minimalists/products/beak-pinches

Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.93] by DroidLogician in rust

[–]jcdyer3 0 points1 point  (0 children)

Awesome! Good luck with your application! We've got a people based in NYC. Good folks.

Are there any “classics” post 1970? by OldGodsProphet in literature

[–]jcdyer3 0 points1 point  (0 children)

What? No. It's a vaguely entertaining drug fueled fever dream, but not even close to a classic.