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 2y ago · link · parent

In France there was a huge scandal about contaminated blood products:

https://en.wikipedia.org/wiki/Contaminated_haemophilia_blood...

Despite abundance of evidence, journalists revealing everything, and myriads of high-ups involved, only 2 people have been sentenced, for 4 and 2 years of prison.

To give 2,000 people HIV.

What justice do you hope for?

comment 2y ago · link · parent

The USA has a very high diabetes rate, so good care would mean threating those people well.

Even after you got of the scandal of the $800 insulin, it's still 10 times more expensive than most places in the world:

https://wisevoter.com/country-rankings/cost-of-insulin-by-co...

Insulin is insulin, you can't make it "10 times better".

comment 2y ago · link · parent

Binance boss just came out of prison, so he is not above the law.

And yes, they likely have this problem, because crypto is less regulated and full of geeks, so they have way more automation compared to traditional finance, at least proportionally to its size. You have bots on top of bots (literally, like telegram bots that will send orders to other bots copy-trading other bots).

In fact, there is even an old altcoin dedicated to automation: kryll (https://www.kryll.io/). They have a full no-code UI to create a trading bot with complex strategies that is pretty well done, from a purely technical perspective. They plug into many exchanges, including Binance.

Also, because it's less regulated, copy trading/referral/stacking is the Wild West, and they generate a lot of operations and fees.

comment 2y ago · link · parent

Seems high.

You can get a spinning disk of 18TB (not need for SSD if you can parallel write) for 224€. Let's round that to $300 for easy calculations.

To store 100 petabytes of data by purchasing disks yourself, you would need approximately 5556 18TB hard drives totaling $1,666,800.

Of course, you'll pay more than the disks.

Let's add the cost of 93 enclosures at $3,000 each ($279,000), and accounting for controllers, network equipment ($100,000), and power and cooling infrastructure ($50,000, although it's probably already cool where they will host the thing), that would be a about $2.1 M.

That's total, and that's for the uncompressed data.

You would need 3 times that for redundancy, but it would still be 40% cheaper over 5 years, not to mention I used retail price. With their purchasing power they can get a big discount.

Now, you do have the cost of having a team to maintain the whole thing but they likely have their own data center anyway if they go that route.

comment 2y ago · link · parent

Financial institutions have to log a lot just to comply with regulations, including every user activity and every money flow. On an exchange that does billions of operation per seconds, often with bots, that's a lot.

comment 2y ago · link · parent

Click house does have it, but it's experimental.

comment 2y ago · link · parent

Why per year? If they buy their own server, they keep the disk several years.

The money motivation to self host on bare metal at this scale is huge.

comment 2y ago · link · parent

I think people have watched or read a lot about those old school or fictional competitors, arriving wasted at the event or with a messed up life because that's what the medias sell.

Even if it could have happen at a certain time, today's competitions are such high-level precision things that everybody is at the top of their game, every parameter is taken in consideration.

If you are not, you don't even get at the top.

I was surprised to chat with a few e-sport competitors a few years ago and learn that they are using drugs to maintain focus.

comment 2y ago · link · parent

When I was a kid, it dawned on me that to be among the best, you had to be the one willing to sacrifice the most. Because there are diminishing returns up there, and when everything is equal (talent, biology, etc), then what you cut of to dedicate to the craft is one of the last differentiators.

So really, did I want to be among the best that bad?

And I realized I didn't.

The price is too high.

comment 2y ago · link · parent

Painters said that about photographs.

Artists are petty.

comment 2y ago · link · parent

Google and Amazon where built on scrapped data, who are you kidding?

comment 2y ago · link · parent

Indeed, and it will force you to write good tests :)

comment 2y ago · link · parent

To be fair to the team, Tor (from PirateSoftware fame) reported that Blizzard made more money selling one horse in WoW than with the entire Wing of Liberty:

https://www.youtube.com/watch?v=IHZru-6M8BY

That would screw up anybody's motivation a bit.

Players get what they incentivize, and thanks to video games getting more and more popular, the tragedy of the commons applies.

Still, it sucks.

comment 2y ago · link · parent

Quite the opposite, since they have bank accounts, let's:

- Make them more liable.

- Make the people behind them more liable.

- Give companies limitations. What would be the equivalent of jail for a company ? Unable to sale for x years ? How long a company should be able to exist ?

Right now there is way too much power and shielding at the same time.

comment 2y ago · link · parent

Actually, it's the same point.

We are currently trying to punish entities (with fines), and it's ineffective.

We should move back to punishing people more, and moving back the responsibility to people, instead of pretending companies are people, and therefore responsible.

comment 2y ago · link · parent

The power of having a bank account, of moving funds around, of signing contracts, etc.

Before that, companies had to have everything attached to a human, not the company. So the human was responsible.

You are so used to it that you think it's normal, but it's not.

It's a concept we have created: that companies can act in their own name, like they are actually something concrete.

But when we did that, we failed to give companies expiration date, something like inheritance tax, the equivalent of prison and so forth.

Something that doesn't exist, a concept, enjoy many things a concrete human can do, but won't pay nearly the same consequences.

In fact, it's sometimes in the title: limited liability company. It's by design.

And of course, it allowed humans to do a lot of things without risking to lose all their life if they failed. But we went to far and now, we have companies that can enjoy all those benefits but with much less limitations than the humans counterpart.

It makes them too powerful.

857.

Micro-agent: make an AI write code until it passes an unit test(github.com ↗)

42 points · by BiteCode_dev · 2y ago · 30 comments

comment 2y ago · link · parent

We moved the power from the human to something we said is "human enough" to have them. But this thing is a concept, it doesn't exist. It can't die. It can change forms until it doesn't pay taxes. It can't experience pain or go to prison.

Basically, we gave the power to the company without the responsibilities to the humans behind it because there is less consequences, less skin in the game.

comment 2y ago · link · parent

They can make investments, sue, go bankrupt, have bank accounts, like a person, in their own name instead of the owner.

comment 2y ago · link · parent

Companies are persons, except they are not.

They cannot die. They cannot go to prison.

This concept of a moral person is a totally unfair advantage that they exploit again and again.

comment 2y ago · link · parent

Yes, very underrated tool.

comment 2y ago · link · parent

Ah, sorry I misunderstood.

Yes, it would be nice to have that by default.

In fact, it's what uv (https://github.com/astral-sh/uv) does, and one of the reasons it's so fast and became so popular so quickly.

Astral for the win.

comment 2y ago · link · parent

Blizzard missing the Moba train is when I understood it was not the same company anymore and they started to be corporate.

They stopped following the fans and community and started to push for business plans.

It worked, they made tons of money.

But I stopped admiring them.

comment 2y ago · link · parent

Tower defense was popularized by Starcraft mods.

Dota, and so LOL, is often thought of as something coming from Warcraft 3 Defense of the Ancient, but the concept really started as a starcraft mod as well.

Of lot of the gaming culture is born on the original Battle.net.

SC 1 was one of the most influential game ever created.

comment 2y ago · link · parent

What do you mean by "Flutter developer trying to pivot to real native development" ?

comment 2y ago · link · parent

I'm assuming by system you mean OS, which is a terrible, terrible idea. Dev stack and system libs should not coexist, especially because system libs should be vetted by the OS vendor, but you can't ask them to do that for dev libs.

> I have to create a new conda environment for almost every ML paper that comes out

That's how it's supposed to work: one env per project.

As for the rest, it's more telling about the C/C++ community building the things bellow the python wrappers.

comment 2y ago · link · parent

Given the track record they got, I'm confident they will.

But what I really hope is that they'll tackle the user app shipping problem eventually.

comment 2y ago · link · parent

This is especially true when you use a lot of tooling. I love jupyter, but installing it in a venv means pulling a lot of deps which will affect a lot what I can install.

Fortunately the Python community is much more serious about making deps that work together than the JS community, and the fact it works at all given the cartesian products of all the python modules is kind of a miracle and a testament to that.

Unfortunately, that's a problem that is unlikely to be solved in the next decade, so we all live with it.

The reverse problem is true for JS, and I see many projects shipping very heavy frontend code because despite all the tree shaking, they embed 5 times the same module with different versions in their bundle. That's one of the reasons for the bloated page epidemic.

I guess it's a trade-off for all scripting languages: choosing between bloat or compat problem. Rust and Go don't care as much, and on top of that they can import code from 10 years ago and it sill works.

However, and while I do know how hard it is to ship python code to the end user (at least if you don't use a web app), I don't think the version problem is the reason. We have zipapp and they work fine.

No the main reason iscompiled extensions are very useful and popular, which means packaging is solving more than packaging python, but a ton of compiled languages at one. Take scipy: they have c, pascal and assembly in there.

This can and will be improved though. In fact, thanks to wheels and indygreg/python-build-standalone, I think we will see a solution to this in the coming years.

I'm even betting on astral to providing it.

comment 2y ago · link · parent

Note that those are not stock widgets.

And that's one of the main show stopper for me with kivy: it comes with very few built-in UI controls, so you have to code a lot of things yourself.

I much prefer Python to JS, but things like react native win because of the community libs you can install save you tons of time, and produce a better result.

1
282930
184