24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions
https://www.bitecode.dev/
Email: contact at bitecode.dev
comment 3y ago · link · parent
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
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.
1776.
The best Python feature you cannot use(bitecode.dev ↗)
21 points · by BiteCode_dev · 3y ago · 2 comments
comment 3y ago · link · parent
"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
- 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
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
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
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
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
- 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
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
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
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.