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

What's the benefit VS using whisper as a separate tool?

comment 1y ago · link · parent

[flagged]

comment 1y ago · link · parent

If I recall, one recator would produce something like 0.2% of the annual gold unearthed every year.

Also, can't be used immediately: there is a 16 years period before radioactivity comes down to a safe level.

So I'd say it can be introduced smoothly, and make the endeavor of of a reactor more lucrative while not destroying gold market.

comment 1y ago · link · parent

Yep, back to passwords, but less secure ones.

comment 1y ago · link · parent

This is what the code does more or less.

comment 1y ago · link · parent

This has been attempted many times with python, and always been a failure because of the dynamism of the language, even by big actors.

The solution, therefor, as always been to use the OS tooling for that. Even the .Net ecosystem eventually went into that direction.

The JS ecosystem is making that mistake right now, and will of course, deprecate this API in 10 years after they realize they can't make it secure either unless they basically reimplement BSD jails entirely.

comment 1y ago · link · parent

uv run is using virtual envs, that's the de facto standard, and those are sandboxes for python deps. So it already is.

Plus inline deps mean you can pin python versions and 3rd party modules using pyproject.toml syntax in a comment of your script. This is not perfect locking, as it doesn't pin sub dependencies, but it's already more that any other tool out there.

If you want perfect locking, create a project, and use uv lock. You are already in a different category of code.

comment 1y ago · link · parent

You know how you can "uv run" python code from a text file using just a URL?

No? Well, you can:

uv run https://pastebin.com/raw/RrEWSA5F

And since yesterday, you can even run a github gist:

uv run https://gist.github.com/charliermarsh/ea9eab7f56b1b3d41e5196...

309.

You can now uv run a GitHub gist(github.com ↗)

33 points · by BiteCode_dev · 1y ago · 30 comments

310.

The hiring test that defeated AI(bitecode.dev ↗)

2 points · by BiteCode_dev · 1y ago · discuss

comment 1y ago · link · parent

It's lovely to see how PHP keeps growing. It's far from what it was when I used to code with it in V3. I really thought it would be lost in its bad design, but the core devs kept at it, and it is, indeed, a pretty decent language now.

comment 1y ago · link · parent

> Someone should make a static-site social media platform for full compatibility.

Isn't that https://subreply.com/ ?

comment 1y ago · link · parent

After 2001 the US lost the habeas corpus in total silence. The Snowden revelations demonstrated that you can have a stage level conspiracy unveiled, and again nothing Will happen.

The writing has been on the wall for 2 decades: laws don't matter there.

comment 1y ago · link · parent

HN has been cheering for those types of people for as long as I have been here. Musk seldom even sees his 10 kids, except one. Jobs just decided that raising his daughter was not his problem.

comment 1y ago · link · parent

My sleep gets worse when I take creatine, so maybe it doesn't improve sleep, but rather helps mitochondria to get by without sleep?

comment 1y ago · link · parent

I'm obese, have sleep apnea, and can't find any statement that I would consider lacking tact in OP's comments.

Yours on the other hand, I find plenty.

comment 1y ago · link · parent

It's like saying Disney is an "image showing" company.

comment 1y ago · link · parent

Thanks for this correction.

comment 1y ago · link · parent

That's the whole idea about this thread: you don't want the power that be to know more than it should.

And the current legal setup mean you would have to own a google account, a terrible private life setup.

comment 1y ago · link · parent

That's the whole point of this thread, the current setup makes a google account mandatory, with all the terrible consequences on private life that it has.

It should not.

comment 1y ago · link · parent

In the 1930s, the Dutch government conducted a census that included religion. The Netherlands, after all, had a comprehensive population registry system (Bevolkingsregister) established in the 19th century. This registry was centralized, continuously updated, and included religion, addresses, family connections, and occupations.

After the German occupation in 1940, the Nazis accessed and exploited the Dutch population registry, including religious affiliation.

About 75–80% of the ~140,000 Jews in the Netherlands were killed.

This is the highest percentage in Western Europe.

Compare that to France, which had a more fragmented administrative system, and less complete central records and 25% of Jews in France were deported and killed — a much lower percentage than the Netherlands.

As usual, when reaching the Godwin point, the idea is not for you to take it at face value, but to extrapolate to your situation.

The concentration of power and centralized people tracking are eventually always abused, and once your system becomes less free (which has historically eventually happened on a long enough timescale), you will pay the price for it.

In our case, having a full history of all opinions, interactions, locations, and behavior linked to full identity of people is what we are ultimately talking about here. It's already well on its way, but it will make it worse.

The more you concentrate power and feed data about people, the greater the potential damage.

And of course, it doesn't need to be a full-on dictatorship to get problems with those.

It's a spectrum of increasing problems you will get, the more you lean into it.

322.

Analysis of various task runners used by top GitHub repos(github.com ↗)

2 points · by BiteCode_dev · 1y ago · discuss

comment 1y ago · link · parent

You can certainly do it, but since serialization and validation are the main benefit from using Pydantic, I/O are why it exists.

Outside of I/O, the whole machinery has little use. And since pydantic models are used by introspection to build APIs, automatic deserializer and arg parsing, making it fit the I/O is where the money is.

Also, remember that despite all the improved perf of pydantic recently, they are still more expensive than dataclass, themselves more than classes. They are 8 times more expensive to instanciate than regular classes, but above all, attribute access is 50% slower.

Now I get that in Python this is not a primary concern, but still, pydantic is not a free lunch.

I'd say it's also important to state what it conveys. When I see a Pydantic objects, I expect some I/O somewhere. Breaking this expectation would take me by surprise and lower my trust of the rest of the code. Unless you are deep in defensive programming, there is no reason to validate input far from the boundaries of the program.

comment 1y ago · link · parent

Because they don't represent the same thing. Pydantic models represent your input, it's the result of the experience you expose to the outside world, and therefore comes with objectives and constraints matching this:

- make it easy to provide

- make it simple to understand

- make it familiar

- deal with security and authentication

- be easily serializable through your communication layer

On the other hand, internal representations have the goal to help you with your private calculations:

- make it performant

- make it work with different subsystems such as persistence, caching, queuing

- provide convenience shortcuts or precalculations for your own benefits

Sometimes they overlap, or the system is not big enough that it matters.

But the more you get to big or old system, the less likely they will.

However, I often pass around pydantic objects if I have them, and I do this until it becomes a problem. And I rarely reach that point.

It's like using Python until you have performance problems.

Practicality beasts premature optimization.

comment 1y ago · link · parent

* offer comes with some money-binding requirements

comment 1y ago · link · parent

I agree and wish it would be a separate app you can install or not instead of part of the system.

comment 1y ago · link · parent

Is there ground to sue those people?

comment 1y ago · link · parent

Plus, a lot of the goodies can be added with compiled programs like Starship or Atuin. Less config, faster, work across several shells.

comment 1y ago · link · parent

You are not alone, packaging a deb is hard, mostly because the documentation sucks.

comment 1y ago · link · parent

Tangent, but each of those events should be a reminder of why we must fight to never, ever live in a cashless society.

Because once big entities control the pipeline of what you can buy and you have no alternative, they basically can dictate what you can and can't do.

We saw that during the wikileak story when visa prevented Europeans to give to the org despite the fact it was perfectly legal to do so on their soil.

Just like data handled by an Apple device is not really your data since they can prevent you from doing what you want with it, money handled by Visa is only your money until they don't like what you do with it.

1
101112
184