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
Blades and encryption main purposes are not physical combat. Blades are mostly use for cutting material we use in our daily life, encryption is mainly use to hide communications.
I don't agree with Brazil move, mind you. Flippers are not dangerous to the point I would consider seizing them a priority.
comment 3y ago · link · parent
15 years ago, I wanted the latest everything. Now I usually want the latest minus one. Python 3.11 is out? It's finally time to use 3.10. The new phone model is ready? Let me buy the one from last year.
Because it's almost as good, but a lot more reliable.
You get all the patches, all the user report, all the ecosystem support that has accumulated since then. And this has a LOT of value.
comment 3y ago · link · parent
E.G:
- manipulate the file system with pathlib
- do hashes with hashlib
- zip with zipfile
- set error code with sys.exit
- use os.environ for env vars
- print to stderr with print(..., file=...)
- sometimes you'll need to install lib. Like, if you want to manipulate a git repo, instead of calling the git command, use gitpython (https://gitpython.readthedocs.io/en/stable/)
But if you don't feel like installing a too many libs, or just really want to call commands because you know them well, then the "sh" lib is going to make things smoother:
Also, enjoy the fact Python comes with argparse to parse script arguments (or if you feel like installing stuff, use typer). It sucks to do it in bash .
If what you need is more build oriented, like something to replace "make", then I would instead recommend "doit":
It's the only task runner that I haven't run away from yet.
Remember to always to everything in a venv. But you can have a giant venv for all the scripts, and just she-bang the venv python executable so that it's transparent. Things don't have to be difficult.
Finally, sometimes it's just easier to do things in ipython directly. Indeed, with a good PYTHONSTARTUP script, you don't have to import everything, you get superb completion+help, and you can call any bash command by just doing "!cmd". In fact, the result can be store in a python variable. Also you can set autocall so that you don't have to write parenthesis in simple function calls.
2203.
PEP 638 – Syntactic Macros(peps.python.org ↗)
2 points · by BiteCode_dev · 3y ago · 1 comment
comment 3y ago · link · parent
Last but not least, since it removes the additional frame that the comprensions used be wrapped in, it will fix the way you interact with them using pdb, which has always been rough thanks to this invisible indirection layer.
I assume JIT will also appreciate the change, so let's see if pypy moves on this.
Migrating to a PEG parser opened so many opportunities for Python. I never expected we would see so many good things come out of it, after years of defending LL1 to keep the reference implementation simple. E.G: the new error messages are awesome.
comment 3y ago · link · parent
At this point, you have a completely custom stack that could have been developed entirely for half the price, that would run faster, without licensing cost. Money you could invest in hiring a company that will actually provide you support instead sending you interns they bill as experts.
2210.
PEP 709 – Inlined Comprehensions(peps.python.org ↗)
126 points · by BiteCode_dev · 3y ago · 17 comments
2211.
DbDeclare: Python declarative layer for db administration(github.com ↗)
1 points · by BiteCode_dev · 3y ago · discuss
comment 3y ago · link · parent
Running 0bin.net, we have complaints from outside of our jurisdiction, false claims, idiotic claims, DMCA used for censorship, and so on.
Once in a while we have a serious one, like CP or doxxing, so we read everything.
But honestly, our hosting is forcing us to delete so much content based of BS complaints it's tiring. And if we refuse, we have to make our case, which unlike complaints, cannot be automatized. 9 times out of 10, the hosting tells us we should delete the content anyway, and if we wait to much, proceed to cut the power cord until we comply.
I'm sure Meta does report some real website and phishing attempts, but I'm certain they also abuse their power like the GAFAM they are.
comment 3y ago · link · parent
- In 2005, they had one printer that refused to print if the cartridge was past a certain date, even if full. Several also underestimated the volume of ink in cartridges and told you it was empty when not.
- In 2007, HP refused to honor hardware warranty if you install any other OS on their laptop.
- in 2010, HP refused to provide drivers for the new windows Vista for its old ScanJet scanners (linux worked fine though).
- in 2020 they hardcoded the path to the EFI of their laptop to be windows only.
That's just the examples I could easily google, I remember that HP was having one scandal every 6 months in 2000, and we didn't have twitter back then.
So if a brand has been very publicly misbehaving for 2 decades, how does it still have customers?
Well, Facebook has still a billion users. Microsoft is now considered the father of unicorns and rainbows. Oracle is still making banks, one of my biggest client just migrated to it.
So the so-called cancel culture seems very superficial to me: lots of noise, but very actual consumer behavioral change. The brands can get away with anything and thrive. Maybe they'll get a little bit of heat for a few months on social media, so what?
But the bottom line is: if you are a big company, just do whatever makes you money. You don't need reputation.
comment 3y ago · link · parent
Even if the 10 most popular distros were documented, with all their supported versions, and if it covered windows and mac versions as well, and dealt with people in corporation not having admin rights on their machine, you'd still have so many steps a human error will be more likely to be inserted than just use what I suggested.
Again showing that you are so good at dealing with complexity you are not even seing it.
The only way I could convince you at this point would be to make you train 10 different teams, of 10 different people in 10 different contexts and give you one million of dollar if after one year you come back to see that their department has this stuff streamlined.
But I can't do that so that will have to be the end of this thread.