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

According to its specs, but since it's a black box for which we have neither the source nor the design documents, and given that implementing back doors is a regular request from governments, it's a logical concern.

comment 1y ago · link · parent

Pretty much yes. From Saas to authentication systems to OS to chips. The EU infra is entirely dependent on the US. All documents, emails, chat messages, and most forms of storage are directly or indirectly linked to an American service.

On top of that, the US can update it all remotely, including the hardware now thanks to things like intel ME.

Let's hope we never get into a conflict with them, because even without bombs, they can basically shut us down with a few keystrokes: https://www.bitecode.dev/p/the-eu-can-be-shut-down-with-a-fe...

Or at least have everything they need to develop such a capability. And it's not like the current people in power care much about alienating other countries.

comment 1y ago · link · parent

Then for drones ?

comment 1y ago · link · parent

Of course you don't tell people they have to pay mid party. This is for things like collecting donations money for next parties.

In places when you don't have a lot of money to go around, solidarity goes a long way, and nobody finds it weird to ask for help.

I understand on HN the average salary allows to pay for a lot, but it's an exception.

In France, it's common that everybody brings something for dinner, for example, even if you are invited.

If you throw a big party and then ask people if they want to help the people that did that, they are usually happy to do it.

comment 1y ago · link · parent

I throw a 200+ persons party every year at halloween, and I concur with every points on this list.

I'll add: if you need money but don't want to ask for it upfront, you will need to have someone to ask for it individually to each person mid party.

Just having a box to collect it somewhere, or a sign with a qr code, doesn't work nearly as well.

It's annoying to do, but if your party is good people react surprisingly well to this.

comment 1y ago · link · parent

Everybody understands that it's an opinion, it's a social convention, no need to spell it out. Just like people saying "broccoli are bad" doesn't need to be subtitled with "it's a matter of taste" or this dress looks ugly implies that it's a subjective take on aesthetics.

comment 1y ago · link · parent

Scale and cost matter. Skin in the game too.

comment 1y ago · link · parent

Thid is the kind of interractions I come to HN for.

comment 1y ago · link · parent

It doesn't.

uv has a script mode, a temp env mode, and a way to superimpose a temp env on top of an existing env.

See: https://www.bitecode.dev/p/uv-tricks

That's one of the selling point of the tool: you don't need a project, you don't need activate anything, you don't even need to keep code around.

Yesterday I wanted to mess around with logoru in ipython. I just ran `uvx --with loguru ipython` and I was ready to go.

Not even a code file to open. Nothing to explicitly install nor to clean up.

For a tool that is that fantastic and create such enthusiasm, I'm always surprise of how little of its feature people know about. It can do crazy stuff.

comment 1y ago · link · parent

BTW, your "https://kodare.net/2025/08/08/documentation-that-is-never-wr..." is fantastic, I always liked the idea of docstest, only the implementation sucked.

But this is much better. Any plan on open sourcing this infra for sphinx or mkdocs?

comment 1y ago · link · parent

Same. But I have now a new secret weapon, this claude code prompt:

Read the doc of https://iommi.rocks/, make a demo project showing of the capability of this tool.

(I have a claude.md with more info, but that's the prompt)

Came back with a fully functional demo with everything installed and working. runserver, and a glance at the code, and I get it.

TL;DR: it's like the django admin, except you can use it in any endpoint in your side. Pretty nice.

comment 1y ago · link · parent

A E Van Vogt can hardly be called unheard of, the null A series is quite a cult classic. But yeah, the Space Beagle is not his most well-known work.

It always surprises me (although it shouldn't) how many underrated gems there are still in the world. And new ones are produced every day.

E.G: I still think QTMN will deserve a place as a classic sci-fi author among the great ones, for "there is no antimemetics division" alone. And yet despite a solid fan following, it has never exploded in popularity. It is 10 times better than the 3 body problems, which comparatively had stratospheric success.

In movies, "Amelie" has been a planetary success, but from the same author, the excellent "The city of the lost children" is practically unknown.

Even last month, a tv show named "Nero" came out on Netflix, and while not revolutionary, is clearly above most of the crap that regularly comes out. Yet, nobody talks about it.

Popularity is a cruel mistress.

comment 1y ago · link · parent

I think it's the default behavior, because it's cheaper and faster to produce than the real answer.

I assume the beginning of the answer is given to a cheaper, faster model, so that the slower, more expensive one can have time to think.

It keeps the conversation lively and natural for most people.

Would be interesting to test if it's true, by disabling it with a system prompt, and measure if the time-to-answer is slower for the first word.

comment 1y ago · link · parent

Monkey patching an object attribute, such as a method or a function of a module, may affect 3rd party libraries code that use said object.

This solution is interesting, as it provides the patched code as if it were a new package, indendant of the existing one you have installed, like vendoring, but without the burden of it.

In case you want to be the only one seing your patch, this is great. It also makes the whole maintenance easier, as you don't have to wonder if you patch it at the right time or in the right way. MK can fail in many subtle edge cases.

Inheritance, particularly, is a great Mk pitfall I expect this method to transparently work with.

comment 1y ago · link · parent

The is really awesome and an original and clean solution to a dirty old problem. Kudos.

comment 1y ago · link · parent

Selling pyx to biz: https://astral.sh/pyx

comment 1y ago · link · parent

Yeah, I used to be in the top 100 SO users, so I wrote a lot of SO answers, and if you used Red Hat Linux, you probably used my library.

But according to your definition, I'm a script kiddy.

comment 1y ago · link · parent

That's assuming this is most people's objective when they are at work.

And even if it was, that's also assuming this benefit would be superior to the benefit of remote work for the individual.

comment 1y ago · link · parent

Yes, but flexibility that happens in those conditions is at the cost of tremendous effort and risk from the population, usually under the tutelage of bigger power structures. EG: scammers are usually part of some organisation that has the power to do that, and the guy giving his name on the bank account is basically disposable.

Also the fact the population is so huge make it hard even for such a powerful state to grasp it all.

But regular citizen flexibility when something is not state-approved in advance is very limited compared to ours. The state can limit where they can move because of the citizen passport, limit what they can buy (and say) because of wechat, limit what they can see and know because of the GFW, limit how much you can be anonymous because big cities have cameras everywhere, coupled with AI tracking.

In Europe, if my government does something I don't like, I can pay in cash, or cross a border and do it in a different country. I can complain on the internet and find like-minded people to organize, advice, help...

I want to go to a gay bar and pay without having a record of it? I can. I want to finance an art or political project that the government would not like? I can.

In fact, anywhere in the world there is cash, and I have some secure cash stash, I can pay if I lost my phone, or with no battery. I can pay if my bank account is blocked by the bank. If it's in the red. If there is an outage on their app. I can pay if I've been robbed of my wallet and phone. I can pay if there is no electricity or no internet. I can even pay if war is declared, if I'm under bombs. I can buy illegal drugs, illegal plant seeds, illegal literature, and illegal human services.

Remember when visa prevented us to send money to wikileak? It was not illegal to do so in my country, and it was my money, but they just said no. Yet I could pay in Bitcoin, that I could buy with cash.

No-cash societies make everything easier when everything goes according to plan. When you fit in the box, and the box is not broken. It's why it feels so great, because day-to-day life is mostly this, for most people.

But the lack of alternatives will make you feel helpless the day you really need it. Cashless has never been about convenience, it's about deleting those annoying grey areas, inch by inch. It's about control.

It's not a new thing for China. The first time I went there, I was 17 years old, and there was no internet. So the state appointed us a state guide, and she was following us everywhere during the whole time, to make sure "we were safe".

Now China doesn't need to do that anymore. They know everything you do at any moment except in the remote countryside. And they can push a button if they want to stop you.

comment 1y ago · link · parent

While I do believe that China is surpassing the West on many points, I'd like to underline that a cashless society is not a good thing. It's a terrible, terrible idea.

With no cash, the citizen passport and the GFW, the dictatorship has total control of society. It's not that there are no homeless, is that they are pushed to even worse conditions, out of sight. It's not that there is zero crime, it's that the crime is from the state, the mafia, and there is a lot of corruption. But nobody can talk about it because there is no free press.

I do think it's important to state how much China is advancing, and surpassing the West, because they are going to rule the world as the Americans did, soon.

But let's not pretend it's some kind of utopia.

comment 1y ago · link · parent

Most of my big clients have about 10 intermediaries between them and the data: the antivirus, the browser, the VPN, the company proxy, the API gateway, their authentication layer, the virtualization layer, the application server, the microservice it requests and whatever data source this one requests.

So unless you are a lean startup, the reasons many products are horribly slow are very low hanging fruits no body are ever going to bother picking.

If you ever reach the time where pipelining is giving you a boost in perf, your app was already in a nice state.

It's so nice to be able to code on a baremetal server where my monolith has directly access to my postgres instance on my personal projects.

comment 1y ago · link · parent

As usual, user are not making them paying the price for being badly treated. Software companies do this because they can get away with it, that's it.

Even on HN many people can't be arse to use Firefox, how could we expect anyone to avoid giants like Microsoft?

comment 1y ago · link · parent

One thing is certain, I can't remember a time in my life were this matter was a serious and regular debate by the general american public like today.

comment 1y ago · link · parent

Agree, they really did their homework, listed edge cases, made practical compromises, chose not to overdo it, reworked it again and again quite a bit and compared it to real life experience.

It's really beautiful work, especially since touching the back bone (the import system) of a language as popular as Python with such a diverse community is super dangerous surgery.

I'm impressed.

comment 1y ago · link · parent

Async was a soft keyword for many, many years in order to maintain compat. And before that, asyncio used yield to be even more compatible.

They took a decade to solidify that. At some point, you have to balance evolution and stability. For a language as popular as Python, you can not break the world every week, but you can't stay put for 5 years.

comment 1y ago · link · parent

They thought about backward compatibility, and offer an alternative syntax that use no keyword for library that want to activate it yet stay compact with old version. It's already in the spec.

comment 1y ago · link · parent

Especially since it is opt in, with various level of granularity, and a global off switch. Very well constructed spec given the constraints.

comment 1y ago · link · parent

We heard that about types, the walrus, asyncio, dataclasses and so much more. But it didn't happen, if people don't need something (and many don't know it exists or what it does), it's unlikely they use it.

In fact, half of the community basically uses only a modernized set of python 2.4 features and that's one of the beauties of the language. You don't need a lot to be productive, and if you want more, you can optionally reach for it.

It has worked very well for the last 2 decades and it will likely work again.

comment 1y ago · link · parent

What if they leave?

Their company already don't produce much in France, it's all imported. They are paying minimal taxes already on what they produce and sell outside of France. And they don't pay taxes personally. So what would we lose if they leave?

For the things that are actually made in France, it's because they have to. They would have moved it already otherwise. So it's physical assets and people that can't be moved or sourced elsewhere. So what they have to produce there, they will still do. Their real estate, their logistic chain vehicles, and their local workshops will stay here. Even if they would sell part of it in fact, the actual physical stuff would stay here.

And what they sell here, they will still do: they are not going to exit the French market just because they can't be physically here so it's not going to affect the economy that much. What, less jet and luxury hotels revenue? It's ok.

And of course, we can increase taxes on their companies so that they get less revenue to compensate for their exile. We tax trading or exporting French-based company stocks so that they can't move that around without paying first.

Besides, once a stock is bought from the IPO, moving it from hand to hand is not investing more money into the company in any way. It's not going back into the economy.

They can move with their bank accounts and bonds, why do we care? It's not something that goes into our economy. They made sure of it.

1
8910
184