Formerly u/CanadaPlus101 on Reddit.

  • 0 Posts
  • 34 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle



  • CanadaPlus@lemmy.sdf.orgtoProgrammer Humor@lemmy.mlIEEE 754
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    3 days ago

    Which they tend to do a lot. Like, the moment a square root or trig function shows up.

    Even without it’s pretty easy to overflow a fraction stored the way you’re describing. x=1/(x*x+1) does it in log time. There’s really not a lot of situations where exact fractions work, but purely symbolic logic wouldn’t. Maybe none, IDK.

    Edit: I mean, I guess it’s all symbolic. What I’m trying to say is that if you’re at a level of detail where you can keep track of the size of denominators, native support for a type that hides them is counterproductive. It’s better to lay out your program in such a way that you just use small integers, which is guaranteed to be possible in that case.















  • No way. You notice how he implies he broke the rules and is being punished for it? This was the diary for his commanders and/or military police to “secretly” read. Defectors pretty much give the same story - corruption and crime is ubiquitous, nobody follows the rules when they can’t be caught.

    Human nature is pretty unremarkable for the most part, but one thing we have going for us is that the majority of people never buy the propaganda, regardless of what it is and where they are. You can see that in history, in modern authoritarian states, and even in the West about propaganda I personally agree with (save the planet! vaccines don’t cause autism! covid is real!).