HNHacker News
TopNewBestAskShowJobs

BiteCode_dev

24,628 karma · joined October 21, 2019

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

https://www.bitecode.dev/

Email: contact at bitecode.dev

submissionscomments
BiteCode_dev··on Why F#?
If one need to get on Beam, is it better to start on Elixir or Gleam?
BiteCode_dev··on Koto Programming Language
I think it's just a convenient and popular language to experiment with.

For production systems, people just use Python + Rust when needing a balance between dynamism and strictness. The tooling to mix them is very mature and the communities are overlapping.

With uv becoming the defacto packaging solution for python, I expect the border to blur even more in the future.

BiteCode_dev··on Show HN: An Almost Free, Open Source TURN Server
Can't we have TURN over something like bittorrent or ifps so that it's decentralized ?
BiteCode_dev··on Scammers Steal $1T a Year – Mostly from Americans
And rich and uneducated.
BiteCode_dev··on Plain – a web framework for building products with Python
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.

BiteCode_dev··on Plain – a web framework for building products with Python
An app fixes that bettter than a fork. E.g: django ninja.
BiteCode_dev··on Devs say AI crawlers dominate traffic, forcing blocks on entire countries
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.
BiteCode_dev··on Devs say AI crawlers dominate traffic, forcing blocks on entire countries
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.
BiteCode_dev··on European Cloud, Global Reach
OHV and leaseweb have been doing this for a decade and are fine.
BiteCode_dev··on Learning about Bootc
The next step is obviously:

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

BiteCode_dev··on Achieving Great Privacy with Safari
Containers work at the tab level, making them usable IMO. And firefox has profiles too.
BiteCode_dev··on Show HN: I made a tool to port tweets to Bluesky mantaining their original date
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.
BiteCode_dev··on PeerTube v7.1 Is Out
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.

BiteCode_dev··on North Korea Launders Billions in Stolen Crypto
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.

BiteCode_dev··on Two new PebbleOS watches
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.

BiteCode_dev··on Repealing the CHIPS Act risks US national security
Paywalled, so how did it go to the frontpage if most people can't read it?
BiteCode_dev··on uv downloads overtake Poetry for Wagtail users
uv has been introduced as cargo for python: https://astral.sh/blog/uv-unified-python-packaging
BiteCode_dev··on uv downloads overtake Poetry for Wagtail users
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.

BiteCode_dev··on The Alexa feature "do not send voice recordings" you enabled no longer available
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.

BiteCode_dev··on The Alexa feature "do not send voice recordings" you enabled no longer available
Yeah right.

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

BiteCode_dev··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
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.

BiteCode_dev··on Switching from Pyenv to Uv
uvx is the npx equivalent, it's provided with ux, and also has some nice bonuses.
BiteCode_dev··on I-cant-believe-its-not-webusb: Hacking around lack of WebUSB support in Firefox
Plus webusb is a 0 day waiting to happen. Browsers should not become os, they are exposed to the entire web.
BiteCode_dev··on Switching from Pyenv to Uv
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.
BiteCode_dev··on Mark Klein, AT&T whistleblower who revealed NSA mass spying, has died
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.

BiteCode_dev··on Switching from Pyenv to Uv
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.

BiteCode_dev··on Switching from Pyenv to Uv
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.

BiteCode_dev··on Switching from Pyenv to Uv
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.

BiteCode_dev··on Apple has locked me in the same cage Microsoft's built for Windows 10 users
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.

BiteCode_dev··on Switching from Pyenv to Uv
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.

← PreviousPage 14 of 34Next →