Email or username:

Password:

Forgot your password?
Laxystem (Masto/Glitch)

Is there an #ActivityPub platform built with #Java ?

(No, I'm not building one, and neither should you)

15 comments
wakingrufus

@laxla
Why shouldn't I? I would love to have a #JVM (ideally #kotlin) implementation. The performance would be much better than ruby, and JVM-based data options such as Cassandra, Elasticsearch and kafka would all outperform the Mastodon choices. You could run it all on a single node and scale it fairly big, I suspect. I gave it a shot back in 2017 but I couldn't wrap my head around the spec. Now that there are better tools to learn the spec, I don't have the time :/

Laxystem (Masto/Glitch)

@wakingrufus I am making a Kotlin ActivityPub platform, using PostgreSQL. I don't think an in-memory database is needed, tbh --- Exposed (ORM), Ktor (networking library) and Titanium (JsonLD implementation) already do some caching --- but I could be wrong here.

But yeah it'll outperform almost all current platforms pretty much instantly --- why is using frontend/scripting languages for the backend so popular in the Fediverse?

Just wanted to see if there's a Java implementation floating around.

wakingrufus

@laxla
Awesome! When you are ready to have additional contributers let me know. I'd love to help!

Also, the only non android app fediverse software I know of for the JVM is github.com/andregasser/bigbone which is specifically a Mastodon client. (I previously contributed to this project)

Laxystem (Masto/Glitch)

@silverpill yes, found it! It is a little bit transphobic (probably just uninformed tbf) but alright. Couldn't find an instance though.

Григорий Клюшников

Laxystem, I've since added the "other" option, just forgot about the documentation. But I updated the documentation recently while adding extra profile fields.

I'm writing this from a Smithereen instance.

Laxystem (Masto/Glitch)

@grishka well the enthusiasm is fine, I just don't see why this needs to be a part of the type system. Basically asking for automated bots to harass people choosing "other".

Григорий Клюшников

Laxystem, it's for localization reasons, so your pronouns are shown correctly (some languages don't have the equivalent to singular they) and correct verbs are used (in some languages the verb changes based on the person's gender). As for the harassment potential, there are privacy settings. You can limit who can comment on your posts, post on your wall and send you DMs.

wakest ⁂

@laxla this is really not an acceptable answer @grishka, my gender is not 'other'

This is no argument to be made here. This field either needs to be able to be an open text field (and in that case you can silently select 'other' in the background as a type if the data doesn't match your your assumptions) but Male, Female and Other are just not an acceptable ternary anymore. There are whole countries and states that now have "support" for this, so your software can surely support it

Григорий Клюшников

ᵒᵏ, and what exactly would I do with that "open text field"? Again, I only need this for localization purposes. I don't display it anywhere in the UI. I can't just assume everyone uses English and allow custom pronouns and substitute them into strings. If you want to specify details about your gender identity, you can do so in the "about" field, just like everyone who wants to do this does it on Mastodon.

Last time I checked, "whole countries and states" did exactly what I've done — they added a third option as "X" on documents.

ᵒᵏ, and what exactly would I do with that "open text field"? Again, I only need this for localization purposes. I don't display it anywhere in the UI. I can't just assume everyone uses English and allow custom pronouns and substitute them into strings. If you want to specify details about your gender identity, you can do so in the "about" field, just like everyone who wants to do this does it on Mastodon.

Laxystem (Masto/Glitch)

@grishka @liaizon

I don't display it anywhere within the UI

Then why bother? English has They/Them/Themself. Hebrew, one of the most misogynistic languages in the world, has the passive tone.

Simply drop it, then.

Besides, "male" and "female" aren't genders. What you're really asking is, "refer to me as... He, she or they"

Григорий Клюшников

Laxystem, Russian, Ukrainian, Polish and other Slavic languages require verbs in the past tense to match the gender of the person you're talking about. No way around it whatsoever except the absolutely ugly "(а)" at the end. Since Russian is my native language, my perfectionism can't possibly allow this. I even inflect people's names correctly.

By the way, this isn't a required field. You can just leave it as "not specified".

Laxystem (Masto/Glitch)

@grishka so does Hebrew. Doesn't mean I'm deciding what gender is for my users.

Go Up