594

The Unix Way, everybody!

Also, first post!

@linuxmemes

top 50 comments
sorted by: hot top controversial new old
[-] renzev@lemmy.world 4 points 1 hour ago

Just fucking putting data into json files in a folder is so much easier than databases. Sure, databases are faster and give you access to powerful SQL queries. But if you're just making something small and simple, you don't need those things. Save yourself the hassle and just use the filesystem.

Or use minio/s3, which can either be the best or the worst of both worlds depending on your usecase.

[-] FooBarrington@lemmy.world 3 points 32 minutes ago

It also makes you re-implement a database, but worse.

Use a JSON file if you just need to serialize/deserialize some data. Use SQLite or a DB server if you need more. Your own code will never match the quality of SQLite.

load more comments (1 replies)
[-] mlg@lemmy.world 13 points 9 hours ago

Didn't someone actually try making SQL as a filesystem and it ended up being something like 50 times slower than ZFS after they applied a ton of optimizations?

Not as a serious project, but more like a joke to see what would actually happen.

[-] hperrin@lemmy.ca 12 points 14 hours ago

They’re more like blob storage.

[-] thedeadwalking4242@lemmy.world 4 points 1 hour ago

Blob storage usually uses a FS back end so it’s more like blob storage is like a file system

[-] Irelephant@lemm.ee 18 points 17 hours ago

You're right! Ill just store all this data as static json files in a directory then

[-] kate@lemmy.uhhoh.com 25 points 18 hours ago

git repo is blockchain

[-] gandalf_der_12te@discuss.tchncs.de 24 points 19 hours ago

and anuses are vaginas, as long as you treat them as one.

[-] not_IO 8 points 16 hours ago

the anus isnt self lubricating :(

[-] Saik0Shinigami@lemmy.saik0.com 6 points 10 hours ago

https://my.clevelandclinic.org/health/body/24784-anus-function

Muscles, nerves and mucous membranes in your anus

It is though...

[-] coacoamelky@lemm.ee 12 points 19 hours ago

As a man of science I prefer to test every theory.

[-] TheBat@lemmy.world 29 points 21 hours ago

For example, a directory full of spreadsheets.

Somewhere, a sysadmin is pulling his hair out

[-] fnrir@lemmy.world 4 points 7 hours ago

or CSV files

[-] whoisearth@lemmy.ca 8 points 17 hours ago

Tbh still preferred to that asshat who rolls out an MS Access "app"

[-] TheReturnOfPEB@reddthat.com 33 points 22 hours ago* (last edited 22 hours ago)

everything is a file including a filesystem*

 

* including databases

[-] slazer2au@lemmy.world 53 points 1 day ago

If file systems are databases, then does that mean storing a sqlite db on a HDD is database inception?

[-] drosophila 10 points 19 hours ago

That's less the Unix way and more the BeOS way.

load more comments (1 replies)
[-] drq@mastodon.ml 43 points 1 day ago
[-] mogoh@lemmy.ml 16 points 1 day ago

How do you post from mastodon to lemmy?

[-] drq@mastodon.ml 39 points 1 day ago* (last edited 23 hours ago)

@mogoh I just mentioned the group and it worked!

The way it's supposed to be!

I'm so happy for this omfgrotflolcopter

@linuxmemes

[-] danc4498@lemmy.world 1 points 14 hours ago

I could not figure out what a rotflol coptor was…

[-] drq@mastodon.ml 2 points 13 hours ago

@danc4498

OMFG: Oh My Fucking God
ROTFLOL: Rolling On The Floor Laughing Out Loud
ROFLCOPTER:

 ROFL:ROFL:ROFL:ROFL  
 \_^\_\_\_  
 L \_\_/ [] \\  
LOL===\_\_ \\  
 L \\\_\_\_\_\_\_\_\_]  
 I I  
 \--------/  

...

Zoomers... *cracks open a can of zero sugar monster energy*

[-] drq@mastodon.ml 3 points 13 hours ago* (last edited 13 hours ago)

@danc4498 Oh, goddammit, the Lemmy thing fucked up the ASCII art. Whatever, google it.

[-] mogoh@lemmy.ml 7 points 1 day ago

wow, that's simple! Thx!

load more comments (1 replies)
[-] some_guy@lemmy.sdf.org 12 points 23 hours ago

Federation.

Wait till you get a comment from threads. I've only had it happen once and it made me feel dirty.

[-] th3rdsergeevich@mastodon.ml 7 points 1 day ago

@mogoh AFAIK, I should mention @linuxmemes handle to make the comment visible inside the original Lemmy thread.
@drq

[-] 30p87@feddit.org 8 points 1 day ago
[-] drq@mastodon.ml 13 points 1 day ago* (last edited 1 day ago)

@30p87 Okay, looks like we *finally* have *actual* groups in Fedi that are compatible across the board.

I've been waiting for this for so long, I've almost given up all hope.

@linuxmemes

[-] FlowerTree@pawb.social 2 points 17 hours ago

Wait until you see Pixelfed and Mastodon's intercompatibility

Nearly all the posts in my Pixelfed global feed literally comes from Mastodon instances as if I'm on Mastodon with Pixelfed ui

load more comments (4 replies)
[-] mugdad1@lemm.ee 9 points 20 hours ago

welcome to lemmy im new also

[-] drq@mastodon.ml 5 points 20 hours ago
[-] mugdad1@lemm.ee 5 points 20 hours ago

wtf how do you mix between lemmy and mastdon i also have account there but i didn't thought that the content will be here also so please explain

[-] drq@mastodon.ml 10 points 20 hours ago* (last edited 20 hours ago)

@mugdad1 I don't mix, I'm on Mastodon. I just mentioned @linuxmemes in op-post et voila! Neat, huh?

[-] superkret@feddit.org 6 points 20 hours ago

That's what federation is all about.

[-] mugdad1@lemm.ee 5 points 20 hours ago

ok tried mentioning my self their it worked i didn"t knew about that yes i wondered how they are mixed sometimes thanks man

[-] RobotZap10000@feddit.nl 3 points 17 hours ago* (last edited 17 hours ago)

Welcome to the lovely world of the Fediverse! Mastodon and Lemmy, among many other kinds of software, both run on ActivityPub. This means that even if the servers aren't both running Lemmy or Mastodon, they still speak the same language and can therefore understand the content of each other's posts (think of it as email, gmail.com can still send and receive mail to outlook.com). Other examples of AcitvityPub software are Misskey, Mbin, Friendica, Pixelfed, Loops, Piefed, PeerTube and many others that I haven't learned about yet. While they theoretically can all fetch and present posts from each other, due to the choices that each developer makes while designing their software, it might not be very possible to get every post from every software. For example, Mastodon is all about following people, and Lemmy about following communities. Even though Mastodon is able to follow Lemmy communities, Lemmy has (as of writing) no function to follow people (yet).

[-] mugdad1@lemm.ee 2 points 13 hours ago

man i wanna be your frind what an amazing explainition you rock 🥰🥰🥰 i understood everything thanks also i got pixelfiled and mastodon and lemmy and i saw the connection thanks i posted in mastodon can you please go there and see it @mugdad1@mastodon.social

[-] addie@feddit.uk 7 points 20 hours ago

Filesystem-as-a-db is why MongoDB is webscale. You just turn it on and it scales right up.

[-] collapse_already@lemmy.ml 17 points 1 day ago

And files are streams. 🎵 Islands in the stream. 🎵

[-] Bishma@discuss.tchncs.de 11 points 23 hours ago

🎵 That is what we awk 🎵

[-] RizzRustbolt@lemmy.world 6 points 20 hours ago

Every Homestuck fan already knows this.

[-] drq@mastodon.ml 3 points 20 hours ago
load more comments (2 replies)
[-] possiblylinux127@lemmy.zip 5 points 21 hours ago

Honestly that's basically what CephFS is

load more comments (2 replies)
[-] reddit_sux@lemmy.world 5 points 22 hours ago

And the worst FAT32

[-] foxido@social.cutie.team 6 points 1 day ago
load more comments
view more: next ›
this post was submitted on 22 Jan 2025
594 points (100.0% liked)

linuxmemes

21925 readers
2024 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS