24,628 karma · joined Oct 21, 2019 (7y ago) · 5,512 submissions
https://www.bitecode.dev/
Email: contact at bitecode.dev
comment 5y ago · link · parent
Python already does so much for you, and provides so much tooling to do even more, it's hard to write bad code if your daily job is to be a coder.
The iterator protocol means you rarely get off by one errors, context managers and GC deals with resource handling, the GIL, for all its faults, helps a lot of concurrency errors...
Now, add a good IDE, and syntax errors, names errors and attribute errors go away. Play a little in the REPL, and use cases become more obvious, behaviors more clear.
Want more security? You can add type hints and unit tests (which are incredibly easy to write, thanks to pytest).
Even without all that, the size of the ecosystem means you won't write most of the code anyway, and less code, means less potential for mistakes. Adds to that the language bare bone syntax, and you really has something that actively helps with writing good code.
Not to say you can't write bad code in Python, but unless you are not a professional dev (in that case, you can write bad code in any lang), you have a lot to help you there.
comment 5y ago · link · parent
This is the lesson of our generation: makes money by delegating the consequences to society. Nothing will happen to you. In fact, in 20 years, you could buy the service of some PR firm, and they will even make you a hero in the eyes of the public eventually.
comment 5y ago · link · parent
If you have a company selling a weapon, it's pretty obvious it's going to be used to harm. That's by design.
And just like we were never able to prevent the guns to arrive in the hand of the wrong people, or make sure people using guns respect any kind of rules, why would we expect NSO clients to be well filtered and behaved?
comment 5y ago · link · parent
If the people inside are "smart, thoughtful, kind, well-intentioned people", they would have tried to work around the incentive, influence them, denounce them, or quit.
It rarely happened. Most of the time, the just take the money, and goes with the flow.
comment 5y ago · link · parent
How so? Dropbox is zero config install for linux.
> Are pretty much mutually exclusive. If you want it to be powerful you'll need to do the work to configure it.
I never said zero config, I said easy to configure. Firefox has plenty of configuration nobs, but it's easy to configure it.
> What you really want is rsync over SSH to a ZFS volume with encryption enabled, or some other CoW filesystem that lets you do snapshots and access them online.
No because that's very complicated. I've done it in the past, and just the fact I have to manage a VPS to do so is more than what I want to do.
I've used rsync as well, it's again, too much scripting, meaning to much margin for errors.
Apple Time machine for linux is what I want, with remote capabilities.
comment 5y ago · link · parent
I'm ok to pay for it but:
1 - I need the client to use encryption and be open source
2 - It needs to run on linux
3 - It needs to backup files in arbitrary locations, including spanning several partitions (one NTFS, one ext3)
4 - It needs good filtering / curation capabilities
5 - Restore should have great granularity, and I should be able to browser the archive without having to unpack it all
6 - it needs to be easy to setup. I don't want to setup my own instance or mess with config files.
I've never found a tools that could do all that. One of those always fail, and sometimes the tool promise all of them, but doesn't even manage to backup. Some backup only partially, missing a files. Some backup, and don't restore. Some can only restore the all archive. Some don't encrypt. Some are close source, or only available on Mac and Linux. Some will store wrong files, and you can't them out of the backup.
It's crazy that in 2021, the state of backup sucks so much.
So have 2 backups on 2 different hard drives for all my files. One with "way back machine", the other one with a simple cp. Then I take essential files, and I put them on a usb drive.
My only remote backup are githup repo and emails.
Any suggestion?
comment 5y ago · link · parent
But Firefox has a much better feature: tab containers. You can attach a label to a tab, and only tabs sharing this label will share states, such as cookies, cache, localstorage and so on. This means you don't need to open a new window. You can have 2 HN accounts with each a different user logged in, in 2 tabs, next to each other, distinguishable with a color.
You can use it by activating a few settings in about:config (https://support.mozilla.org/en-US/kb/containers#w_for-advanc...), but the easiest way it to use the addon : https://addons.mozilla.org/fr/firefox/addon/multi-account-co...
comment 5y ago · link · parent
Even as a freelancer, it usually takes me 10 minutes on the web to fill my yearly taxes nowaday. It used to be way longer, with queue at the tax offices, real papers to fill, etc.
But I do have a very convenient status, administrative wise.
3617.
OpenFisca: The French tax code, turned into Python(openfisca.org ↗)
2 points · by BiteCode_dev · 5y ago · discuss
comment 5y ago · link · parent
The way we got this is interestingly twisted.
French citizens requested the software used by the administration, and they managed to get it!
But, it was written in Mlang, a proprietary language created by the french administration in the 90: https://github.com/MLanguage/mlang.
Someone then decided to create an OCaml compiler that takes mlang and emits python: https://arxiv.org/abs/2011.07966
As a result, we got Open Fisca. I now think there are other techs in the mix...
A slide of the story: https://www.slideshare.net/Etalab/opening-up-the-french-tax-...
But I believe it should be mandatory for the state to provide the source of every softwares they use internally to manage our lives. Also a test suite to allow any citizen to validate their own effort to comply with the law.
Just like laws should be published as diff of the previous laws, in a VCS repo.
comment 5y ago · link · parent
Smart is like a spice, it's great to add to something good to make it better. But it can't be the main thing.
comment 5y ago · link · parent
In terms of language features yes. But, personally, I will install this version ASAP (3.10.1, I won't install the fresh one, there are always bugs to iron out) because of the great efforts toward improving error messages. Effort that will be ongoing in 3.11.
Those little things make the dev and teaching experience much, much better.
comment 5y ago · link · parent
You can now watch the entire Dragon Ball and DBZ in half the time it should take, missing nothing from the original, saving on frustration.
There are gigabytes of content, it's crazy to me some people spend years on those and just give them away as torrents, doing a better job that the right holders swimming in money.