224 karma · joined Apr 4, 2024 (2y ago) · 111 submissions
comment 1y ago · link · parent
I eventually opted to desugaring the scala completely, but we were already on the way out of scala by that point
comment 1y ago · link · parent
This was scala 2, so implicit resolution lookup was a big chunk of the problem. There's nothing at the call site that tells you what is happening. But even when it wasn't hidden in a companion object somewhere, it was still difficult because every import change had to be scrutinized as it could cause large changes in behavior (this caused a non-zero number of production issues).
They work well for anything you would use environment variables for, but a chunk of the ecosystem likes to use them for handlers (the signature being a Functor generally), which was painful
comment 2y ago · link · parent
That's fair, but what we call a monstrosity by modern standards is much simpler than porting the assembly
There were cross plaform languages before C, but they never really took off for system development the wat C did (OSs, for example were commonly written in pure assembly)
comment 2y ago · link · parent
It breaks the model of c mapping to the hardware.
Functions in C are just labels you jump to. Assuming you want to capture values from the environment you're defining the function in, you have to implement some sort of function struct that is callable, and it probably won't work with any shared libraries on your system. Also it would be slightly slower, and C programmers tend to not be willing to make that tradeoff
comment 2y ago · link · parent
As a hypothetical, let's say you believe from prior experience that being mugged has a very high probability. Let's say 50% because it's easier.
Let's also say your friend points out that you've left your home hundreds of times this year and haven't been mugged. 50% seems like a ridiculous overestimate.
Reexamining your priors would involve not only changing your mind about the chance of being mugged, but changing downstream beliefs that might be influenced by that belief (such as what public policies you support).
comment 2y ago · link · parent
It's a common phrase in the ratsphere (and its descendants).
Changing your mind is one outcome, but the implication is that it requires a complete reexamining of your worldview, as changing the internalized probabilities can have many effects on perceived likely outcomes.
comment 2y ago · link · parent
As a platform, they can probably get around counterfeit items being listed/sold, but sending one from a different seller seems it might open them up to legal risk if Amazon knows there's counterfeits floating around.
I'm sure we all accept the risk in the fine print somewhere, but that only matters until it makes the news and a politician thinks they can get reelected by going after them
comment 2y ago · link · parent
It's generally only recording private conversations that's illegal.
It feels like you didn't think about the differences between the two situations at all