SDF font rendering has been around 20+ years though? Valve really popularized in their 2007 SIGGRAPH paper and Chlumský developed MSDF font rendering in a 2015 thesis.
If you're paying the cost of serializing/deserializing the whole game state around every reload of the worker, why bother with the unsafe type-erased PersistWrapper (which still requires you to restart the host any time the game state struct changes)? Just keep the game state entirely on the worker side, and have the host instead pass, say, a &mut dyn Write to the before/after_reload functions. The old worker can write whatever it feels like there, JSON or whatever else, on the assumption that the new worker will decode it somehow. The new worker then stashes the deserialized game state in a static Mutex<GameState> during the after_reload hook and the actual hot_update function goes back to taking just the host trait object. The big advantage here is you can change the game state struct during a hot reload as long as the deserialization can handle it. With JSON, for example, adding new fields to the game state struct would be perfectly fine: old fields still get deserialized and new fields get default initialized.
> He's also got Cleartype on and set to RGB stripe even though the OLED is not RGB stripe (though to be fair, Windows doesn't really make it clear what each page of the ClearType tuner does).
I doubt it's Cleartype, the close up photo of the U3223QE show all subpixels uniformly dimmed on the fringes. The post also says the monitor is attached to a Mac mini and a previous post about OpenSCAD has a screenshot with MacOS window decorations.
I would think leaders sometimes not following their own codes of conduct is the strongest argument in favor of having them: yes, they are obvious to everyone but they are also evidently easy to forget in the heat of the moment. It's a standard of behavior to strive for not one statically attainable. Reminders are needed and that's the purpose their deliberate codifying serves.
In fairness, Emacs has long had cua-mode for rebinding C-c, C-v, C-x, and C-z to copy, paste, cut, and undo, so at least those changes are not too radical.
There's a bit of a trick in that solution: n is assumed to have the lower two bits clear so for an arbitrary n the array would really be:
[(n & ~3), 1, (n & ~3) + 3, 0][n % 4]
where the (n & ~3) makes sure those lower 2 bits are cleared. But note that we only ever can look at the first element when n % 4 == 0. In that case, (n & ~3) == n already. And further, we only ever can look at the third element when n % 4 == 2. In that case (n & ~3) == n - 2, so (n & ~3) + 3 == n + 1. Hence the array can be simplified to the one given in the other comment.
It's a common extension but it's not standard. Both C23 and C++23 only allow identifiers to start with a Unicode XID_START character, which excludes $. And with older standards, it was just Latin letters, the underscore, and explicit \u escapes.
If you look in the project's pedantic.cmake, you'll find a add_c_and_cxx_compile_options("-Wno-dollar-in-identifier-extension") just to suppress warnings about this.
Weirdly enough that conclusion reminds me of a scene I once saw in a nature documentary. It involved a species of birds where the males showed off their "fitness" to the females by doing dangerous things. One remarkable thing was that in one particular area near a highway, a group had adapted to show off by diving in front of a car without being hit (I guess that that species already used to do that with snakes and other predators before).
Anyway, in a general sense that's a particular type of sexual selection[0] that's been observed more often: showing that you are a healthy individual with good genes by taking risks. It probably has name. I suspect that with humans it's also an instinctual way of showing off who is the strongest in your peer group, without the sexual selection connotations.
EDIT: turns out the wikipedia article was one click removed from what I had in mind: signaling theory! (the evolutionary biology version)
I think it does, that’s the normalisation of deviance, slotin had stopped respecting the danger because he’d worked with it so much it had become mundane, innocuous. Doing party tricks with barely sub-critical masses absolutely qualifies for me.
There is Slotin and his motivations and then there is the visual vocabulary of musume art and how it represents emotions. The quickest way to get schooled on the latter is to watch the anime for
Hakase would absolutely give Nano a demon core accessory which Nano would have to fuss about keeping properly seperated the whole day at school(Mai being the only one who can tell what it is, though not speaking up).
In the evening, Nano and Sakamoto-San would convince Hakase to defuse it, but in the last second Nano accidentally slips and the core goes supercritical with an enormous flash of blue light.
The light subsides, revealing it was just an elaborate device to make the perfect runny egg.
"The Shinonome household passed another peaceful day."