piefedadmin, to python
@piefedadmin@join.piefed.social avatar

https://piefed.social is running, please make an account and give it a try!

There will be bugs, probably many bugs. When you see one, please reply to the welcome email you received, with info about it, or report it in the issue queue. Let’s catch ’em all!

developers are invited to check out the code repository at https://codeberg.org/rimu/pyfedi. In coming days I’ll write better setup instructions and put together a code walk-through screencast.

https://join.piefed.social/2024/01/05/piefed-begins-beta-test/

fediversereport,
@fediversereport@mastodon.social avatar

@piefedadmin congratulations on the launch!

rimu, to webdev
@rimu@mastodon.nzoss.nz avatar

That feeling when the code reaches a point of huge messiness that the only way to deal with it is print out the worst bit and scribble on it.

Low tech but very effective and satisfying.

louis,
@louis@emacs.ch avatar

@rimu @edoxtator Me too. Printing source code and reason about it is a long forgotten practice.

I remember my instructor in the 90s who always printed huge piles of COBOL source code, and while smoking did all the programming on paper.

rimu,
@rimu@mastodon.nzoss.nz avatar

After extensive refactoring, that chunk of code is now only 5.5 pages long instead of 11 😅

Still about 4 pages too long compared to what an ideal function would be but this is the main ActivityPub handling code we're dealing with here, so it's always going to be a little crazy.

rimu, to fediverse
@rimu@mastodon.nzoss.nz avatar

Quite happy with the speed of the background task that ingests data sent to from other servers. Most Activitys are processed in around 0.1 seconds, average of 0.22 seconds, or ~5 per second. This is with just one worker process.

If a 4 core VPS can handle 6(?) worker processes/threads it'll do 6 * 5 = 30 per sec.

Based on the load of https://kglitch.social I expect at most 3 per second.

That'll be fine for now.

Graph comparing the times taken by each task
POSTs coming into kglitch.social

rimu,
@rimu@mastodon.nzoss.nz avatar

Glad to report that I've figured out what was causing some activities to spike to up to 1.4 seconds and fixed it. That should bring the average down to 0.1 seconds, or 10 Activities processed per second. Decent!

When an Activity arrives if it's the first time one from that instance or that user has arrived, there are a few extra network requests PieFed needs to make to ensure the Activity data is fully fleshed out. Fortunately most of them can be deferred to future background tasks.

rimu, to random
@rimu@mastodon.nzoss.nz avatar

Attitude, done!

rimu, to lemmy
@rimu@mastodon.nzoss.nz avatar

There needs to be consequences for getting lots of downvotes.

One of those could be something like this, where everyone can see that you get downvoted a lot and decide whether and how to engage with you in future.

A short screencast demonstrating the UI of PieFed

Andres,
@Andres@mastodon.hardcoredevs.com avatar

@rimu
@box464
What if the downvotes are harassment? Then you have a legitimate user being ignored by everyone because some group decided they don't agree with them.

Andres,
@Andres@mastodon.hardcoredevs.com avatar

@box464 @rimu
I'm still waiting to see a "bot" or "AI" that does well getting the intention of a post, not counting that it takes hell of a lot of computational resources to make up a "grade" for one post, let alone millions every second.

rimu, to fediverse
@rimu@mastodon.nzoss.nz avatar

Made a little log for so I can spot anomalies and review data coming in and out of my dev instance.

After a few weeks of testing federation in canned scenarios, PieFed is now interacting with actual instances on the 'real' , so all sorts of unexpected things are happening! Performance, timing issues, invalid requests, unresponsive servers, all that fun stuff.

Feels great to finally get to this point 😅

konsi,

@rimu that’s nice 👍
Is it open source? 😇

rimu,
@rimu@mastodon.nzoss.nz avatar

@konsi It is open source, yeah. I'll be able to start accepting PRs soon but at the moment the code is still too immature.

rimu, (edited ) to random
@rimu@mastodon.nzoss.nz avatar

Inspired by https://nickpunt.com/blog/deescalating-social-media/, I've added a function to so authors can acknowledge their mistakes and de-escalate difficult discussions.

I'm committed to building a happier & healthier social media. Read more at https://join.piefed.social/

strypey,
@strypey@mastodon.nzoss.nz avatar
smallcircles,
@smallcircles@social.coop avatar

@strypey @rimu

Yes, it is Danyl, thank you. Found it just after I processed my app backlog on https://delightful.club/delightful-fediverse-apps

So, to be added when I do the next batch. But PR's welcome.

rimu, to fediverse
@rimu@mastodon.nzoss.nz avatar

Further progress with this week, especially on the front - posts, comments and up/down votes are now federating with

https://join.piefed.social/ has more background info on the project. I'll be blogging about ActivityPub quirks at https://join.piefed.social/blog/

Screencast of federation happening

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • everett
  • osvaldo12
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • kavyap
  • Durango
  • ngwrru68w68
  • cubers
  • JUstTest
  • DreamBathrooms
  • khanakhh
  • anitta
  • modclub
  • ethstaker
  • tester
  • GTA5RPClips
  • cisconetworking
  • tacticalgear
  • megavids
  • Leos
  • normalnudes
  • lostlight
  • All magazines