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 4y ago · link · parent

Indeed, for the hospital it's probably part of the story: directors are now not required to have been doctors before.

Maybe having pairs (one doctor, one non doctor) for those jobs would be a solution.

But it's probably not the only problem.

France has a budget problem, it's been borrowing more and more, and producing less and less. We can't maintain our way of life without cutting some spending, and you do it where people complain less, or where consequences will be seen way down the road.

comment 4y ago · link · parent

Salts are a thing for this very reason. And some hashes like scrypt can be parametrized to take time no matter what.

There is no rainbow table entry for 0123456789+=i=i_fy82dnuf720g%2+70)(k$0@*qsijyn9&19n@1r0-l4ee) with 10000 scrypt rounds.

We are not in 2005 anymore, and we have better tools than md5, or even sha1 to do the job.

comment 4y ago · link · parent

Indeed, and the surprise is that... it's a surprise to many.

I think inertia allowed things to go sideways for a long time in a lot of professions, without paying the price for it soon enough. It stayed unseen for long because those jobs are often not affecting directly the structure main goals, like sales, manufacturing or field agents. They are support jobs, and help the structure maintain its integrity on the long run.

So it takes time for the problem to be detected, and for the top to even become motivated to fix it. It's quite possible they didn't even know it was a problem, or didn't think it was important. Hell, the person currently in charge have likely arrive at the post way after the decisions to destroy those jobs has been taken, years after years. Each year, one small increment at a time.

We are seeing an extreme version phenomenon in the health system in France. Extreme because it touches more than support jobs. Hospitals are full of exhausted staff that are asked to make yet another effort, "just this once". Getting appointments for specialists now take months, even for repeated sessions. Doctors are making much less money than I do in IT, for much more work, responsibility and administrative pressure. This frog has been boiling for quite some time.

comment 4y ago · link · parent

They give you a beautiful piece of paper, and when you order something on it, the waiter tells you it's not available.

After the 10th item on the menu not being available, you start to understand that the menu is more like a checkbox a restaurant must have to appear worthy of the name, rather than an actual useful object.

Not all restaurants are like that in Bamako of course.

But it's a great fun to take new comers to diner, and let them be puzzled for a while until reality sink in. I still remember my first time, my colleague looking at me ordering ice cream with eyes saying "oh, sweety...".

comment 4y ago · link · parent

That's the problem with unknown unknowns. You cannot define them. We just know they exist, because the first thing science teaches us is the vast amount of thing we are ignorant of.

What you can define, however, is the asymmetry of risk.

For example, if a system is very complex, introducing series of intense rapid changes to it has chances of creating a strong disturbance because of cascading compounding effects on dependencies of said system. And because of the sheer size of the system, we cannot model it all, and hence we cannot predict such consequences and certainly not protect ourselves again them.

If you highly depend on the system stability, then a strong disturbance has in turn a high chance of being in your disfavor.

Nassim Taleb as a great bit about this his incerto.

In the case at hand, the asymmetry is in not in our favor, and we should be prudent. And we are not being prudent.

I'd say the irrational hand waving is rather from the people driving blind, yet stating we are doing just fine because most of the time we are arriving at destination just fine.

Especially since the first people stating we are doing just fine are the ones that have a huge conflict of interest in the matter: the ones performing the changes and expecting to benefit from it.

Now I understand that often the debate is full of facebook mums, which doesn't help giving a lot of credibility to the argument I'm raising right now.

Still, I think it's important we remain alert and objective about the matter, and I don't think any side is. Certainly not when so much money is involved.

comment 4y ago · link · parent

Yes, but that wouldn't cover you for the unknown side effects of having a partial gene transferred to another specie with no way to know if in another context it could be express differently, with powerful effects.

The problem with complex systems with million of inter-dependent variables is that the unknown unknowns are too many and the only effective filter is time. However with those technologies ability to introduce powerful changes very fast, and little incentive from companies making them to allocate a lot of time, resources and prudence to study their aftermaths, the asymmetry of risk is not playing in our favor.

comment 4y ago · link · parent

The infrastructure and services are awesome. Everything is easy and simple, quality is top noch and communication is easy if you know English.

It was the most comfortable Python training I ever gave.

comment 4y ago · link · parent

While it is not something common, it just happens.

In Australia the food culture is you can customize almost anything on the menu and customers expect to be able to pretty much choose whatever combination they want as long as you have the ingredient and they can pay for it.

In France, a menu may not contain something you can eat, but some restaurants will create a full dish for you on the spot. It's very common restaurants with a Michelin star for example: as a veggie and foodie, I get regularly this treatment since french cuisine is very centered on meat. Some restaurants have the menu changing every day (I ate in one this week) depending of the farmer's market. The waiter just let you what's available. I know of at least one restaurant with no menu: you express a theme, and the chief will try to invent something matching it.

In Thailand, there was a restaurant were I used to go that had a regular menu for tourists with high margin meals, and a secret menu for regular customers that was actually good.

In Mali and Argentina, some restaurant menus are fake. You can't order most items, while there are items that you can get pretty much everywhere (riz au gras, pollo a la milanesca) even if it's not in there.

Now, it's tempting to decide that one path is optimum and shape society to only provide it. However, you kill diversity, margin of security, innovation, charm, and so on.

Don't get me wrong. Making the happy path the easiest and proffered way is OK. Offering a digital menu and payment system as a main option is great.

But making alternatives close to impossible is, at best, a good way to end up with with a bland life, and at worse, will create a dangerously inflexible and intolerant system.

It's why we should keep cash, paper forms and phone support despite the automated main experience been more efficient when all goes well.

comment 4y ago · link · parent

Just like they prefer having the great firewall protecting their internet connexion ?

comment 4y ago · link · parent

Was in Norway 2 weeks ago.

Went to several restaurants, took the train, stayed at a hotel. I didn't have to use my phone even once for anything.

As a tourist, the only adjustment I had to make was how comfortable things were and polite people were.

comment 4y ago · link · parent

So if you lose your phone, forget your phone, if you don't have any battery, or if you have any internet issue, you can't order.

You cannot have the whole menu in front of you, you have to scroll and change sections. If it's cold, you can't order without talking your gloves off, if it's sunny, you better have a very bright phone or the menu will be unreadable.

As everything in China, you cannot pay without being electronically tracked, and you can't give a tip without going through a system that will likely take a cut. I will refrain to reach the Godwin point here since I assume it's been debated ad nausaum.

And of course, if something is not on the menu, you can't order it.

As usually with systems that are 100% digital, it gives you zero margin of maneuver outside of the happy path.

I don't want every restaurant to turn into a Mac Donald. If I want Mac Donald's, I go there.

comment 4y ago · link · parent

The problem with this reasonning is that it relies on potential, on hypothetical, on hope.

But the problem is not, it's just physics, and it's comming for sure.

Not attempting to solve it with what we know right now because we might pull off something out of our sleeve at some point doesn't seem neither rational nor scientific to me.

However, if we do tackle the problem, we give ourself a margin of security that we can later on remove if we actually manage to innovate out of out petri dish.

comment 4y ago · link · parent

Agreed, but remember we likely see the universe with massive blind spots. Maybe given enough time, an aquatic specie would find a way to make tech, manipulate energy and develop society in ways that require a physic we know nothing about. Or maybe using something we know, but could not think of using that way because of our biases.

We are a very young civilization after all, the quantity of things we don't know is massive.

comment 4y ago · link · parent

It implies that people on HN are intelligent enough to understand that analogies are not meant to be a one of one match instead of using it as an excuse to prepare for a twitter like outrage.

comment 4y ago · link · parent

People smoke, use drugs, over eat and drive drunk if allowed to do so.

Socially, people go back to abusing spouses, practice deshumanizing religious acts, elect politicians that just lied to them and buy products that have let them down before.

We do a lot of things that bad for us, that doesn't mean it's a good thing.

If heroin was legal, I'm pretty sure the company selling it would make a good quarter report as well.

It doesn't mean apple doesn't do a lot of things right. It does. People are not very technical, they want sane default. They don't want to fiddle with tech. And apple provides that. In exchange, however, people accept the lock in.

comment 4y ago · link · parent

I'm starting to think the reviewers have a quota of rejection to fill up and they reject apps randomly over some arbitrary concerns to meet it. Or maybe just to show they are doing they job. Or worse, the app store off shore validations, so the sub contractors script it to reject random stuff to pretend they have humans behind it.

comment 4y ago · link · parent

Yep, typo.

I like the way he models the problem from first principles. Economic views have a tendency to hand wave the laws of thermodynamic.

comment 4y ago · link · parent

Because there is an homeostasic relationship between the co2 in the ocean and the air, and it always end up balancing out automatically.

comment 4y ago · link · parent

Not a surprise, since co2 is an oxide, and therefore very stable in the athmosphere. It would take a huge amount of energy to remove it, and we don't even stop putting it in there.

Janvici had a nice way to put it: the 1.5C are already signed for, which means we won't ever see the climate of today again in the next 5000 years.

comment 4y ago · link · parent

Unfortunately the credibility of your testimony is diminushed by the fact you are using a throwaway.

comment 4y ago · link · parent

I'm just giving you a summary of the rational.

As for it was a good idea, this has already been debated and acted upon, there is no need to repeat exactly the same arguments.

You will find the detailed rational in the PEP, and link to the various discussions.

comment 4y ago · link · parent

The better error messages alone make it worthwhile to upgrade. The trend started in 3.10, and it already made a difference for me, my coworkers and students.

But remember that while it's great to play with it freshly out of the oven, and that you might want to test your projects/libs with it, we should wait a bit before migrating production.

Indeed, every first release of a new major version of Python eventually important bugs that get ironed out in a later patch. Also, some libs on pypi may simply not be compatible with it yet, breaking your pip install.

I usually wait until the 3rd patch myself, after many years of paying the price of greedy upgrades.

comment 4y ago · link · parent

There was a long debate about this, and the conclusion was:

There is one way to read toml, but a lot of ways to write it (do you preserve formatting, what do you do with comments, do you allow partial updates...). Therefor reading is easy to get right, but writing less so, and once it's in the stdlib, we can't make quick changes to the API.

Since reading is already very useful, and tomli author's is ready to provide that for free, let's include it now and see writing later.

comment 4y ago · link · parent

So, TCP/IP + dns for satellites?

Or mesh networking?

comment 4y ago · link · parent

Also, the first accident (there is always one) redirecting the beam to a populated area is going to be so spectacular I doubt it would recover after it.

comment 4y ago · link · parent

Only if you wish to collect tasks where you schedule them, accumulate the results and don't need to limit concurrency.

comment 4y ago · link · parent

At some point even those tasks must be cleanly stopped and unless you want to play erlang and "let it crash", the actors have a lifecycle as well. Making it explicit will avoid much pain, and ease testing a lot. Also it will make resources consumption more predictable.

comment 4y ago · link · parent

It gives good pointers but it falls short on the usual suspects for an article on asyncio.

When teaching it, it's important to emphasis:

- await is locally blocking, so you should isolate linear workflows into their own coro, which is the unit of concurrency.

- to allow concurrency, you should use asyncio.create_task on coro (formerly ensure_future).

- you should always explicitly delimitate the life cycle of any task. Right now, this means using something like gather() or wait(). TaskGroup will help when it becomes mainstream.

A HN comment is not great to explain that, but if you read the article, you should investigate those points. There is no good asyncio code without them, only pain and disapointment.

comment 4y ago · link · parent

idempotence

comment 4y ago · link · parent

Wisdom for ansible would be to ditch the dsl and expose a pure python declarative api, with imperative escape hatches and a set of best practices + conventions encouraged by templates anf linters.

Instead, we get a terrible dsl baked in a bad markup language that is hard to write, painful to debug and impossible to maintain.

That you have to come up with concepts like an inventory, fact and magic variables should have been your first clue that they were reinventing badly what any language ecosystems provides for free.

And the worst is, ansible is probably one if the best deployment systems at our disposal.

1
818283
184