this post was submitted on 02 Oct 2023
1014 points (99.2% liked)

Programmer Humor

32054 readers
1599 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] Saganaki@lemmy.one 218 points 11 months ago (10 children)
[–] DigitalPaperTrail@kbin.social 114 points 11 months ago (4 children)

what I'm hearing is we have RAM-as-a-service to look forward to in the future, after internet speed and reliability get good enough

[–] Veltoss@lemmy.world 67 points 11 months ago (18 children)

Once we have super fast reliable internet we'll likely have the whole computer as a service. We'll just have access terminals basically and a subscription with a login, except for the nerds who want their own physical machine.

[–] TropicalDingdong@lemmy.world 74 points 11 months ago (3 children)

Bro just reinvented mainframes.

[–] averagedrunk@lemmy.ml 31 points 11 months ago

They've been reinvented repeatedly. Citrix, terminal servers, thin clients, cloud desktops, web apps, remote app delivery......

Most people (not necessarily here) need a web browser and an office program. Most people are well suited to terminals or something like a Chromebook.

I need actual hardware for my job and hobbies, but even I have a mini PC set up like a gaming console so that if I want to play games on my bedroom TV I don't have to hook up my Steam Deck or gaming laptop. I just stream them.

load more comments (2 replies)
[–] agent_flounder@lemmy.one 16 points 11 months ago

No. Just no.

And get off my lawn, ya whippersnapper.

[–] fibojoly@sh.itjust.works 10 points 11 months ago (2 children)

Mhmm... Computer as a service. Why does that sound familiar...?

load more comments (2 replies)
load more comments (15 replies)
[–] Cethin@lemmy.zip 37 points 11 months ago (9 children)

It'll never be fast enough. An SSD is orders of magnitude slower than RAM, which is orders of magnitude slower than cache. Internet speed is orders of magnitude slower than the slowest of hard drives, which is still way too slow to be used for anything that needs memory relatively soon.

[–] TurtledUp@lemm.ee 11 points 11 months ago

Need faster than light travel speeds and we can colocate it on the moon

load more comments (8 replies)
[–] Magnetar@feddit.de 11 points 11 months ago

You can do it today, just put your swapfile on sshfs and you're done.

[–] Mossheart@lemmy.ca 11 points 11 months ago

So I could download more RAM?

[–] slacktoid@lemmy.ml 36 points 11 months ago (3 children)

It will crash as soon as it needs to touch the swap due to the relatively insane latency difference.

load more comments (3 replies)
[–] istdaslol@feddit.de 22 points 11 months ago (1 children)

Imagine doing this on a dial-up 56K modem

[–] IHeartBadCode@kbin.social 20 points 11 months ago (7 children)

A:\SPICYMEMES\MODEMSOUND.WAV

load more comments (7 replies)
[–] harry315@feddit.de 18 points 11 months ago (4 children)

wait, didn't some tech youtubers like LTT try using cloud storage as swap/RAM? afaik they failed because of latency

[–] CanadaPlus@lemmy.sdf.org 13 points 11 months ago (3 children)

I feel like this might be a giant gaping security risk.

[–] Veltoss@lemmy.world 13 points 11 months ago (3 children)

So is pretty much all of the cloud services the average user already subscribes to. People still use them though.

load more comments (3 replies)
load more comments (2 replies)
[–] ilikecoffee@lemmy.world 12 points 11 months ago (3 children)

Oh wow, I didn't even know Gdrive offered a 1 petabyte option 😂

[–] russjr08@outpost.zeuslink.net 15 points 11 months ago

They don't to my knowledge, I believe that's mounted through rclone which just usually sets the filesystem size to 1PB so that it doesn't have to try to query what the actual limit is for the various providers (and your specific plan).

[–] Vent@lemm.ee 14 points 11 months ago* (last edited 11 months ago) (4 children)

Once upon a time, Google offered unlimited drive storage as part of some GSuite tiers. They stopped offering it a while ago and have kicked most/all legacy users off of it in the past few months. It was glorious while it lasted 😢

load more comments (4 replies)
load more comments (1 replies)
load more comments (4 replies)
[–] ChaoticNeutralCzech@feddit.de 206 points 11 months ago (1 children)

Protip: Put swapfile on ramdisk for highest speed

[–] Dran_Arcana@lemmy.world 89 points 11 months ago (2 children)

Unironically that's how zram works

[–] seaQueue@lemmy.world 28 points 11 months ago (1 children)

Don't do boy zram dirty, it has a ton of utility when you have ample spare compute and limited RAM.

load more comments (1 replies)
[–] jtfletchbot@lemmy.ko4abp.com 21 points 11 months ago (1 children)

Doesn't it compress the contents that it's storing to help kind of get the best of both worlds?

You get faster storage because it's in ram still, but with it being compressed there's also "more" available?

I could be completely mistaken though

[–] Ew0@lemmy.sdf.org 15 points 11 months ago (1 children)

You are correct, although zram uses more cpu power since it compresses things. It's not really an issue if you're not using a potato :=)

[–] Still@programming.dev 11 points 11 months ago (1 children)

even if you are using a potato it probably doesn't have much ram so slightly slowing it to make things run smoother is a very popular choice

load more comments (1 replies)
[–] dan@upvote.au 88 points 11 months ago* (last edited 11 months ago)

Hopefully that swap is on an SSD, otherwise that query may not ever finish lol
Once you're deep into swap, things can get so slow that there's no recovering from it.

[–] KingThrillgore@lemmy.ml 59 points 11 months ago (2 children)

WHAT FUCKING QUERY ARE YOU RUNNING TO USE UP THAT MUCH MEMORY DAMN

[–] frezik@midwest.social 67 points 11 months ago (1 children)

In a database course I took, the teacher told a story about a company that would take three days to insert a single order. Thing was, they were the sort of company that took in one or two orders every year. When it's your whole revenue on the line, you want to make sure everything is correct. The relations in that database were checked to hell and back, and they didn't care if it took a week.

Though that would have been in the 90s, so it'd go a lot faster now.

[–] ladicius@lemmy.world 35 points 11 months ago (2 children)

What did they produce? Cruiseships?

[–] frezik@midwest.social 30 points 11 months ago

No idea, but I imagine it was something big like that, yes. I think it was in northern Wisconsin, so laker ships are a good guess.

[–] Treczoks@feddit.uk 18 points 11 months ago

We have a company like that here somewhere. When they have one job a year, they have to reduce hours, if they have two, they are doing OK, and if they have three, they have to work overtime like mad. Don't ask me what they are selling, though. It is big, runs on tracks, and fixes roads.

[–] fibojoly@sh.itjust.works 13 points 11 months ago (1 children)

A very very badly written one no doubt..

[–] frezik@midwest.social 10 points 11 months ago

Why stop at just one full table scan?

[–] mvirts@lemmy.world 47 points 11 months ago (4 children)

Exactly how I plan to deploy LLMs on my desktop 😹

[–] dan@upvote.au 14 points 11 months ago (5 children)

You should be able to fit a model like LLaMa2 in 64GB RAM, but output will be pretty slow if it's CPU-only. GPUs are a lot faster but you'd need at least 48GB of VRAM, for example two 3090s.

load more comments (5 replies)
load more comments (3 replies)
[–] clb92@feddit.dk 32 points 11 months ago* (last edited 11 months ago) (1 children)

I'd be lying if I said I hadn't done something similar before.

[–] agressivelyPassive@feddit.de 29 points 11 months ago (1 children)

Wrote my master thesis this way - didn't have enough ram or knowledge, but plenty of time on the lab machine, so I let it do its thing over night.

Sorry, lab machine ssd.

load more comments (1 replies)
[–] valen@lemmy.world 31 points 11 months ago

You really need to index your tables. This has all the hallways of a Cartesian cross product.

[–] UFODivebomb@programming.dev 26 points 11 months ago (2 children)

I dunno why I didn't realize you can add more swap to a system while running. Nice trick for a dire emergency.

[–] computergeek125@lemmy.world 11 points 11 months ago

Even better, you can swapoff swap too!

load more comments (1 replies)
[–] Faresh@lemmy.ml 24 points 11 months ago (13 children)

Does the OOM killer actually work for anyone? In every linux system I've used, if I run out of memory, the system simply freezes.

load more comments (13 replies)
[–] avidamoeba@lemmy.ca 20 points 11 months ago* (last edited 11 months ago)

Slow SSD issue. RAM is for chumps.

[–] seaQueue@lemmy.world 18 points 11 months ago

Swap thrashing goes brrrrrrrrrrrrr

[–] AgreeableLandscape@lemmy.ml 18 points 11 months ago

Poor man's Optane

[–] Presi300@lemmy.world 13 points 11 months ago (2 children)

I've actually done something similar with a 2GB ram machine... 2GB ram / 8GB zswap, actually ran way faster lol

load more comments (2 replies)
[–] Karyoplasma@discuss.tchncs.de 11 points 11 months ago

Just download more RAM.

load more comments
view more: next ›