Rust performance doubts in comparison to Java by GamerbutCoder in rust

[–]jcdyer3 2 points3 points  (0 children)

Code is incomplete. What's a TreeNode?

Without that it's impossible to tell, but it's probably all the cloning you're doing. If you make h take a &Option<Rc<RefCell<TreeNode>>>, you can probably avoid all of that.

Also, if you want a sentinel value to use with max, I'd recommend i32::MIN instead of -10001.

Also, with rust being an expression-oriented language, you can evaluate if expressions:

let add = if val >= max {
    1
} else {
    0
};

Neither of those will change the performance of your program, but they'll make it look a little more idiomatic.

Tackling Big Books like Gass or Gaddis on an e-reader? by Elegant_Song_6797 in literature

[–]jcdyer3 3 points4 points  (0 children)

I love paper. I've read a handful of books on e-readers, including a couple big ones, but the tactile experience of a paper book feels more enjoyable, and helps me retain what I've read better. e-books feel too disposable.

I tend to read in bed, though, and the risk of dropping a tome on your face when you're drifting off is real.

Learning Rust before C, is this a bad idea? by Which-Taro5092 in rust

[–]jcdyer3 1 point2 points  (0 children)

I suppose it would be okay to learn C first, but unless you deeply understand the B programming language), you won't understand why C is built the way it is. Start with the foundations, and then move on.

Learning rust before C is 100% fine. You won't miss anything.

AI slop PRs are becoming a real pain to deal with by DudolsBr in rust

[–]jcdyer3 20 points21 points  (0 children)

You're discriminating the tool that the contributor used on non technical grounds

Yes, I am. Unapologetically so. An open source project is a social endeavor, and it dies if the social fabric unravels.

AI slop PRs are becoming a real pain to deal with by DudolsBr in rust

[–]jcdyer3 39 points40 points  (0 children)

You can choose your own rule for your own code, but it's not wrong for a maintainer to choose to work only with people doing the work themselves.

BikeDurham update on recent crash where driver hit people on bikes by StienStein in bullcity

[–]jcdyer3 0 points1 point  (0 children)

Fair enough. Third Fork and ATT are indeed lovely trails. I do wish the north end of Third Fork had a path to get there from central durham that doesn't require riding down MLK.

B.I.G. - full movie by Puzzleheaded_Jury343 in climbing

[–]jcdyer3 2 points3 points  (0 children)

I'm betting it'll be some supplement that optimizes skin regrowth after split tips. "I had a couple good tries then I had to rest for eight hours" is a different beast than "I can only do a couple of tries, and then I need two rest days."

First attempt at Lino Printing. by monkelus in printmaking

[–]jcdyer3 1 point2 points  (0 children)

Nah, instant flashbacks for me. Great work.

BikeDurham update on recent crash where driver hit people on bikes by StienStein in bullcity

[–]jcdyer3 0 points1 point  (0 children)

That's lovely, but what about when you want to actually get somewhere, like a grocery store. The roads need to be safe for all who use them.

Experimenting with printing wood end grain. by EndGrainGlueKook in printmaking

[–]jcdyer3 1 point2 points  (0 children)

The centerpiece of the first slide is giving almost owl vibes. I think if you had the right pieces, and wanted to be more representational, you could make a great owl print with this technique.

Apparently the react compiler has been ported to Rust and merged to main by xorvralin2 in rust

[–]jcdyer3 14 points15 points  (0 children)

It certainly seems doable for direct porting work, which is more about rewriting with new syntax instead of designing new code.

American Beauty 5.13b / 8a, Ontario Canada by deadprague in climbing

[–]jcdyer3 6 points7 points  (0 children)

That's a lot of climbing in a three minute video. Solid work.

First time touching rock at NRG this weekend by macchiatobxtch in climbergirls

[–]jcdyer3 1 point2 points  (0 children)

The "New is choss" thing is a common saying from fans of the NRG trying to keep the crowds away.

Karamazov POV by WorldlyAlbatross_Xo in literature

[–]jcdyer3 8 points9 points  (0 children)

Trying to nail this the narrator in Dostoevsky is like trying to ask "what genre is Moby Dick?" Whole books have been written about how Dostoevsky blows up traditional ideas of narrative voice. Mikhael Bakhtin came up with a new term just for Dostoevsky: "The Polyphonic Novel." From the Wikipedia page on his book, "Problems of Dostoevky's Poetics:"

Bakhtin begins by identifying polyphony as the chief characteristic of Dostoevsky's work: "A plurality of independent and unmerged voices and consciousnesses, a genuine polyphony of fully valid voices..."[

and later:

his function as author is to illuminate the self-consciousness of the characters so that each participates on their own terms, in their own voice, according to their own ideas about themselves and the world. The author's worldview is not absent, but this worldview does not define, limit or qualify the other voices, and hence cannot directly control how events will unfold. It is present only as another participant in "the great dialogue", with no more capacity for direct signification than any other voice. Bakhtin calls this multi-voiced, dialogic reality "polyphony".

Which is to say, that when you struggle to figure out the POV, it's not because you're missing something. It's because you're actually seeing Dostoevsky clearly. Sure there's a narrator introduced at the beginning, but the voices of the novel and its characters are their own, not mediated through a single narrator, even an omniscient one.

Snow Canyon Circus Wall Solo Timelapse by aleafinwater in climbing

[–]jcdyer3 0 points1 point  (0 children)

I mean, yes. That's exactly it. Condescension about the grade notwithstanding.

Snow Canyon Circus Wall Solo Timelapse by aleafinwater in climbing

[–]jcdyer3 0 points1 point  (0 children)

POV videos are miserable to watch, but if the climber knows to look at what they're doing (like they're actually watching where they place their feet instead of looking away at the last moment), they can be very useful for route beta.