For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | silon42's commentsregister

You can guarantee what you have test coverage for :)

haha, you are not wrong, just when a dev gets a tool to automate the _boring_ parts usually tests get the first hit

depends entirely on the quality of said test coverage :)

OS/2 had it built in in 1996.

It's like googling... if you have skillz/experience you can google almost anything with 3-4 words...

If you are spinning so long that it requires preemption, you're doing something wrong, no?

It doesn't matter, it's a long tail thing: on average user spinlocks can work, and even appear to be beneficial on benchmarks (for many reasons, Andy alludes to some above). But if you have enough users, some of them will experience the apocalyptic long tail, no matter what you do: that's why user spinlocks are unacceptable. RSEQ is the first real answer for this, but it's still not a guarantee: it is not possible to disable SCHED_OTHER preemption in userspace.

If I make something 1% faster on average, but now a random 0.000001% of its users see a ten-second stall every day, I lose.

It is tempting to think about it as a latency/throughput tradeoff. But it isn't that simple, the unbounded thrashing can be more like a crash in terms of impact to the system.


Yeah, the thrashing thing I'm very familiar on OOM scenario... the far most common Linux "crash" that I experience (at least monthly, sometimes daily, depending on what I'm doing)... I've waited overnight a few times but OOM killer still didn't activate.

Well, you can always pin to a core and move other threads out of that core.

That's what you'd do if manually scheduling. Ideally the dynamic scheduler would do that on its own.


Sure. But if you squint even that isn't good enough, you'll still take interrupts on that core in the critical section sometimes when somebody else wants the lock.

The other problem with spin-wait is that it overshoots, especially with an increasing backoff. Part of the overhead of sleeping is paid back by being woken up immediately.

When it's made to work, the backoff is often "overfit" in that very slight random differences in kernel scheduler behavior can cause huge apparent regressions.


For simple stuff, qml is OK/better (except the JS part)... but for some more complicated views I'd want qwidgets.

I get: Uncaught (in promise) ReferenceError: WebAssembly is not defined

Umm which browser are you using? Did you disable webassembly somehow?

Yes, that why those need to be 100% sandboxed by default (ideally a VM), unless they are provided by distro

Same here.. Overpass Mono was chosen for me, but several were quite close.

Also, black backgrounds require bolder fonts.


You underestimate youself as a 13 year old... if you had to, you'd do it (given time).


Or maybe there aren't good EVs... however, ICEs are becoming worse, so the crossover might be happening eventually.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You