this post was submitted on 26 Mar 2025
540 points (97.0% liked)

Programmer Humor

22262 readers
1131 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
 
(page 2) 21 comments
sorted by: hot top controversial new old
[–] dan@upvote.au 13 points 1 week ago (4 children)

Do you mean Synapse the Matrix server? In my experience, Conduit is much more efficient.

load more comments (4 replies)
[–] Gonzako@lemmy.world 7 points 1 week ago

I'll be honest, this only matters when running single services that are very expensive. it's fine if your program can't be pararlelized if the OS does its job and spreads the love around the cpus

[–] tetris11@lemmy.ml 11 points 1 week ago* (last edited 1 week ago)

I prefer this default. Im sick of having to rein in Numba cores or OpenBlas threads or other out of control software that immediately tries to bottleneck my stack.

CGroups (Docker/LXC) is the obvious solution, but it shouldn't have to be

[–] TropicalDingdong@lemmy.world 9 points 1 week ago

Python

..so.. so you made it single threaded?

[–] lime@feddit.nu 144 points 1 week ago (12 children)

all programs are single threaded unless otherwise specified.

[–] firelizzard@programming.dev 49 points 1 week ago (8 children)

It’s safe to assume that any non-trivial program written in Go is multithreaded

[–] Scoopta@programming.dev 18 points 1 week ago (1 children)

But it's still not a guarantee

load more comments (1 replies)
load more comments (7 replies)
[–] Successful_Try543@feddit.org 23 points 1 week ago (3 children)

Does Python have the ability to specify loops that should be executed in parallel, as e.g. Matlab uses parfor instead of for?

[–] lime@feddit.nu 51 points 1 week ago (2 children)

python has way too many ways to do that. asyncio, future, thread, multiprocessing...

[–] WolfLink@sh.itjust.works 41 points 1 week ago (1 children)

Of the ways you listed the only one that will actually take advantage of a multi core CPU is multiprocessing

[–] lime@feddit.nu 11 points 1 week ago (2 children)

yup, that's true. most meaningful tasks are io-bound so "parallel" basically qualifies as "whatever allows multiple threads of execution to keep going". if you're doing numbercrunching in pythen without a proper library like pandas, that can parallelize your calculations, you're doing it wrong.

load more comments (2 replies)
[–] danhab99@programming.dev 9 points 1 week ago (1 children)

I've always hated object oriented multi threading. Goroutines (green threads) are just the best way 90% of the time. If I need to control where threads go I'll write it in rust.

[–] lime@feddit.nu 7 points 1 week ago (3 children)

nothing about any of those libraries dictates an OO approach.

[–] Buddahriffic@lemmy.world 2 points 1 week ago (1 children)
load more comments (1 replies)
load more comments (2 replies)
[–] enemenemu@lemm.ee 8 points 1 week ago (2 children)

Are you still using matlab? Why? Seriously

[–] Panties@lemmy.ca 7 points 1 week ago (1 children)

I was telling a colleague about how my department started using Rust for some parts of our projects lately. (normally Python was good enough for almost everything but we wanted to try it out)

They asked me why we're not using MATLAB. They were not joking. So, I can at least tell you their reasoning. It was their first programming language in university, it's safer and faster than Python, and it's quite challenging to use.

load more comments (1 replies)
[–] Successful_Try543@feddit.org 18 points 1 week ago (1 children)

No, I'm not at university anymore.

[–] enemenemu@lemm.ee 5 points 1 week ago (1 children)
[–] Successful_Try543@feddit.org 5 points 1 week ago* (last edited 1 week ago) (1 children)

We weren't doing any ressource extensive computations with Matlab, mainly just for teaching FEM, as we've had an extensive collection of scripts for that purpose, and pre- and some post processing.

load more comments (1 replies)
[–] Midnitte@beehaw.org 9 points 1 week ago (1 children)
load more comments (10 replies)
load more comments