Better HN
topnewbestaskshowjobs
Log inSign up

looperhacks

2,043 karma · joined Sep 11, 2014 (12y ago) · 353 submissions

Personal: https://jeschke.dev

New project: https://supplywarden.com

Submissions

comment 14h ago · link · parent

You linked to the zed UI, gpui itself is Apache

comment 1d ago · link · parent

I know this has nothing to do with TFA, just want to check my understanding of C. Doesn't the code example have a bug?

  miniprintf(char fmt[], int val[])
  {
    int i = 0;
    while( *fmt != '\0' ) {
      if( *fmt != '%' )
         putchar(*fmt);
      else
        switch(*++fmt) {
          case 'd' : putint(val[i++]); break;             
          case '%' : putchar('%');     break;
          default  : prterror(*fmt);   break;
        }
      fmt++;
    }
  }
If the static string was "%", the else branch would move past the end of the string. Assuming prterror doesn't crash the program, this reads out-of-bounds, right?

comment 2d ago · link · parent

Spreading Nutella on butter doesn't make a horrible mess, totally unrealistic. 4/10

/s

comment 6d ago · link · parent

There's a large difference between very regulated and a court making a stupid decisions. Afaik there's no law that defines how and when a DNS block should happen

comment 6d ago · link · parent

I tried to reproduce it on AWS (for a before/after comparison to prove the mitigation), but I couldn't. Either the reproducer from TFA doesn't work, or Fargate placed it on CPUs that don't support the instructions.

comment 6d ago · link · parent

It's a bit of a mess. The first four are for the jvm, shared across all implementations: $FEATURE.$INTERIM.$UPDATE.$PATCH

$FEATURE: increased every six months when new features are released (or removed) $INTERIM: currently always 0, reserved for future use $UPDATE: non-feature releases like bug, security or regression fixes. Releases one month after the feature version; then every three months $PATCH: important updates out of schedule

Specific implementations may introduce a fifth component for updates that do not come from the shared implementation but are distribution-specific (think Oracle fixing a bug that only happens in Oracle distributions)

(Then there's more, like +2 build numbers, and older versions have a slightly different format)

comment 1w ago · link · parent

Because rust 1.100.0 will still compile older code. To get the breaking changes, a crate has to opt into a newer edition. Older editions will still work fine. Apparently this has the added advantage that crates that use different editions can still work together, because the compiler understands all editions.

comment 1w ago · link · parent

Maybe it was different when you used it, but when I had Humble Choice years ago, I remember that it was very clearly communicated that the "pause" is for one month only. Maybe a dark pattern that you have to remember, but it was shown

comment 2w ago · link · parent

There's some beeping in my apartment, and we also cannot figure out where it's coming from. The problem is that it's really quiet - sometimes only my wife can hear it, but I can't. It also seems to occur randomly, we can only hear it every few days. I tried recording it with my phone, but it doesn't pick anything up. It drives me crazy

comment 3w ago · link · parent

Is it? He took a plane, surely

comment 3w ago · link · parent

Image tags are not are versions and shouldn't be treated as such. The tag "19.3.6" refers to the version of Gitlab, which hasn't changed. This is why everyone should pin their images to a specific sha and setup a process to get notified on changes

comment 1mo ago · link · parent

Or you could, you know, read the changes your approving

comment 1mo ago · link · parent

It hasn't passed yet, but legislators are very hard at work trying to "catch up". [1][2]

And there are other countries outside the US and Europe, it's not just a "EU" thing. (I wanted to write North America first, but even Canada does blocking, in some cases even without court orders [3])

[1] https://www.eff.org/deeplinks/2025/04/congress-reviving-site... [2] https://www.eff.org/deeplinks/2026/10/congress-has-another-s... [3] https://piracymonitor.org/canada-evolving-piracy-threats-pro...

comment 1mo ago · link · parent

Depends on where the EU-licensed institution is headquartered, as monitoring is done by the states. But I'll say it's very likely that there will be an angry call or a review at most. Some manager will have to write up how they want to mitigate problems in the future, and this plan is maybe implemented in the next few years. If this is the first problem of an institution, a fine is rather unlikely.

Generally with acts like these: You don't have to be fully compliant in practice. You need to know how compliant you are, have a plan to improve things, and prove that you are working on it. But if you are "close enough" (depending on who audits you), non-compliance isn't a direct route to fines.

comment 1mo ago · link · parent

From the two examples I could find on the page, it sounds stilted, but not "hilariously" bad.

comment 1mo ago · link · parent

> restocked multiple times a day

[citation needed]

Where I live, stores don't open on Sundays. Many apparently do in France, but I imagine not all of them. So there are potentially 24 + 12 hours where nobody's there to check stuff

comment 1mo ago · link · parent

"binary compatibility" in the JVM sense shows up during runtime, anyway. The Throwable should maybe have been a subclass of LinkageError (which indicates a binary compatibility problem; though I'm sure there's a good reason why it isn't): Right now the MatchException can easily be caught by mistake, which wouldn't be an issue if it were a MatchError.

However, it doesn't change the behavior much: LinkageErrors can also happen any time at runtime, not necessarily during startup. Just like the MatchException.

comment 1mo ago · link · parent

That would be trilateration. But no, your phone is perfectly able to transfer your GPS position during a 911 call, as well.

comment 1mo ago · link · parent

The sloppiness shows, the performance is awful (Firefox on Pixel 8)

comment 1mo ago · link · parent

Firefox on Android, sometimes the question is off screen after answering a question

comment 1mo ago · link · parent

The CRA applies to every kind of device

comment 1mo ago · link · parent

Unless of course, you need to unlock your password manager, which is not integrated with your browser, because corporate IT doesn't allow browser extensions or desktop apps so you're bound to a web app ...

comment 1mo ago · link · parent

A smart coffee maker is one of the earliest smart home appliances: https://www.rfc-editor.org/info/rfc2324/

comment 1mo ago · link · parent

It took me a bit after I had to switch to a Macbook, but by now I'm pretty used to switching between Linux and Mac. But the one thing I'm still not used to after a few years is the position of []. It's still a 50/50 whether I hit it on mac

comment 1mo ago · link · parent

But it is a shared library? It's used in both Chrome and Firefox.

comment 1mo ago · link · parent

lowercase m. 15 meters, not 15 million tunnels :D

If you're interested in secret tunnels, check out Colin Furze on Youtube!

comment 1mo ago · link · parent

It was speculated that xbox streaming of GTA6 will be available on PC, but it was already denied.

comment 1mo ago · link · parent

This would need at least a majority of die-hards present in a (near) majority of polling locations. At this point, the party can probably win the election without fraud.

comment 1mo ago · link · parent

There's no guarantee that the COOL SMARTHOME SENSOR V1 has the same sensor or MCU like the COOL SMARTHOME SENSOR V1 that I can buy. Sure, it's interesting to know, but it's not too usefuly
12345
12