this post was submitted on 22 May 2025
1159 points (96.0% liked)

Programmer Humor

23431 readers
219 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 55 points 3 days ago (4 children)
[–] [email protected] 1 points 2 days ago

Files are just streams. Everything is just a stream, in real life too.

[–] [email protected] 9 points 3 days ago

I mean, with virtualization that's pretty much true

[–] [email protected] 3 points 3 days ago (2 children)
[–] [email protected] 4 points 3 days ago (1 children)

If you can open it in Vim, it's a file.

[–] [email protected] 10 points 3 days ago

You can open me in Vim, Greg. Am I a file?

[–] [email protected] 10 points 3 days ago (1 children)
[–] [email protected] 5 points 3 days ago (1 children)
[–] [email protected] 2 points 3 days ago
[–] [email protected] 15 points 3 days ago (2 children)

What about a process? File gone wild?

[–] [email protected] 3 points 3 days ago

Why not? Represented in /proc? exec() and fam? Read and write to it?

[–] [email protected] 31 points 3 days ago (1 children)

I’d call that a file loaded to memory

[–] [email protected] 5 points 3 days ago (1 children)

Most files are loaded to memory in order to make any kind of use out of them. I.e. read/write operations.

[–] [email protected] 4 points 3 days ago

That’s true! I supposed it would be more precise to say that all processes are files loaded to memory, but not all files loaded to memory are processes. Sort of like the whole arachnids / spiders situation.