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

The carbon taxes haven't worked so well until now. There is no reason to believe they will in the future.

And again, you need all the countries in the world to behave. The USA, China, India, Russia...

comment 4y ago · link · parent

Amusingly, I get creative new ideas when I glue things together and ignore what I thought I understood about their relationships.

comment 4y ago · link · parent

Assuming you are getting the CO2 from capture and the methane from synthesis.

Meaning you would have to make sure all companies from all the countries in the world won't try to make money by using a cheaper and easier to access source of methane once there is a huge market for it.

Unlikely.

comment 4y ago · link · parent

Jupiter, Saturn, Uranus and Neptune have a lot of it already.

comment 4y ago · link · parent

Problem is, burning methane releases CO2, unlike hydrogen.

comment 4y ago · link · parent

In fact, if someone is probing for wp-admin, you should insta ban them, no matter the site.

comment 4y ago · link · parent

Those are very specific bots, recaptch will stop a lot of casual ones. Most of them in fact.

comment 4y ago · link · parent

I understand all causes and consequences of this problem, and I'm not implying there is an easy solution, only underlying that using "the user is lying" will lead to frustrating false positives.

comment 4y ago · link · parent

Yeah no, "scientists", this wonderful general category that means nothing and everything, in general, are not turning to Rust.

Programming is a niche. Rust is a, albeit amazing and gaining traction at a fast pace, niche in this niche.

99% of mathematicians, physicists and biologists I have worked with have not even tried programming yet. And if they do, they will start with the stuff their friends are already using: python, fortran, etc.

Hell, 99% of the dev have not heard of rust yet. I go from companies to companies, every time I talk about rust, I have to explain what it is.

It's not even living in a bubble if you think that, it's living in an bubble from another dimension.

Having generalization from anecdotal evidence in nature.com is kinda ironic if you think about it.

comment 4y ago · link · parent

The first solution isn't practical (so many services to manually find a mail to send a message to, then interact with a human that might not even exist), and if you do, they don't whitelist you. I tried. Either they don't answer, or have "no way to have a specific whitelist for a single user in our system".

So the second browser is the solution. But then the site will do all the bad things that I wanted it not to do in the first place. Like serving terrible French results instead of good English ones, or assuming Firefox doesn't work based on UA while their site work fine with it. And of course track me to death, sell my data, and so on.

The only solution that works is to chose services you pay money for: they have your card, so they know you are not a bot. For years now, I have been suspicious of anything free. But it doesn't solve the tracking problem.

comment 4y ago · link · parent

It's not that bad.

First, of course, you have cloudflare and recaptcha, which are free and very efficient, as the author say.

But even if you don't want to use them (some of my services don't), most bots are very dumb:

- require JS, and you lose half of the web ones

- silly tricks like hidden input fields in forms that worked in 2000 still work in 2022. Use a bunch of them, and you can yet again halve the bot traffic.

- many URL should have impossible to guess paths. E.G: just changing the /admin/ url to a uuid in django or the /wp-admin/ in wordpress, you save so many requests.

- bots are usually not tailored to your site, meaning if you require JS, you can actually embed anti-bot measure in the client code and they will work. E.G: exponential backoff + some heavy calculations if too many fast consecutive ajax requests.

- fail2ban + a few iptables rules (mitigate syn flood, etc) will help

- varnish + redis gets you very far to shave excess dummy traffic

It's not great, but it's not an apocalypse.

Unless you are under targeted attack.

Then it sucks and you die.

comment 4y ago · link · parent

My laptop is lying all the time. I change my UA, preferred language, my ip, mac and so on, because of tracking, terrible dev assumptions and personal preferences.

Yet, I'm a very good web citizen.

Because of this, I often have to solve the same captcha many times before it thinks I'm human.

comment 4y ago · link · parent

- you don't need compiled dependencies

- you may work mostly in the terminal and want to fire a quick tool: dev is a lot of that so it's great for this use case

- it's cross platform

- it works with no X so it works with ssh

- it doesn't eat a lot of resources

- it's fast to launch

- you usually already have a cli entry point, so this is a natural next step. The quick script becomes really nice

- it's very constrained, so devs have to focus on the most important things which makes the UI usually better than usual

- it's a common denominator so you can generate web ui and native ui form that

- TUI have naturally good keyboard workflow for free

- it's just really cool

comment 4y ago · link · parent

Ah but that's the best part about TUI, you can fall back on the cli when you don't want the whole burrito.

comment 4y ago · link · parent

I really like this trend of "making the terminal great again". Between rich/textual in python and lipgloss/bubble tea for golang, this turns cmd from "the default ugly stuff that is easy to produce" into "something fun and pretty".

Also note that those projects have the (not anymore) secret goal to also produce a web app from the same code base automatically.

I imagine native will follow, or wasm, or something. Nevertheless, having the terminal as the smallest denominator for UI makes a lot of sense for small utilities. You won't build the next Figma with it but a lot of scripts could benefit from that.

comment 4y ago · link · parent

This is going to make django-ninja even easier to use, so it's very welcome.

And if you like django and never tried django ninja, it's like DRF and FastAPI had a baby: https://django-ninja.rest-framework.com/. You define your endpoints using pydantic type hints, and it generates the API, validators and docs all in one go.

comment 4y ago · link · parent

At this point, if you trust companies with terrible, terrible track record and you get bitten, what do you expect us to say?

People keep repeating "vote with your wallet", and almost nobody does. It's already hard to make peace with that, but we learned to.

However if most of the IT community place billboards saying "don't go into the bear cage" for years, and you still do, what can we do?

comment 4y ago · link · parent

Thank you so much inventing it.

This serves as an ice breaker in my introductions to python programming and works like a charm every time.

comment 4y ago · link · parent

So, you can use duck typing and metaprogramming in Python, even with modern features?

How is that a crime?

Next, you will be surprised that you can use first class functions and late variable binding?

comment 4y ago · link · parent

Duck typing is exactly that, it's core to python.

comment 4y ago · link · parent

Even if that happens, it's not going to change the core problem.

They'll just what microsoft did, and say "look, we are good people now". The world will forgive and forget, and use their product hapilly. But because the underlying cause hasn't change, only the context, as soon as the context will change again, we will be back to square one.

comment 4y ago · link · parent

Does Lottery Revenue Rise or Fall during Economic Hardship?

https://taxfoundation.org/does-lottery-revenue-rise-or-fall-...

comment 4y ago · link · parent

Oh don't worry about that. As a Frenchman, I will definitely be delighted if I get my boss to pay for a Cul Magique.

If the product is good, it will not matter.

Better, we will make jokes about it and say stuff in the scrum meeting like: "today I will work on magically fucking myself. Someones has to do it."

Plus you get plausible deniability :)

comment 4y ago · link · parent

The problem with pluton is not the tech. It's that:

- it's proprietary

- it's controlled by entities that have a terrible track record

- it's going to be, as usual, forced upon everybody without consent

comment 4y ago · link · parent

My go to is to consider that the first tag is the category, or the directory it's in. Depending on the system, you may reverse it: the category is the main tag.

comment 4y ago · link · parent

Categories are an excellent idea if the system is small enough and everybody using it is familiar with the convention. It's just that you have to accept they are flawed, unaccurate, partial and biased.

That doesn't mean they are not useful.

Think about supermarket scales: each vegetable or fruit is in a single category. The category is flawed, but nobody wants to have to type a precise list of tags to filter what they need. You want to go to vegetable and chose tomatoes, not to have a inner debate about the tomatoes taxonomy. Isn't a fruit? Wait, is fruit a biology thing or a commercial concept? I don't care, give me my damn tomatoes!

It's the same for my notes. Some stuff are in weird directories. But I know how I sort them out, so I can find them quickly. I don't want to have to be precise or accurate, only find what I need.

Category don't replace tags, buts tags are mainly useful for advanced searches and filtering. Anyway, the best systems out there consider a category as a tag, just the main tag.

comment 4y ago · link · parent

Everytime I move to a new city, this is my first stop.

You unload what you can't move (or don't need) before you go, then you buy what you left (or now need) once you arrive.

It's like renting furnitures :)

comment 4y ago · link · parent

Reason #786 for not doing business with Google.
1
929394
184