this post was submitted on 24 Oct 2023
51 points (100.0% liked)

Chat

7498 readers
2 users here now

Relaxed section for discussion and debate that doesn't fit anywhere else. Whether it's advice, how your week is going, a link that's at the back of your mind, or something like that, it can likely go here.


Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

In this post I am speaking as a Beehaw fanatic and not as an admin. That is why it is placed in the chat community. To be clear, I am not speaking on behalf of the Beehaw admin team nor the community as a whole.

Currently, we have $5,430 that is in our collective purse to be used to further this endeavor. When I take a step back, and look at that amount of money, I am humbled. That is hope…it is an expression of where we want to go and what we want to preserve.

You may be wondering where we are with the testing of alternative platforms and any other considerations.

The testing phase, as far as I can tell, is over. We are, I believe, in a stage of digesting all of it. And, I have a feeling, that we are holding out hope that there could be other options we haven’t encountered yet.

I appreciate the patience of everyone involved and I don’t want to make a hasty decision.

Thankfully, we have had persons such as PenguinCoder to rescue us from the huge Reddit exodus and all the technical problems associated with the Lemmy software platform that we rely on right now.

There have been whispers that PenguinCoder could be working on a new platform for the Beehaw project.

Thank you all for grabbing onto our northern star, be(e) nice, and running with it.

you are viewing a single comment's thread
view the rest of the comments
[–] potterman28wxcv 1 points 1 year ago* (last edited 1 year ago)

About your specific example I find the Rust code to be much simpler to understand than your equivalent Golang code..

To understand the Rust code I just have to understand each case. 0..1 returns false. Ok. 2..n returns true iff no divider was found between 2 and n-1. Ok the function is primality test

The Golang code is much harder. I do not take into account the division by 2 because its not part of the original Rust code.

A for loop starting at 2 that look for divisors. Then the return value > 1. Why is it OK to just return value > 1? Oh that's because the loop did not return. Why did it not? Either no dividor was found or we did not get into the loop at all. If value > 1 we have the guarantee the loop was executed so it's really a primal number. If value <= 1 it is either 0 or 1 which are not primal. Ok, so we return value > 1.

I think people dislike Rust because it has a lot of functional languages constructs and people are not used to code in functional languages.

Whatever you fight in Rust you end up saving time by avoiding runtime bugs that would have plagued your productivity anyway. I'd much rather have a language with a hard entry but with solid and maintainable code rather than fast-written spaghetti that no one knows what it is supposed to do 2 years after.