@danluu@mastodon.social avatar

danluu

@danluu@mastodon.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

danluu, (edited ) to random
@danluu@mastodon.social avatar

Wow, people really don't like iTerm2 adding an optional AI integration which requires you to enter your OpenAI key to use, calling it "no longer fit for purpose", etc.

Someone pointed out that this feature is optional and not only has to be enabled, but it requires you to enter a key to use. That user was, apparently, reported on gitlab and is now blocked.

https://gitlab.com/gnachman/iterm2/-/issues/11470

It reminds me a bit of how some people don't like "algorithms", as in https://x.com/danluu/status/983466330320965632.

danluu,
@danluu@mastodon.social avatar

BTW, I don't use iTerm2 because, per https://danluu.com/term-latency/, I find the latency to be too high.

But if I were concerned about this and I preferred iTerm2, I would spend 5 minutes writing a diff to remove this feature. It's an open source piece of software and I suspect that you could stub out the feature in a patch in less time than has been spent on discussion about how terrible AI terminal integration is.

danluu, (edited )
@danluu@mastodon.social avatar

@chriskrycho I've just been using the built-in Mac terminal, which I don't love because there are a couple bugs I run into semi-regularly, but it works ok in that I have mitigations / workarounds for the bugs.

Is there a terminal you'd suggest I check out? I haven't looked at the options since 2017 and things have probably changed a lot since then.

danluu, (edited ) to random
@danluu@mastodon.social avatar

This study that looks into what errors CS students make is fascinating:

https://cs.brown.edu/~sk/Publications/Papers/Published/lk-smol-tutor/paper.pdf

Among other things, it really shows how reasoning about computer programs is not intuitive to people, even people who've had years of training (the class is an optional class mostly taken by 3rd/4th year CS majors, with 10% grad students)

danluu, (edited ) to random
@danluu@mastodon.social avatar
danluu, (edited ) to random
@danluu@mastodon.social avatar

I can't quite put my finger on it, but there's something delightful about this list of "legitimate" uses of negative literals:

https://github.com/elm/compiler/issues/1773.

I think part of it is the circumstances that would compel users to construct such a list. Until that thread, it hadn't even occurred to me that someone would present a case against the existence of negative literals that required a rebuttal.

danluu,
@danluu@mastodon.social avatar

@pervognsen That seems preferable to the fix for the linked issue, which was to add an error message which reads "It is not possible to pattern match on negative numbers at this time. Try using an if expression for that sort of thing for now.": https://github.com/elm/compiler/commit/0e669b8ad076f64e450f2fa9b29ce93791466667.

I never looked into how this is handled in Scala, but I don't recall ever having run into this issue when pattern matching in Scala either.

danluu, to random
@danluu@mastodon.social avatar

Interesting to see users working around the lack of tactile buttons in some modern cars:

danluu, (edited ) to random
@danluu@mastodon.social avatar

This exchange reminds me of the debate I had with Jeff Atwood on whether or not servers should use ECC memory a decade ago. Jeff said no and I disagreed and said yes in https://danluu.com/why-ecc/.

At the time, there was one argument that could've, theoretically, been overturned by progress: Jeff argued that commodity non-ECC memory was becoming more reliable and was highly reliable. This was not true at the time, and it turns out this still isn't true a decade later.

danluu,
@danluu@mastodon.social avatar

Maybe a more relevant piece of data is the rate of ECC errors in servers with ECC memory but, as discussed in the post, my experience consumer vs. server CPUs, RAM, etc., is that server hardware is more reliable than consumer hardware, so extrapolating from the observed error rate in ECC memory won't really get you to the true error rate.

But even so, from the server data I've seen, which would be overly optimistic, I would not want to have servers without ECC.

danluu, (edited ) to random
@danluu@mastodon.social avatar

Greedy landlords, lazy athletes, and other simple moral explanations:

https://www.patreon.com/posts/103707012

danluu, to random
@danluu@mastodon.social avatar

A perennial viral complaint I've seen on FB, reddit, etc., for ~5 years is parents saying that kids the same age as their own kids have weird/ridiculous/bad names.

The comments of these posts are full of people saying things like "don't these parents realize how stupid these names are? Not like my kid, who has a normal name like Gary". But if the complaint is that almost all kids in the class have a "weird" name, aren't these "weird" names going to be normal for the kid and the kid's peers?

List of allegedly ridiculous names: Ellanora Silas Ethel Emmanuel Karsonn Sarah Vecepia Alexandriana Andrea Greysin Adelainia Edwardu Serbia Lucas Ezra Silas

danluu,
@danluu@mastodon.social avatar

Something that tickes my funny bone about these is that it's often the case that the person who's dunking on people for being out of touch doesn't appear to know how to use a phone or computer? E.g., the 2nd screenshot is a photo of a display, taken at a funny angle which causes all sorts of artifacts.

I don't judge people for not knowing how to use technology, but these particular displays of not knowing how to use tech really add to the "old (wo)man yells at cloud" energy.

danluu,
@danluu@mastodon.social avatar

BTW, the core thing I dislike about this isn't that it's out of touch (that's just the part I find funny), it's that it's a class thing that's at least attempting to punch down.

It feels like it has the same energy as "McMansion Hell", "People of Walmart", and "This is why you're fat". I know McMansion Hell is beloved in my social circles and the other two sites are reviled, but they feel very similar to me. It's generally people establishing their class superiority, which I'm not a fan of.

danluu, (edited )
@danluu@mastodon.social avatar

MMH purports to be educational, but that's just a veneer that makes the mockery palatable in polite company, and the veneer is thin — the last post I saw was an "educational" list that had McMansions with "LOL", etc., annotated. It was as educational as "People of Walmart".

[Edit: since people seem to need this pointed out, class != wealth; a journalist with a degree from Hopkins who writes for Jacobin, lectures at UofC, etc., is higher class than, e.g., the rednecks with big houses she mocks]

danluu, (edited )
@danluu@mastodon.social avatar

@tobinbaker Yeah, one thing that gets me is how "ivory tower" the comments are, e.g.,

> bet these 'red necks with big houses' have more power over other people than the blog writer does. How do you think these people get their money? Have they all struck it rich with oil like the beverly hill billys?"

I guess this guy doesn't know that working as a roughneck in oil is a common way for a "redneck" to get rich. I have roughneck friends, but I doubt this guy has had a real conversation with one.

danluu, to random
@danluu@mastodon.social avatar

Some kind of attack (ransomware?) has crippled London Drugs, a local Canadian pharmacy chain (moderate size, 78 stores) for the past week. Apparently their phone systems are tied in with their computer systems since their phones have been down for a week, but they'll fill prescriptions if you go to the store and bring your old prescription labels.

I'm curious if the business is going to be able to survive this or if the customer loss from being down for a week will end up being fatal.

danluu, (edited )
@danluu@mastodon.social avatar

Relatedly, about a year ago, I had a conversation with a director on the fast track to exec at a (different) Canadian chain about how their security practices were outdated and it was trivial to compromise them. I got a very "upper management" response about how it was all fine, no problems, nothing to see here, etc.

I'm surprised local companies that don't have serious security practices don't get compromised more often. Or maybe they do and many are constantly paying off ransomware attackers?

danluu,
@danluu@mastodon.social avatar

@scottlougheed compared to other local options, I prefer LD over, say, SDM, but my impression is that the margins on these businesses aren't super high. A related question is, what fraction of customers need to switch before the business starts losing money? 10% 20%? 50%? And what fraction of users will move their prescription?

If the manage to recover after "only" a week, I would guess that most people won't have even thought of moving, but they're still down, so it could be longer.

danluu, (edited ) to random
@danluu@mastodon.social avatar

Naive question: why do React apps in the real world tend to be slow?

I tried doing a React tutorial and the result was quite fast (w.r.t. latency & CPU utilization on low-end devices) until the tutorial has you replace "manual" / "low-level" react calls with commonly used libraries, e.g., using TanStack Query instead of useEffect plus a manually instantiated cache.

Is the main issue that libraries tend to be big and slow or is there another major cause of React app slowness?

s_video, to random
@s_video@mstdn.party avatar

@danluu I recall a while back you were looking for a good book on modern C programming. Did you ever find one that you found acceptable?

danluu,
@danluu@mastodon.social avatar

@s_video No, but I ended up not doing the thing I would've needed to learn C for.

I may still try it in the future, so TBD on this :-).

danluu, to random
@danluu@mastodon.social avatar

How long before formal methods are widely use in software engineering?

https://www.patreon.com/posts/102809124

danluu, to random
@danluu@mastodon.social avatar

This mobile-first C editor is incredible:

https://medc.mark.dev/

I hope I never have a use for this, but the editor has a lot of interesting ideas, some of which I'd love to see in desktop editors.

danluu, to random
@danluu@mastodon.social avatar

I see these AI generated summaries are going great.

BTW, I mean this non-ironically. This is generating a huge amount of engagement, juicing user numbers, which companies generally care more about than accuracy.

For people not familiar with basketball, a bad miss is called a "brick" and Klay Thompson put up a lot of bricks against the Sacramento Kings. People talking about this resulted in Twitter creating this AI generated "trend" saying that Klay was vandalizing houses in Sacremento.

danluu, to random
@danluu@mastodon.social avatar

Programmer moneyball in practice:

https://www.patreon.com/posts/102364384

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • khanakhh
  • slotface
  • Durango
  • rosin
  • thenastyranch
  • kavyap
  • osvaldo12
  • anitta
  • everett
  • ethstaker
  • cubers
  • tacticalgear
  • tester
  • modclub
  • ngwrru68w68
  • provamag3
  • normalnudes
  • cisconetworking
  • Leos
  • megavids
  • lostlight
  • All magazines