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

Besides the fact this article avoids giving any concrete examples, showing the author probably doesn't use the technique himself, it's going to fail when the opposite side cannot be convinced by rationality, which is most of the time.

Indeed, you cannot "patch up the weaknesses of the other side’s proposition" of someone supporting a sports team or a religious belief. Because there is no real argument, but rather some kind of emotional commitment.

However, if you engage in the exercise a lot, you'll notice that a huge number of debates are around such notions, where ego, identity, and feelings are more important than ideas.

It's certainly true for lots of political beliefs, but also many technical ones where your social situation depends on the result of the debates more than being wright or wrong (e.g: at work).

Not to mention when you are debating, it happens regularly you win not by convincing the other side, but by winning over the popularity contest with the audience of the exchange. This again, has nothing to do with the logic of the discussion.

So even if the technique works for, say, your discussion with your physicist or philosopher friend (in which you probably didn't need it anyway), there is really little value in it if it can't work in the situations with more at stake.

Or to use a more scientific term:

I call BS.

comment 2y ago · link · parent

I don't understand how one can be bored in this situation.

You can learn a new language or to draw. Read novels. You can start writing a program or a blog: write it on a different computer, but you are in this situation nobody cares anyway.

You can listen to podcast, even binge watch a tv show discreatly.

You can practice maths, go back learning things you wish you spent more time learning in school.

You probably can even start a business if you are careful no to leave trail.

But also: you can put money on the side, and prepare to leave.

comment 2y ago · link · parent

You see, that's the rational approach: you got a problem, you find a solution.

Most people don't do that.

"I heard that..."

"I believe that..."

Is mostly the source of their decision making.

Forcing heat pump on people will make them react like you are stealing from them.

Because you are: you are stealing their ability to choose.

But they choose badly.

comment 2y ago · link · parent

Indeed. Hence the religious aspect.

She doesn't care about making sense.

She cares about her stance on electricity heating.

comment 2y ago · link · parent

As a nerd, I get you think it was the main problem.

But most people didn't care about that.

The main contenders were:

- Linky calculates my electricity bill badly. It was in fact more accurate, but sometimes it meant a raise in bill.

- Linky emits dangerous radiation or magnetism. That was, of course, a total hoax.

- Linky didn't allow me to cheat on my bill anymore (lots of people around me were hacking their meter to pay less).

- Linky is forced on us by Big Electricity. So it's bad.

The privacy thing is legit, but all those people had full facebook accounts, most of them had full sync on their smartphone, use chrome without an adblock, and so on.

Only geeks like us really care about the privacy aspect.

On the other hand, it's a greener solution:

- Less people in cars to check meters.

- Live load balancing on the power grid.

- Clear consumption stats so that you can optimize your own bill.

So the linky, which eventually got into most homes, is deployed with success.

But it took so many years because of the pushback.

Eventually, if the pushback would have been just about the privacy, we could have focused on fixing that and would have had a cheaper, faster deployment, with privacy.

We had the worst: expensive, long deployment, and the privacy invasion is still in place.

comment 2y ago · link · parent

Yeah but there is heavy resistance.

My mother won't install a heat pump because she claims she doesn't want to be dependent on electricity. She likes the idea that if it goes down, she can still heat her home.

It is irrational because her gas burner needs electricity to run anyway, and if electricity shuts down, she lights a wood fire, which she could have as an alternative to the heat pump.

Humans have religion-like behavior in every aspect of their life, not just God-related things.

If you haven't heard about the French pushback against the linky, a smart electricity meter, google it. You will have a good overview of what can go wrong if we force the issue on people.

comment 2y ago · link · parent

With timer of 35 minutes.

comment 2y ago · link · parent

French administration would be my first guess :)

comment 2y ago · link · parent

I don't think op was referring in any way to pangermanism.

comment 2y ago · link · parent

While the sphere is more modern, and features the very hyped exterior LED screen, the concept of a sphere with a cinema screen wrapped inside it is quite old.

30 years ago, la geode already existed in Paris : https://www.lageode.fr/

I got good memories of this as a kid, and if you are in the area, it's definitely a must-do in the city. Especially since it's attached to one of the most fun science museums you'll get to visit with a lot of interactive bits.

I do want to get into the sphere to experience what 3 decades of progress have given us.

comment 2y ago · link · parent

When people say words are losing all meaning, this is what they mean.

10 years ago, I was complaining people used amazing, friend, hilarious and other superlatives to talk about mildly better ordinary things.

Today I see people throw in fascist and nazi like darts at a pub night.

The noise/signal ratio is really getting terrible.

comment 2y ago · link · parent

Ok, so you get better accuracy if you datasets have obviously weighted fields. Do you pay that in perfs, and if yes how much?

comment 2y ago · link · parent

Interesting.

What would you say are the main differences with other approaches?

comment 2y ago · link · parent

I worked with a client that implemented their own Python version of this to deduplicate citizen entries in a big french gov database. It worked well.

Of course, nowaday I would probably just tell them to use datasketch (https://pypi.org/project/datasketch/).

With this trip to memory lane, I looked around a little, and noticed people are still creating new stuff on the topic. E.G:

https://pypi.org/project/rensa/

Which is basically a more specialized but faster version of datasketch minhash, written in rust, with a little python on top.

885.

Ttkbootstrap: Modern theme and widgets for Python tkinter(github.com ↗)

13 points · by BiteCode_dev · 2y ago · discuss

comment 2y ago · link · parent

Thanks, 10 years of HN and I was still using "site:news.ycombinator.com"

comment 2y ago · link · parent

If you go on Tik Tok, sometimes you see fake French news, with the proper setting, format, voices, and sometimes faces.

It's quite believable, especially on a platform where you scroll mindlessly.

But if you look for the bit online, you will not find it on the official TV channel website because it never happened.

I'm used to my gov and American propaganda, but they are rarely faking the whole thing, mostly selectively presenting a certain truth or point of view.

That's new to me: completely fabricated, sophisticated facts and media.

comment 2y ago · link · parent

You can be critics of both Russia and America.

We have cancer and you want to ignore it because we also have diabetes, that's a weird stance.

As a member of the EU, it's only logical to be more worried about Russia crossing the Ukraine border than American propaganda.

The risk the US lose their head and decide to attack the EU is nil.

The risk Russia decides that they want to restore the USRR if the Ukraine invasion is a success is plausible.

Is it going to happen? We don't know.

But we don't want to find out.

889.

Python packaging scenarios by the creators of ruff(github.com ↗)

16 points · by BiteCode_dev · 2y ago · 7 comments

comment 2y ago · link · parent

Exported in WASM to play directly in the browser, including Horn of the Abyss.

I would pay for this.

You'd probably have to redo the art though, since 3DO will unlikely do this port and I doubt they would licence the IP.

comment 2y ago · link · parent

Underrated book IMO.

I enjoyed it more than the 3 body problem: the characters are better written, their motivations make more sense despite having much less time for actually developing them.

I was really having fun trying to figure out how to make the best of an impossible to solve situation. And the SCP lore is wonderful.

comment 2y ago · link · parent

More than that, it takes a very sophisticated and well-integrated society to no only make it possible, but affordable and profitable.

With the tech and scales of the times, it's mind-blowing and a testament to how badass humanity already was.

What could they have achieved with what we have today?

comment 2y ago · link · parent

We feel the same about mushroom spots in France.

There is a saying: during the german occupation, people betrayed friends, and nation, but they shut their mouths about the mushroom spots.

comment 2y ago · link · parent

Even if it takes 10 minutes per ToS update per service, that's still a good 100 of hours in your entire life (this they don't provide diffs) just to do that.

It should be illegal.

comment 2y ago · link · parent

I remember that someone made a video reading the amazon TOS. It was 9 hours long I believe. That's without stopping, sleeping, eating, and assuming you understand every single sentence.

TOS should be illegal.

Imagine if you had to agree to ToS while entering at Cosco.

Or if you actually had to read 9hours of a legal doc to shop at wallmart.

comment 2y ago · link · parent

You probably are. But most of your colleagues as well :)

Most adults are kids in big meat suits, they fake it a lot.

I started to live like I was not completely worthless at 35.

Not saying that to be proud of it, just stating that if you think humanity should do better, the first person you'll judge is you.

It will be glaringly obvious you are not meeting your own standards.

The higher your standard, the longer it will take for you to reach them.

And the way to get there faster is to ignore the shame, and do it anyway. Because if you don't, your growth will be slower, and you will do more damage for longer.

Real life means real consequences.

It will make you more tolerant of others as well. Way more tolerant.

comment 2y ago · link · parent

Yeah, I'm surrounded with medical professionals.

It totally does.

They make grave mistakes all the time. And they hide them. They lie about them.

They have their ego and career on the line.

And they don't have enough resources at their disposal, not enough hours, too many patients, and they are exhausted.

In short, they are humans in a human system.

comment 2y ago · link · parent

Obsession will stop you from shipping.

Or it's not an obsession.

It's caring.

Very few people can pull off a Steve Job level of nitpicking and actually finish a project.

I certainly couldn't, and that advice is for young me.

comment 2y ago · link · parent

Planes and bridges are problems where the quality control can be centralized and you can therefore put a lot of redundancy.

Even then, the Boeing scandal shows it's not bulletproof.

It's not the same for medicine. There are way more doctors than you can put safety nets. Also, when a plane crashes, it's on the news, it costs money and PR. Much less so with doctors.

The plane industry is not inherently more moral, just more liable. Responsibility in the health industry is way more diluted.

It's not that we WANT to pay the price of people learning. I wish I would not have had the wrong meds given to me last year.

It's just that the system is not currently set up to do it otherwise.

So you can feel guilty and stop moving, and you will not learn. You will not grow. And you will actually hurt people for a longer period because you will still make mistakes.

Or you can own it and accept the inevitable: doing things means having actual consequences on the world.

If you want, you can dedicate your life to change the whole system and make it better. But I don't think anybody in this thread is doing that right now.

I did see a lot of people on their high horses, but doing nothing though, paralyzed because they were looking for a way to never break anything.

Me, for example. For years.

comment 2y ago · link · parent

Tangential, but I think that's the problem with trying to learn from design patterns.

I read about them and tried to apply them.

That's backward and didn't produce anything good.

I started to understand them by doing it the other way around:

- Coding, solving problems.

- Reading other people's sources.

- Then reinventing half a terrible design pattern.

- Later on, looking at a book: "ohhh, that's what I tried to do" or "ohhh, hence the snippet in that source".

- Now I can discuss with people about the pattern and name my code entities according to that.

Design patterns are a communication tool.

1
293031
184