Better HN
topnewbestaskshowjobs
Log inSign up

BiteCode_dev

24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

Submissions

comment 1y ago · link · parent

It definitly could be a set of different libs, apps, config sets and command. I've seen no feature you can't provide that way.

The fork is a bad take here as it will be super costly to maintain for no gain.

Now, if you were to change a deep layer like the ORM, that would justify it. But I don't see it here.

But let's not be negative here, someone wants to spend time, energy and resources to explore innovation for a great legacy foss project.

This is good news.

comment 1y ago · link · parent

An app fixes that bettter than a fork. E.g: django ninja.

comment 1y ago · link · parent

Some people have issues with the idea that the entire web will eventually depend of a single point of failure and private for provide entity like cloudflare.

comment 1y ago · link · parent

That's an interesting thing: put things about all dictators known currently in power that they don't want to hear, and maybe they will back off.

comment 1y ago · link · parent

OHV and leaseweb have been doing this for a decade and are fine.

comment 1y ago · link · parent

The next step is obviously:

curl https://install.os.shoddydockerfile.com | sh

comment 1y ago · link · parent

Containers work at the tab level, making them usable IMO. And firefox has profiles too.

comment 1y ago · link · parent

Just realized the French lottery is only 19 068 840 combinations. You could send spam to 19 millions people, each with a number saying you can predict the lottery, and if they send you 10 000 euros in BTC, you could give them the next one.

comment 1y ago · link · parent

Framasoft is really an amazing team. They are basically the reason I discovered FOSS when I was younger.

The fact they are still here and supporting so many free services is a miracle.

comment 1y ago · link · parent

Maybe the strategic reserve constitution will be a way to actually give money to them in exchange for crypto.

These days it feels anything is possible.

comment 1y ago · link · parent

I want it, and yet I know that not only I don't need it, but I likely won't use it that much.

This is really like a cool gadget purchase impulse.

comment 1y ago · link · parent

Paywalled, so how did it go to the frontpage if most people can't read it?

comment 1y ago · link · parent

uv has been introduced as cargo for python: https://astral.sh/blog/uv-unified-python-packaging

comment 1y ago · link · parent

The whole explaination is here: https://www.bitecode.dev/p/a-year-of-uv-pros-cons-and-should

The td;rd is that is has a lot less modes of failure.

comment 1y ago · link · parent

Updated link but it's getting hard to find them.

Eg: I can't find any link about the home button scandal anymore.

People will forget about all the wrong doing and the PR will enventually win.

comment 1y ago · link · parent

Yeah right.

https://www.theguardian.com/technology/2019/jul/26/apple-con...

comment 1y ago · link · parent

If random electron apps is not connecting to the entire internet, loading completely random code from any website in the world, not they don't.

Before USB4, USB came with DMA. If your sandbox has ever an exploit, that's close to instant rooting capabilities exposed to the entire web.

USBC an hold a ton of power. One sandbox exploit, and the entire web can fry your machine.

This is too dangerous of a capability to be exposed to a public network with tons of malicious actors and bots.

comment 1y ago · link · parent

uvx is the npx equivalent, it's provided with ux, and also has some nice bonuses.

comment 1y ago · link · parent

Plus webusb is a 0 day waiting to happen. Browsers should not become os, they are exposed to the entire web.

comment 1y ago · link · parent

Sorry i misread and stayed on sync. Group and extras are for lib makers to create sets of optionals dependenacies. Groups are private ones for maintainers, extras are oublic one for users.

comment 1y ago · link · parent

I'm expecting nobody will do that anymore in the US.

First, those heroes were treated as enemies, then their revelations lead to nothing for the country, and great pain for them.

Finally, I doubt they would be proud of what their country is today and think it's worth the sacrifice.

comment 1y ago · link · parent

sync is something you would rarely use, it's most useful for scripting.

uv run is the bread and meat of uv, it will run any command you need in the project, and ensure it will work by synching all deps and making sure your command can import stuff and call python.

In fact, if you run a python script, you should do uv run python the_script.py,

It's so common uv run the_script.py will work as a shortcut.

I will write a series of article on uv on bitecode.dev.

I will write it so that it work for non python devs as well.

comment 1y ago · link · parent

Tool ?

Maybe you mean uv tool install ?

In that case it's something you don't need right now, uv tool is useful, but it's a bonus. It's to install 3rd party utilities outside of the project.

There is no equivalent to script yets, althought they are adding it as we speak.

uv run exec any command in the context of the venv (which is like a node_modules), you don't need to declare them prior to calling them.

e.g: uv run python will start the python shell.

comment 1y ago · link · parent

uv run in the freshly cloned repo will create the venv and install all deps automatically.

You can even use --extra and --group with uv run like with uv sync. But in a monorepo, those are rare to use.

comment 1y ago · link · parent

Tablets and phones have been criticized for a decade for being limited artificially, locked down and more oriented consumption than production.

Mac products are especially famous for restricting the users in what in can do in exchange for whatever peace of mind that brings.

If you are going to spend hundred of dollars on a product without doing even a basic research about it, you are 100% responsible of the outcome.

comment 1y ago · link · parent

Note that despite the title, the author is not switching from pyenv to uv, but from pip, pyenv, pipx, pip-tools, and pipdeptree to uv, because uv does much more than pyenv alone.

It replaces a whole stack, and does each feature better, faster, with fewer modes of failure.

comment 1y ago · link · parent

That's one of the bonus I was thinking about. It's nice if you have a subset of deps you want to share, or if one dep is actually part of the monorepo, but it does require more to know.

comment 1y ago · link · parent

If the libraries are meant to be used together, you can get away with one venv. If they should be decoupled, then one venv per lib is better.

There is not much to know:

- uv python install <version> if you want a particular version of python to be installed

- uv init --vcs none [--python <version>] in each directory to initialize the python project

- uv add [--dev] to add libraries to your venv

- uv run <cmd> when you want to run a command in the venv

That's it, really. Any bonus can be learned later.

comment 1y ago · link · parent

I miss dukto r5.

comment 1y ago · link · parent

https://wormhole.app/ has been spared and is pretty good. Encrypted, dl can start before up is finished, decent size limit.

Unrelated to the wormhole python cli tool and associated file sharing protocol.

1
141516
184