Better HN
topnewbestaskshowjobs
Log inSign up

MathMonkeyMan

2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions

Submissions

comment 1y ago · link · parent

It's a well written piece. Early on, though, this caught my attention:

> As for where political correctness began, if you think about it, you probably already know the answer. Did it begin outside universities and spread to them from this external source? Obviously not; it has always been most extreme in universities. So where in universities did it begin? Did it begin in math, or the hard sciences, or engineering, and spread from there to the humanities and social sciences? Those are amusing images, but no, obviously it began in the humanities and social sciences.

He's setting up the assertion "political correctness began in university social science departments." He tries to make it look like the conclusion is an inevitable result of reason, but really it's just an assertion. I dislike this rhetorical technique.

His assertion is probably correct.

comment 1y ago · link · parent

I saw a talk at a C++ conference where the presenter floated the idea of writing a compile-time C++ GUI library for use in industrial equipment UIs.

Why parse markup and generate objects on the fly when there is exactly one UI that will ever be burned into the CNC machine's firmware? Why even bother with an object library that instantiates components at runtime when you know upfront exactly which components will be instantiated and all of the interactions that can occur among them?

At the time, I filed the idea under "C++ wizard has too much fun with metaprogramming," but he was probably on to something.

Another way to think about the idea is "let's invent a new programming language that allows us to express a single UI, and the output of the compiler will be a native program that IS an optimized implementation of that UI."

comment 1y ago · link · parent

I worked on a team that produced a distributed tracing library. We were tasked with interoperating with OpenTelemetry, or at least figuring out what that means.

My teammate said that at a previous job he wanted to add OpenTelemetry tracing to some C++ code he was working on. He took one look at the reference implementation for C++ OpenTelemetry and decided instead to write his own tracing library that sends gRPC to the OpenTelemetry collector.

It's also worth noting that, at least last time I checked, the reference implementations per programming language are less like reference implementations of some specification, and more like "this is the code you use to do OpenTelemetry in this language."

comment 1y ago · link · parent

That's fine, too. I typically don't specify a pronoun. Call me what you like.

My point is that this is not the case for everybody. Some people prefer not to be called "she" even though I might guess that they're a woman.

comment 1y ago · link · parent

I write my code with the assumption that the reader does _not_ have access to a "smart" IDE.

I use `auto` when the type is obvious or doesn't really matter, and I seldom create aliases for types.

I feel like having verbose type names at function boundaries and using `auto` for dependent types is the sweet spot. I'll often avoid `auto` when referring to a class data member, so the reader doesn't have to refer to the definition.

    void foo(const std::multimap<double, Order>& sells) {
        for (const auto& [price, order] : sells) {
            // ...
        }
    }
but also

    void foo(const OrderBook& book) {
        const std::multimap<double, Order>& sells = book.sells;
        for (const auto& [price, order] : sells) {
            // ...
        }
    }
`auto` is convenient for iterators. Which of the following is better?

    auto iter = sells.begin();
    std::multimap<double, Order>::const_iterator iter = sells.begin();

comment 1y ago · link · parent

All I know is from this SQLite article: <https://www.sqlite.org/nulls.html>

comment 1y ago · link · parent

The article recommends seeking out interactions with others even when (especially when) we would avoid it.

I don't know how to make that a movement, but I'll be more mindful of it.

comment 1y ago · link · parent

If somebody is not a white man, you probably don't have to pay them more than if they were a white man.

If somebody is older, then you probably DO have to pay them more than if they were younger, because older candidates likely have more experience and have correspondingly higher salary expectations.

So there's that. Now suppose you have an older candidate who is not demanding high seniority pay. In that case they should be on equal footing with the younger candidates, right? Well, no. There's the double standard of "if you're so old, why aren't you above our pay grade? Shouldn't you be a manager or something?" That I don't know how to fix. Then there is the more overtly discriminatory "I'd rather hire the young candidate because old people are slow." Maybe what it really comes down to is "I don't want to work with my dad."

comment 1y ago · link · parent

> The negative effect of "fake diversity" is that it leaves everyone else wondering if the minority employees actually know what they're doing or if they were hired to make the company look good.

This is the most insidious thing, in my opinion. If you're already a hater, now you can unabashedly claim the moral high ground. "Did she interview well, or was she a diversity hire?"

comment 1y ago · link · parent

You might put "they/them" next to your name if you prefer not to be referred to by a gendered pronoun.

comment 1y ago · link · parent

You'd do better to point out which distinction you think the parent poster is missing.

My guess is that Prometheus cannot do distributed tracing, while OpenTelemetry can. Is that what you meant?

comment 1y ago · link · parent

Is that why some structs have "char reserved[16]" data members? I think I saw this in NGINX, though that might have been to allow module compatibility between the open source offering and the paid version.

comment 1y ago · link · parent

Which pool operation is made more costly by the linked list? Both allocate and free are constant time, and trivial too.

The only thing that I can imagine being faster is a bump allocator, but that precludes free.

comment 1y ago · link · parent

LLMs can do an impressive and heartwarming rendition of Jesus: <https://www.twitch.tv/ask_jesus>.

comment 1y ago · link · parent

Scheme has a "hygienic" macro system that allows you to do arbitrary computation and code alteration at compile time.

The language doesn't see wide adoption in industry, so maybe its most important lessons have yet to be learned, but one problem with meta-programming is that it turns part of your program into a compiler.

This happens to an extent in every language. When you're writing a library, you're solving the problem "I want users to be able to write THIS and have it be the same as if they had written THAT." A compiler. Meta-programming facilities just expand how different THIS and THAT can be.

Understanding compilers is hard. So, that's at least one potential issue with compile-time programming.

comment 1y ago · link · parent

It's like the sci-fi trope about "who has a soul." Write about something interesting instead!

comment 1y ago · link · parent

The author isn't trying to profit from the reader's attention; it's just a personal blog. An ad-based business would. Neither is right or wrong, but the latter is distinctly annoying.

comment 1y ago · link · parent

The only way to test this would be to have your anecdote together with the complete marketing profiles of your friend and his wife. If such a profile could even be compiled in principle, from it we would be able to tell whether your friend or his wife had generated any non-audio pool-related signals, or whether they had seen other pool-related ads recently. Also, it'd be nice to know how often people in their marketing categories receive ads for pool fencing. Could be an astonishing coincidence.

comment 1y ago · link · parent

I can put together a good powerpoint presentation -- one that isn't just bullet points and fluff.

It takes me forever. It's like preparing for a talk at a tech conference. I spend hours and hours off the clock refining the slides, the script, and rehearsing the timing.

Nobody's going to put in that effort if they have to present multiple times per quarter, especially if they know that nobody cares and that it doesn't really matter anyway.

comment 1y ago · link · parent

"Please" is for your sake, not the bot's.

comment 1y ago · link · parent

I write a cover letter if there's a field for it. I don't know if it matters.

comment 1y ago · link · parent

I got some "ad" vibes, but nothing specific comes to mind. Maybe more like "this is a fluff piece." Better worth the time to publish if someone is paying you.

comment 1y ago · link · parent

I think that on some level, Julius knows. He's just very good at avoiding it.

comment 1y ago · link · parent

You describe the psychological motivations for gambling.

comment 1y ago · link · parent

If I were to buy health insurance, it would cost between $400 and $800 per month. It would likely not cover me from financial ruin anyway. If I'm uninsured, I receive treatment and never pay the bill. Maybe this affects my credit, but it is not financial ruin.

In reality, I get good health insurance through an employer. When I am employed.

$1000 is nothing compared to the expense of being insured.

comment 1y ago · link · parent

My understanding is that they had a programmable card. This might have been just before chips became widespread in America. Or, maybe there's still a way to withdraw with only the information visible on the card.

comment 1y ago · link · parent

Email clients would probably still parse URLs into links. People would click them. Then people would prefer links that didn't look like gobbledygook, so email clients would start supporting extensions like parsing of [markdown-style links](https://gobbledygook.com/ddkf878dfjlsfd). And then we would arrive at HTML.

comment 1y ago · link · parent

Yes, but you have to know that.

I got a call from "Bank of America," and they smoothly talked me into giving them my debit card PIN. The trick was they had gotten into my online banking beforehand. "We've detected possibly fraudulent activity on your account." Then they read me real transactions from my actual account. "To be safe, let's lock down the account. For this we need more information for authentication, though." Probably started from a phishing thing that I fell for online without noticing. It was pretty clever of them. Not so easy to steal from a checking account without leaving a trail, unless you have the PIN. Then the main risk is to whomever was on camera at the ATM withdrawing as much cash as possible before the account was automatically locked down.

The next day, I got a call from "Bank of America" telling me that I'd been had. Fortunately they just credited the money back into my account. About $5000.

The main difference is that the first call wanted me to give them information, while the second call advised only "go into a bank branch in person."

The article's advice is correct. If someone asks you for info, tell them you'll call them back. It is almost certainly a scam. Calling back the possibly spoofed number at worst wastes a little time being on hold, and at best saves you or the bank a lot of money.

comment 1y ago · link · parent

Which physical confrontations you handle yourself and which ones you outsource to police is a difficult question. The problem is not so much how you answer the question, but how many people in a large society will choose the "wrong" one.

And I think it's better not to refer to strangers on the internet as cowards. How would you feel if somebody responded to your opinion by calling you a name?

comment 1y ago · link · parent

the best subset
1
151617
38