<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tales from the Evil Empire : Science</title><link>http://weblogs.asp.net/bleroy/archive/tags/Science/default.aspx</link><description>Tags: Science</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Metrics in software and physics</title><link>http://weblogs.asp.net/bleroy/archive/2009/11/13/metrics-in-software-and-physics.aspx</link><pubDate>Sat, 14 Nov 2009 07:32:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7254161</guid><dc:creator>Bertrand Le Roy</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bleroy/rsscomments.aspx?PostID=7254161</wfw:commentRss><comments>http://weblogs.asp.net/bleroy/archive/2009/11/13/metrics-in-software-and-physics.aspx#comments</comments><description>&lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 10px 0px; display: inline; border-top: 0px; border-right: 0px" title="A Horrible experiment" border="0" alt="A Horrible experiment" align="left" src="http://weblogs.asp.net/blogs/bleroy/IMG_3417_49AFDA4B.jpg" width="164" height="244" /&gt; Every so often, &lt;a href="http://codebetter.com/blogs/david_laribee/archive/2009/11/13/code-coverage-what-is-it-good-for.aspx"&gt;somebody points out how bad of a metric code coverage is&lt;/a&gt;. And of course, on its own, it doesn’t tell you much: after all, it’s a single number. How could it possibly reflect all the subtlety (or lack thereof) of your designs and of your testing artillery? Of course, within all the various *DD approaches, some better than others enable you to know whether or not your code conforms to its requirements, but I thought I’d take a moment to reflect on the general idea of a software metric and how it relates to the mothers of all metrics: physical ones, cause you know, I used to be a scientist. Proof: the lab coat on the picture.&lt;/p&gt;  &lt;p&gt;The theory of measurement is at the center of all experimental physics. This comes from the realization that any observation of the natural world is ultimately indirect.&lt;/p&gt;  &lt;p&gt;For example, when you look at a red ball, you don’t directly perceive it. Rather, photons hit it, some of them are absorbed by the surface of the ball (violet, blue, green and yellow ones, but not red ones) and some of them bounce back (the red ones if you’ve been following). Those red photons that bounced back then hit your eyes, where a lens distorts their paths so that all those photons that came from a specific point on the ball converge to roughly the same spot on your retina. Then, the photoreceptor cells on the retina transform the light signal into electric impulses in your optic nerve, which conveys all that information into your brain and then, only then the complex mechanisms of conscience give you the wonderful illusion of seeing a red ball in front of your eyes.&lt;/p&gt;  &lt;p&gt;The brain reconstructs a model of the universe, but what it really ever perceives is a pattern of electric impulses. Everything in between is a rather elaborate &lt;a href="http://rubegoldberg.com/"&gt;Rube-Goldberg&lt;/a&gt; contraption that can be trusted most of the time but that is actually &lt;a href="http://www.bing.com/images/search?q=optical+illusions"&gt;rather easy to fool&lt;/a&gt;. That it can be fooled at all is the simple consequence that what you observe is an indirect and partial measure of reality rather than reality itself.&lt;/p&gt;  &lt;p&gt;When we measure anything in physics, we build our own devices that transform objective reality into perceivable quantities. For example, when physicists say &lt;a href="http://exoplanet.eu/"&gt;they have “seen” a planet around a faraway sun&lt;/a&gt;, they don’t (always) mean that they put their eyes on the smaller end of a telescope and perceived the shape of that planet with their own eyes like I saw the red ball of the previous paragraph. No, what they saw is something like this on a computer monitor:&lt;a href="http://www.iop.org/EJ/article/1538-4357/529/1/L45/995832.html"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 10px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="What a beautiful planet!" border="0" alt="What a beautiful planet!" src="http://weblogs.asp.net/blogs/bleroy/fg2_73632F71.gif" width="520" height="355" /&gt;&lt;/a&gt;This shows the very small (1.5%) variation of the light coming from the star as the planet transits in front of it. All this really tells them is that something dark that takes about 1.5% of the area of the star passed in front of it. By repeating that observation, they can see that it happens every 3.5 days. That’s it. No image, just measures of the amount of light coming out of a powerful telescope aimed at a star against time.&lt;/p&gt;  &lt;p&gt;But just from that minimal data and our centuries old knowledge of celestial mechanics, researchers were able to deduce that a planet 1.27 times the size of Jupiter but 0.63 times its mass and a surface gravity about the same as Earth’s was orbiting that star. That’s an impressively precise description of a big ball of gas that is 150 light years away (that’s 1.4 million billion kilometers in case you’re wondering or 880 thousand billion miles if you insist on using an archaic unit system).&lt;/p&gt;  &lt;p&gt;The Rube Goldberg device that enables us to see that big ball of gas from so far away is a mix of optics, electronics and &lt;em&gt;knowledge&lt;/em&gt;, the latter being the really awesome part. Science is awesome. The bottom line of all this is that although it seems less “direct” than seeing the red ball with our own eyes, it does just as well deserve to be described as “seeing” it. The only difference is that we’re not seeing with our eyes but more with our brains. How awesome is that?&lt;/p&gt;  &lt;p&gt;Where was I?&lt;/p&gt;  &lt;p&gt;Yes, you might be wondering what this has to do with software. Well, all that long digression was to show that little data is necessary to infer a lot about the object you’re observing. So code coverage? Sure, it’s just a number, but combined with a few other numbers, it can help get a reliable picture of software quality.&lt;/p&gt;  &lt;p&gt;Another point I’d like to make is that a lot of resistance to software metrics comes from the illusion that we know a lot more about our own code than any tool can tell us. But as anyone who has ever tried to read code he wrote only five years ago knows, that is delusional. What you know about your code is a combination of what you remember and what you &lt;em&gt;intended&lt;/em&gt; to write, neither of which is particularly reliably representative of what your code is doing. Tools give us a much more reliable picture. Sure, it’s a narrow projection of the code and it doesn’t capture its full reality, but that is exactly the point of a measure: to project a complex object along a scale of our choosing. What set of projections you choose to make is what determines their relevance.&lt;/p&gt;  &lt;p&gt;The conclusion of all this is that we should assume that our code is an unknown object that needs to be measured, like that big ball of gas 150 light years away, if we want to get an objective idea of its quality without having our judgment clouded by our own assumptions.&lt;/p&gt;  &lt;p&gt;And probably the best tool you can use to do exactly this by the way is &lt;a href="http://www.ndepend.com/"&gt;NDepend&lt;/a&gt; by &lt;a href="http://codebetter.com/blogs/patricksmacchia/default.aspx"&gt;Patrick Smacchia&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7254161" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bleroy/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/bleroy/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/bleroy/archive/tags/Science/default.aspx">Science</category></item><item><title>The symmetrical universe</title><link>http://weblogs.asp.net/bleroy/archive/2009/08/17/the-symmetrical-universe.aspx</link><pubDate>Mon, 17 Aug 2009 08:01:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7171141</guid><dc:creator>Bertrand Le Roy</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bleroy/rsscomments.aspx?PostID=7171141</wfw:commentRss><comments>http://weblogs.asp.net/bleroy/archive/2009/08/17/the-symmetrical-universe.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;&lt;a href="http://weblogs.asp.net/blogs/bleroy/TroisCropped_154BE8B0.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 10px 0px; display: inline; border-top: 0px; border-right: 0px" title="(c) Bertrand Le Roy 2005" border="0" alt="(c) Bertrand Le Roy 2005" align="left" src="http://weblogs.asp.net/blogs/bleroy/TroisCropped_thumb_48A7AC0C.jpg" width="244" height="203" /&gt;&lt;/a&gt; Warning&lt;/strong&gt;: this post is devoid of contents.&lt;/p&gt;  &lt;p&gt;During one of the very first classes of my Bachelor of Science in Physics, I got struck with a particular piece of information that sounded like a revelation to me:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;If a problem exhibits a certain symmetry, the solutions to this problem do not necessarily exhibit that same symmetry, but the set of solutions always does.&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The example my professor was using to illustrate this is the following. Imagine you have the four summits of a square and you want to find how to connect each point to all of the others using lines, but the total length of those lines must be as small as possible.&lt;/p&gt;  &lt;p&gt;The problem itself has mirror symmetry, central symmetry and rotational symmetry with an angle of 90 degrees. In other words, the four summits are perfectly equivalent and can be exchanged without changing the problem in any way.&lt;/p&gt;  &lt;p&gt;Now here’s the weird thing. There are two solutions, which are themselves less symmetrical than the problem itself and that look something like this:&lt;img style="border-bottom: 0px; border-left: 0px; margin: 15px auto; display: block; float: none; border-top: 0px; border-right: 0px" title="How to minimally connect the summits of a square" border="0" alt="How to minimally connect the summits of a square" src="http://weblogs.asp.net/blogs/bleroy/SquareSymmetry_1975C075.png" width="225" height="101" /&gt; &lt;/p&gt;  &lt;p&gt;Notice how rotating any one of those by an angle of 90 degrees doesn’t keep it unchanged, but instead gives the &lt;em&gt;other&lt;/em&gt; solution. In other words the set of solutions (those two solutions together) has exactly the same symmetries as the problem itself although each one of them separately doesn’t.&lt;/p&gt;  &lt;p&gt;This is more far reaching than it seems and is nothing else than the phenomenon called &lt;a href="http://en.wikipedia.org/wiki/Spontaneous_symmetry_breaking"&gt;spontaneous symmetry breaking&lt;/a&gt; that has been keeping a good number of physicists busy during the 20th century and the beginning of the 21st. Because there is only one universe that we can observe, whenever a physical process has the same characteristics as the above problem, the physical world has to choose one of the solutions and “break” the symmetry of the problem.&lt;/p&gt;  &lt;p&gt;Now in any physical process, the experimental conditions are never perfect and small perturbations are likely to push the system to this or that particular solution so there is nothing super-weird about what’s happening here.&lt;/p&gt;  &lt;p&gt;But there &lt;strong&gt;are&lt;/strong&gt; phenomena where an external nudge to the system can’t explain the symmetry breaking: the ones that are at the origin of the universe. Cosmologists are actually still debating explanations to why the universe is so dissymmetrical (the arrow of time, the four fundamental forces, the inhomogeneity of matter, etc.) whereas the equations that seem to describe it are so symmetrical.&lt;/p&gt;  &lt;p&gt;Many plausible explanations do exist, such as &lt;a href="http://en.wikipedia.org/wiki/Multiverse_theory"&gt;that our observable universe is part of a bigger “multiverse”&lt;/a&gt;. The weaker versions of this idea still consider a connected symmetrical universe that is one big multidimensional space-time continuum with different local regions where symmetry is broken in all possible ways. But why do we need the connectedness at all? Is it even an option? If you look at the square problem above, those two solutions are entirely disconnected and you couldn’t find a connected symmetrical solution if you tried. Why would the multiverse then need to be connected?&lt;/p&gt;  &lt;p&gt;This leads us to the strongest version of the multiverse concept, the &lt;a href="http://en.wikipedia.org/wiki/Ultimate_Ensemble"&gt;Mathematical Universe Hypothesis&lt;/a&gt;. The idea behind this is to attribute reality to all mathematical structures and to postulate that our observable universe is just one of this infinite number of structures (in an interesting case of taking the map for the territory).&lt;/p&gt;  &lt;p&gt;Mathematical structures have this interesting property that they exist independently of culture, the human mind and even physics. &lt;a href="http://en.wikipedia.org/wiki/Group_theory"&gt;Group theory&lt;/a&gt; for example could be discovered in any universe and would yield the &lt;a href="http://en.wikipedia.org/wiki/List_of_finite_simple_groups"&gt;exact same list of finite groups&lt;/a&gt;. In other words, they have lots of the qualities we associate with the reality of our own physical universe. Going from that to the idea that our physical world is just emerging from that primordial mathematical soup is quite tempting.&lt;/p&gt;  &lt;p&gt;Now of course, it has been objected that such an idea is not testable or falsifiable and thus cannot be called scientific. That is absolutely true. But it does have that Occam’s razor quality of simplifying some of the apparent complexity of our universe. It also has the advantage of being an entirely naturalistic hypothesis to the origin of the universe if you’re into that sort of thing.&lt;/p&gt;  &lt;p&gt;All this to give you an idea of the rush of ideas that went through my 20 year old brain at the precise moment when that professor showed us those two simple diagrams that you see above, oblivious at the time that those ideas that seemed so new and original to me had actually already been invented and debated a couple of years earlier. I felt at this instant the raw explanatory power of science and also its ability to extend its influence way beyond its self-imposed limits of testability. It is without a doubt the most powerful instrument of thinking and the best catalyst of ideas that the human mind has invented.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7171141" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bleroy/archive/tags/Science/default.aspx">Science</category></item><item><title>Quantum computing done right</title><link>http://weblogs.asp.net/bleroy/archive/2009/04/01/quantum-computing-done-right.aspx</link><pubDate>Wed, 01 Apr 2009 23:44:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7021720</guid><dc:creator>Bertrand Le Roy</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bleroy/rsscomments.aspx?PostID=7021720</wfw:commentRss><comments>http://weblogs.asp.net/bleroy/archive/2009/04/01/quantum-computing-done-right.aspx#comments</comments><description>&lt;p&gt;&lt;img style="border-bottom: 0px; border-left: 0px; margin: 0px 10px 0px 0px; display: inline; border-top: 0px; border-right: 0px" title="(c) 2004 Bertrand Le Roy" border="0" alt="(c) 2004 Bertrand Le Roy" align="left" src="http://weblogs.asp.net/blogs/bleroy/IMG_1561_43B6A0BD.jpg" width="244" height="164" /&gt; I know as a good microsoftee I should be supportive of what my employer does no matter what it is, and I might get fired for this post, but &lt;a href="http://weblogs.asp.net/leftslipper/archive/2009/04/01/the-string-or-the-cat-a-new-net-framework-library.aspx"&gt;Eilon’s latest article&lt;/a&gt; is wrong on so many levels I have to step up with whatever integrity I have left and fix this mess.&lt;/p&gt;  &lt;p&gt;In his post, he exposes the new ShrödingOr&amp;lt;TDead, TAlive&amp;gt; type that will be introduced in .NET 5.0 as part of the System.QuantumEntanglement namespace. Well, let’s face it, the current implementation has nothing quantum about it.&lt;/p&gt;  &lt;p&gt;Here’s how I would have written it:&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;namespace &lt;/span&gt;System.QuantumEntanglement {
    &lt;span style="color: blue"&gt;public class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SchrödingOr&lt;/span&gt;&amp;lt;TDead, TAlive&amp;gt; {
        &lt;span style="color: blue"&gt;private &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex &lt;/span&gt;_howDead;
        &lt;span style="color: blue"&gt;private &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex &lt;/span&gt;_howAlive;

        &lt;span style="color: blue"&gt;public &lt;/span&gt;SchrödingOr(&lt;span style="color: #2b91af"&gt;Complex &lt;/span&gt;howDead, &lt;span style="color: #2b91af"&gt;Complex &lt;/span&gt;howAlive) {
            _howDead = howDead;
            _howAlive = howAlive;
        }

        &lt;span style="color: blue"&gt;public &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Type &lt;/span&gt;Measure() {
            &lt;span style="color: blue"&gt;double &lt;/span&gt;howAliveSquareModulus =
                _howAlive.Real * _howAlive.Real +
                _howAlive.Imaginary * _howAlive.Imaginary;
            &lt;span style="color: blue"&gt;double &lt;/span&gt;howDeadSquareModulus =
                _howDead.Real * _howDead.Real +
                _howDead.Imaginary * _howDead.Imaginary;
            &lt;span style="color: blue"&gt;double &lt;/span&gt;probabilityOfBeingAlive = howAliveSquareModulus /
                (howAliveSquareModulus + howDeadSquareModulus);

            &lt;span style="color: blue"&gt;if &lt;/span&gt;((&lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Random&lt;/span&gt;()).NextDouble() &amp;lt; probabilityOfBeingAlive) {
                _howAlive = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex&lt;/span&gt;(1, 0);
                _howDead = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex&lt;/span&gt;(0, 0);
                &lt;span style="color: blue"&gt;return typeof&lt;/span&gt;(TAlive);
            } &lt;span style="color: blue"&gt;else &lt;/span&gt;{
                _howAlive = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex&lt;/span&gt;(0, 0);
                _howDead = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex&lt;/span&gt;(1, 0);
                &lt;span style="color: blue"&gt;return typeof&lt;/span&gt;(TDead);
            }
        }
    }
}&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;This way, the state really is a (complex) linear combination of the dead and alive types, which are the eigenstates of the system. Once you’ve created the state, you can never get it back unless you do a measurement. When you do that, the object collapses its state to one of the eigenstates based on probabilities determined by the actual quantum state of the system.&lt;/p&gt;

&lt;p&gt;The first measurement is random but once you’ve measured it, the cat remains alive or dead forever (the entanglement is destroyed by the measure).&lt;/p&gt;

&lt;p&gt;Here’s a little console app that creates a cat, puts it in the box and then opens the box:&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;static void &lt;/span&gt;Main(&lt;span style="color: blue"&gt;string&lt;/span&gt;[] args) {
    &lt;span style="color: green"&gt;// put the cat in the box
    &lt;/span&gt;&lt;span style="color: blue"&gt;var &lt;/span&gt;cat = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SchrödingOr&lt;/span&gt;&amp;lt;&lt;span style="color: #2b91af"&gt;DeadCat&lt;/span&gt;, &lt;span style="color: #2b91af"&gt;LiveCat&lt;/span&gt;&amp;gt;(
        &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex&lt;/span&gt;(1, 0), &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Complex&lt;/span&gt;(1, 0));
    &lt;span style="color: green"&gt;// Open the box
    &lt;/span&gt;&lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.Write(cat.Measure() == &lt;span style="color: blue"&gt;typeof&lt;/span&gt;(&lt;span style="color: #2b91af"&gt;DeadCat&lt;/span&gt;) ?
        &lt;span style="color: #a31515"&gt;&amp;quot;Cat is dead.&amp;quot; &lt;/span&gt;: &lt;span style="color: #a31515"&gt;&amp;quot;Cat is alive&amp;quot;&lt;/span&gt;);
    &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.ReadKey();
}&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;

&lt;p&gt;This, I believe, is a much more realistic and useful implementation of SchrödingOr.&lt;/p&gt;

&lt;p&gt;The code: &lt;a title="http://weblogs.asp.net/blogs/bleroy/Samples/Quantum.zip" href="http://weblogs.asp.net/blogs/bleroy/Samples/Quantum.zip"&gt;http://weblogs.asp.net/blogs/bleroy/Samples/Quantum.zip&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Eilon’s original article: &lt;a title="http://weblogs.asp.net/leftslipper/archive/2009/04/01/the-string-or-the-cat-a-new-net-framework-library.aspx" href="http://weblogs.asp.net/leftslipper/archive/2009/04/01/the-string-or-the-cat-a-new-net-framework-library.aspx"&gt;http://weblogs.asp.net/leftslipper/archive/2009/04/01/the-string-or-the-cat-a-new-net-framework-library.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7021720" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bleroy/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/bleroy/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/bleroy/archive/tags/Science/default.aspx">Science</category></item><item><title>Deep thoughts on scientific research</title><link>http://weblogs.asp.net/bleroy/archive/2006/09/29/Deep-thoughts-on-scientific-research.aspx</link><pubDate>Fri, 29 Sep 2006 22:22:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:595158</guid><dc:creator>Bertrand Le Roy</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bleroy/rsscomments.aspx?PostID=595158</wfw:commentRss><comments>http://weblogs.asp.net/bleroy/archive/2006/09/29/Deep-thoughts-on-scientific-research.aspx#comments</comments><description>&lt;p&gt;Heard on &lt;a href="http://www.franceinter.com" target="_blank"&gt;France Inter&lt;/a&gt; the other day about scientific research funding (didn&amp;#39;t catch the names of the authors of these quotes though):&lt;/p&gt;&lt;p&gt;&amp;quot;Ignorance will always be more expensive than research.&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;quot;Electricity wasn&amp;#39;t discovered by&amp;nbsp;trying to improve the candle.&amp;quot;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=595158" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bleroy/archive/tags/Science/default.aspx">Science</category></item><item><title>The duck's wake</title><link>http://weblogs.asp.net/bleroy/archive/2006/03/01/The-duck_2700_s-wake.aspx</link><pubDate>Wed, 01 Mar 2006 08:31:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:439327</guid><dc:creator>Bertrand Le Roy</dc:creator><slash:comments>10</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bleroy/rsscomments.aspx?PostID=439327</wfw:commentRss><comments>http://weblogs.asp.net/bleroy/archive/2006/03/01/The-duck_2700_s-wake.aspx#comments</comments><description>&lt;p&gt;This is the first translation I&amp;#39;m doing of one of my French science popularization blog posts.&lt;/p&gt;&lt;p&gt;When I was preparing my PhD thesis a few years ago, I was also doing weekly hour-long preparation sessions for groups of three students to train them for the engineering schools contests. In these sessions, each student is given a problem that he must solve on a chalkboard.&lt;/p&gt;&lt;p&gt;The students were often brilliant and showed a great physical sense.&lt;/p&gt;&lt;p&gt;One of my favorite problems was the following: &amp;quot;the duck&amp;#39;s wake&amp;quot;. The student was supposed to figure out both the questions and the answers. Great exercise if you ask me and very revealing of the student&amp;#39;s qualities or lack thereof. Here are some of the things you could say on this subject...&lt;/p&gt;&lt;p&gt;Let&amp;#39;s simplify and suppose that the duck is a dimensionless point. When it moves on the water surface, it casts waves. Let&amp;#39;s imagine&amp;nbsp;these circular waves travel at an approximately constant speed (in reality they don&amp;#39;t, more on that later). There are two possibilities: the duck can move slower than the waves, in which case the first wave will always be ahead of all the others, or the duck is &amp;quot;supersonic&amp;quot; and the waves will form a triangular wake. The first question you can ask yourself is to determine the relation between the angle of the wake and the speed of the duck. As could be expected, the faster the duck, the sharper the angle. The angle would be 180 degrees if the duck had the exact speed of the waves: the wavefront would be a line perpendicular to the direction of the duck and it would move with it.&lt;/p&gt;&lt;p&gt;The triangle that the wave&amp;#39;s enveloppe creates is really a shockwave similar to the one that a supersonic plane emits. The supersonic bang is just the shockwave. Contrary to popular belief, the bang is not emitted by the plane as it passes the speed of sound but is continually emitted as long as it travels faster than sound. The thing is that the places where the bang can be heard move at the speed of sound. What you hear when a supersonic plane flies by is thus, to summarize: silence as long as you&amp;#39;re outside the sound cone, a bang as you enter it, and the noise of the plane after that.&lt;/p&gt;&lt;p&gt;The second question you could ask is the repartition of energy in the shockwave. The result of the calculation is really surprising: the energy diverges and becomes infinite at the tip of the cone. This means that you would need infinite energy to go above the speed of sound. I suppose that&amp;#39;s one reason why people used to think it was impossible. Of course, it&amp;#39;s not really infinite in practice, just very expensive because no plane or duck is a point.&lt;/p&gt;&lt;p&gt;So now we know that any object that travels faster than the waves it emits emits these waves as a shockwave that packs most of its energy in its enveloppe. This phenomenon is commonly observed for surface waves (a duck&amp;#39;s or a boat&amp;#39;s wake) as well as for sound (supersonic planes). Now can it be observed for lightwaves?&lt;/p&gt;&lt;p&gt;&lt;em&gt;A priori&lt;/em&gt;, no physical object can travel faster than the speed of light in a vacuum, so this phenomenon looks like something that would be out of the question. Nevertheless, light doesn&amp;#39;t always travel in a vacuum. In any medium, light travels slower than the speed of light in a vacuum. It is thus possible to travel faster than light in a medium. The shockwave that the theory predicts does exist and is a commonly observed phenomenon called &lt;a href="http://en.wikipedia.org/wiki/Cherenkov_effect" target="_blank"&gt;Cerenkov radiation&lt;/a&gt;. It is this radiation that is used in some neutrino detection devices.&lt;/p&gt;&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Neutrinos" target="_blank"&gt;Neutrinos&lt;/a&gt; are subtle particles. They have a very low mass (it&amp;#39;s only recently that we&amp;#39;ve discovered thay have one), they don&amp;#39;t have an electrical charge, don&amp;#39;t participate in the strong force and the only way they interact with anything is through improbable weak interactions (gravitation can be neglected for detection purposes, the neutrino masses being so small). Despite their being very common particles in the universe (billions of neutrinos go through us every second), as they rarely interact with ordinary matter that is made from electrons, protons and neutrons, their detection is very difficult. Some detectors use the Cerenkov effect. When a neutrino interacts inside the detector, a particle such as an electron can be emitted with a faster than light speed. This particle emits light while decelerating (any charged particle accelerating emits electromagnetic waves). The resulting shockwave is then measured by detectors, from which we can deduce the trajectory of the charged particle, which gives us the direction of the neutrino that created it.&lt;/p&gt;&lt;p&gt;This is how you can start from the duck&amp;#39;s wake and end up discussing the detection of neutrinos. That&amp;#39;s just one illustration of the extraordinary explicative power of physics...&lt;/p&gt;&lt;p&gt;&lt;strong&gt;UPDATE:&lt;/strong&gt; comments pointed out that the &lt;a href="http://www.galleryoffluidmechanics.com/waves/duck2.htm" target="_blank" title="a nice picture of a duck&amp;#39;s wake"&gt;angle of the wake of the duck&lt;/a&gt; (or of a boat, or of whatever moves fast enough) does not depend on the speed of the object, as the good Lord Kelvin showed. It is constant at approximately&amp;nbsp;39 degrees. This is because the speed of the waves depends on the wavelength in such a subtle way as to cancel the dispersion that a single wavelength wave would show. Our simplistic calculation is still perfectly valid for cases where such dispersion doesn&amp;#39;t exist, such as &amp;Ccedil;erenkov radiation.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=439327" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bleroy/archive/tags/Science/default.aspx">Science</category></item><item><title>Black hole evaporation paradox?</title><link>http://weblogs.asp.net/bleroy/archive/2004/12/14/black-hole-evaporation-paradox.aspx</link><pubDate>Wed, 15 Dec 2004 00:45:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:301350</guid><dc:creator>Bertrand Le Roy</dc:creator><slash:comments>13</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bleroy/rsscomments.aspx?PostID=301350</wfw:commentRss><comments>http://weblogs.asp.net/bleroy/archive/2004/12/14/black-hole-evaporation-paradox.aspx#comments</comments><description>&lt;DIV&gt;I just sent this letter to &lt;A href="http://www.sciam.com/" mce_href="http://www.sciam.com"&gt;Scientific American&lt;/A&gt;. I'd be interested to have any informed opinion on the matter.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I’ve read the &lt;A href="http://www.sciamdigital.com/browse.cfm?sequencenameCHAR=item2&amp;amp;methodnameCHAR=resource_getitembrowse&amp;amp;interfacenameCHAR=browse.cfm&amp;amp;ISSUEID_CHAR=7935C8F4-2B35-221B-61F1030A5C6B32EF&amp;amp;ARTICLEID_CHAR=79508D6F-2B35-221B-6A42C8CA21EE1ECF&amp;amp;sc=I100322" mce_href="http://www.sciamdigital.com/browse.cfm?sequencenameCHAR=item2&amp;amp;methodnameCHAR=resource_getitembrowse&amp;amp;interfacenameCHAR=browse.cfm&amp;amp;ISSUEID_CHAR=7935C8F4-2B35-221B-61F1030A5C6B32EF&amp;amp;ARTICLEID_CHAR=79508D6F-2B35-221B-6A42C8CA21EE1ECF&amp;amp;sc=I100322"&gt;article about black hole computers&lt;/A&gt; with great interest, but there are still a few questions that I think remain unanswered.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The article makes it quite clear how black holes could be memory devices with unique properties, but I didn’t quite understand what kind of logical operations they could perform on the data.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;But another, more fundamental question is bugging me ever since I read the article. From what I remember learning about black holes, if you are an observer outside the black hole, you will see objects falling into the black hole in asymptotically slow motion. The light coming from them will have to overcome a greater and greater gravitational potential as the object approaches the horizon, losing energy along the way and shifting to the red end of the spectrum. From our vantage point, it seems like the object does not reach the horizon in a finite time.&lt;/DIV&gt;
&lt;DIV&gt;From a frame that moves with the object, though, it takes finite time to cross the horizon.&lt;/DIV&gt;
&lt;DIV&gt;This is all very well and consistent so far. Enter black hole evaporation.&lt;/DIV&gt;
&lt;DIV&gt;From our external vantage point, a sufficiently small black hole would evaporate over a finite period of time. So how do we reconcile this with the perception that objects never actually enter the horizon?&lt;/DIV&gt;
&lt;DIV&gt;It seems like what would really happen is that as the horizon would actually become smaller over time, the incoming particles would actually never enter it.&lt;/DIV&gt;
&lt;DIV&gt;If this is true, and no matter ever enters it, would the black hole and the horizon exist at all?&lt;/DIV&gt;
&lt;DIV&gt;From the point of view of an incoming object, wouldn’t the horizon seem to recess exponentially fast and disappear before it is reached?&lt;/DIV&gt;
&lt;DIV&gt;If nothing ever enters the horizon, is it really a surprise that black hole evaporation conserves the amount of information?&lt;/DIV&gt;
&lt;DIV&gt;Does the rate of incoming matter modify the destiny of the black hole? If it grows faster than it evaporates, I suppose the scenario is modified, but how so?&lt;/DIV&gt;
&lt;DIV&gt;I know it is quite naïve to think in these terms and that a real response could only come from actual calculations, but still, I hope that you can give me an answer to what looks like a paradox to me. I don’t see how you can reconcile the perceptions of an external and a free-falling frame of reference if the black hole evaporates except if nothing ever enters the horizon.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&amp;nbsp;a recent paper presents a similar theory to solve the information paradox:&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://arxiv.org/abs/gr-qc/0609024v3"&gt;http://arxiv.org/abs/gr-qc/0609024v3&lt;/A&gt;&lt;BR&gt;&lt;A href="http://arstechnica.com/news.ars/post/20070622-apotential-solution-to-the-black-hole-information-loss-paradox.html"&gt;http://arstechnica.com/news.ars/post/20070622-apotential-solution-to-the-black-hole-information-loss-paradox.html&lt;/A&gt;&lt;A href="http://feeds.feedburner.com/~r/arstechnica/BAaf/~3/127099479/20070622-apotential-solution-to-the-black-hole-information-loss-paradox.html"&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=301350" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bleroy/archive/tags/Science/default.aspx">Science</category></item></channel></rss>