Better HN
topnewbestaskshowjobs
Log inSign up

rmunn

2,105 karma · joined Aug 30, 2024 (2y ago) · 775 submissions

Submissions

comment 6d ago · link · parent

I sang in a choir once, twenty years ago, that performed Benjamin Britten's War Requiem. Most difficult choral piece I've ever performed. Tritones all over the place. They are very, very difficult to sing, because our musical sense (developed on Western music) just doesn't assign anything to them at all. A fourth makes sense musically, and a fifth does too, but halfway between a fourth and a fifth? Really hard to nail that interval as a singer. Really hard. I eventually just got used to thinking "sing note X, then sing the note up somewhere in the fourth-to-fifth range above X that makes the least sense musically; that's the right note". And then I could sing a tritone.

comment 6d ago · link · parent

I think it was the Numberphile video on the Golden Ratio that taught me this fun fact: the Golden Ratio is the most irrational number possible. If you write out an irrational number as a continued fraction (x + 1/(y + 1/(z + 1/...))), or [x, y, z] in shorthand notation, then anywhere there's a large number for x, y, or z, that's a place where you can produce a good approximation. For example, pi is 3 + the continued fraction [7, 15, 1, 292, 1, ...]. The number 15 means there's a pretty large denominator there, so a small value added to 3+1/7, meaning that 22/7 is a halfway decent approximation of pi. But that 292 means that the fraction at that point is 3 + 1/(7 + 1/(15 + 1/(1 + 1/(292 + ...)))). Now 1/(292 + small amount) is a very small number, so if you drop that off, then the value you get won't be very far off from pi at all. So you can round that to 3 + 1/(7 + 1/(15 + 1/(1 + 0))) which is equal to 355/113 — and it turns out that that's quite a good approximation of pi for practical everyday uses, as it's correct to six decimal points.

But the golden ratio is defined as the number a/b that is also equal to (a+b)/a. Now (a+b)/a = a/a + b/a. And what is b/a but 1/(a/b). So the golden ratio, phi, can be written as phi = 1 + 1/phi. Now substitute (1 + 1/phi) for the phi in that right-hand side and you get phi = 1 + 1/(1 + 1/phi). Substitute again and you continue to get (1 + 1/phi) terms continuing onwards. Which means that the continued fraction of phi is just [1, 1, 1, 1, 1, 1 ...] forever.

Since there is no number higher than 1 in that continued fraction, there is no point at which you can take the approximation and know that it's better than taking the approximation somewhere else, unlike pi where you can know that 355/113 is very very close. There is no rational fraction that is a better approximation of the actual value than what you would have gotten if you went another step or two down the chain. (Proportionally speaking, of course: naturally you'll get more decimal digits of correctness the longer you go, but at no point will the proportions be better).

So that's why the golden ratio is the most irrational number. Any other irrational number has at least one point where there's a 2 (or higher) in the continued fraction, meaning there is some place you could stop the continued fraction and get a better approximation than stopping elsewhere. There is some rational fraction that is a better approximation to the actual value than other rational fractions. But the golden ratio's continued-fraction representation is just 1s, forever. And that means there is no place you can stop and say "this spot is a better approximation than the others". It's the most irrational number.

comment 1w ago · link · parent

I am going to give your short comment a much longer reply than I probably should, but there's a lot to unpack here. The biggest mistake you're making is in being too simplistic, as I'll explain in a bit.

> Wealth is not zero-sum, but it is created by work.

Yes, but not all work has the same value. A skilled furniture maker can take lumber and turn it into tables and chairs and dressers that will last, and which people will want to buy for quite a bit of money because the value they will get out of the furniture in the long run will exceed what they spend on it. A novice furniture maker can work all he wants, and nobody will want to buy what he produces. He will, in fact, turn valuable lumber into crappy furniture that he cannot sell, meaning his work actually reduces the total amount of wealth in the world. (Until he gets better, which in most professions only comes with practice, practice, practice).

Furthermore, a LOT of work doesn't happen in isolation. Each individual worker making the Model T Ford did one small part of the job. But because someone did the work of planning out the factory, each of those individual workers' work went into making a complete car, which could be sold to help pay everyone who worked on it, plus a profit that could go into expanding the business and, yes, making Henry Ford richer. (You have yet to give any reasons why making Henry Ford richer was a bad thing, by the way. You simply assumed that everyone agrees with you that rich people getting richer is inherently bad. But as long as everyone is benefiting, why should we care that the rich people are getting richer? Other than envy, what's the inherent harm?)

> When you collect a salary in exchange for work, it is because your employer deems that your work is worth more than your salary.

Thing is, your work in isolation would usually be worth far less than your salary. It's only when your work is combined with the work of many other people, working together on a goal, that it ends up being worth more than your salary. As in the Ford factory example I gave.

And that fact turns your argument on its head. Because suddenly, we can see that the choice isn't "work for less than your work is actually worth", which sounds like exploitation. But actually, the choice (for many people) is "work for yourself, growing your own food and so on, doing hard and difficult work and getting a small amount of value out of it" vs. "work as part of a larger organization, getting paid somewhat less than the total value of your work, but also getting paid quite a bit more than you could make in isolation". And suddenly that doesn't sound like exploitation any more, but more like a win-win kind of situation. I could try to work independently, creating computer programs that are good enough to persuade people to buy them... but I'm not actually a skilled enough computer programmer to do that. (In fact, many programmers aren't skilled enough to make a product people want to buy. The median, not mean but median, game on Steam makes less than $50 a year. A lot of people are creating games that nobody wants to buy: like the novice furniture maker, they are spending a lot of work to produce practically zero wealth, though in this case they aren't destroying any raw materials in the process). However, by combining my skills with that of other programmers on a team, we're working together to produce something of more value than any one of us could have made on our own.

THAT is the flaw in your argument. You're looking at each person's work in isolation, and ignoring the collective wealth that gets created when several people come together to pool their work and create something collectively that they couldn't have done in isolation. Which isn't something that just happens on its own, by the way: someone has to organize that. Which in itself is quite a bit of work, and it's only fair that the person organizing all that should be rewarded for his work. That's the company owner, the one who you say is "depending on thousands" (or dozens, small businesses also exist, don't forget) "of workers donating the surplus value of their work to [him]". But you were forgetting that that surplus value may not have existed except for the work that he did putting the company together.

Finally, one last mistake you've made:

> Collective ownership seems to work even better.

Tell that to William Bradford, the first governor of Plymouth Colony. They started out trying collective ownership, in a culture that you'd think would be one of the best suited for it (the Puritans put great emphasis on hard work and personal responsibility). They soon gave it up, because they found that when you do collective ownership instead of individual ownership, people are far less motivated to work. Don't just take my word for it, take it from the man who was there and oversaw the whole effort. The rest of this comment is not my words, but Bradford's, cited from https://teachingamericanhistory.org/document/of-property-fro...

All this while no supply was heard of, neither knew they when they might expect any. So they began to think how they might raise as much corn as they could, and obtain a better crop than they had done, that they might not still thus languish in misery. At length, after much debate of things, the Governor (with the advice of the chiefest amongst them) gave way that they should set corn every man for his own particular, and in that regard trust to themselves; in all other things to go on in the general way as before. And so assigned to every family a parcel of land, according to the proportion of their number, for that end, only for present use (but made no division for inheritance) and ranged all boys and youth under some family. This had very good success, for it made all hands very industrious, so as much more corn was planted than otherwise would have been by any means the Governor or any other could use, and saved him a great deal of trouble, and gave far better content. The women now went willingly into the field, and took their little ones with them to set corn; which before would allege weakness and inability; whom to have compelled would have been thought great tyranny and oppression.

The experience that was had in this common course and condition, tried sundry years and that amongst godly and sober men, may well evince the vanity of that conceit of Plato’s and other ancients applauded by some of later times; that the taking away of property and bringing in community into a commonwealth would make them happy and flourishing; as if they were wiser than God. For this community (so far as it was) was found to breed much confusion and discontent and retard much employment that would have been to their benefit and comfort. For the young men, that were most able and fit for labour and service, did repine that they should spend their time and strength to work for other men’s wives and children without any recompense. The strong, or man of parts, had no more in division of victuals and clothes than he that was weak and not able to do a quarter the other could; this was thought injustice. The aged and graver men to be ranked and equalized in labours and victuals, clothes, etc., with the meaner and younger sort, thought it some indignity and disrespect unto them. And for men’s wives to be commanded to do service for other men, as dressing their meat, washing their clothes, etc., they deemed it a kind of slavery, neither could many husbands well brook it. Upon the point all being to have alike, and all to do alike, they thought themselves in the like condition, and one as good as another; and so, if it did not cut off those relations that God hath set amongst men, yet it did at least much diminish and take off the mutual respects that should be preserved amongst them. And would have been worse if they had been men of another condition. Let none object this is men’s corruption, and nothing to the course itself. I answer, seeing all men have this corruption in them, God in His wisdom saw another course fitter for them.

comment 1w ago · link · parent

> So standard per seat licensing?

Yes, precisely.

comment 1w ago · link · parent

> Don't understand the billionaire hatred.

Some people never re-evaluate their assumptions. They worked at a company with a lousy CEO, therefore all CEOs are lousy. If pressed, they would acknowledge that it's bad logic, but they've formed a habit of thinking "CEO = bad" and don't break those habits easily.

Other people have never thought about it much, defaulting to whatever attitudes they've picked up through cultural osmosis. And the only billionaires I see portrayed positively in broader US culture are Bruce Wayne and Tony Stark. Other than those two, it seems like the default Hollywood portrayal is "billionaire = bad". (I'd welcome more counterexamples, it's possible I'm wrong here because I just haven't seen the right movies; this is an impression rather than a solid argument).

And some people have a worldview that says wealth is a zero-sum game, therefore anyone rich must have gotten that wealth by exploiting the poor.

There are plenty of people who don't fit any of those thought patterns, of course. But all of them are thought patterns I've observed here and there among HN comments. (And on the broader Internet as well, naturally).

comment 1w ago · link · parent

Because in many cases the answer the tool gives can be verified. For example, I often ask "What's the syntax in software ABC to do XYZ?" Then when the LLM spits out the syntax, I read the manpage (or online docs) for ABC, and double check that yes, the `--xyz` option was the right one. The LLM's answer is usually faster than scrolling through the manpage myself, reading 50 irrelevant options before I get to `--xyz`.

I've had one case where the LLM told me "You can do XYZ like this: (example)" and the online docs said "You can't do XYZ yet, we haven't added that feature, but when we do add it then this is how to do it: (example)". So I still double-check. But it's right 90+% of the time, and it saves me time since the LLM (running on massively parallel clusters of GPUs) can synthesize and associate words much faster than I can.

So that's why people are trusting the LLMs. Because they're usually right. You should never trust them 100%, though: always verify, whenever it's possible to verify, what they tell you.

comment 1w ago · link · parent

I've been using a Framework 16 with Linux on it for 1.5 years now, and everything has been smooth. The only issue I had was a hardware issue, which I would have had on Windows as well.

The issue, if you're interested, was that earlier builds of the Framework 16, including mine, could flex just a little bit while closed if something was pressing on them, e.g. if they were in a backpack with a bunch of other things. This would result in the screen actually pressing keys on the keyboard when it flexed, causing the computer to wake out of sleep mode. (They've apparently fixed that in the past year with a different material for the laptop's metal frame, which flexes less, but I can't tell you from personal experience whether it works because I have kept my laptop). For original laptop owners, they released a BIOS update about six months ago that allowed the keyboard to turn off when in sleep mode, so that it wouldn't wake the computer anymore. That solved the issue for me.

So my personal recommendation is yes, buy a Framework laptop and run Linux on it. You won't be paying for a Windows license if you don't need one, unlike with most manufacturers where the price of a Windows license is baked into the price of the laptop. (Framework isn't the only one to offer you the option of not paying for Windows, thankfully).

I see others have recommended System76; I've never used them but they also have a good reputation.

comment 1w ago · link · parent

Steam Family Sharing lets anyone in your family play the games you bought, but only as many copies at once as you bought. If my wife owns a copy of game A and I start playing it on my account (which doesn't own a copy of game A), she can play game B on her account just fine. But if she loads up game A she's told "someone else from your Steam family is currently playing that game".

So it depends on what you mean by "simultaneous play". Game A and game B played at once, yes. Game A played by two people at once when you own one copy, no.

For the record, I'm 100% fine with that.

comment 1w ago · link · parent

> Strict morals is a sort of evil in itself. It displays a lack of intelligence and awareness of how morally grey reality is.

Now I know what kind of person you are. This is the last time I will (if I notice your username) respond to anything you say. I'm not interested in discussing anything with you. Bye.

comment 1w ago · link · parent

You know how this whole conversation thread started with my saying "the only case where a boss should be sleeping with an employee is if they have a pre-existing relationship", such as being married?

Yeah. We're circling back to the original statement. A sure sign that the conversation is no longer productive.

comment 1w ago · link · parent

Except that the reasons behind those rules against sleeping with employees is the many, many cases of abuse that have actually happened. Bosses who make it quite clear that the price for a favorable performance review is a sexual favor of some kind. There's even a nickname for this kind of thing in Hollywood — "the casting couch" — and when there's a nickname for it, it's common enough behavior that everybody knows it happens. Not that every single person is doing it, but it's an open secret that it happens a lot in Hollywood.

And it's wrong. At its worst it's rape-by-coercion, trying to hide behind a thin layer of plausible deniability. It's not a circular argument at all: the behavior is bad for objective reasons, and that's why it's forbidden. In more favorable cases (where there's no coercion involved) it's still trading something of monetary value for sexual favors, which makes it a form of "prostitution lite". Again, there are objective, non-circular reasons for it to be forbidden.

comment 1w ago · link · parent

Are you saying that because he invented something that changed the world, his misbehavior should be ignored? If that's what you're saying, I wonder where you would draw the line: an affair? Embezzling? Murder? At what point would the misbehavior be so bad that it should not be excused by his past inventions? At what point does the inventor not get to use "But I'm changing the world" as an excuse?

Or perhaps I'm misreading you. You did, after all, open with saying that you agree with my comment that you're replying to. So if your only point is "the board didn't care, that was an excuse to get rid of him" and you're not excusing his behavior, then sure, I agree with that statement. His behavior was an open secret among the company, after all; they had to have known, but were willing to ignore it when it was convenient to them. Which is immoral of them, let me add. I agree with you that that's what they did. I do NOT agree (and I hope you're not saying) that it was ethical or moral of them to ignore it until it became publicly known.

comment 1w ago · link · parent

I've seen AI-generated videos posted two weeks ago with six fingers on someone's hand. I don't know what model they used, but it still happens. Less often than it used to, granted, but it still happens.

comment 1w ago · link · parent

Yeah, most people only have one personal secretary, and in order to be able to show favoritism to one employee over another it would be necessary for them to be in similar positions. It would be remarkably silly to say "You're giving me the tough coding assignments instead of giving them to your secretary, you're blatantly favoring her" when the secretary was never hired for her coding skills.

Favoritism certainly can happen in other situations, of course. Heck, "the GM's girlfriend" is a (negative) trope in tabletop RPG groups for a reason, or spouses favoring each other in competitive board games. And those are situations where (usually) no money is involved, and it's just for fun. Add money to the situation and it can be a dangerous mix. If someone really must end up being a supervisor over his own spouse plus other people, best to have someone neutral double-checking his decisions. It's easy to be blind to one's own conflicts of interest.

comment 1w ago · link · parent

I've read your comment three times and I still don't know exactly what philosophical position you're staking out. What are you saying, exactly? I suspect I'm going to disagree with your position (I certainly disagree with what I think your position is), but before I start arguing against it, it would be nice to actually understand it.

comment 1w ago · link · parent

The ONLY acceptable reason for a manager to be sleeping with someone who reports directly to him, or any other similar situation (e.g. a professor with a student in his class) is if a romantic relationship of long standing predates the power relationship. E.g. if a man's wife of ten years is assigned to report to him, there's no reason they should stop sleeping together. (I know one guy, the father of a friend of mine, who was promoted to an executive position in his company. That position came with a secretary, and his wife (who already worked for the company) was chosen to work as his secretary. This was the only case I know of where a boss was sleeping with his secretary, yet there were no ethical or moral problems with it).

But anything except a pre-existing relationship is fraught with peril: implied coercion and/or quid pro quos are just some of the problems that can exist. There are darn good reasons why that sort of thing is widely forbidden.

This should be obvious to everyone, but sometimes the obvious needs to be restated, apparently.

comment 2w ago · link · parent

> A high school kid with AI coding could build a perfectly functional app in an afternoon and keep more money in local communities.

If I were still a high school kid, I hope I would be wise enough not to vibe-code an app that handles money. Because any time your app handles money, all kinds of laws and regulations may end up applying to you. How do you handle refunds? How do you handle claims (true or not) of fraud? How do you handle actual fraud? If your app has a bug that means someone's payment didn't get sent to the city / parking lot owner correctly, and the customer's car gets towed, you're going to have an angry customer calling you and demanding that you reimburse their towing fees, or threatening to sue you for negligence, or something.

There are just all kinds of minefields when you start coding up an app that handles money. And they can vary wildly from one jurisdiction to the next. What city is this in? What state/province? What country? What are their laws about all of the above (refunds, fraud, etc.)?

So in this particular case, I'm not sure AI is nearly as like to disrupt the market as it would be in use cases that don't involve handling money. Because the risks you undertake when you set up to be a payment middleman are quite a bit higher than they are in other fields.

comment 2w ago · link · parent

Read Anna Karenina sometime. Tolstoy shows both the aspect of a society in which rich men having affairs was considered the norm, and the destructive effect it has on people. (And also the double standard by which women were judged much more harshly than men for having affairs). And he also, by comparing the two main relationships in the book (Vronsky's affair with Anna, and Levin's marriage to Kitty), said "It doesn't have to be this way, you can have healthy relationships if you just reject society's advice to have affairs and instead stay faithful to your wife".

I didn't like the book when I first read it (mostly because I seriously dislike Anna, and the book naturally spends a lot of time being told from her POV), but in retrospect, it's brilliant. Tolstoy has, without a single bit of moralizing, presented one of the best arguments I've seen in literature for being faithful to one's spouse and not engaging in affairs.

P.S. I should add that I don't think Tolstoy was inventing the "rich men having affairs was considered normal" aspect for the purpose of the book. I think that was what Russian society was really like at the time, and he took that aspect of society and wrote a book criticizing it, highlighting the negative effects that that attitude would have on people.

comment 2w ago · link · parent

He's just starting the project, if you check his page he doesn't even have any binaries yet. So currently it's more like "Hey, subscribe to my Patreon if you want to support my work, and in the future I'll make some bonus content for subscribers when it's ready". Which... well, some people actually do follow through on commitments like that, so really it depends on how well you know and trust the person involved whether you'd want to subscribe to a Patreon like that. Similar principle here, it looks like.

(I have formed no opinion, positive or negative, on WinTTY yet, BTW, so don't take this as either an endorsement or a... whatever the right word for anti-endorsement would be).

comment 2w ago · link · parent

There's also https://wintty.io/ which I just learned about. MIT licensed, binary downloads restricted to project sponsors, but buildable from source, allegedly easily (I haven't tried it). Currently 120 stars on GitHub.

comment 2w ago · link · parent

Common Lisp solves this by being common, and any Common Lisp implementation can use the same libraries.

Emacs Lisp I can't speak to, having no experience there.

As for Scheme, you're correct that implementation fragmentation is one of its problems holding back adoption. But it's not a problem for Common Lisp, which has had much less fragmentation issues.

comment 2w ago · link · parent

If I've understood https://coalton-lang.github.io/manual/topics/whirlwind-tour/... correctly (and please do read it for yourself because I might be misunderstanding it: I haven't used Coalton yet, only read the manual), Coalton will guess a type in some cases (such as numbers, but not only numbers). I don't know whether it gives warnings or errors for types it can't infer, but since it's based on Common Lisp I would assume it would give a warning and continue with an unknown type.

But there are definite advantages to having Coalton know your types, which is why they give you a `(declare foo Integer)` form. This doesn't compile to any code, it's a compiler hint that tells Coalton that it can assume `foo` is an int, not a float64/double, which allows it to pick at compile time which implementation of + gets used in `(+ foo 5)`.

The 2025 video introducing Coalton at https://www.youtube.com/watch?v=of92m4XNgrM gives an example of what Coalton can do with knowing types. Robert Smith (the presenter, and the primary creator of Coalton) gives an example of a Fast Fourier Transform function that uses generic numeric types so you can call it on any number type: float32, float64, int-modulo-a-prime, whatever. He then benchmarks it, and it takes about 1 second to run 2 million times. Then he adds the single compiler hint `(monomorphize)` above the function declaration. This tells Coalton "Hey, instead of doing a dispatch table lookup in this function and calling different + implementations based on the type of the parameters, I want you to create two different copies of this function, one that will call the specialized float32 math functions, and the other one that will call the specialized float64 math functions." (Or three copies if you also called it with your int-modulo-prime number type). This eliminates a dispatch-table lookup and allows the compiler to produce much more specialized code. It comes at the expense of larger binaries, of course: he's explicit about how this is trading speed for size, so it's an opt-in choice you make (by adding a `(monomorphize)` declaration above the function definition) rather than something that Coalton defaults to.

But I've digressed. Yes, I believe (though note my caveat about not having used Coalton yet) that it would use dynamic types for code whose types it can't infer. But I'm pretty sure it would also give you a warning. If it gives you an error, the solution is to add a `(declare [name] [type])` line in the appropriate place.

comment 2w ago · link · parent

Tell me, if you know (it's okay if you don't): does Anthropic still forbid you from using other harnesses if you are on a subscription plan? Or have they rescinded that and I never found out? Because if that ban is still in effect, there are plenty of people who don't have a choice about using Claude Code. (Other than giving up the subsidized subscription and paying API prices, which would blow through many people's budget in short order).

comment 2w ago · link · parent

For anyone who might not have encountered typeclasses before, the example might not be quite as self-explanatory as I thought it would be, so I'll explain that example a little.

The `(define-class (Eq :a) ...)` block is defining a type class called `Eq` with a type parameter named `:a`. Think of this as an interface that can be added after the fact. Most (all?) major OOP languages only allow you to declare interfaces when you declare a class, but in Haskell, and in Coalton that takes a lot of inspiration from Haskell, you can declare "interfaces" (typeclasses) on any pre-existing type, including ones coming from a library. Here, the `Eq :a` interface means that there must be a function called == (in Lisp even the operators are defined as functions) that takes two parameters of type :a and returns a Boolean.

`(define-type Color ...)` is defining a simple enum type. (You can do a lot more with it, of course, but this example is kept simple). Then `(define-instance (Eq Color) ...)` is saying "The type called Color is an instance of the typeclass (interface) called Eq". And since Eq requires a function called `==`, inside the define-instance block you have to define that function for the Color type. The pattern-matching should be simple enough that I don't think I need to explain it.

Now, the thing that makes this more powerful than interfaces is something I already touched on. Here the Color type is declared and then its typeclass instances are defined right away, which is the normal thing to do when you're creating a new type: keep all its code together. But if that Color type had come from another library that you imported, you would still be able to say "oh, and this Color type does implement Eq: here's the definition of == as applied to Color values". You're not restricted to only the interfaces that the library author thought to apply: you can take someone else's code and add interfaces to it! There have been several times when I really wished that were possible in C#.

Finally, the constraints before the => fat arrow are like declaring your function parameters as `public T isEqual<T>(T a, T b) where T : IEquatable`. This allows Coalton to catch, at compile time, any call to `is-eql` with parameters for which the `==` function is not defined.

There's plenty more at https://coalton-lang.github.io/manual/topics/whirlwind-tour/.

comment 2w ago · link · parent

Nice, I'll have to try that. My strategy up until now has been to embed the playlist index in the filename, via `-o "%(playlist_autonumber)02d-%(title)s [%(id)s].%(ext)s"` (or %03d for playlists of 100 videos or more). Works reasonably well for playing the videos in proper order, but the info is only in the filename. Embedding the metadata looks like a better solution if you want a media player to be able to organize the files.

comment 2w ago · link · parent

Since you mentioned the mine editor you must be aware of Coalton, but since you didn't mention Coalton I'll mention it here. Coalton is a Lisp library that basically adds static typing, type inference, and Haskell-style typeclasses on top of Common Lisp. (If you've never encountered type classes, then think of interfaces in the OOP language you know best. Type classes are what interfaces should have been: they can do everything interfaces can, and many things interfaces can't). Here's an example from the Coalton docs, which should be pretty self-explanatory; go read https://coalton-lang.github.io/manual/topics/whirlwind-tour/ if you want to see more.

    (coalton-toplevel
      ;; Type classes are defined with the define-class keyword
      (define-class (Eq :a)
        (== (:a * :a -> Boolean)))

      (define-type Color
        Red
        Green
        Blue)

      ;; Type class instances are defined with the define-instance keyword
      (define-instance (Eq Color)
        (define (== a b)
          (match (Tuple a b)
            ((Tuple (Red) (Red)) True)
            ((Tuple (Blue) (Blue)) True)
            ((Tuple (Green) (Green)) True)
            (_ False))))

      ;; Type declarations can have constraints
      (declare is-eql (Eq :a => (:a * :a -> String)))
      (define (is-eql a b)
        (if (== a b)
          "They are equal"
          "They are not equal"))

      ;; Multiple constraints must be wrapped in parentheses
      (declare double-is-eql ((Eq :a) (Eq :b) => (:a * :a * :b * :b -> String)))
      (define (double-is-eql a b c d)
        (if (and (== a b) (== c d))
          "Both pairs are equal"
          "The pairs are not both equal")))

comment 2w ago · link · parent

When you say "simple takes effort", that's kind of what I meant by "simple is hard". It takes work, it takes looking at the problem for a long time (Kepler studied orbits for years) until you understand it well enough to have the epiphany that lets you reduce the complexity down to "oh wait, orbits are ellipses and that solves everything!". Since you preceded your statement that "simple takes effort" with a disagreement about simple being hard, I wonder what you thought I meant by "simple is hard".

comment 2w ago · link · parent

> ... Doom running on refrigerators and pregnancy tests ...

If that's a real example and you didn't make it up, I want to know what pregnancy-test devices have enough buttons to make it possible to control the game. Or are they coming with touchscreens now? Refrigerators, sure, I can easily see that. But pregnancy-test devices? Why would they have enough buttons to be able to simulate WASD and a fire button? The only pregnancy-test devices I've seen are the home test ones where you put the sample in the device then wait to see if there's one line or two (some of them arrange the two lines in a + shape so that - means a negative result and + means a positive result, which is clever), with no electronics. What pregnancy-test devices are using more than that?

comment 2w ago · link · parent

Nobody else is likely to see this comment but I want to make it anyway. Yes, simple is hard. Thank you for articulating it so well.

And yes, that's also why LLM code is usually (unless driven by someone who really knows what he's doing) full of unnecessary complexity. Because although LLMs can get a much broader "understanding" of a code base than I would have given them credit for a couple years ago, their "understanding" is still shallow. And what you need to truly be able to achieve that hard simplicity (I heard someone refer to it once as "the simplicity on the other side of complexity", e.g. when Kepler figured out that orbits were ellipses, not circles, and that allowed getting rid of epicycles) is deep understanding. Which LLMs are not capable of, hence why their code is full of the kind of needless complexity that one produces when one has only a shallow understanding of the code. (E.g., you in that enterprisey codebase when you weren't going to be given time to reach deep understanding).

comment 2w ago · link · parent

Thanks for mentioning that before I tried to scroll down. Forewarned, I was able to click on the "2026" link once the left-handed "scrollbar" (not the right word but I can't figure out what the right word should be) appeared, which let me jump past most of the verbiage and get to the "are you affected?" section just a couple pages later.
12345
26