It is a feature in Rust, not a bug :-) (I know you didn't say it is a bug.)
The error-tagged union is PgResult<bool> - which means it contains bool as the result if things go well. (The other part in the union is of course the error.)
In the original function also, it is returning a boolean: "bool has_subclass".
So anyway you have to check for the boolean as part of the logic. That is what it is doing.
The part about veering constantly to navigate the maze of internal politics is fascinating. The compromises he had to make, like not being able to put in on Github initially. The easy victories, like making TypeScript open source.
The long road to success. The obligatory advice for people writing new programming languages (Hint: Mostly, don't.). His opinion about creating a new language for AI (I agree with his insight, but still think it is possible).
Being a non-Christian and it being Christmas time, I am sharing one verse from the New Testament that is, in my opinion, useful - or at the very least, insightful - to anyone, regardless of religion.
Luke 16:10: He who is faithful in a very little thing is faithful also in much; and he who is unrighteous in a very little thing is unrighteous also in much.
I use version managers for Python, Node, Ruby, and others. But for Java, none. I have all the recent versions of Java on my Linux and Windows devices. I download the zip and extract it to a common directory "Java". Setting the path within IDEs is easy, and is mostly unavoidable (regardless of a version manager). Running standalone programs is not that complicated too.
Observations and personal opinions, after glancing through the slides:
* The entertainment industry will be transformed drastically. Music and movies will be transformed by AI to such an extent that the next generation will find it hard to believe how the industry operated.
* The moonshot will be biological research and research in general. When a breakthrough happens, it will transform our health for the better in astonishing ways.
* In terms of direct adoption, the urban-rural divide is vast.
* Less democratic countries will have an advantage over the democratic countries in terms of fast execution, unless the latter manage to integrate private-public operations effectively.
* I've liked Mary Meeker's reports since the heydays of TechCrunch. This report has a lot of details that I did not know. Nevertheless, I didn't see a single point that stood out.
Not trying to be snary, but sounds mundane in the ML/LLM world. Then again, significant advances have come from simple concepts. Would love to hear from someone who has been able to try this out.
It is very low indeed, and a large percentage of the cases are involving strains from other countries, but hopefully the number is not real zero[1], even after discounting the strains from other countries.
As far as I understand it, they used 25 human and 12 squirrel samples. Comparison was done among medieval red squirrel strains, medieval human strains, and modern red squirrel strains.
Finding: medieval red squirrel strains were closer to medieval human strains than to modern red squirrel strains.
Inference: In medieval England, leprosy spread between red squirrels and people.
Problem with the inference: If they used modern human strains too and then compared them all, it would have been a complete study.
Are modern red squirrel strains closer to modern human strains than to medieval red squirrel strains? What kind of differences are there? Is it that they evolved independently from medieval times to modern times and thus appear different? Lots of questions are unanswered.
Just want to point out that this is a free book. Direct link: [1]. Also, the real content is only a little over 200 pages. The rest is notes, references, and other resources.
With the recent advancements in AI and space technology, space militarization may become the top existential threat we as human beings face, probably topping both climate change and the depletion of essential resources.
The error-tagged union is PgResult<bool> - which means it contains bool as the result if things go well. (The other part in the union is of course the error.)
In the original function also, it is returning a boolean: "bool has_subclass".
So anyway you have to check for the boolean as part of the logic. That is what it is doing.