• 0 Posts
  • 35 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle






  • TypeScript is still built on JavaScript, all numbers are IEEE-754 doubles 🙃

    Edit: Actually I lied, there are BigInts which are arbitrarily precise integers but I don’t think there’s a way to make them unsigned. There also might be a byte-array object that stores uint8 values but I’m not completely sure if I’m remembering that correctly.





  • Zangoose@lemmy.worldto196@lemmy.blahaj.zoneRule
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Worth noting that there is such thing as color deficiency where specific colors appear more dull than they would for others. It isn’t technically colorblindness but could still make it harder to read these tests.

    One of my friends has this with red colors but could see everything else normally, and he described it as red looking way more desaturated than other colors (almost like a brown/gray?).







  • At least in my school the internal/external threat drills were normalized enough that they weren’t really traumatic. They were basically treated the same as fire drills. Looking back on it that fact is kind of messed up by itself.

    I could actually see that being a good argument for why they shouldn’t happen though since it might make people take the real thing less seriously if it ever happened.


  • I went to a high school on the larger side and one time some people 2 grades below me got into a fight. The next day one of them brought a gun to school. The security guards ended up catching him before anything happened but there was a solid hour where no one knew what the hell was going on and everyone was in full lockdown. The unfortunate reality is that those drills definitely save lives, even in a state with some of the strictest gun laws in the US (which I guess is a pretty low bar).



  • Technically I think python already has an intermediate step that it uses before it starts running a script that compiles it into a lower-ish language (at least the cpython interpreter does this, it probably isn’t a part of the language specification though)

    The actual line between JIT languages and interpreted languages is pretty thin since I think most interpreted languages do something similar to minimize the amount that needs to be done at runtime