Yeah, computationally intensive stuff is going to be slow when implemented in Python. You will find lots of data science libraries for Python that do computationally intensive stuff, but they’re then generally implemented in C/C++ or Rust, with only a thin API layer written in Python.
Ephera
- 21 Posts
- 1.32K Comments
Ephera@lemmy.mlto
Programmer Humor@programming.dev•first it was @property, then @container, and now interpolate-size
8·1 month agoExpecting the runtime/browser to ship a native implementation of virtually everything you might want to do in a turing-complete language, is also really not sustainable, though.
“Oven is going to be a grind, especially the first nine months or so. If work-life balance means a lot of time spent not working, it’s probably not a good fit.”
Oh man, someone here recently shared a blog post on startup culture in software companies, which likened software to an oven, where you’d add a specific button for a customer and that fucks up your whole architecture for years to come etc…
For just a moment, I thought this was a direct quote from that blog post.
I also like how they claim it’s completely different to KRunner and then, save for OCR and whatever “circle to search” is, these are all features in KRunner.
Ephera@lemmy.mlto
memes@lemmy.world•If Europe has started experiencing over 40°C heatwaves frequently, then this planet really is fucked
24·1 month agoYeah, some colleagues from India expressed their concern last week, because they heard how hot it was here.
Felt really weird to have that be actual concern and not just them mocking us, because they’re used to + equipped for worse temperatures.
Ephera@lemmy.mlto
linuxmemes@lemmy.world•Linux users after the try Windows 11 for 30 seconds
41·1 month agoI mean, my first 30 seconds of experiencing Windows 11 was watching a coworker wait for the file manager to open + render its toolbar, so I don’t think I could’ve really come to a different conclusion…
Also funny: Bosnia and Herzegovina has almost exactly a 100th of the population of the USA.
3,412,000 vs. 341,784,857
Hmm, I’m not sure you do. It’s a pun. “Just dua lipa” sounds like “just do a leap-a”, like someone with an Italian accent might sound like.
Took me a moment to get it, too, though…
Looks like a typo: !datahoarder@selfhosted.forum
dfonly shows partitions, whereasduadds up the file sizes in the directory you specify.So, in particular, if you want to find out what’s taking up so much space, you can repeatedly run
du -sh *andcdinto the largest directory.
Ephera@lemmy.mlto
memes@lemmy.world•Brought to you by the same people that told you not to believe everything you read on the internet and now only read click bait headlines from Fox or Breitbart
152·2 months agoIt just isn’t easy at all. If someone editorializes a Wikipedia article, they can:
- make claims without citation,
- cite a source which does not support the claims,
- misrepresent a source by citing it out of context, and
- perhaps most devious of all: Just not talk about aspects that they don’t like.
You could write an entire Wikipedia article on Adolf Hitler with perfectly cited sources, which never mentions the genocide, the warmongering, that he lost the war etc…
You can use Wikipedia as an entrypoint for research, but you have to actually read the sources and find additional sources, independently from that.
Ephera@lemmy.mlto
Asklemmy@lemmy.ml•Can things exist without anyone being aware of their existence?
3·2 months agoThe atoms are there for sure, but we could argue, whether it is a thing/object without an animal being aware of it, since it’s us that define things to be objects.
The universe doesn’t care whether a pile of atoms behind Pluto happens to be chair-shaped. It’s only when we look at it, that we declare it an object.
https://en.wikipedia.org/wiki/VK_(service)
(“Russian Facebook” is pretty accurate.)
Ephera@lemmy.mlto
Programming@programming.dev•I lack the knowledge/skills to fix my slop of an attempted shell script
1·2 months agoFrom what I understand, on Debian and therefore presumably also Devuan, the system-wide default shell is
dash. So,shsymlinks todash.But
dashis virtually unusable for interactive use, so they configure the terminal emulator to launchbashon start-up.In effect, scripts get executed with
dashby default, but commands you type into a terminal get run bybash.
Ephera@lemmy.mlto
Opensource@programming.dev•Given the recent uproar about AI usage in rsync a PSA: maintainers owe you nothing
3·2 months agoTheir point is that the maintainer did not sign a contract that requires them to perform maintainer duties. They can choose to stop doing it at any point. They can choose to axe a feature that you deem essential. They can choose to rewrite the project in COBOL for the fun of it.
You may not like it, but that is how it is.
The only legal document involved is the license and any open-source license I’ve seen so far, has stated that the program is provided as is.This is the license under which rsync is provided: https://www.gnu.org/licenses/gpl-3.0.en.html
See sections 15 and 16.The only way you get to have a say in the matter, is by forking and becoming a maintainer yourself.
Clap has an entry in their cookbook for a REPL:
- Derive-API: https://docs.rs/clap/latest/clap/_cookbook/repl_derive/index.html
- Builder-API: https://docs.rs/clap/latest/clap/_cookbook/repl/index.html
Of course, this works best for simple stuff, where you just have individual commands to parse.
For a Python-style REPL with a full-fledged language attached, I would not use that approach.
There’s probably some REPL languages implemented in Rust already out there, where you can look at their approach.
Coming at it from the Rust ecosystem, I’d primarily opt for uploading release binaries somewhere. You don’t particularly need a setup script, since Rust programs are generally self-contained.
Publishing a package in addition to that really isn’t hard, but would be my secondary choice, since users are not likely to have
cargoon their system.
Well, andcargocompiles on the target machine, which is great for supporting unusual architectures, but you may have C libraries included where it’s just a gamble whether you can compile them on a given target system.









Yeah, I enjoyed when fish shell did their rewrite and people were arguing whether it makes sense technologically, like it’s a mature codebase, so it’s not likely to reduce the number of bugs and yadda yadda yadda.
None of this mattered, because fish is developed by a group of hobbyists. They didn’t want to continue developing in C++, because it was a pain in the ass. And for sure, one of the reasons they wanted to switch to Rust is because it’s new and exciting.
These reasons are perfectly valid, because they’re volunteers. If they’re not having fun, then they will just developing.