Better HN
topnewbestaskshowjobs
Log inSign up

lambdaone

1,826 karma · joined Oct 28, 2021 (5y ago) · 574 submissions

Submissions

comment 1y ago · link · parent

Even though it might seem unlikely, you absolutely can't eliminate the possibility of planes falling out of the air unless you have thoroughly audited and tested all their systems in advance. Not having planes in the air at the exact moment of rollover - just in case - might be a good idea too. Similarly financial markets and other key infrastructure.

13 years is plenty of time to make a start on all of this, and will allow the costs to be spread over that time period without undue hurry. It's also long enough that it will be possible for much software to be allowed to reach end-of-life without being audited, while applying rigorous testing to new software. Procrastination, though, is not a good option.

comment 1y ago · link · parent

It means 'anywhere between being bricked and no problem at all, and we can't give you any idea of how severe or how likely any of those possiblities are'. The only way you can really know is to thorougly audit your system and/or test it. Preferably both.

comment 1y ago · link · parent

Unironically giving that prime number routine as an example of clever code is not a great look. So bad on so many levels.

comment 1y ago · link · parent

Most users don't know what io_uring is, nor would they have read any of thosee articles. They are not HN readers with low-level understanding of operating systems workingm and don't even remotely have the knowledge of how any of these technologies work, nor do they have the time to get it. With a very few exceptions, users have to rely entirely on software vendors and service providers to do this for them, and trust they know what they're doing.

comment 1y ago · link · parent

A side-note: I have a friend who is an electronics genius who managed to construct a production system that combined a multi-kilowatt electric arc lamp and a CCD array. Microvolts of CCD signal at megahertz of bandwidth mixed with hundreds of watts of RFI all in the same chassis. Oh, and of course lots of low-jitter digital timing and sequencing electronics and wideband ADCs.

It all worked perfectly. He used every trick in the book, and some new ones he invented from scratch, to implement it - I've never seen anything like it, before or since.

comment 1y ago · link · parent

Real environments have both mechanical bouncing and unavoidable EMI spikes, even when you have done your best to eliminate EMI; particularly when you're dealing with switches, which are typically on the end of long wires which are effectively antennae. Source: actual experience with crappy real-world systems.

comment 1y ago · link · parent

A bit of analog low-pass filtering and electrical hysteresis definitely helps reject EMI - but you shouldn't use these alone to do debouncing as if you do, you introduce substantial latency for both up and down transitions. The (very simple) software algorithm described above gives you both low latency and complete resistance to bouncing. Combining the two is a complete solution.

comment 1y ago · link · parent

The system is hit so violently that it goes into a non-linear regime, repeatedly hitting the end-stops of its motion. Consider how adding even a small amount of nonlinearity to a simple harmonic oscillator can create chaos, and I think you should be able to see how this generates chaos.

comment 1y ago · link · parent

Doing it right (via the algorithm above) is a trivial few lines of code. The thinking behind the state machine that gives both high reliability and low latency isn't trivial. It is, however, obvious once you know the trick of maintaining an extra auxiliary variable in addition to counter/timer variables, and understand that you don't need to wait for the bouncing to finish before registering a change. Think sort algorithms; everyone comes up with bubblesort first, but you can do much, much better with only tiny changes after a bit of thought.

comment 1y ago · link · parent

I do something very similar, but use two time constants. One to determine how many consecutive samples are needed to change from the established state, and a second one, as suggested here, to ignore subsequent input for a bit after a registered state change to allow for bouncing before going back to the receptive state. This is a bit more robust, as practical systems are always at the mercy of occasional glitches in electromagnetically noisy environments.

With well-chosen constants, I've found similar behaviour to the above; low latency and high performance at once.

comment 1y ago · link · parent

Perhaps a glimpse at the atmosphere of optimism at the time of Musk's pushing of FSD?

372.

Learning a Driving Simulator (2016)(arxiv.org ↗)

1 points · by lambdaone · 1y ago · 1 comment

comment 1y ago · link · parent

For large polynomial degree, this seems to me to be very similar to the P-spline method with a very large number of parameters.

comment 1y ago · link · parent

Self-experimentation! Excellent.

comment 1y ago · link · parent

This is one of the things I was talking about when I said "simplifying".

That's exactly their motivation, yes. Resisting it requires political will, or we will continue to let the increasingly irrelevant tail wag the dog.

There is definitely a case for subsidising the existence of mostly-idle gas plants to make the costs of keeping them around profitable for the medium term (you can think of them roughly as playing the role of a battery), but indefinitely subsidising the equivalent of buggy-whip manufacturers is not a long-term solution for the economy.

comment 1y ago · link · parent

Below the Planck distance, "closer" ceases to be a meaningful concept. Similarly, distances larger than the size of the observable universe may also be meaningless.

comment 1y ago · link · parent

One thing which has not been mentioned in this discussion is that the wholesale market price of power at any given time is substantially driven by the marginal cost of generation.

When renewables (including storage) can't take up the entire load of the system, that marginal generation is nowadays going to be gas power, and right now the global price of gas is unprecedentedly high.

To simplify things somewhat; the larger the fraction of the time gas generation can be turned off, the lower the annualised price of electricity will be. At the moment, we are already seeing renewables taking up 100% of the load for short periods. As more renewable capacity gets built, those periods will get longer and longer, this effect will get ever larger. In some countries this effect is expected to become significant within the next five years, even at current rates of progress, and will only get better as time goes on.

Lower annualised electrical prices will be good for the economy and the individual, and encouraging this should be a priority for any rational government which thinks more than a few years ahead.

comment 1y ago · link · parent

My understanding of this is that P-completeness for a problem implies that any problem in P can be transformed into it with a polynomial-time reduction. Deterministic Turing machines (more precisely, the problem of determining the future state of a deterministic Turing machine) are in P.

comment 1y ago · link · parent

So quite literally mains hum, at least in countries with 50 Hz systems, since the magnetostriction effect makes the second harmonic dominant.

380.

Could Scotland have Europe's lowest electricity bills?(bbc.co.uk ↗)

3 points · by lambdaone · 1y ago · 1 comment

comment 1y ago · link · parent

Grid connection delays are an absolute nightmare in the UK. Among other things, it's holding up house-building and thus making the housing crisis worse. This is at least a start in trying to get to grips with the problem.

comment 1y ago · link · parent

That's a really fantastic typo. I know it was unintentional, but still...

comment 1y ago · link · parent

Kaggle certainly seems like a good route for this, making it easy for the many people who merely want Wikipedia data, who will now follow the path of least resistance to get it.

I doubt it will discourage the true large-scale bad actors for whom Wikipedia is only a tiny subset of what they are trying to download, and are sufficiently well-resourced that they can't be bothered to special-case it.

It'll be interesting to see how this plays out.

384.

Clean energy projects prioritised for grid connections(gov.uk ↗)

13 points · by lambdaone · 1y ago · 1 comment

comment 1y ago · link · parent

Fascinating work. I'm in the process of reading David Graeber's The Dawn of Everything, so this is timely for me.

comment 1y ago · link · parent

It's an entertainment article, and doesn't make any claim to be anything else. I'm not sure what you would prefer in its place; can you give any examples of what you would consider to be a suitable treatment of this topic?

comment 1y ago · link · parent

I was there. I drew the artwork for the poster for the talk that got pinned up on noticeboards around the univrsity. I met Conway a handful of times, mostly at DAMTP, and he was always interesting, always with new ideas.

comment 1y ago · link · parent

I feel the words "might" and "some" are doing a lot of heavy lifting in that sentence. The downsides of tariffs, though, are not hypothetical.

comment 1y ago · link · parent

Either local solar panels, grid power, or a combination of both, yes. And of course solar panels can also indirectly "store" power by simply reducing demand on hydro resources during the day, allowing water to back up for night-time use.
1
121314
20