And testing just now, I can't even trigger SIGFPE with division by zero (integer or float). I guess all of these exceptions are "caught" now.
1 karma · joined February 21, 2025
And testing just now, I can't even trigger SIGFPE with division by zero (integer or float). I guess all of these exceptions are "caught" now.
(edit), for instance this gives me output of "1":
#include <math.h>
#include <fenv.h>
#include <stdio.h>
int main(void)
{
double a = sin(INFINITY);
printf("%d\n", fetestexcept(FE_INVALID));
return 0;
}Not the point of the article but this is great news that I learned just now. I can finally upgrade to aarch64 chrome on my Raspberry Pis.
(Former Catholic but not a theologian or anything. See discussion here on how canonization is not a declaration of virtue: https://www.newadvent.org/cathen/02364b.htm)
(Edit) even so if you look at an untranslated version of the Politics (https://www.perseus.tufts.edu/hopper/text?doc=Perseus%3Atext...), you can see that he is using the word ἀστρολογίας (astrologias).
> A story, with different versions, recounts how Thales achieved riches from an olive harvest by prediction of the weather. In one version, he bought all the olive presses in Miletus after predicting the weather and a good harvest for a particular year. Another version of the story has Aristotle explain that Thales had reserved presses in advance, at a discount, and could rent them out at a high price when demand peaked, following his prediction of a particularly good harvest. This first version of the story would constitute the first historically known creation and use of futures, whereas the second version would be the first historically known creation and use of options.
https://en.m.wikipedia.org/wiki/Thales_of_Miletus
Aristotle clarifies that Thales supposedly predicted the weather by using astrology:
> Thales, so the story goes, because of his poverty was taunted with the uselessness of philosophy; but from his knowledge of astronomy he had observed while it was still winter that there was going to be a large crop of olives....
https://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1...
There's also a Haskell version if you'd prefer: https://www.stephendiehl.com/llvm/
Idk how to do this in python as I'm not really good with it, but in C, to make your compiler a JIT, you would `mmap` a region as writeable, write the machine code to it that you already know how to generate, `mprotect` it as PROT_EXEC instead of PROC_WRITE, cast the pointer to the region to a function pointer, and then call it. These functions may be available in the python sys package but I don't really know.
I've implemented a "JIT" that takes machine code as hex and does this. Warning: it's complete garbage with no error checking but is a good proof of concept. https://gist.github.com/martinjacobd/3ee56f3c7b7ce621034ec3e...
gcc fp.c -o fpThere was a post on /r/softwaregore recently where someone showed a progress bar on Steam that said "57/100 achievements! Game 56% complete" or something like that. I snarkily commented something about naively using floor() on floating point and then moved on.
But then I thought that that may not have been the problem, fired up emacs and wrote a C program basically just saying
printf("%f\n", 57.0 / 100.0 * 100.0);
To my surprise this correctly gave 57.000000, but in python, 57 / 100 * 100
Gave 56.999... anybody know what was up here? Different algorithms for printing fp?The virtue ethicist believes it is bad to be in a habit to lie because being predisposed to lying is opposed to the virtue of the truth. We've all known people who lie by habit and they are unpleasant and vicious to be around. I don't know if most virtue ethicists (who don't also fall into the natural lawyer camp, below) would say it is per se bad to lie, but most would say it is vicious.
The natural lawyer believes that speech has as its natural end telling the truth and therefore it is contra naturam to lie. See the almost-impossibly-extended discussion here, for that: https://www.newadvent.org/cathen/09469a.htm
For all of these groups, there has variously been admitted something like an "equivocal statement"---a statement which has some interpretation that is technically true, but not the interpretation that the speaker knows will be taken by the listener as a falsehood. For example, my friend invites me out on Friday and rather than saying I'd rather be at home, I say, "I have something going on that night." He takes it to mean that I have other plans, but I don't. But technically, breathing is "something going on" so I haven't lied. (Whether your social relationships will stand your doing this is another matter ;))
I'm personally fall in something like the virtue ethicist camp, but I do believe sometimes, in justice, a lie must be said, and not all of those situations can be covered by an equivocation.
It have noticed it usually sounds clunky in English, though it was a favorite of Latin and Greek authors. For instance, "Et lux perpetua luceat eis," is usually translated, "And may perpetual light shine upon them." But in Latin, the same root is in the subject and the verb. "And may perpetual light light them," is grammatical and (mostly) semantically equivalent in English. But it sounds clunky and looks like a typo :P
My uninformed supposition would be that it sounds clunky in English because English has less variation in word morphology, so the words are too similar when they have the same root.
As for the integer example, the integers are all easily (finitely) constructed (successors to 0 and their additive opposites), so it isn't a consistent concept to say "This is an unconstructable integer." Sets, on the other hand, are not necessarily always constructable, unless you only take the constructivist axioms.
But it isn't, in any case, an integer.
Because the integers are defined as the finite successors to the number 0 and their additive opposites. See, for instance, the construction section of: https://en.m.wikipedia.org/wiki/Integer
You can start talking about numbers that can't be constructed in this way, but then you've ceased to be talking about the integers.
There is about 10x more unesterified (absorbable) cholesterol secreted into bile than one typically eats in a normal day.
> Eating cholesterol has very little impact on the cholesterol levels in your body. This is a fact, not my opinion. Anyone who tells you different is, at best, ignorant of this topic. At worst, they are a deliberate charlatan. Years ago the Canadian Guidelines removed the limitation of dietary cholesterol. The rest of the world, especially the United States, needs to catch up.
https://peterattiamd.com/the-straight-dope-on-cholesterol-pa...
The only caveat I would is that there is weak evidence for a "dietary cholesterol hyperresponder" phenotype that is more sensitive to dietary cholesterol than the general population.
I probably have (heterozygous) familial hypercholesterolemia, so my diet (even saturated fat) unfortunately doesn't influence the (very high) levels I have anyways. I'm envious of people like you, for sure.
--fellow Latin nerd