Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root825405yMultithreading in C is awful.
In assembly it's hell. Or something worse than hell.
In Java by comparison, it's like eating your favorite cupcake. -
Root825405y@netikras Ehhhh.
My second language with z80 Assembly, and even multithreading in C can be better than some of that. Still not something I'd build for fun, though. So it could absolutely be worse. -
Wasn't parallelization in C the reason that Mozilla gave up 3 times when trying to implement parallel processing of CSS? They seem to have managed it with Rust in their new Servo browser.
-
kleopi8735ywell i always found java dead simple compared to c concerning parrallelization.
if you know the libraries and utilities for it that is... -
nekokatt885y@halfflat python is fiiiine, just spawn several instances of python as separate processes.
Joking aside, WSGI on Python handles concurrency fairly decently. It is useful enough to be used by Discord for their user and bot HTTP API. (Discord use Erlang for their websocket gateway and Flask on Python w/ WSGI for the HTTP API iirc) -
@Root Multithreading in C and C++ makes perfect sense if you think lower level. You're constrained a lot more, but you can finish your tasks much faster with much less overhead
-
It's not that hard in C as you can literally do wathever the fuck you want 😉
Other languages are restrictive in comparison -
Root825405y@Noorquacker My second language was assembly 😋 that's how I think about everything.
-
@halfflat yeah, I recall it was more restrictive in py than C, just don't remember how.. Tried it 4 or 5 years ago, but I very well remember that all sources suggested using pthread and its implementation was poorer than in C :/
Learning parallelization in C and then going to java is literally hell
rant