2,063 karma · joined April 21, 2022
There is only one safe(ish) way to deal with programmer errors: crash. Hopefully loudly and early enough so it gets discovered in testing.
The one-way traffic sign does fit in, but most commonly you see it in situations where it's actually just informational, like the entrance of a road. In this case it doesn't limit you in any way, it's not like you have to enter that road. You will see a no entry sign on the other side of the intersection anyway, which does limit you. But it does inform you that you shouldn't expect oncoming traffic.
The horizontal one-way road sign is less common, and is often used in T-junctions. There it arguably does double duty.
Reading the symbol it looks like a person prohibiting entry, crossed out. A double negative.
You wouldn't evaluate the terms naively from left-to-right.
x - x^3/3! + x^5/5! - ... = x * (1 - x^2/(2*3) * (1 - x^2/(4*5) * ... ) )
I just checked in python and you get a result that is around 1000*machine epsilon off. Not great, not terrible.
But the documentation does appear to be correct: https://godbolt.org/z/3bvP136oc
Crazy.
There is even p2p multiplayer implemented.
You might want to run generic graph algorithms on such emergent graph data structures, but usually they don't have a uniform graph interface that you can make use of. So you either would need to copy the graph over to some normalized graph data structure, or implement a uniform graph interface facade over the existing objects. The latter is usually more efficient.
Anyway, there are libraries that tend to do this decently, I think Boost does it well[1]. But there are a lot of inherent complexities and so much open design space that you can't really serve with one or even a handful of data structures.
[1] https://www.boost.org/doc/libs/1_84_0/libs/graph/doc/index.h...
It's not possible on all platforms, hence the tiers.
Apparently ARM64 macOS has tier 2 rust platform support, which might mean that that this is not true there, but maybe safe rust has some different unrelated soundness issue on this platform.
I only have very surface knowledge about the tier stuff, so maybe someone can correct me.
Money. Charging the higher end of typical consulting rates. That's your competition.
It's OK to want to help the young engineers, it doesn't mean that you shouldn't charge the company while you are at it. It would be foolish to do it for free, you effectively wouldn't do it for free even if you still worked there.