Sounds interesting. I’ve been programming in rust for some time now but didn’t get to looking at lemmy’s codebase yet. This would motivate me to do it.
Sounds interesting. I’ve been programming in rust for some time now but didn’t get to looking at lemmy’s codebase yet. This would motivate me to do it.
Anyone saw the Haker movie with Bogusław Linda (he was not the hacker)? It was not good.
No, actually most devs don’t use docker like that. Not java devs, not JS devs, not rust devs. That is because maven, npm and cargo manage dependencies per project. You use it for python exactly because pip does it the wrong way and python has big compatibility issues.
Of course there are more redundant tools. It doesn’t make pip suck any less though.
vevn is not pip. The confusing set of different tools is part of the problem.
This article someone linked is not 14 years old and it perfectly describes the mess python and pip are: https://chriswarrick.com/blog/2023/01/15/how-to-improve-python-packaging/
My favorite part is:
Most importantly: which tool should a beginner use? The PyPA has a few guides and tutorials, one is using pip + venv, another is using pipenv (why would you still do that?), and another tutorial that lets you pick between Hatchling (hatch’s build backend), setuptools, Flit, and PDM, without explaining the differences between them
But yes, following old blog post is the issue.
The issues I had:
If a ‘pip install X’ completes successfully but X doesn’t work it’s on pip. And when it fails it could tell you why. Cargo does.
This is great, thanks. Will definitely read even though I don’t do much work in python. It’s good to know how NOT to do things.
It probably works for your own local project. After using it for couple of days to install some 3rd party tool my conclusion is that it has no idea about dependencies. It just downloads some dependencies in some random versions and than it never works. Completely useless.
I would say npm is shitty like a lot of tools are. pip takes it to the next level.
The main issue with JS is that every 6 months someone comes up with the next great tool that misses half of basic features and dies after 6 months when someone comes up with the next great tool. But at least the old tested solution still works unlike in Python where the main goal seems to be breaking the backwards compatibility as often as possible.
Yep, exactly that. I remember some time ago the official python body (whatever it is) was recommending one tool for python version management and another one of virtual env management or something. Pretty much there were two competing tools and the official recommendation was to use one tool for X and the other tool for Y. It’s a complete mess.
cargo just works, it’s great and everyone loves it.
npm has a lot of issues but in general does the job. When docs say do ‘npm install X’ you do it and it works.
pip is a mess. In my experience doing ‘pip install X’ will maybe install something but it will not work because some dependencies will be screwed up. Using it to distribute software is pointless.
In my experience npm is not great but it does work most of the time. I just tried installing bunch of stuff using pip and NONE of them worked. Python is backwards compatibility hell. Python 2 vs 3, dependencies missing, important libraries being forked and not working anymore. If the official installation instructions are ‘pip install X’ and it doesn’t work then what’s the point?
npm has A LOT of issues but generally when I do ‘npm i’ i installs things and they work.
But the main point is that cargo is just amazing :)
P.S. Never used ruby.
I will give you an upvote instead of the other guy since he stole your idea.
No, I don’t want you to tell me how to find fascist content. I’m asking how do you find it. Is it mixed with all the other content when you’re browsing lemmy or do you search for it?
Cool, my question is how do you keep finding this fascists content? I don’t see it when I click on ‘all’ (and obviously I’m not subscribed there). Is it because you’re on a different instance? Is my instance not federated with those fascists? Or do you simply keep going there to see what the fascists are up to?
So two specific instances? I wouldn’t say it’s “huge swaths”. I never visit those instances so never saw anything posted there.
I used rust as a backend for a simple web app (axum and sea-orm), did some scripting for integrating couple of service (simple REST calls and some data processing) and recently I’ve been learning to build desktop apps using Tauri and Leptos. All personal projects so far but I contributed to one Leptos library a bit. Lemmy looks like interesting next step but there’s always another project I would like to do and not enough time :)