Sorry if this seems like a silly question but I have noticed over the last few months my feed(?) has started to act odd.

No matter what I do I don’t see any posts from .world. I checked and mander does not seem to block .world (kinda why I liked this instance) and even weirder is how my feed gets filled with mostly .ml posts with almost no activity no matter how I sort.

This did not happen before and got me thinking, I don’t even know how this works across federated instances.

Does anyone know:

  • How does the sorting work on an instance? Is it all the same no matter what instance it is?

  • Did anything change in the last few months, that would cause all .world (and I assume others) posts to not show?

  • Other then changing instances what can I do to mitigate the weird slanted results?

31 points
*

The Lemmy algorithm:

https://join-lemmy.org/docs/contributors/07-ranking-algo.html

The instances communicate between each other using special bots in the background that transport info between instances. Dot world is too big and makes too many requests to other instances. Most instances are reducing the number of transport bots back to dot world right now. There is supposed to be a fix in the next Lemmy version, but the code base is somewhat slow moving due to only two devs and it is written in Rust. Rust is a hard language like C, and not too many here are able to contribute to it, even though it is like the new gold standard of code.

So you might see a delay between posting and replies or the interaction may come in bursts that correspond with the transport bots carrying content between instances as the host admin have configured their instance.

permalink
report
reply
13 points

I’m actually mildly surprised it’s still only two devs. Are they treating it like a walled garden, or is there really a complete lack of interest in contributing to the codebase?

permalink
report
parent
reply
6 points

Not sure. There was some controversy with some of the devs making alt front ends and admins complaining about the slowness. I’ve seen mention of one of the two devs learning Rust just to participate. So it is not entirely a walled garden. The front end devs wanted to make an alt from scratch but in something like JavaScript although I don’t recall the details exactly. There were a lot of red flags related to privacy and understanding the community at large in the posts I saw from them. When asked why they weren’t adding pull requests with Rust in order to address their complaints I got no reply.

All that said, I’m no dev. I can read in to around half the code I come across if I really try, and can successfully modify maybe half of that if I spend a few days on it, but I suck at clever code and the DRY cult types. I haven’t tried to look into Lemmy in any depth beyond figuring out the basics.

permalink
report
parent
reply
5 points

Hmmmm, and it does not help the controversy when this issue seems to happen to then fill smaller instances with .ml posts…

permalink
report
parent
reply
5 points

We are two fulltime developers and a handful of devs who regularly contribute in their free time. We could definitely use more devs but the donations are simply not enough.

permalink
report
parent
reply
0 points

Rust is a niche language

It’s like starting a book club in Esperanto compared to English. Sure, Esperanto is supposedly a better language, but very few people know about it

permalink
report
parent
reply
1 point

Rust is not a niche language. It’s a strict and strongly opinionated language by design. People with background in strongly typed languages, who additionally use opinionated linters and formatters have an easier time adjusting. JavaScript “devs” (note: distinct from “software engineers”) probably pull their hair out over a lot of stuff in because in my experience, many js devs know enough about the language to work proficiently in a couple of frameworks, but haven’t really dug into the nuances of the language, and also have limited experience with strong typing.

permalink
report
parent
reply

I believe there is some work being done on an alternative code base written in python with flask it has lots of promise and i recon with a bit of extra work it might allow for mastodon integration into one server which would be cool af.

Really want to get to the stage where an account is just a private key I hold and all federated services can work with a single username.

Imagine having a single username which is for all services.

permalink
report
parent
reply
5 points

I believe there is some work being done on an alternative code base written in python with flask it has lots of promise and i recon with a bit of extra work it might allow for mastodon integration into one server which would be cool af.

https://piefed.social/ ?

Otherwise, for Mastodon integration, there is mbin with https://kbin.run/ for instance

permalink
report
parent
reply
13 points

Huge sync issues between Lemmy world and mander: https://grafana.lem.rocks/d/cdfzs0dwal3pca/federation-health-time-behind?orgId=1&var-instance=All&var-remote_instance=mander.xyz&var-remote_software=All&from=now-1h&to=now

I posted about it on !mander@mander.xyz a few days ago.

Another reason to not have all communities on LW

permalink
report
reply
6 points

Thanks for the reply (I was worried no one would) but would that cause the weird behaviour I am seeing? The timing does not seem to match but it could make some sense.

If what you are saying is the cause then Lemmy as a federated whole may now be effectively split up due to sync issues?

permalink
report
parent
reply
5 points

Mander is not the only instance having this issue. Other instances like lemmy.nz (it was), reddthat also aussie.zone, monyet.cc have similar issue since months ago. I assume the culprit is cogent’s de-peering drama not from lemmy itself.

https://www.thinkbroadband.com/news/9896-ntt-cogent-peering-dispute-increasing-latency-for-some-routes

https://www.reddit.com/r/networking/comments/1cu13bv/cogent_depeering_tata/

And those lemmy instances are hosted in APAC.

Also you can check federation issue with this

https://phiresky.github.io/lemmy-federation-state/site?domain=lemmy.world

And if I’m not mistaken our admin has solution regarding the issue a while ago, you may ask Dave.

permalink
report
parent
reply
3 points

Actually there are some comments from other people: https://reddthat.com/post/20632337?scrollToComments=true

Most of them are from LW, so they won’t federate before a few days.

The issue is that if one instance has too many updates to send to another one (in this case LW to mander) it starts to create delays.

This mostly happens due to LW size, as you can see Reddthat has no issue

permalink
report
parent
reply
3 points

Oh wow, yeah its like night and day. Well now I guess I have to figure out a fix.

Sad times if I have to find another instance, again.

Any ideas what can be done longer term to address this (in general)?

Since I can’t see anything here I will check on .world

permalink
report
parent
reply
5 points

To this day I still have no idea what “hot” even means, even on places like Reddit, where I used to lurk before that place f***ing exploded.

permalink
report
reply
5 points

Should be the same across any instance.

Hot: calculated using the current score (up/down votes) in combination with how new it is.

https://github.com/LemmyNet/lemmy/blob/main/migrations/2023-10-23-184941_hot_rank_greatest_fix/up.sql

Active: calculated using current score in combination with the timestamp of the newest comment:

https://github.com/LemmyNet/lemmy/blob/main/crates/db_schema/src/aggregates/post_aggregates.rs

permalink
report
reply
5 points
*

Yes, sorry, there was some serious lagg in fetching posts from Lemmy World that persisted for several days and accumulated a 1-week delay.

But after upgrading Mander it is now fetching data from LW quite rapidly and it should be back in-sync in about a day and a half from now.

If you are curious about the ranking algorithm, there is some info here: https://join-lemmy.org/docs/contributors/07-ranking-algo.html

permalink
report
reply
3 points

Thanks, I have been watching the graph of the lag behind time and its nice to see it now at 6.1 days.

permalink
report
parent
reply
3 points

I find it satisfying to see the graph come down :)

permalink
report
parent
reply
3 points

Yeah, first time I have been cheering for line go down that I can think of.

permalink
report
parent
reply

Fediverse

!fediverse@lemmy.world

Create post

A community to talk about the Fediverse and all it’s related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

  • Posts must be on topic.
  • Be respectful of others.
  • Cite the sources used for graphs and other statistics.
  • Follow the general Lemmy.world rules.

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

Community stats

  • 5.1K

    Monthly active users

  • 1.8K

    Posts

  • 62K

    Comments