nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs
Yea my last project i tried moving to pypy for exactly that reason. It turned out i couldnt move because of some dependency problem or something... We had tons of people trying to figure out how to multi-cpu out application and it was one dead end after another and would have effectively required a rewrite.
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d
Python is a nice little language for somethings... The more i use it the more I personally dislike it.. the lack of multi-cpu is a deal breaker for sure.. but i also just fine the language a bit ugly and hackish in its presentation.. which i could have gotten past if it wasnt for the cpu issue.
For high level stuff I much prefer java if i need something rigerous and formal, or ruby if i need something fast and loose... of course thats for traditional OO high level stuff.. For other categories stuff like Haskell is a lot of fun too.
nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d
Agreed, while python's biggest shame-to-fame is its inability to leverage multiple cpus through multithreading (or coroutines).. the flip side is that it is so trivial to interact with C-code that it makes up for that in a unique way that has its own value.
IF you need a language where you need to do a lot in C but what the convience of high-level language where you can get away with it, python is great... if you need a high level language that is cpu-intensive and effecient and easy to write without wanting to touch C, then python is a horrible choice.
Me personally, I use python a lot (just finished a 2-year project in python)... but over the years have found it just isnt a suitable language for most things, because of these very reasons.
nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d
And to your other comment.. usng a thread pool to run coroutines doesnt get you anything here because multi-threading in python wont spam multipleCPUs.. youd have to use multiporcesses still.
nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d
Agreed, while python's biggest shame-to-fame is its inability to leverage multiple cpus through multithreading (or coroutines).. the flip side is that it is so trivial to interact with C-code that it makes up for that in a unique way that has its own value.
IF you need a language where you need to do a lot in C but what the convience of high-level language where you can get away with it, python is great... if you need a high level language that is cpu-intensive and effecient and easy to write without wanting to touch C, then python is a horrible choice.
Me personally, I use python a lot (just finished a 2-year project in python)... but over the years have found it just isnt a suitable language for most things, because of these very reasons.
nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d Yea in java multithreading with the purpose of leveraging multiple CPUs is pretty straightforward and similar to any other language.
Python really is the odd one out where multithreading is a bit of a cop-out as it doesnt actually run in parallel and across CPUs and thus requires either C-python to bypass the GIL or multi-process handling.. which is quite ugly to do efficiently.
nostr:npub1xq8vy2xssgmhn3ffmjrj0r02fwqyevjcau854ej5yyj7uq3zs20qrz9xvs
> The key limitation of co-routines is that other "threads" do not have a chance to run until the current code hits a "yield". This also means you don't need to bother with locks and stuff like with true multi-tasking, hence the efficiency for an interpreted language.
The whole point of multithreading in this discussion is its ability to leverage mutlicpus like it does in other languages... This sounds like they are sharing one thread since only one is running at a time.
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d nostr:npub1ukcz3c3ek9ugnmrj37cjm2q9gsaqss5j9dqwpqmx0tgkzudsseqqcp40jn
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d
multithreading is ugly, but not exactly heavy... you can do threading without multiprocess but you have to disengage the GIL, which involves a little bit of magic... its an ugly pattern to be sure, but not resource intensive.
nostr:npub1ukcz3c3ek9ugnmrj37cjm2q9gsaqss5j9dqwpqmx0tgkzudsseqqcp40jn
nostr:npub1g2xvrhzvvdzs2kfmg94hsr9vn9sru2hur3r0xu38szd85vcx4awswjp96d
That I have no idea.. But if they think go automatically means faster then it will probably be an abysmal failure.
nostr:npub1ukcz3c3ek9ugnmrj37cjm2q9gsaqss5j9dqwpqmx0tgkzudsseqqcp40jn
Well I think I finally got to the bottom of why the #QOTO matrix server has been slow in the past. Now that i have good stats on resources I can better address it... Should have matrix running much smoother soon.
nostr:npub1ukcz3c3ek9ugnmrj37cjm2q9gsaqss5j9dqwpqmx0tgkzudsseqqcp40jn
nostr:npub197h2s88aqhgsur6vjt59yad7vzveumd7nm84n3qkq45z7f22vl7sqeyzd7 And yet we still, knowing its use, only use gloves and a mask when dealing medically with a person (such as doing surgery)... why? because most of us would rather take the very real risk, knowing respirators are going to reduce it, because living our lives in hazmat out of fear, however real, is no life at all. I will take the risk if it means I can be comfortable and enjoy my day more.
Its like hyochondria with this stuff... like sure, if you never shake hands, wear a mask all the time, and wash your hands obsessively you will be at a marginally less risk.. but there comes a point where its just not worth the tradeoff.
nostr:npub1hj67h4zzxuf4u6h3jmsg9t808z6w7w95gvgn3sg4hrucgxsj37mqqw65uv i remember impatiently waiting just for the ascii art to render :)
Very interesting waterfall (spectrogram) of a dial up modem connecting. I can even picture where all the sounds come from I remember hearing as a child from the classic dialup connection.
#ComputerScience #CS #ComputerEngineering #STEM #Technology

nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 resources are not necceseraly finite, some are, some arent. Corn is not finite, you can grow more or less and can replace lost corn.
Even resources that are finite often act as non-finite resources. Like gold, there is a fixed amount in the world but in practice we can always grow more.
Land, that is a good example of a fairly fixed resource. I mean sure you can always find new islands or even make them from sand. But this is rare and hard to do so it is fairly fixed.
But when we talk about wealth fixed or mostly-fixed resources is only a small portion of that. But when a resource is fixed I do agree it needs to be handled differently than resources that are more easily generated.
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 So we agree on that isolated point correct? Yes or no?
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 Who said anything about equality? We are talking about one specific thing, not if everyone can equally generate wealth, not if its fair, not anything but if wealth is a zero sum game.. once you agree to that we can move on to other aspects and get deeper into fairnes.
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 Ok so do we agree atleast on the first point.. wealth isnt a pie, for someone to be rich they dont have to deprive other of their wealth, they can make their own?
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 you are all over the place man... one fact at a time... right now we are on the point that for one person to be wealthy (have a bunch of loafs) they dont need to take it from other peoples wealth (loafs), they can, and do, make more loafs without needing to take a loaf from anyone...
Once we establish and agree wealth is not a zero sum game and this is true we can go on to address other facts that may lead to unfairness ornpoverty... but one at a time or else you just muddy the water.
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 the fact that land can be owned doesnt change the fact that i just demonstrated wealth (loafs) can be generated and isnt fixed... you just moved the goal post. Regardlesss to any otber objection you have i just showed how a oerson can become loaf rich without needing to take any loafs from the existing loafs being shared.
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 also economic theory never claimed people cant starve... only that being wealthy doesnt mean i had to take it from someone else... they can be poor and starve all on their own without someone needing to take from them.
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 the fact that land can be owned doesnt change the fact that i just demonstrated wealth (loafs) can be generated and isnt fixed... you just moved the goal post. Regardlesss to any otber objection you have i just showed how a oerson can become loaf rich without needing to take any loafs from the existing loafs being shared.
nostr:npub1jmae6q0wrv8l5rt8nu5qa489sjxee7h8pj4f8qyf4mhz7w3gg23sm50as2 except there arent a fixed 10 loafs.. some guy might go out and harvest some seeds and make 100 loafs and come and now is loaf rich, all without taking any loafs from anyone.