224
submitted 1 year ago by WatTyler to c/programming@beehaw.org

Hello all,

Wanted to open a discussion on Lemmy's post sorting options right now. I don't have any experience with implementing this type of thing but right now the algorithm appears... Off? For example, 'Active' gives me a lot of posts over a day old but 'Hot' may as well be 'New' i.e. more recent posts with little engagement.

I don't know if it's due to Lemmy still picking up steam or a fundamental flaw with the algorithm. Like I said, I'm really curious to hear the opinions of those more knowledgeable.

top 50 comments
sorted by: hot top controversial new old
[-] kurosawaa@lemmy.world 68 points 1 year ago* (last edited 1 year ago)

I think having "Active" as default is unfortunate too, if a new user sees the top post was from two days ago they might assume the whole platform is inactive, since they can't see that a new comment was added just seconds ago from that page view. Having "Hot" as the default would probably be better since those are usually newer posts with at least a few comments.

[-] GlitchyDigiBun@lemmy.fmhy.ml 34 points 1 year ago

None of the megaguides I've seen actually show how to use the mobile apps/sites. I've been told what the Fediverse is and how it works enough times to build the backend myself, but I have no clue how to navigate.

[-] RQG@lemmy.world 9 points 1 year ago

That might be true. I'm glad you can set your own defaults but having the starting fknfkg to be a generally useful one is a good idea. Im curious if people find Local to be a good default? Subscribed doesn't make sense I guess because you start out with no subscriptions. But maybe all is nice to find new communities and explore?

[-] kurosawaa@lemmy.world 6 points 1 year ago

Maybe instance owners could have a recommended subscriptions option that new users could default to. That way new users can experience seeing content on other instances right away. Different instances with different standards could customize their new user experience.

[-] Deebster@beehaw.org 6 points 1 year ago

I noticed one of the Lemmy instances recommending everyone change their settings to use 'hot' by default in their site rules sidebar. Makes sense, the many instances look a lot more lively that way.

[-] Kushan@beehaw.org 37 points 1 year ago

I don't know a lot about Lemmy's implementation but a difficult thing to deal with is how do you "rank" a post? Like you have a small community of a few active people, but there's federation with a massive community with lots of users - which posts are "better"?

Worse still, there's an inherent lag/delay with the federated posts, a post that was very active in the last hour might have only been federated to the server in the last 5mins - so what do you do, do you bubble up all those posts or ignore it because there's more recent and relevant things?

The kicker is that these decision points aren't instant either, any system that's doing this kind of ranking will have an algorithm as you describe, but that algorithm will take time to process all the data, while the data is coming in batches as each server federates with each other. It's a difficult problem to solve.

[-] oxideSeven@sh.itjust.works 22 points 1 year ago* (last edited 1 year ago)
[-] Kushan@beehaw.org 18 points 1 year ago

I'm aware, what I am getting at is that there's multiple "Right" answers to solving what is essentially a very difficult problem.

load more comments (1 replies)
load more comments (2 replies)
[-] an_ayylien@lemmy.world 28 points 1 year ago

My best guess from the way it looks is that Active is like a forum or imageboard sort, where new comments "bump" old threads to the top. Hot appears to be more like "rising", new posts that are interacted with more than others. Both probably make more sense with greater volume, but neither seem perfect for the structure of the site. I would also think "tuning the algorithms" is probably in the "when we get around to it" bucket for most of the people who would be handling that.

[-] baleygr@beehaw.org 26 points 1 year ago

Yeah, I'm feeling a bit lost here too. I've been using mostly 'hot' (found this post using it), but there's also the issue with dynamic posts, that suddenly there's a cascade of posts being loaded and you lose where you were on the feed.

[-] MigratingApe@lemmy.world 16 points 1 year ago

It is unintended, a bug that is already known and will possibly disappear when support for websockets is removed (i.e. only plain HTTP traffic from you web browser to the server will remain).

[-] VeganSchnitzel@lemmy.world 9 points 1 year ago

Thanks for that info, I just complained about this issue in a different thread. Guess I'll just have to be more patient during this phase.

[-] FlaxPicker@lemmy.world 4 points 1 year ago

do you know what the official github issue number is? Ide like to follow the progress on it as it is extremely annoying to me as well.

[-] TragicNotCute@lemmy.world 7 points 1 year ago

Yes! This is mega annoying and ruins my preferred way to use Lemmy.

[-] troyunrau@lemmy.ca 19 points 1 year ago

I use "Top Day" and seem to be quite happy with it.

[-] overlordror@beehaw.org 6 points 1 year ago

I just switched to this and it seems to be what I expect from 'Hot'. Hot seems to include popular posts from weeks to months ago and that's just not the definition of hot, really.

[-] s900mhz@beehaw.org 6 points 1 year ago

Nobody said it’s hot AND fresh

[-] duncesplayed@lemmy.one 5 points 1 year ago

Thanks for the suggestion! This works much better!

[-] finder585@lemmy.world 15 points 1 year ago

My biggest issue is that posts stream in regardless of the sorting option you have picked. So, even if I am sorting by 'hot' posts I'll get a stream of posts that where made less than a minute ago.

[-] GnomeKat@beehaw.org 6 points 1 year ago

Absolutely my biggest annoyance as well.

[-] Swuden@lemmy.world 13 points 1 year ago

Ranking is hard. My biggest gripe with this however, is that the front page doesn't seem to cache my filter/sorting options between page reloads. I've resorted to replacing the anchor href on the logo with my own preferred pre-filtered search result href, via JS injection.

[-] afcfrimpong@sh.itjust.works 15 points 1 year ago

I think you can set default sort and subbed/local/all in settings

[-] Swuden@lemmy.world 3 points 1 year ago

Oh you're absolutely right! Thank you! I swear I checked for it a couple of days ago 😅

[-] John_Coomsumer@beehaw.org 13 points 1 year ago

I'm on jerboa, and like others are saying "active" is pretty ass and 'hot' is okay. My main actual complaint is the inability to sort comments! Please God, I'm tired of seeing the rare hateful message with 1/2 up votes on top, and then a more normal good comment with 50 up votes beneath it. Going to be a real problem for onboarding people and optics.

[-] rockstarashes@lemmy.world 4 points 1 year ago

Yup, this is my biggest issue with Jerboa as well. Using the browser, it has a comment sort but it also has some scrolling bug that was making me unable to read headlines or click on posts haha.

[-] davidog23@lemmy.world 3 points 1 year ago

Seems like there is an active PR for this

load more comments (1 replies)
[-] meltylikecheese@sh.itjust.works 11 points 1 year ago

I've been doing top of today.

[-] TheAmorphous@lemmy.world 11 points 1 year ago

Can someone explain why if I choose All/Hot the first page will look "normal" for a bit, but then it starts updating/scrolling constantly? Like I can't keep my place, new items are continuously being added and I can't even finish reading a headline. I don't see any settings to prevent that. What am I doing wrong?

load more comments (2 replies)
[-] Lowbird@beehaw.org 10 points 1 year ago

I'm a bit baffled - I love the active sort so far. Sure, it's different from reddit, but in a good way. It means the exact timing of a post, to line up perfectly with the peak active hours of U.S. users, or similar, isn't critical anymore, because a post can go relatively ignored for a day or two and then get picked up and filled with comments and discussion.

It gives people more time to get around to reading a long linked article or watching a linked long video first, before commenting, too, while still leaving them able to participate in discussion after.

It means that people who comment "late" still get replies. Commenting even slightly late on reddit and not getting any replies or votes felt awful, like you were talking to a wall. And the people who sorted by new and commented first tended to stick to the top of threads because they accumulated more upvotes by sheer force of time.

I hope we can avoid re-creating the constant, over-hurried content-churn of reddit, and keep this more patient feel.

That said, I'll concede that active search is best for discussion posts, like on Chat or Gaming (e.g. threads that ask people to share favorite xyz games and so on), or those based around longread articles, and not necessarily as good for Breaking News. But even then... I think it does us good to allow time to discuss news posts, too, and active search does that.

Tldr I use active search as default for everything and I absolutely love it like this, please don't get rid of it just to make the site more like reddit.

load more comments (1 replies)
[-] RobotDeathSquad@lemmy.world 10 points 1 year ago

I'm not sure about the algos, but I'd kill if it would at least remember my choices between page refreshes.

load more comments (2 replies)
[-] jukibom@lemmy.world 8 points 1 year ago

Biggest problem I think right now is how it auto-appends new posts to the top - browsing /new/ is a simply impossible task. Maybe just tell me there are new posts to fetch and let me refresh when I'm ready? Right now I can't read stuff before it yeets off the bottom of the page

[-] ericjmorey@lemmy.world 8 points 1 year ago
load more comments (1 replies)
[-] mo_ztt@lemmy.world 7 points 1 year ago

So I think it's just growing pains of the software still being at a pretty early stage; I agree it's not ideal right now but I'm fairly confident it'll get worked out. That said, there's one option that I'd really like that may not be in the works: I'd like the ability for posts I've seen to get bumped way down in the ranks, so when I refresh the front page it's mostly new stuff. Mostly the reason people go next -> next -> next is from wanting more stuff; it'd be nice if we could cut out the middleman and just show them new stuff.

[-] New_account@lemmy.world 3 points 1 year ago

The "Top Day" sorting option does this, but posts fall off a cliff rather than falling off gradually. My understanding is that they'll remain on the page from hour 0 to hour 23, but then completely disappear starting in hour 24.

Instead of that, it would be ideal to implement a mathematical formula that pushes pages higher into the rankings with every upvote, comment, or view it gets, but pushes posts lower in the rankings with every additional hour passed. You have to tweak the specific parameters of that formula to get it right, but it essentially forces posts off the page after enough time has passed, while introducing new posts to replace the old. Unlike the "Top Day" sort where things are a step function, the idea with this is to make it gradual so that a popular post falls from #1 overall down to #2, then #3, etc. over the course of a day.

[-] lowleveldata@programming.dev 7 points 1 year ago

I always sort by "New Comments". "Active" just gives me the same posts over and over again.

load more comments (2 replies)
[-] EthicalAI@beehaw.org 7 points 1 year ago

I want to make 100% sure that in “Hot” you don’t just see big communities. I want to always see that one post from that one community with 1 user right at the top. So they should weight by community size.

[-] rjc@lemmy.world 6 points 1 year ago

Hopefully the algorithm will improve over time - compared to the site which shall not be mentioned, I find that Hot or Active tend to show the same articles for days (despite there being plenty of newer content). Top Day works well the first time I log in for the day, but then that gets stale too. On the front page I feel like I need more like a "Top Hour" option ... so I can see what is new without the "drinking from the fire hose" that is "new".

These are the early days, Im not unhappy with where we are, I just hope this remains a work in progress and improves.

[-] New_account@lemmy.world 3 points 1 year ago

Agreed. Something like Top for the last 4 hours would be super easy to implement because Top for the last day already exists (just change 24 hours to 4 hours in the code that fetches comments). However, for those that are used to checking the site multiple times in a day, you don't want to ge served up the same content every time you check. Top for the past 4 hours would seemingly be a decent balance between giving posts that have some type of traction while not giving posts that are stale.

[-] danc4498@lemmy.world 5 points 1 year ago

Reddit's top hourly was one of my favorite ways to browse. They need to implement that here. Just show me the top posts from the last hour.

load more comments (2 replies)
[-] EthicalAI@beehaw.org 5 points 1 year ago

They need mark as read too. I keep seeing the same stuff.

load more comments (2 replies)
[-] tubbadu@lemmy.one 4 points 1 year ago

I'd really like to see a "Unread" filter, that shows posts that has not already been up/downvoted or clicked

[-] empyrean@lemmy.world 5 points 1 year ago

It is already an option, go to profile settings and unmark "Show Read Posts".

[-] Greidlbeere@feddit.de 4 points 1 year ago

But when is a post marked as read? Do I have to click on everything or vote for everything?

[-] empyrean@lemmy.world 4 points 1 year ago

You need to open the post to mark it as read. Expanding picture does not count. There are discussion on improving this https://github.com/LemmyNet/lemmy-ui/issues/384

load more comments (1 replies)
[-] matthieu_xyz@piaille.fr 4 points 1 year ago

@programming
@WatTyler
There is a demo of an algorithmic timeline thingy for mastodon at https://fedifeed.herokuapp.com/ and I really really like how it has a bunch of sliders for fine-tuning. The time penalty in particular is very important.

Would be absolutely awesome to have the same on lemmy.

Edit: Lemmy doesn’t show my picture...

https://static.piaille.fr/media_attachments/files/110/542/349/085/964/483/original/23daedec7cd17277.png

[-] ericjmorey@lemmy.world 4 points 1 year ago

I wish I could change the default comment sorting

[-] Ryzzlas@feddit.de 4 points 1 year ago

Also defaulting to "All" communities would be nice :)

load more comments (1 replies)
[-] Variden3301@lemmy.world 3 points 1 year ago

And it automatically shows posts added to the top makes using it a little bit janky

[-] FreddyNO@lemmy.world 3 points 1 year ago

Personally I usually sort by "hot", works good for /all, but mixed results on subscribed

load more comments
view more: next ›
this post was submitted on 14 Jun 2023
224 points (100.0% liked)

Programming

13360 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


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

founded 2 years ago
MODERATORS