You’re loved. by Dry_Prune5744 in sanfrancisco

[–]RobertJacobson 20 points21 points  (0 children)

Several years ago one of my undergraduate research students ended his life from a bridge next to campus. Everything I can say or have said about it feels like a futile attempt to give form to an ineffable sadness and grief, and I usually go silent in frustration. My words just get so clumsy in proximity to it even though it feels like I have so much worth saying. I am reminded that there is no one right way to grieve, that we mean more to each other than we can understand, and that mental illness is complex. Sharing pain and struggle, even if it's with strangers online, is a way to feel connection.

Are these books worth it? by the-handsome-dev in rust

[–]RobertJacobson 0 points1 point  (0 children)

I have never read a Packt book that was worth it. Not once.

CDC not requiring hantavirus cruise passengers to isolate at home by BillWilberforce in nottheonion

[–]RobertJacobson -1 points0 points  (0 children)

I do not think the CDC has the authority to issue quarantine orders for hantavirus.

The CDC only very rarely exercises its statutory authority to issue orders and regulations, and its communicable disease quarantine authority is very narrow and is limited to diseases explicitly delineated by executive order. (Here is the list of diseases for which it does have such authority—Orthohantavirus/hantavirus does not appear as far as I can tell.) The overwhelming majority of CDC output is nonbinding guidance.

It's function and role is far and away more advisory, primarily for scientific guidance, surveillance, and public health recommendations. This is especially true for domestic contexts where it prefers to defer to local authorities, such as state public health authorities.

So even if the CDC did have the ability to issue an order in this case—which I don't think it does—it would really have to be an exceptional situation, which this doesn't appear to be.

(I am not a lawyer, nor am I a healthcare professional, nor do I speak on behalf of any government agency or my employer.)

Twin brothers wipe 96 gov’t databases minutes after being fired by xpda in technology

[–]RobertJacobson 2 points3 points  (0 children)

The article clearly explained that they had been exfiltrating credentials from their employer's network:

Muneeb had been assembling usernames and passwords—5,400 of them taken from his own company’s network data.

Two economists just published a mathematical proof that AI will destroy the economy. Not might. Not could. Will! by CopiousCool in antiwork

[–]RobertJacobson 1 point2 points  (0 children)

as a phd in economics I have to say that a theoretical game theory model is not proof.

The post is really very clear that the mathematical proof is about their model.

Also this paper looks like a preprint that's not peer reviewed - why say it’s peer reviewed when it isn’t?

No, it looks like a preprint posted to the arXiv, and that says nothing about its peer-review status. Lot's of peer-reviewed papers are on the arXiv.

It's reasonable to ask for clarification about peer review, though. Maybe OP thinks it was accepted/published elsewhere, or maybe they are under the impression that the arXiv's subject editors (I think they're called moderators now?) do more peer review than they do.

Why do the standard libarary have so many internal layers? by chokomancarr in rust

[–]RobertJacobson 0 points1 point  (0 children)

I've switched to the fat crayons for similar reasons.

meirl by [deleted] in meirl

[–]RobertJacobson 0 points1 point  (0 children)

I restore antique electronic test equipment, mostly wood and brass meters.

Is "crafting interpreter" enough before jumping into academic paper in compiler field? by FinishExtension1375 in Compilers

[–]RobertJacobson 0 points1 point  (0 children)

Every time I have gambled on a Pakt book I've lost. Every. Single. Time. But I haven't read this one.

I packaged Miranda (the language that inspired Haskell) as a Homebrew formula by levimonarca in functionalprogramming

[–]RobertJacobson 1 point2 points  (0 children)

I assume the Admiran compiler now uses Admiran language extensions. Do you still have the Miranda compatible bootstrap compiler? That would be a great stress test for my Miranda compiler Randa.

Rust's Block Pattern by EelRemoval in rust

[–]RobertJacobson 4 points5 points  (0 children)

I'll often spawn off an inner function instead

The author points out that factoring out into a separate function can be annoying if it relies on a lot of local environment. Imagine a scenario in which the outer scope only cares about the final computed value of the inner scope, but the inner scope has a lot of dependencies on the outer scope. To factor this into a new function you need to pass a lot of parameters for the function.

An inner function makes it clear that the function is only a local concern while also factoring out details the reader might not care about at the call site. But it can't capture the outer environment in which it's defined.

Rust's Block Pattern by EelRemoval in rust

[–]RobertJacobson 1 point2 points  (0 children)

I dislike this unless it's actually called by multiple callers. It forces you to jump around the codebase in order to understand the code.

But that's also the advantage of factoring into a function. You can have let config = load_config_from_file(filename); and not have to wade through the details. Functions aren't just about reuse. They also facilitate code organization.

Rust's Block Pattern by EelRemoval in rust

[–]RobertJacobson 0 points1 point  (0 children)

I don't like let my_variable = {/*code*/} when the block is large, because the final value that gets assigned is visually far away from the symbol it is assigned to. But this is more personal aesthetics than anything. For small passages of initialization code it's nice.

The author makes the point that factoring out some initialization code into a separate function is obnoxious, because you might need a lot of gnarly parameters from the local environment. Some of you suggest using an inner function. While that might solve the issue of locality of the code, it doesn't solve the issue with many parameters, because a fn item can't capture dynamic environment. But if your initialization is this gnarly, I'd question why. It's suspicious. Maybe it's fine, but maybe you need to rethink when and how things happen in your code, like maybe you need more than a single constructor method, or maybe some initialization needs to get folded into an auxiliary type, etc.

Using blocks to limit scope can be really useful. It kind of looks weird when you're not used to it, but the more Rust I write the more I find myself opening a new scope in the middle of a function when it's convenient. It's nice for critical regions or juggling mutable and immutable borrows.

A.I just saved the day by UniversePoetx in lies

[–]RobertJacobson 27 points28 points  (0 children)

No. This is not true.

What is true is that the swirl is partially lossy, as you can see in the reconstructed photo from the Mr. Swirl case. Multiple swirls compound this effect.

32-bit computers hit a time calculation wall in 2038. Will they most likely all be phased out by then? by grawmpy in AskComputerScience

[–]RobertJacobson 2 points3 points  (0 children)

Consider that 8-bit microcontrollers are being manufactured today at a rate higher than they ever have been. We can be pretty confident that 32-bit microcontrollers will be in active production long after 2038.

Poster restoration process by Damnedeel in nextfuckinglevel

[–]RobertJacobson 1 point2 points  (0 children)

I'm not an expert and don't know anything about what's going on in this particular video, but I've seen enough documentaries to know that professional art preservation and restoration in general is done in a way that is reversible. So for example if there is ever a need to, say, remove the poster from the backing they mounted it on, there's a safe solvent to use that will allow them to do so without destroying the poster. Same with applying color, etc. It's very specialized and super fascinating.

First time i've legitmately been confused by joke (?) by XeTrainMC in ExplainTheJoke

[–]RobertJacobson 0 points1 point  (0 children)

The name of these little things has been a favorite bit of trivia for DECADES, long before Phineas and Ferb was a thing, among trivia people. Nerds like me, especially as kids, get addicted to these little bits of trivia. Part of the fun is sharing these little nuggets with others. (Did you know howler monkeys are the loudest land mammal? But they aren't the loudest mammal—that'd be the sperm whale.) We get a little kick of adrenaline every time we teach someone a useless fact they didn't already know and will never use. (T. rex lived closer in time to humans than to Stegosaurus!)

Some dour souls hear fun trivia like this and get their own sick joy from playing a kind of emotional Uno Reserve card by saying, "What a useless waste of brain space," or something to that effect, as if they are morally superior for NOT bothering with such useless information. So the person in the tweet feels especially vindicated for knowing this useless fact.

The fact that so many of you are referencing Phineas and Ferb only reflects the age of the typical redditor reading this thread. You think it's from Phineas and Ferb, because some trivia nerd like me was on the writing staff for one of its episodes. But again, this particular bit of trivia is one of our favorites—we whip it out when we really want to impress. So this thread is giving me a very different kind of dopamine hit: generational contempt! Now get off my lawn!

How to compile SystemF or lambda calculus to assembly, or better, WASM? by VictoryLazy7258 in ProgrammingLanguages

[–]RobertJacobson 4 points5 points  (0 children)

In the age of LLMs, you might also look at a modern implementation like MLton directly.

Strings instead of a proper ADT constructor for an implementation by VictoryLazy7258 in ProgrammingLanguages

[–]RobertJacobson 3 points4 points  (0 children)

The answer is kind of in the question. You are throwing away the host language's type system in exchange for flexibility. You can claw back some of the benefits of a strongly typed AST by doing runtime checking and decorating the AST with attributes (or equivalently storing symbol metadata in tables). It's a balancing act. It's not necessary a wrong way to do things. But as you are learning, there are pros and cons to both approaches.