Better HN
topnewbestaskshowjobs
Log inSign up

lefra

297 karma · joined Dec 23, 2025 (11mo ago) · 130 submissions

Submissions

comment 2d ago · link · parent

I like that this takes care not to conflate the DFT (the computed value), with the FFT (a family of algorithm to compute it).

comment 4d ago · link · parent

Before long-running commands, open a screen [1] session. That way, if you get disconnected, the job keeps running, and you can reconnect to the screen session afterwards.

The man page is quite long, use "screen -R <appropriate name" to create the session or reconnect to it, and (IIRC) CTRL-A D to exit screen without closing the session.

[1] https://man7.org/linux/man-pages/man1/screen.1.html

comment 5d ago · link · parent

It is possible to design a keyboard, with a 4g chip inside to send all keypresses to whomever or remotely take control of the airgapped computer. The firmware will of course spoof a legitimate device ID. That's not even hard, a few weeks of work at most for an electronics engineer + embedded software developper.

You don't protect against that with software, but with careful supply-chain control, a faraday cage, and an armed guard who detains anyone attempting something funny.

comment 6d ago · link · parent

If I went to the extreme of air-gapping a machine, I'd make sure that anyone trying to plug a phone to it gets fired on the spot.

comment 1w ago · link · parent

Python code using advanced features of the language (see for example [1]) look as much like line noise as C++ template metaprogramming. If "close to the english language" is your criterion, I believe COBOL should rank higher than python:

ADD transaction-balance TO total-balance.

Is readable to a layman whereas this isn’t:

total-balance += transaction-balance

Or even worse for someone who learned algebra but not programming (this looks like an equation, and transaction-balance is therefore equal to zero):

total-balance = total-balance + transaction-balance

[1] https://stackoverflow.com/questions/6760685/what-is-the-best...

comment 1w ago · link · parent

IMO, they need to fall below the land cost for the same computing power somewhere in a desert.

comment 1w ago · link · parent

Maybe I missed something obvious, but how does an orbital ring make rockets obsolete for surface to orbit trips?

comment 2w ago · link · parent

QAM can absolutely be used in fiber optics communication. Encoding and decoding systems are complicated (I won’t pretend to understand it), but it exists.

Example of a research paper using it: https://www.researchgate.net/publication/290224766_Investiga...

comment 2w ago · link · parent

Chinese EV have heavy import taxes in the EU. Also in France, (I don’t know in other countries), you get more subvention when buying an EU-made EV. This heavily distorts the market to try to save VW and friends.

comment 3w ago · link · parent

I'm european, recently went to Korea. The nav system was almost perfect, only complaint I have is that it signalled every single speed bump (I can see them, thanks). There probably was a setting somewhere to tell it not to, but I didn't care enough to try to find it.

comment 3w ago · link · parent

Is "99% the same" good or catastrophic in this context?

comment 3w ago · link · parent

> [if] the tests are reliable

Reading the tests is meant to check that.

comment 3w ago · link · parent

I see no issue here.

Modifying a variable that is read by another thread needs special care in all multithreaded languages I know. If you don't use a synchronization primitive to tell the other thread "hey, this thing here may have changed, read it again from memory"; the other thread is free to use its old value for as long as it whishes.

comment 1mo ago · link · parent

> [the] spin is random and lives in a probability cloud that is probabilistic only until we observe it.

My mental model of it is kinda reversed. The maths assign a specific, deterministic state to each electron between each measurement. However, the "left" state is equal to "(up + down) / sqrt(2)". It then follows that when we measure an electron that is in the "left" state along the vertical direction, we get 50% up and 50% down: the probabilistic behavior happens when measuring, which "forces" an electron that was in the "left" state to become either "up" or "down".

I agree though that it would be less frustrating if there was some property of the electrons that would allow to predict in which state it'll collapse.

comment 1mo ago · link · parent

It's completely counterintuitive, but that's how it works experimentally. For example:

Measure the spin of electrons in direction X (that's done with a weirdly shaped magnet). You'll get either +1 or -1 in a conveniently chosen unit system. That's already weird, you'll never measure +0.5 for example. Keep only the +1 electrons. You can measure them again and again, you'll always get +1 in the X direction.

Now measure those electrons in the Y direction, you'll also get either +1 or -1.

But now, if you measure in the X direction again, you'll get +1 or -1 with 50% probability; although before measuring in the Y direction, these electrons always had spin +1 in the X direction.

comment 1mo ago · link · parent

Quantum physics is a theory, as in "as far as we can tell, this is an exact mathematical description of the world".

Models are simplifications/approximations made on purpose, as in "I know this is wrong on some level, but it's close enough for my use case", or "this makes the maths solvable".

comment 1mo ago · link · parent

Some countries solve that by just banning mail-in voting and moving paper ballots.

In France for example, voting happens on a specific day with transparent ballot boxes, with the counting happening in the polling station (you may stay for the whole day in your polling station if you want to oversee the whole process). Yes this is problematic for voters in foreign countries, because they need to go to the embassy to vote, but the voting protocols chose transparency over practicality.

IIRC, deployed military get a polling station in their military base. A voter may also designate someone in the same polling station as theirs to vote in their place.

comment 1mo ago · link · parent

I believe it's a spectrum, just like there is a whole spectrum between the Mona Lisa and a generic flyer for your local bowling alley.

comment 1mo ago · link · parent

Monthly revenue?

comment 1mo ago · link · parent

By adding up the uncertainties of all intermediate measurements they made.

As a parallel, for a regular clock, you'd measure and compute the uncertainties of:

- The distance between the axis of rotation and the center of mass of the pendulum,

- The local acceleration of gravity.

And deduce the pendulum period and its uncertainty by calculus.

In that case I'm not sure you can build (and measure) a pendulum that's more precise than a previous realization of the second (because the meter is defined from the speed of light and the second, and gravimeters probably depend on the definition of the second too).

That's why the definition of base units is carefully chosen to not depend on previous realization. IIRC time is the most fundamental of base units, because other base units depend on it.

comment 1mo ago · link · parent

In places where it's been living for hundreds of years, that's a legitimate concern.

In Europe though, where aedes aegypti didn't exist 20 years ago, it's probably the other way around: what did the introduction of this new species damage? (apart from making the summer unbearable outside if any of your neighbour isn't very strict with standing water elimination)

comment 1mo ago · link · parent

All the frequencies, in varying amounts. Next question, please.

comment 2mo ago · link · parent

I never used it in practice, so maybe the support isn't that good, but I was under the impression that it was possible to pass custom allocators basically everywhere in the STL. See for example the definition of a vector here:

https://en.cppreference.com/cpp/container/vector

comment 2mo ago · link · parent

Good idea, but it says that hiking in Spain in august is fine...

comment 2mo ago · link · parent

If a company wants to sell in the EU, they should comply with EU rules. The market and the regulations are closely linked, you won't get one without the other.

comment 2mo ago · link · parent

"Annexing neighbour" is clearly a non-goal of the EU. One of the reason of its existence is to put an end to european countries invading each others all the time.

comment 2mo ago · link · parent

Converting Sun to electricity to power a water heater is suboptimal. The water can be heated directly by the Sun. If you can put a water tank above the solar panel, you don't even need a pump.

comment 2mo ago · link · parent

Coming from an optics/electronics background, it's fascinating to see how much debate there is here around whether a design document is useful or not. I don't think any engineer outside software would start a project without writing at least a few paragraphs to make sure everyone agrees on what needs to be built, and that there's no major blocker.

I blame the low cost of iteration in the software world (even lower now with LLMs).

comment 2mo ago · link · parent

Most dimensions here look like a designer draw curves that looked good, and the person creating the drawing told their CAD software "put a reference point every 0.5mm of this curve".

The mold manufacturer will ignore this part of the drawing, and tell their machine "follow the curve that's in the production file, with tool X at speed Y etc".

12345