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

Same conclusions.

And children, dogs, birds, metal plaques...

So many things out of your control, so just assume the worst, all the time if you want to survive.

Motorbikes are just dangerous, that's it.

Another thing I'd add: say no to ridding under the rain.

Don't buy a better suit, better tires, adapt your schedule and run slowly.

Just don't use it.

There is nothing in the world you can do that will make it much safer. It's a death trap. Bite the bullet, and use something else.

But who am I kidding, young me would have read that comment, say "mehhh", and just ride the storm anyway :)

comment 3y ago · link · parent

That kinda prove the whole point: even for the same author, 90% is crap.

comment 3y ago · link · parent

True, but most content in general is bullshit.

Most scientific publications is BS published for the sake of pumping your numbers.

Most student memoire is BS to pass the exam.

Most financial analyses, most TV journal reporting, most tweets, most books are BS.

Ever read doctors or lawyers specialized magazines? Most pages are BS on top of BS.

Paid content, content produced to fill space, making volume, low quality authors trying to make it, agendas every where, and of course automated crap.

Why do you think HN is so successful?

The concept?

The tech?

Of course not.

It's the quality of moderation, and the fact they used their ability to publish their BS to the front page with moderation. Just enough to help them, but not so much as to destroy the average HN quality.

Dedication to quality on the long run, and restrain in milking the cow. This show visions, and it's hard.

comment 3y ago · link · parent

An actual new browser engine that is not based on Chrome. Wow.

And now with money. That's something I really didn't expect to see anymore.

comment 3y ago · link · parent

Yep, my grand-father left us a letter with just numbers in it.

Not a great moment.

1776.

The best Python feature you cannot use(bitecode.dev ↗)

21 points · by BiteCode_dev · 3y ago · 2 comments

comment 3y ago · link · parent

It's amazing that after 20 years of this, people hasn't yet learned that:

- Corporations are not your friends. - Things changes. - What you put there is their property. - Your free work is their money.

comment 3y ago · link · parent

But it's acceptable to play chess, bridge and poker or read poetry, magazines and football news.

Because that's science.

comment 3y ago · link · parent

The thing with humanity progress, is that you have to start a lot of completely different efforts in parallel, because history has proven that there is no way to know what will play the biggest role in the future.

"No one has yet discovered any warlike purpose to be served by the theory of numbers or relativity, and it seems unlikely that anyone will do so for many years." — G. H. Hardy (1941)

comment 3y ago · link · parent

What's unsaid here, is that such construct could be optimized way more for speed than data classes because:

- it's immutable

- doesn't have methods so no overloaded operator or dynamic attribute/index accesss

- shape is known and is set in stone

That's why Mojo has them, and why they are the bread and butter in Rust.

It's one of the step in the direction of a faster Python.

comment 3y ago · link · parent

The the home button scandal I'm talking about is older than that.

Circa 2010-15, the iphone home button was having more and more problem: https://osxdaily.com/2011/12/22/iphone-home-button-not-worki...

For a while, half the users were just using a software button as a workaround: https://osxdaily.com/2012/07/02/broken-iphone-home-button-as...

It was funny to see everyone with a very expensive phone just moving around this fake button everywhere on their screen because their physical button was not working.

But then people stopped finding it funny.

Because Apple said it was a hardware problem, and said the fix was to buy the next iphone generation.

However, a few weeks later, jailbreak iphone received a patch from the community fixing the home button problem, showing not only that it was a software issue that was easy to fix, but Apple just conned their entire customer base.

comment 3y ago · link · parent

Indeed, and you can hear how many people will critic it for having accumulated so many cruft.

You just cannot win.

comment 3y ago · link · parent

Yes, it's too long, I should have made a series of 3 posts instead, each focused on one particular idea.

One particular point "devs lie", really deserve its own article. Because we do lie a lot, and it's like a taboo to talk about it.

comment 3y ago · link · parent

Apparently, it worked fine for dropbox for years :)

comment 3y ago · link · parent

The short term solution is "relieving the packaging pain" link in the article.

The long term solution is described in the "What a solution could look like?" section of https://www.bitecode.dev/p/why-is-the-python-installation-pr...

The community is buzzing with attempts to fix those issues this year, so I’m hopping those posts will become obsolete one day.

Flask’s author is attempting something interesting with rye: https://github.com/mitsuhiko/rye

Trio’s author is drafting a spec for the equivalent of wheels, but for the whole python interpreter: https://github.com/njsmith/posy/blob/main/pybi/README.md

Not advocating to use them right now, but the fact is bootstrapping Python is finally acknowledged as one major cause of packaging issues and a priority to solve.

comment 3y ago · link · parent

Oh they have an entire department dedicated to understand what people think about each product, so they would know.

comment 3y ago · link · parent

Python was created 30 years ago, before Java, at the time the first game boy came around.

It accumulated a lot of things, and it’s a constant battle to balance what to change (to keep the project lean and modern) and what to keep (to maintain compat).

Whatever move you chose, someone in the community will say the core devs are doing it wrong.

I read as many posts saying python is moving too fast as ones saying it’s not adopting “feature x” fast enough. As many people saying we should get rid of the GIL than one saying they are deprecating too many API.

When you are as popular as Python, with a community as diverse, it’s very hard job.

comment 3y ago · link · parent

Yes, if you are a user.

But if you are a developer, it's not great.

comment 3y ago · link · parent

If you read the article, it argues that yes, pip installing one thing is a huge problem for a lot of people, but the alternative is harder.

comment 3y ago · link · parent

To be honest, you still should use a venv in a docker image.

comment 3y ago · link · parent

That's pretty much the procedure the article link to in the intro, but with some additional subtleties on how to source and run python.

comment 3y ago · link · parent

This post is the justification of the one you link to. It's not meant to be practical, but rather an answer to the same comments I get over and over again when I suggest the method you just posted.

Even with it though, you can see in the thread people don't read it and completely ignore its rational :)

comment 3y ago · link · parent

Clearly you haven't read the article.

comment 3y ago · link · parent

pipx is just displacing problems:

- you have to install pipx and they recommand to install it... with pip. Back to all the same problems.

- pipx implicitly use a python version underneath. For things like mypy or black, you get stuck to the syntax of this version, and you'll get errors a lot of users can't solve

- pipx is not stable enough, it just fails sometimes

- people have to know about a third party tool

- it adds to the paradox of choice

- pipx PATH injection is hit or miss

I should have listed pipx in the article, it's not a solution, it's a crutch.

comment 3y ago · link · parent

Damn, the reddit shuts down really is bringing a lot more attention to my blog. I've got links on the front pages posted twice.

Well, AMA, I suppose.

comment 3y ago · link · parent

That's more of cultural problem in the Python community.

If I provide an end user software to my client written in Python (so not a backend, not a lib...), I will compile it with nuitka (https://github.com/Nuitka/Nuitka) and hide the stack trace (https://www.bitecode.dev/p/why-and-how-to-hide-the-python-st...) to provide a stand alone executable.

This means the users don't have to know it's made with Python or install anything, and it just works.

However, Python is not like Go or Rust, and providing such an installer requires more work, so a huge part of the user base (which have a lot of non professional coders) don't have the skill, time or resources to do it.

And few people make the promotion of it.

I should write an article on that because really, nobody wants to setup python just to use a tool.

Do check out nuitka though, it's has great support for QT, numpy, advanced Python constructs and has a permissive learning curve. You may even get a up to a X4 perf boot.

Not cross compilation though.

There is a startup idea right there.

comment 3y ago · link · parent

PRISM didn't kill companies, Apple home button scandal didn't touch it, sony infecting its users with a rootkit didn't make it sell less playstations, HP lying cartridges had no impact on its long term business...

Fines and green washing are budgeted and only a small fractions of the profit they make by misbehaving.

On this very site you can read regularly people telling you we should forget about the MS of the past because now they are good guys. So they can get away with corruption, sabotage, monopoly abuse, insulting the competition, stealing, lying, patent trolling, etc. No problem. Bill Gates is a wonderful person and a great philanthropist nowadays.

The corporations and billionaires have found the recipe to get away with everything. The humans were always hackable.

comment 3y ago · link · parent

Also JS allows you to define default values if the key is missing, and Python's pattern matching doesn't.

comment 3y ago · link · parent

Well, you do need, jitter, exponential backoff, caching, black and white listing, a stat base decision tree, etc. That's why it's a complicated and costly problem.

But if you are consuming a lot of API content, if you have crawlers or if you provide features like "get article title/summary/image/thumbs", at some scale it's an important decision to make.

comment 3y ago · link · parent

To be honest I got excited with the SimulaOne for the exact same reason.

But now, seing the Vision Pro, they are going to have a hard time to compete.

1
596061
184