matcha_addict

@matcha_addict@lemy.lol

This profile is from a federated server and may be incomplete. View on remote instance

matcha_addict OP ,

Currently, I am storing entities in a JSON array / list. every element in this list corresponds to one instance of that entity.

I could express a many-to-many relationship as just another field in that entity that happens to be a list / array, or I can imitate a SQL join table by creating a separate JSON list to log an instance of that relation.

Are there any benefits to the second approach?

matcha_addict OP ,

The list would still allow a many-to-many relationship. Let demonstrate:

entity A and entity B both have 2 members: A-1, A-2, B-1, and B-2.

we add a "relations" field to entity A, which is a list of IDs from B, describing the list of B's that A is related to.

A-1 has the relations field as: [B-1, B-2] and A-2 has [B-1, B-2].

As you can see, this is a many-to-many relationship. Each of our entities is tied to multiple entities. So this is many on both sides, hence many to many

matcha_addict OP ,

The reason I am using JSON is so I can have a flat file, sorta plaintext. This way, the storage is easily readable by the user without any special tools, and can even be debugged or modified directly, or using a tool like jq. All this without the need for a heavy database engine, indexing, etc (I am not operating at a large scale). I dont believe MongoDB would be suitable for me based on this, but please let me know if you think I am wrong.

matcha_addict OP ,

That's a good point!

matcha_addict OP ,

Sqlite is nice but the file would not be readable in a plaintext-like format from my understanding.

matcha_addict OP ,

What I described in the comment above is the same thing I originally described, but expanded.

A dependency relation can still be many to many (and in my case, it is). The comment above gives an example to prove it.

matcha_addict OP ,

I am simulating a database table as a json list. So a join table would be simulated also as a separate list (or separate json file).

matcha_addict ,

Some scripts or programs assume sudo by default. It's a stupid thing but also annoying.

matcha_addict ,

Not very clear to me that this is any more valuable than OG NixOS.

This sounds a lot like the forgejo vs gitea fork. I love the forgejo people but I am yet to see a sufficient differentiator.

matcha_addict ,

Pulling in mainline gitea changes, I did see. But I didn't see any notable differences from gitea. Do you know of any?

matcha_addict ,

Gitea claims to be working on federation too, which puzzles me that forgejo presents it as a differentiator.

matcha_addict ,

I wish algorithms were opt-in, transparent, and allowed choice (whether by choosing an algorithm over another, or customizing parameters).

If this were the case, I'd have no issue with algos.

matcha_addict ,

Lemmy is kinda close to forums and groups. But I do agree I prefer that format over the Reddit-like format.

matcha_addict ,

I like fuzzle as a rofi alternative for wayland. It's made by the same developer as Foot terminal.

matcha_addict ,

The biggest weakness of using activityPub is it is harder to control compared to rolling out your own incompatible variant.

matcha_addict ,

Can you give examples please?

matcha_addict OP ,

It started working. Was a weird issue. It would return a blank page that just said "sorry." and nothing else. It didn't do it with chrome.

But now it's working fine. ChatGPT still is not, though.

matcha_addict ,

I know it's not the intention, but can you use this to host copyrighted music?

matcha_addict ,

It's as much or as little as you want to. If you don't want to change anything, you can use something like debian and only maintain once every 5 years (and you could even skip that).

I personally spend a little more, by choice, because I use gentoo. But if I'm busy, I can avoid maintenance by only running routine updates every couple of weeks or so.

matcha_addict ,

Searchability is bad.

Growing a new community is hard. I wish people used lemmyverse more often.

Having a fully customizable feed algorithm would be a killer feature.

matcha_addict ,

This certainly helps, but I think is not enough. If I go to the "All" feed, I get everything indiscriminately. I wish there was some in between mechanism. I don't claim to have the answer.

This doesn't address searchability also.

matcha_addict ,

Feed Algorithms aren't inherently wrong imo. The problem with typical feed algorithms is two things:

  • no user choice or control: the user cannot opt out of the algorithm, and cannot customize the algorithm
  • lack of transparency: there's little to no visibility how exactly the algorithm operates.
matcha_addict ,

I had no idea about this project. Is it like a better search engine for libgen etc?

The fediverse Goodreads alternative: Bookwyrm ( bookwyrm.world )

If you are interested in sharing book recommendations with other, or just manage your books, then bookwyrm is great for that! The .world team also has a bookwyrm instance up and running at bookwyrm.world with a community here on lemmy as well at !bookwyrm. Read Ruuds original post about it here: https://lemmy.world/post/5904792...

matcha_addict ,

I'm happy to read reviews on goodreads and bookwyrm, but write reviews only on bookwyrm.

matcha_addict ,

By free software you mean the FSF or OSI definition. Many people won't care, and some of us actively are against corporate leech on free software, which this license helps with.

matcha_addict ,

Maybe would be easy to fork it

matcha_addict ,

Does the fediverse need to maintain its "soul"? As long as it preserves user choice and corporate resistance, the rest isn't required and can be maintained in those specific instances.

matcha_addict ,

Don't many providers already have similar rules?

matcha_addict ,

Venture capital backed project. That's enough for me to avoid when non-corporate options exist. Tired of for-profit corporations ruin open source.

There's tangible reasons to avoid it, but the VC thing is enough for me.

matcha_addict ,

Any examples of this? PRs that are good overall but not for corporate sponsor?

matcha_addict , (edited )

Thanks for the link. But is this really unseen in FOSS? My understanding is some FOSS projects do this so that it is easy to make major decisions without having to bring every person that has ever contributed to the project, kinda like how ZFS is stuck with license issues because they can't bring all contributors together to approve a license change.

matcha_addict OP ,

How would you represent something like "sum a list of numbers" as components of verifiers?

matcha_addict OP ,

I suppose you're right. But I thought the reason we are using conceptual models of computation is to not concern ourselves with the implementation details of the physical world and real computers. It's why we have an infinite tape, for example.

Representing a "sum a list of numbers" problem in terms of binary logic gates would be the opposite of that. We're complicating the problem. Turing machines as I've seen them are not that low level. Would binary addition be the sensible way to sum a list of numbers in a turing machine?

Your answer is still convincing though... I suppose we can represent functions as series of verifiers. But my only remaining point of confusion is... Is that really the better way?

matcha_addict ,

Given they mention arch and gentoo, I suppose they intend it as a daily driver / desktop.

matcha_addict ,

By your logic, you cannot dismiss the project for being a personal one. Only if it fails, is it dismissable.

matcha_addict ,

Didn't say you can't whatever you want. I said "by your logic". That was assuming you don't contradict your own logic, but of course you can otherwise :)

matcha_addict ,

They've already made it clear what they mean by federation, and it has none of the benefits of real federation like in lemmy or mastodon.

matcha_addict ,

The PDS, in many ways, fulfills a simple role: it hosts your account and gives you the ability to log in, it holds the signing keys for your data, and it keeps your data online and highly available. Unlike a Mastodon instance, it does not need to function as a full-fledged social media service. We wanted to make atproto data hosting—like web hosting—into a fairly simple commoditized service. The PDS’s role has been limited in scope to achieve this goal. By limiting the scope, the role of a PDS in maintaining an open and fluid data network has become all the more powerful.

https://docs.bsky.app/blog/self-host-federation

And:

In the Bluesky app, we hardcode our in-house moderation to provide a strong foundation that upholds our community guidelines. We will continue to uphold our existing policies in the Bluesky app, even as this new architecture is made available. With the introduction of labelers, users will be able to subscribe to additional moderation services on top of the existing foundation of our in-house moderation.

https://docs.bsky.app/blog/blueskys-moderation-architecture

You'll see a lot more on their site. But the point is, this is more about a "distributed infrastructure" than federated control. So much still has to go through their central servers. Hosting your own server has little benefits. Moderation is still very centralized, even after their planned features for moderation.

matcha_addict OP ,

Are you taking a class or reading a book?

Reading a book actually. A programmer by craft who never studied CS, so decided to do it on my own. I appreciate the depth of your answer, thank you! :)

So Turing machines cannot be considered equivalent to algorithms when we involve steps like random number generation? How does church-turing address this? Isn't that part of what's "computable"?

matcha_addict ,

Yes I did, and that's a very good point. What sudo does not allow me to do is grant a user access to modify or read specific files or directories. I can get both that and access to executing specific programs using a users/groups permission system.

Another thing I don't like about sudo is that you end up using the same password for everything, which is also the password for logging in. Putting higher privileges behind my same login password opens me to a single point of failure.

matcha_addict ,

Only the root user has access to system updates on my system currently.

What does rpm-ostree update do exactly? Does it execute the update? Or is that the rebase command only?

matcha_addict ,

I see. I have little knowledge, but I bet that the "root privileges" part of this process is the reboot. Upon rebooting, system updates are applied from the new image via some privileged process.

That's pretty neat. Unfortunately I haven't ventured deeply enough into that type of system yet (was it called immutable distro or something?). I use gentoo, which doesn't support this out of the box.

Thanks for showing me something new!

matcha_addict ,

Like what? What did it solve that activitypub refused to?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • All magazines