News for hackers. Stuff that matters.
Re:Maxwell’s Demon Continues to Startle Scientists by c3534l on Friday April 23, 2021 @02:34AM (#26911604)
I never understood what was so important about Maxwell's Demon. If an external, supernatural force acts upon a system to reduce entropy how is this in any way contradictory or surprising? Articles, like this one, explain the thought experiment, then are just content to assume that this is obviously a puzzle of some kind and I just think "so what?"
Re:Maxwell’s Demon Continues to Startle Scientists by FeepingCreature on Friday April 23, 2021 @03:06AM (#26911869)
I think "demon" just acts as a placeholder for "component whose behavior we can describe in intentional terms." As I understand it, the demon is not supposed to be a supernatural force, it's supposed to be a physical component in the system. We know now that building such a component is theoretically impossible, which is why the demon would need to appeal to supernatural means, but this was not clear for a long time.

Besides, "Maxwell's sensor controlled opening" sounds boring.

edit: To cite Theory of Heat ( https://upload.wikimedia.org/wikipedia/commons/b/b8/J._Clerk... ):

"But if we conceive a being whose faculties are so sharpened that he can follow every molecule in its course, such a being, whose attributes are still as essentially finite as our own (emphasis mine), would be able to do what is at present impossible to us. ... He will thus, without expenditure of work, raise the temperature of B and lower that of A, in contradiction to the second law of thermodynamics."

Which IMO makes it clear Maxwell thought of his demon as a fundamentally natural system.

Re:Maxwell’s Demon Continues to Startle Scientists by kryogen1c on Friday April 23, 2021 @07:43AM (#26913685)
>As I understand it, the demon is not supposed to be a supernatural force, it's supposed to be a physical component in the system.

if you did that, it would be obvious what the problem is with the thought experiment: physical components have entropy. moving pieces need motive force which make heat, and movement also makes heat.

the thought experiment only makes sense with a nonsense demon, because the though experiment isnt possible.

Re:Maxwell’s Demon Continues to Startle Scientists by FabHK on Friday April 23, 2021 @09:01AM (#26914295)
No. The paradox makes perfect sense with a technical device.

It is conceivable to have fine mechanisms that can be operated with minimal loss of energy and entropy (not bounded away from zero).

Thus, the thought experiment poses a challenge. As the article alluded to, the paradox was solved by the fact that information processing is required, which is also in theory reversible, except for the process of erasing information, which interestingly requires some minimum energy. That then would be just enough to compensate for the energy won from the demon, thus not violating the laws of thermodynamics.

The "demon" is nomenclature in parallel with Laplace's demon (a thought experiment with a machine that knows position and velocity of all particles, and thus can compute the entire past and future of the universe, in Newtonian physics).

https://en.wikipedia.org/wiki/Laplace's_demon

ETA: nicklecompte says it perfectly below: https://news.ycombinator.com/item?id=26912158

Re:Maxwell’s Demon Continues to Startle Scientists by codeulike on Friday April 23, 2021 @08:37AM (#26914069)
Its obvious to us 150 years later because we are very familiar with the idea that processing data needs energy, its as natural an idea to us as plugging in a phone. It wasn't so obvious in 1867.
Re:Maxwell’s Demon Continues to Startle Scientists by philipswood on Friday April 23, 2021 @09:33AM (#26914573)
That's the thing: it doesn't!

(i.e. Processing data doesn't need energy - more correctly "work")

In the limit, you can process information adiabatically.(*) i.e. you can perform a computation without heat exchange, and you can perform computations reversibly.

Maxwell's demon as a thought experiment is actually quite a deep and subtle probe into the boundary between information and thermodynamics.

What you CAN'T do adiabatically or reversibly is clear or set bits and throw away their initial state.

In theory you could make a classical mechanical turing machine that could perform a computation for an arbitrarily small amount of work, but to prepare a blank tape for it (or to configure a tape into a known configuration) will take a certain minimal expenditure of work.

* Ignoring Quantum Physics for now

The Wikipedia page for Reversible Computing might be a place to start reading if you're interested in following up.

Re:Maxwell’s Demon Continues to Startle Scientists by engineer_22 on Friday April 23, 2021 @08:45AM (#26914162)
I don't think you give Maxwell enough credit.
Re:Maxwell’s Demon Continues to Startle Scientists by codeulike on Friday April 23, 2021 @09:15AM (#26914418)
Maxwell was a giant obviously but with his thought experiment of the Demon (which he quite casually came up with in a letter to a friend) he suspected that he had successfully poked holes in the second law - to "show that the 2nd Law of Thermodynamics has only statistical certainty" as he put it. So he thought the law was a statistical guide that could be gotten around in special circumstances. It took the thinkers of the time a long time to realise that tracking all the molecules would need energy.

Whereas if you re-state the thought experiment using todays technology - "imagine a device that tracks all the molecules and opens a hatch to only let the fast ones through" its obvious to us - with our modern conception of processing - that such a device would need a fair bit of juice.

Source: https://archive.org/details/lifescientificwo00knotuoft/page/...

Re:Maxwell’s Demon Continues to Startle Scientists by chriswarbo on Friday April 23, 2021 @10:07AM (#26914920)
> its obvious to us - with our modern conception of processing - that such a device would need a fair bit of juice

It wouldn't.

The hatch itself could operate with no net energy lost/gained, e.g. using a counterweight to cancel out the momentum.

Any required calculations could be carried out with a reversible computer, e.g. a billiard ball computer. This way, once our computation is finished, we just can just run it in reverse to get back any energy that was spent (e.g. anything that needed charging during the computation, will get discharged on the way back; and likewise for any lifting, pushing, etc.).

The only thing which requires energy is resetting the device. This cannot be done reversibly, since it has to 'forget' whether the hatch got opened or not; i.e. reset(opened) -> init and reset(closed) -> init, so we can't "undo" the 'reset' operation to recover any energy it used.

Re:Maxwell’s Demon Continues to Startle Scientists by chriswarbo on Friday April 23, 2021 @09:56AM (#26914811)
> it would be obvious what the problem is with the thought experiment: physical components have entropy. moving pieces need motive force which make heat, and movement also makes heat.

This is such a bad answer, on so many levels.

> physical components have entropy

But do they? It's a bit of a hand-wavey statement on its own, but even if we made it more precise it would be putting the cart before the horse. If we want to understand or explain entropy, then we can't make assertions like this; it would just lead to circular reasoning (fundamentally, our "explanations" would distill down to "physical components have entropy because physical components have entropy").

> moving pieces need motive force which make heat

This is simply incorrect. "Heat" is a large-scale, statistical phenomenon: the kinetic energy of uncorrelated internal movement of components (e.g. the molecules of a gas moving and spinning). Moving pieces don't "make heat"; pieces moving in uncorrelated ways is heat. Hence we have to focus on the correlation, which is exactly what we mean by entropy.

Also "motive force" sounds a bit hand-wavey, and possibly anthropocentric (e.g. it conjures images of bolting things to a steam engine). A better term might be energy gradient, or path of stationary action.

> movement also makes heat

No it does not. First of all, movement is relative. When cosmic rays hit the Earth, they measure Earth's movement as being close to the speed of light. A ballistic missile at apogee measure's the Earth's movement as zero. This is consistent, since movement is relative. Yet heat is not relative: there is no "heat dilation", since heat has net-zero movement in all directions (net movement is correlated and hence, by definition, not heat). Both the cosmic ray and the missile must measure the Earth's heat as the same; hence heat cannot depend on movement.

Secondly 'conservative forces' like gravity and electromagnetism do not lose energy: they can cause perpetual motion; especially at the atomic scale and below, where non-conservative pseudo-forces like friction don't play a role. This is the scale of Maxwell's Demon.

Your faulty reasoning has also arrived at the wrong conclusion. Maxwell's Demon (or a physical analogue, like a nanomachine) can separate gas into hot and cold compartments, without causing any heat, without the need of any external 'motive force', in a conservative/reversible way.

If we follow the correct line of reasoning (which took 115 years to discover, as the article mentions!) we find the catch: it would require unlimited memory. That's something that's not at all "obvious", and certainly not clear from a treatment of 'motive forces' and 'heat'.

Re:Maxwell’s Demon Continues to Startle Scientists by TeMPOraL on Friday April 23, 2021 @07:46AM (#26913708)
Which, I believe, was literally the point of the experiment - proof by contradiction.
Re:Maxwell’s Demon Continues to Startle Scientists by lmkg on Friday April 23, 2021 @09:42AM (#26914668)
In modern terms, we would use the word "oracle" instead of "demon."
Re:Maxwell’s Demon Continues to Startle Scientists by dreamcompiler on Friday April 23, 2021 @10:04AM (#26914897)
Not necessarily. Our computers have dozens of things we call "daemons" running in the background and nobody considers them supernatural.

The word "daemon" for a computer program was inspired by Maxwell's demon, because it works tirelessly in the background. http://www.takeourword.com/TOW146/page4.html

Re:Maxwell’s Demon Continues to Startle Scientists by nicklecompte on Friday April 23, 2021 @03:46AM (#26912158)
It is indeed obvious that an external force can apply energy to a system to reduce entropy.

The trick is that, if you ignore the thermodynamics of information processing, Maxwell's demon can work with arbitrarily little energy (the only physical work it is doing is opening/closing a door with arbitrarily little mass). In fact Maxwell's demon can perform any amount of thermodynamic work with essentially zero physical work. It really does seem to be a violation of energy conservation.

The only way to solve this is by considering the thermodynamics of Maxwell's demon's brain (creating and destroying state as it determines whether or not to let a given molecule pass the door) - and in particular understanding that there is a fundamental thermodynamic cost to storing or deleting information, it is not just a consequence of imperfect circuit/neuron design.

Re:Maxwell’s Demon Continues to Startle Scientists by Strilanc on Friday April 23, 2021 @07:27AM (#26913557)
The demon is introduced as a magical effect, but the obvious followup question is why can't you actually implement it. Why can't you make a machine that lowers entropy by opening and closing a door to let atoms go one way but not the other? Why can't you make a one-way valve? What specifically is magical about the demon? There is an important insight hiding inside that demon.
Re:Maxwell’s Demon Continues to Startle Scientists by jakobnissen on Friday April 23, 2021 @08:06AM (#26913851)
The demon is not really supposed to be magical, but instead "some physical process or machine", e.g. a future nanomachine or something. It's like a "perpetual motion machine" - a hypothetical object that can be used in thought experiments. If it could be shown that creating a Maxwell's demon that creates less entropy than it reduces is impossible, then the paradox is solved. A [brownian ratchet](https://en.wikipedia.org/wiki/Brownian_ratchet) is an example of a (failed) implementation.
Re:Maxwell’s Demon Continues to Startle Scientists by ctdonath on Friday April 23, 2021 @08:29AM (#26914010)
What’s magical: it can observe, decide, and act with zero energy (or at least less energy than real-world thermodynamics requires).
Re:Maxwell’s Demon Continues to Startle Scientists by chriswarbo on Friday April 23, 2021 @10:14AM (#26914983)
> observe

This isn't magical: it's just entanglement/causality. If "observing" required energy, then atoms would either blow apart (due to their electrons not "observing" their nuclei), or collapse (due to their electrons losing energy by "observing" their nuclei).

> decide

This isn't magical: https://en.wikipedia.org/wiki/Billiard-ball_computer

> act

This isn't magical: https://en.wikipedia.org/wiki/Conservative_force

Re:Maxwell’s Demon Continues to Startle Scientists by junippor on Friday April 23, 2021 @04:44AM (#26912509)
I think the point is that it's not "supernatural". Conceptually you could implement it. The opening and closing involves zero work. In reality the work won't be zero due to friction, but you can in principle at least approximate it really well.
Re:Maxwell’s Demon Continues to Startle Scientists by peteretep on Friday April 23, 2021 @06:58AM (#26913360)
> The opening and closing involves zero work

Why?

Re:Maxwell’s Demon Continues to Startle Scientists by chriswarbo on Friday April 23, 2021 @10:17AM (#26915004)
Re:Maxwell’s Demon Continues to Startle Scientists by raducu on Friday April 23, 2021 @05:57AM (#26912940)
The work will never be zero, and I have a hunch it could well be greater than your overall temperature gain.

If the opening works on non-charged particles, it has to have mass and opening and closing it is not possible without work.

The work might be tiny, but your temperature gain is probably event tinier.

If the particle is charged, you don't need a physical gate, but you do work on the particle by exerting a force on it.

You also somehow must detect the particle, and that also takes energy.

Re:Maxwell’s Demon Continues to Startle Scientists by FabHK on Friday April 23, 2021 @09:13AM (#26914405)
> If the opening works on non-charged particles, it has to have mass and opening and closing it is not possible without work.

You could open the gate by pulling it up, which would require work, but you could recover the entire work by letting it sink down again.

It has been shown that the solution was not the physical work of opening/closing the gate, but the work required in information processing, in particular deleting information.

Re:Maxwell’s Demon Continues to Startle Scientists by Traubenfuchs on Friday April 23, 2021 @04:04AM (#26912284)
Reducing it to something absurd, is it anything beyond "If we just ignore this one rule of physics, this other rule of physics also stops working. Gotcha!"?
Re:Maxwell’s Demon Continues to Startle Scientists by thatcherc on Friday April 23, 2021 @09:10AM (#26914384)
I think the real trick with the thought experiment is: which law of physics is the Demon ignoring?

The answer (spoilers) is that the demon is ignoring the entropy of the information it must learns about the particles that pass through the gate - either the Demon stores info about which particles are let through, which has entropy of its own, or the Demon erases that data, which comes with an energy cost that must subtly heat something up and again increases entropy elsewhere. Either way, the entropy of the total system still increases, even though the entropy of the gas decreases.