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

Well a proper system should reduce the timeout for the same domain, the more it gets raised, and set it back to default once stats are good again.

But it's very complicated and costly to setup, so almost nobody does this.

comment 3y ago · link · parent

I run several services without cloudflare, but it's so tempting.

Their product is excellent, and so easy to use. You push a button, and suddenly a whole class of difficult problems disappears.

It's very hard to fight against the urge to use it.

comment 3y ago · link · parent

True.

But if they fetch a lot of URLs from cloudflare and it takes 30 seconds to answer with a timeout instead of a http/200 under 20ms, then some architectural decisions that were sound under the latter case may make the whole system slow in the former one.

comment 3y ago · link · parent

Saw a surge on https://bitecode.dev as well and it's just a small blog so people must really get bored.

Twitter doesn't seem affected though.

comment 3y ago · link · parent

Proprietary language only available on proprietary platform with no source available. They say that:

> we expect that Mojo will be open-sourced. […] We don’t have an established plan for open-sourcing yet.

But I'm not trusting "don't be evil" tag lines anymore.

So we'll see when they actually make something open enough that we can entrust our programming stacks to it.

comment 3y ago · link · parent

Yeah but in Python list.sort() takes care of that.

comment 3y ago · link · parent

Author here.

There is no conclusion to the article, the weird syntax is just a mean to an end:

- This makes people curious, so they read.

- This gives an opportunity to show a lot of cool features of the language in a short format. As the post mentions, Python's learning curve is smooth but long, so it's nice to be able to introduce some tricks to coders that would otherwise not be exposed to them.

- This demonstrates those things indeed, as you said, work together. Even if Python is a language on which a lot of things have been bolted on after the fact, it's still decently integrated.

- This allow me to insert a warning about not abusing them because even if Python is a readable language, you can always go too far. It's good maintain this message in the community.

- It's just fun, really. It's an article I would enjoy reading.

comment 3y ago · link · parent

If I were to use that for a treasure hunt, and I wish people would read the tablet back to english in less than an hour, what should I do?

comment 3y ago · link · parent

We can write numbers up to 256 in old persian: https://www.quora.com/How-were-large-numbers-e-g-3000-writte...

So write it ASCII or UTF8 :)

comment 3y ago · link · parent

He is probably American. This means "mildly interesting" in their dialect.

comment 3y ago · link · parent

No.

Fossil fuel are dense, easy to transport, and extracting energy from it is super simple.

It's not the case for wind and solar.

Right now, we are calculating the cost of wind and solar energy by evaluating the cost of transport and manufacturing of very complex system powered by fossil fuel. We say they are profitable in this context, and only in this context.

If we were to transport and manufacture them solely self-bootstrapped by solar and wind, it would not be cost efficient.

I think most people underestimate how much energy transport and metal work uses. Every single electronic circuit, every single screw, tire and wire are made using fossil fuel. And the food, home, roads and heat systems of the people working on those are all powered mostly with fossil fuel.

Not just because it's a habit.

It turns out you can escape thermodynamics .

Energy density matters A LOT. If you take an entire cinema of air and pass it through a wind turbine, you get the equivalent of a drop of oil. That's how magical oil is.

Now it's quite possible in the future we improve the tech so much, and we have such an abundance of it that it will be a net win. I'm rooting for that. Oil has terrible side effects, no matter how awesome it is, we need to get rid of it.

But for now, we are funding the green revolution with fossil fuel.

Don't get me wrong, this is a smart strategy. There is no way around it.

However, putting our head in the sand is not going to help.

comment 3y ago · link · parent

Ok I was ready to hate this article the second I read the title, and I clicked on it just to get enough ammunition to crap on it.

But it's actually quite good and I came to similar conclusions after trying to make CBV work for years.

Plus it's well written.

Damn.

comment 3y ago · link · parent

Well, it's important because if we want to transition, we need a strategy and we need people to understand it.

If you can't understand energy density, you may be under the impression we can go 100% renewable right now.

But we can't sustain our current life-style with them today.

Also if you think oil companies are going to disappear after we migrated, you are going to be disappointed if you don't understand the role they play in systems.

comment 3y ago · link · parent

I'm a proponent of investing in solar and wind energy, but it will be only cheap because we build solar panels and wind turbines using fossil and nuclear fuel.

Oil and urnanium have a miraculous energy density, and can be easily transported.

It's good we build alternative capabilities while we have cheap energy, but we should not forget why we can.

comment 3y ago · link · parent

Yes, but:

- it removes only a fraction of it from your body, so it gives only a fraction of it to the recipient.

- if you need a donation, this dose compared to what you get in exchange is usually a very good deal

- some blood don't actually go to people, but is used for manufacturing drugs, science tests or expires

- hopefully people don't get blood transfusions very often and have a blood level of PFAS close to the average and the given blood. Hopefully.

comment 3y ago · link · parent

Giving plasma is actually better if you want to remove PFAS.

And giving either is a good thing, so if this can mean people will give 2 or 3 times a year, everybody wins.

comment 3y ago · link · parent

I'm always amazed that in cases like this nobody gets crazy and try to get justice themselves.

There are so many guns in the US, and we hear about rogue snipers and school shooters, but never about one guy that decided a CEO should pay for his bad deeds in blood.

Maybe it shows that the average human being is quite stable and peaceful?

comment 3y ago · link · parent

This reads like a submarine article.

comment 3y ago · link · parent

Not to mention ads incite to consume more, attempt to creep inside your daily thoughts and lie about the qualities of the product using all the tricks in the books.

Add on top of this it gives more power to the big players with more money and create terrible incentive for the medias and you have one of the easiest moral decision in the world.

comment 3y ago · link · parent

For the same reason you vote, stop buying products, and read history books.

To shape the society you want to live in.

comment 3y ago · link · parent

This is pretty exciting from the perspective of any kind of navigation. If this gets into a phone, we will be able to navigate on a digital map with no signal at all.

comment 3y ago · link · parent

Ruff is an excellent base linter because it takes care of essential stuff and has sane default while integrates well without much work.

It's not going to replace pylint, but pylint is hard to configure and slow.

There is overlap between ruff checks and what's eliminated by black though, since ruff implemented flake8 rules first and a lot of them are PEP8 oriented.

Also, note that ruff is also a fast import sorter, faster than isort. But it's not a 1:1 match to isort (no fly to top, some formatting are different).

All in all, I would advice to use it if you are not used to linters, or if you don't feel like going full bazooka on a project.

It's has a very good cost/benefit ratio give how lighweight and easy to use it is.

comment 3y ago · link · parent

"simply"

comment 3y ago · link · parent

The author says he used all the VR systems that exist under the sun, but he doesn't mention SimulaVR.

Since for my use case it's the most direct competitor (using VR as working tool, not gaming), anybody got a comparison of the early test devices for both?

comment 3y ago · link · parent

You can be both

comment 3y ago · link · parent

Some subtle things can only be perceived as you slow down.

Under mushroom, food tastes amazing, because you can suddenly perceived a lot more details.

comment 3y ago · link · parent

Consumers don't have infinite money and prices are adjusted for the sweet spot for profitability.

This sweet spot may give a large gap for reducing the margins, while the consumer budget may not allow for raising the prices.

All in all, companies will work hard to find a way to stay profitable, and your tax will benefit from that.

comment 3y ago · link · parent

I also noticed it takes way more time to index sites.

When I moved bitecode.substack.com to https://bitecode.dev, I submitted the sitemap to google and was surprised that it took almost a week to even show a single page as indexed.

This used to be a couple of hours to a coupled of days.

So something definitely changed, but as usual we can only speculate until a googler come in this thread.

comment 3y ago · link · parent

No need to go that far, banning phones from schools would already go a long way.

comment 3y ago · link · parent

I actually always dreamed of something shorter, like an immutable record literal:

(foo=1, bar=2)

Like this, but as a literal:

https://github.com/ksamuel/drecord/blob/main/README.md

1
606162
184