If you don't want to drink raw milk but would like to enjoy a fresher, more plain milk taste, I strongly recommend whole microfiltred milk.
I don't know if it's available everywhere, but it's a process that is legal in France as an alternative to pasteurization, and it preserves some of the milk original qualities, albeit not all of them.
I have a personal, non proven, theory about Salmonella. I think it used to be a in a lot of food, but we didn't care most of the time as we were used to it. With things getting cleaner, we got sensitive to it, and it's now a problem because our immune system can't fight it as well and people get very sick out of it.
I remember we used to get eggs from an old lady in my mothers village when I was a kid. Dirty eggs, full of chicken crap, very cheap (5 francs a dozen).
They had a rich and flavorful taste, texture was full and round, and you felt like eating a ray of sunshine at breakfast.
One day friends from the city that ate only supermarket stuff came by, and ate the eggs. They loved it.
The eggs could have been marinaded in salmonella but if you cooked them (which you did?) they'd be sterile and safe afterwards. So maybe a coincidence or something.
Don't knock it, it's still useful evidence even if just one data point. I don't like the HN habit of pinning anecdotal on things just so as to dismiss them.
That's my take on it as well. Fast apu does use asyncio which may have speed avantages in some circonstances. But the main takeaway and the killer feature is the fact you build your api just declaring functions signatures.
You are declaring the types of the parameters, and FastAPI parses and enforces them for you. This saves quite a bit of code, and lets you focus on your business logic. Writing the code this way also allows FastAPI to generate a meaningful description of your API, which can be schema (such as Swagger) that tools can use to generate clients, or it can be documentation pages for humans to read. Any good documentation will still require you to write things, but this gets you further, faster than using something like Flask.
This example[0] takes these concepts even further.
Or just glance at the summary and see that it has nothing to do with @app.post.[1]
FastAPI has also properly supported async routes for longer than Flask, from what I understand.
(I've never personally used FastAPI for anything serious, since I have rarely used Python for anything other than machine learning for the past 5+ years, preferring to use Go, Rust, or TypeScript for most things, but I am aware of it, and seeing its claims misrepresented like that is mildly annoying. FastAPI is far more appealing to me than any other Python web framework I've ever seen, and I've only heard good things about it. Based on my experiences in other languages, their approach to writing APIs is absolutely a good one.)
Typing is the base for many reasons I love FastAPI, so yes it is useful. And I speak as someone who has used it in production on multiple projects, and even converted some from Flask (but not because of speed).
Far from "fast to get going", starting with FastAPI is slower actually, but it takes you further (as you pointed out). The train of thought that "typing" leads to "fast to get going" which leads to "fast" in the name... Let's say I don't buy it.
The link to "performance" is difficult to miss, I don't think that is a coincidence. And it's OK. If this is what matters to devs that much, they would be stupid not to highlight it. I'm actually happy people are using it, even if for the "wrong" reasons.
You think no one cares about the convenience of having the type system do a lot of the work for you? Or being able to autogenerate client libraries? I find that position confusing.
Proper async support is decently important to me in any language or framework, but in the real world, I haven't often run into other developers who care much about that.
Async in Python is a huge deal as it is in any language, yes. For very real reasons (cutting down on incredible amounts of confusing boilerplate) to very lame reasons (it's been memed into developer consciousness enough that it becomes a primary yes/no gate for development teams).
It's not that. Fast API comes with a way to declare python types to get for free:
- URL params, forms and query string parsing and validation
- (de)serialization format choice
- dependency injection for complex data retrieval (this one is very underrated and yet is amazing for identification, authentication, session and so on)
If the latter requires you to do your own mini router to handle each verb separately, then yes. It greatly improves readability and reduces boilerplate to have the ability to have one handler per path x verb
You'll note it's ironic we want to replace the natural albedo from the ice we are melting instead of trying not to destroy it in the first place. Espacially since said system has been proven to work and be life sustaining for millions of years.
To me it's like startups creating robot bees: finding an inferior expensive potentially dangerous solution to a problem that was already solved for free since forever.
But you can't make money with preserving the health of the patient. Better have it sick and sell him pills.
It would be nicer in many ways if we could just use the natural ice sheet, but AFAIK by now we cannot rely on it, even if we magically removed all the political problems and suddenly started doing the right thing. Based on available information it's possible, or plausible, that irreversible processes are already under way.
I'd say the priority should be against the threats to the existence of people. Consequences for the main guilty parties is an important but separate issue. I do hope that this whole crisis could contribute to curbing corporate power (by gaining widespread popularity and push for this, among young people especially). But the priority is keeping the patient alive, because without this the question of also making them a good person is moot.
edit: I also think based on the descriptions that some of the ideas could be straightforward enough to just be executed by government services (akin to firefighters or coastal guard) without any contractors, but this more of a question of how the governments function, possible corruption etc.
> has been proven to work and be life sustaining for millions of years
This statement is wrong for a few reasons. Firstly, this is a system that repeatedly produces minor ice ages that transform large portions of continents into barren ice deserts for tens of thousands of years. It is also capable of producing major ice ages that last millions of years and cover large portions of the entire Earth in ice and this happens if there isn't enough CO2 in the atmosphere. Not exactly life sustaining. Secondly, ice, the climate that produces it and the Earth at large have no concern for the life that lives upon or within them. They are decidedly unforgiving and will kill any lifeform that doesn't fight for its life against them. Life exists in spite of the abiotic world and in direct conflict with its perpetual slide towards entropy. Given a long enough timeline this system will change into a state that is largely hostile towards human life. It is a massive misnomer to call it life sustaining.
The ice is a reason for SRM. There are proposals to use aerosols specifically to protect arctic ice. Otherwise it's very likely to melt away before we're able to reduce emissions to zero, much less draw CO2 back down to safe levels.
The making robot bees analogy is good but I think you might be overlooking an important angle on the problem.
This is like inventing robot bee replacements, if bees were going extinct (which some people were worried about for a while, and some still are) … and while Bee populations may be collapsing but they don’t seem destined for extinction, just massive population losses that can in time recover like humans did from the Black Death… and it’s not even universally bad among all bee species.
However unlike Bees, of one species or another, which have a very clear path to repopulation and recovery overall if we don’t keep dumping pesticides on them (or at least keep looking for ones that don’t hurt them as much which has absolutely been an active area of research) … the climate may not be able to return to normal.
We’re not even sure that if we had a magic wand, and could change all human experience and industry across the whole planet so it was net carbon neutral (so neutral across co2, methane and all the other greenhouse gasses combined) starting right this very second. We might still have passed the tipping point and just be waiting for the current warmer climate based on current co2 levels to melt enough permafrost that we expose unaccounted for clathrates or deeply buried rotting bogs that will start putting out methane and continue the slide into all the predicted outcomes of uncontrolled climate change.
This system is so big and complex that we’re frantically trying to analyse it while simultaneously trying to frantically map the scope of the known unknowns meanwhile there are all the unknown unknowns that exist across the planet and every single major study acknowledges whenever they talk about the uncertainty in their measurements or their models or their survey data.
It’s one thing to invent something useless. It’s another thing to not have a plan B. Inventing robot bees is a plan B to help prevent mass starvation if bees were to go extinct, not very likely and even if they did not all crops need bees, plenty of other insects pollinate plants as well, which is why the robot bees is a little silly in practice but not in principle.
Studying geo-engineering is the Plan B for if we can’t turn back the clock due to either collective failure to change our ways enough, or fast enough, or soon enough… and when soon enough may have been yesterday and we may not even know it was yesterday until years from now when something else happens we didn’t fully understand or predict… it’s just stupid to not have been researching some plans B, C, and D. We shouldn’t necessarily give any of these more money than the current effort to actually fix the problem at its root cause but we should still be starting the research now before it’s too late for any possible plan to help. As to how much money, that’s a political issue thats too complicated for a simple HN comment that’s already getting quite long.
I don't know if it's available everywhere, but it's a process that is legal in France as an alternative to pasteurization, and it preserves some of the milk original qualities, albeit not all of them.