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

"Please don't go! Bad things might happen!"

Better, in my opinion, is a clear and easy way to "uncancel" if you accidentally cancel. But even that can be abused: "Here's a button that looks like a confirmation, but actually it's a resubscribe button." It's just too tempting to make that "number of people who resubscribed after cancelling" number a target. You think you're reminding the customer of their mistake, but really you're just optimizing the dark pattern.

comment 1y ago · link · parent

The two issues (junk fees and obstacles to cancellation) are part of the same dark pattern.

There are primary indicators that you use to decide whether to make a purchase, and then there are other (let's call them secondary) indicators.

Primary is stuff like "the advertised price" and "the claimed features/service." Secondary is stuff like "have I ever heard that this company does shitty things" and "is there going to be a BS fee added to the total right before I click 'charge'?"

Once you're in their snare, a company benefits from being shitty. Plenty of people will pay the junk fee (did they even notice?) -- the important part is that your advertised price ranks near the competition. Plenty of people will sign up for a service that is difficult to cancel -- the important part is that the price starts out reasonable and that the service is adequate.

Even if the company is run by true saints, raising that sticker price to reflect the true price is anti-competitive! We can't be the only ones being honest! And they're right. That's why a law is needed to address it.

edit: Perhaps you were being sarcastic. Felt good to state my opinion, anyway :)

comment 1y ago · link · parent

Potentially, but probably not. The benefit of a parallel-enabled interpreter would be two CPU cores executing bytecode instructions at the same time in the same interpreter. So, you could have one python thread working on one set of data, and another python thread working on another set of data, and the two threads would not interfere with each other much or at all. Today, with the global interpreter lock, only one of those threads can be executing bytecode at a time.

comment 1y ago · link · parent

Wow, TIL: https://www.anaconda.com/blog/understanding-and-improving-co...

Neat idea, but sounds like a lot of work.

comment 1y ago · link · parent

he did show up

comment 1y ago · link · parent

"w" and "wq" happen in command mode. "verb adjective object" happens in normal mode. Command mode is more like ed.

vim is vi "IMproved." Just a more featureful version.

comment 1y ago · link · parent

The point of `match` is you can combine the destructuring with the conditional. It's also why Rich Hickey dislikes it.

comment 1y ago · link · parent

Not idiomatic, but it looks like [core.match][1] could be used to "if error" unpack the map:

   (let [result (do-thing x y z)]
    (match [result]
      [{:ok false :message msg}]
       {:ok false :message (format "do-thing failed: %s" msg)}
      [{:ok true, :value value}]
       (continue-computation-with value)))
meh

[1]: https://github.com/clojure/core.match/wiki/Overview

comment 1y ago · link · parent

It's true that Douglas Crockford is not my dad. My dad is a different person entirely.

It's a bad idea to write JSON parsers that can accept comments. Comments are not part of JSON.

There are plenty of extensions to JSON, and they have parsers. Use them. Or, use a language that is already an extension to JSON, like JavaScript or YAML.

comment 1y ago · link · parent

I get "panic:" at the REPL once it loads. :(

The implementation of the [HAMT][1]-based vector in Go is [interesting][2].

[1]: https://infoscience.epfl.ch/server/api/core/bitstreams/f66a3...

[2]: https://github.com/glojurelang/glojure/blob/main/internal/pe...

comment 1y ago · link · parent

This scorpion is tough! Luckily I'm slightly better at arithmetic than it is. Benefit of being a wizard.

comment 1y ago · link · parent

Movies and music are usually made to be entertaining, but sometimes they're made as an artistic outlet for the creator.

I was listening to Schoenberg's "Suite for Piano" the other day. Did he make it to be entertaining? I don't know, interesting maybe. I wouldn't put it on at a party.

It's true that snobbery is off-putting, but if you're looking for artistic merit, then some works last longer than others. If you're looking for something to enjoy with your popcorn, then there's that too.

comment 1y ago · link · parent

"Most students paid other people to do their coursework, [...]"

I started losing interest there. Nobody wants police-style schooling, but if a university allows students to graduate who have cheated on all of their coursework (and presumably on the exams), then it's not really a "selling prestige" problem, it's more of a "this university is a joke" problem.

comment 1y ago · link · parent

Yes, but does a student in China fly to the UK to sit the exam? It it administered by faculty at the university on university grounds? Sounds costly for something whose purpose is to filter.

comment 1y ago · link · parent

At least in college statistical mechanics, the only quantum systems we studied were uncoupled spins (two states each) or a particle in a box. It's been a while, though.

comment 1y ago · link · parent

Right, but certs get out of date unless somebody does something about it, that was my point.

comment 1y ago · link · parent

like "common law"

comment 1y ago · link · parent

I've never operated a kubernetes cluster except for a toy dev cluster for reproducing support issues.

One day it broke because of something to do with certificates (not that it was easy to determine the underlying problem). There was plenty of information online about which incantations were necessary to get it working again, but instead I nuked it from orbit and rebuilt the cluster. From then on I did this every few weeks.

A real kubernetes operator would have tooling in place to automatically upgrade certs and who knows what else. I imagine a company would have to pay such an operator.

comment 1y ago · link · parent

Not that anybody asked me, but I think about it like this:

You have a field (a set of "numbers"). Multiplication is defined over the field. You want to invent a notion of division. Let's introduce the notation "a/b" to refer to some member of a field such that "a/b" * b = a.

As Hillel points out, you can identify "a/b" with a*inverse(b), where "inverse" is the multiplicative inverse. And yes, there is no inverse(0). But really let's just stick with the previous definition: "a/b" * b = a.

Now consider "a/0". If "a/0" is in the field, then "a/0" * 0 = a. Let's consider the case where a != 0. Then we have "a/0" * 0 != 0. But this cannot be true if "a/0" is in the field, because for every x we have x * 0 = 0. Thus "a/0" is not in the field.

Consider "a/0" with a=0. Then "a/0" * 0 = 0. Any member of the field satisfies this equation, because for every x we have x * 0 = 0. So, "a/0" could be any member of the field. Our definition of division does not determine "0/0".

Whether you can assign "1/0" to a member of the field (such as 0) depends on how you define division.

comment 1y ago · link · parent

> at what point does a human not realize or care that he is being actuated by a computer?

I don't know about caring, but I think that the point of the Turing test is to determine at which point a human can't tell whether it's another human. Also, I've read that it's not a particularly good test, because even pre-LLM you could craft an irritating, misspelling, troll of a chat bot and people would think it was a real teenage edgelord.

comment 1y ago · link · parent

Here's a resource for at least the first one: https://www.linusakesson.net/programming/tty/

comment 1y ago · link · parent

Three problems with documentation. Sometimes it doesn't exist, sometimes you can't find it, and sometimes you don't read it.

Well I guess the fourth problem is it could be wrong, but that just comes with the territory.

comment 1y ago · link · parent

> “A lot of the time, they’re done,” Gadea said of underperformers. “They’re burned out, they need a break. And now you’re asking them to work harder.”

I've seen that once, most recently.

Before that, it was somebody who was trying to get let go on performance grounds, thinking that it would lead to severance (didn't work out).

Before that, it was somebody who got put on PIP, but I'm not sure why, and they were personally devastated and then quit.

Telling somebody that they're fucking up and that they need to improve is one thing, that's just feedback. Creating a structure that's officially "if you don't do X, Y, Z, then you're fired"... just fire them.

comment 2y ago · link · parent

$10 of my money goes to Spotify, and $10 of your money goes to Spotify. Then Spotify pays artists based (somehow) on how many times their songs played.

$19.80 goes to one artist, and $0.20 to the other. 99:1.

edit: Maybe what you're getting at is that the person who listened to only one song should pay 99x less. Then it really would be pay-per-play. But Spotify is a subscription service. What else should they do with my extra $9.90? Send it all to the one artist? That would be interesting... but then what if I don't listen to any songs in the month? Bank it and send it to the spread for the following month?

comment 2y ago · link · parent

The New Jersey Transit app really wants me to enable location tracking for the app. It really opens up the settings app every time I buy or activate a ticket. I'm sure location tracking would really help me buy tickets and have the QR code scanned by a conductor.

comment 2y ago · link · parent

Since all of the money first goes to Spotify, what's the difference between directly play-to-artist vs. play-to-pot then to artist?

comment 2y ago · link · parent

C++ is a lot of fun, and there exist many compelling subsets, but the language as a whole is a minefield that you need years of experience to navigate, and probably can never master.

comment 2y ago · link · parent

> In theory, you could parse the SQL and build up some kind of AST on which compatibility could be built.

This is an interesting problem that I'd like to learn more about. Have you read anything about it?

comment 2y ago · link · parent

A company that I worked at had a few very large C++ related migrations, and they were all very very expensive.

The first was removing `long` from the code, since a lot of code assumed its size (is it like `int` or like `long long int`?) and as machines were upgraded it caused problems.

The second was moving to C++11/14/17. Most of the difficulty was toolchains on unixen that did not support the new versions of the language, or for which support was incomplete, or for which upgrading to a version with support broke existing builds.

The third was moving to Linux from big iron unixen. As far as I understand, this initiative is still underway. It was already underway in 2011 when I joined the company.

This is a rich company with a large, healthy engineering department. I imagine that most other companies would not or could not bother.

comment 2y ago · link · parent

It's good if you just want to talk to some sensors or add logic to a motor. I enjoy learning about all of the low level details.
1
161718
38