7 ms·
The Many-Worlds Interpretation of JavaScript
- lalaithion 6y ago> The many-worlds interpretation of quantum mechanics imagines our universe as one node in an infinitely branching tree of universes where every possible quantum outcome exists in its own universe. And each time a universe branches, it creates a child universe that is slightly different from the parent universe, e.g., universal constants such as gravity and the speed of light might differ. Pretty sure this is flat out wrong; the Many Worlds hypothesis does not include universes in which universal constants differ.
- hachibu 6y agoAuthor here. Sorry, I guess I misunderstood that part of the hypothesis. Do you have a source, so I can edit my post and correct it?
- kevinmgranger 6y agoI'm not sure which Sean Carroll talk you saw, but I think he only mentions the differences between worlds in terms of different "choices"-- and these universal constants don't "choose" to be what they are, right?
- hachibu 6y agoThis is the video that inspired this project, but I don't think that I'm knowledgeable enough to answer your question with 100% certainty. https://www.youtube.com/watch?v=gpEvv349Pyk https://www.youtube.com/watch?v=gpEvv349Pyk
- rantwasp 6y agoif you read "Our Mathematical Universe: My Quest for the Ultimate Nature of Reality" by Max Tegmark, many worlds falls in the bucket of L3 multiverse. What you're describing is a L4 multiverse (see comments below. seems it's L2, not L4. will leave my mistake in, although i'm sure there is a parallel universe where i did not make this mistake)
- hachibu 6y agoWhoa, I'm so out of my depth. This is really cool. Thanks for sharing. I didn't know about the multiverse levels!
- orangecat 6y agoLevel 2 is universes generally like ours but with different physical constants: https://en.wikipedia.org/wiki/Multiverse#Level_II:_Universes_with_different_physical_constants https://en.wikipedia.org/wiki/Multiverse#Level_II:_Universes.... Level 4 includes all abstract mathematical structures, like a universe embedded in a Game of Life simulation.
- AgentME 6y agoIt seems you're mixing up MWI with a Max Tegmark Level II multiverse: https://en.wikipedia.org/wiki/Multiverse#Level_II:_Universes_with_different_physical_constants https://en.wikipedia.org/wiki/Multiverse#Level_II:_Universes.... Tegmark considered MWI a separate idea from that and used the label "Level III" for it. MWI is just one of multiple multiverse ideas. Most multiverse ideas (like Tegmark's Levels I, II, and IV) are basically what-if ideas without any direct evidence, but MWI specifically happens to be a more-grounded idea based on trying to make sense of what the (well-tested) Schrodinger equation says about reality. The first part of your description of MWI ("The many-worlds interpretation of quantum mechanics imagines our universe as one node in an infinitely branching tree of universes where every possible quantum outcome exists in its own universe.") is pretty good, if a slight though common simplification (different branches aren't entirely separate, so envisioning it as a tree is only mostly correct; different branches can sum together or cancel each other out if their configurations are identical).
- hachibu 6y agoAh, I think I'm beginning to understand. Perhaps I should just remove the sentence about constants changing.
- hachibu 6y agoThis is a great comment. I updated my post based on your suggestion.
- codethief 6y ago> trying to make sense of what the (well-tested) Schrodinger equation says about reality. Nitpick: The Schrödinger equation predicts unitary time evolution (which is another way of saying that physical systems evolve in a deterministic manner). Interpretations of quantum mechanics exist to make sense of the part of quantum mechanics that doesn't follow unitary time evolution, namely the measurement process.
- runawaybottle 6y agoI might be conflating this with parallel universes, but what would be an example of this? If variations of ‘me’ exist in all worlds, am I the universal constant? Speaking as the center of the universe as far I’m concerned over here :p
- rantwasp 6y agoan example would be the speed of light is different. or the mass of certain particles is different. or the dark matter to normal matter ratios are changed.
- schwartzworld 6y agoversions of you could not exist in all worlds, but there are still an infinite number of universes where you exist
- suby 6y agoI don't understand how this could be true. The chances of you coming into existence require an astronomical number of things to happen in an exact time and order. Changing any number of those variables will cause a chain reaction that will make your existence not happen. If we assume the universe is deterministic, then changing any of the starting variables of the universe will cause a different course of events playing out. If the speed of light were different, for example, a different course of events would have played out and you and I would have never come into existence. If we assume the universe is not deterministic, then even if we had another universe with the exact same starting variables, the chances that things would play out exactly the same are also absurdly small. Just because a set of things is infinite does not mean that it will contain everything. I could have an infinite set of odd numbers, and none of those numbers will be even. It strikes me that infinite number of universes would be the same.
- rantwasp 6y agoright. it's more like copy-on-write than a completely different replica. also, the probability of the outcomes is not the same (ie some worlds may be more equal/present than others). it's questionable if it's one world or a split happens and we have multiple worlds. I would lean toward one world with phenomena that we don't really understand.
- doubleunplussed 6y agoThe main thing that's wrong is that we have no reason to believe the fundamental constants change. Regular quantum mechanics is compatible with the many-worlds interpretation (of course it is), but talk of fundamental constants changing would require new theories that we don't have (not to mention evidence of those theories). That would be something incompatible with quantum mechanics as we know it, within which the fundamental constants are, well, constant.
- rantwasp 6y agojust because those constants are incompatible with our current understanding does not mean it's not possible, even if only on a theoretical level.
- EdJiang 6y agoThe JS equivalent would be for this to use different babel, and node.js versions? Random compatible dependencies based on semver?
- hachibu 6y agoThat's hilarious. I should have done that.
- archgoon 6y agoWell; another problem is that saying that branching happens at all is to miss the point of MWI; which is to avoid collapse. There aren't any discrete "branching" events.
- TheOtherHobbes 6y agoThat sounds unlikely because empirically Certain Things Happen and Other Things Don't, and you need to be able to explain why. With examples. MWI honestly sounds like the philosophical equivalent of No True Scotsman with added Meatloaf - no one is really sure what it means in detail, but they're somehow sure it doesn't mean that.
- tines 6y agoMWI explains that "Certain Things Happen and Other Things Don't" is an illusion - everything that can happen, given the quantum probabilities, does happen. There is an infinity of branching outcomes. The only reason you perceive that Certain Things Happen is because, despite there being infinite paths from the root of the tree to a node, there is exactly one path from any node (where you are) to the root of the tree. So you look back and each moment appears to have followed from the previous, because it did. But the moments you experienced aren't the only ones that proceeded from the moments prior.
- philipov 6y agoI think a typical criticism of that is that Many Worlds replaces the mystery of wave function collapse with the mystery of why we are on this branch rather than one of the many copies of us on other branches.
- tines 6y agoI don't think this is a particularly effective criticism. It's about as insightful as asking why I'm me and not you.
- tim333 6y agoYeah usually the Many Worlds hypothesis has the same constants, certainly as Everett proposed it. The multiverse theory is usually used for having many universes with different constants and the like. Of course word use may vary.
- philipov 6y agoYou're thinking of the Cosmic Landscape. Many Worlds [Everett] interpretation is branching of the quantum wave function as described by GP. It solves the probabilistic nature of quantum mechanical observables by saying that all possibilities occur, but we only see one of them because we exist in only one branch and branches can't interact. The copy of us in a different branch would see a different outcome.
- akvadrako 6y agoWithin one of the Everett worlds you’ll likely have eternal inflation with many pocket universes that effectively have different constants. There are even some papers that suggest the worlds of eternal inflation and MWI are the same.
- seemslegit 6y agoNo.
- fennecfoxen 6y ago> According to the many-worlds interpretation of quantum mechanics, your universe branched into many universes the moment you decided to use a for-loop. In this universe you wrote a for-loop, but in another universe you wrote a while-loop. Nonsense. If universes branch into many other universes, they do so when an event on the quantum level needs to be resolved. I presume that during any single decision-making operation, there are trillions of probabilistic quantum events took place in your brain, but your decision to use the for loop was almost certainly fully deterministic, because at this point in time you personally almost always pick for-loops.
- fastball 6y agoI was actually delighted to discover that I've matured (ossified?) enough as a programmer that my source code is in fact fairly deterministic: the other day I somehow managed to completely wipe a fairly complex function (100+ LoC) from my repo before I committed it. I did this a week or so after I initially wrote the function. I then rewrote the function from scratch, with very little memory of how I wrote it the first time, just knowledge of what it needed to do. Ironically enough, almost as soon as I finished writing this function, I found a copy of the original one that I'd somehow stashed and forgotten about, and the two functions were literally identical.
- hachibu 6y agoThat's pretty cool actually. That speaks to your consistency as a programmer.
- ChristianBundy 6y agoInteresting, I've noticed the exact opposite. For me, rewriting a program produces a slightly different program with different trade-offs. It's rare to have the time to build a bunch of different implementations of the same code, but when I have time it results in code that I'm very happy with.
- codethief 6y agoExactly. If I may add: We (as humans) don't get to choose when and where god flips the coin. Any claims to the contrary fall in the realm of esoterics. For a similar reason the measurement problem and the question of whether the presence of (conscious) observers makes the wave function collapse should not be misinterpreted as "You can influence reality with your thoughts alone" or "If you believe in something strongly enough, it will happen."
- holoduke 6y agoIt's funny that there is such a pro and anti js movement in the hardcore professional programming world. I know it's a bit off topic. But in every js topic here at hackernews you can feel this tension. I have never seen this before. And this place is visited by the best programmers out there . Very interesting
- 52-6F-62 6y agoI don't like a lot of the vitriol, but I do find reading those threads interesting and sometimes really enlightening. Sometimes I disagree, sometimes I agree, sometimes I learn, other times it's just bickering but just the same... it's strange, but interesting. Pro JS (more TS) camp here.
- jacobr1 6y agoHere is my theory: it is a limitation of the medium of the web. In other software fields, one can use the tooling they like. But with the browser, JS is a must (nascent webasm may change that though). The Go people don't really fight the Rust folks, they just go off to their own camps, occasionally comparing and contrasting. But in the web/js world, everyone is forced to commingled, and so preferences collide.
- Spivak 6y agoIt's a combination of popularity, forced usage, organic growth, and maturity. If every single developer ever had to write Java we would see the same complaints. * A ridiculous amount of dependencies and tooling. * As many competing ways to architect programs as there are Java developers. * Lots of warts and quirks due to design missteps in hindsight. Ignored by the people who love it but grating to the people who don't. * As many "the good parts" as there are Java developers. * Everyone complaining about Spring like they do React. For most languages if you don't like it you don't use it. But with JS (just like Java in the 90's and 00's) even if you don't vibe with JS it's completely unavoidable.
- yesenadam 6y agoAren't most popular languages like that? Pro-C, anti-C, pro-Lisp, anti-Lisp etc. Pro and anti Perl, Python, Haskell, Bash, Forth, C++, Go etc. Pro and anti OOP, pro and anti FP etc. There are the languages people argue over, and the languages nobody uses. (And a select group nobody uses but are still argued over - Lisp, Smalltalk, Forth, Prolog, APL etc)
- hachibu 6y agoAuthor here. Thanks for educating me on the subtleties. It seems like I was mixing up a Level 3 multiverse with a Level 2. I made a small edit to remove the sentence about constants changing. And I also added a note that I edited the post.
- AgentME 6y agoThis idea seems like it might be useful for anonymizing code.
- thrower123 6y agoI sort of wish I could trade places with the version of me in the universe where Flash wasn't murdered.
- TedDoesntTalk 6y agoYou liked flash programming??
- schwartzworld 6y agoI never programmed flash, but I consumed plenty of it. The internet is a less interesting place without flash websites.
- thrower123 6y agoI think I would appreciate it now, and the JavaScript that replaced it is really horrible. We haven't really gained any ground in about fifteen years, in real terms, there's just been a lot of swirling. Even WebAssembly's best case scenario is... Java Applets done a smidgeon better.
- krapp 6y agoWebAssembly's best case scenario is "native software compiled to run to the web." Unlike Java applets, WebAssembly isn't tied to a specific language or runtime, so that "smidge" in the case of being inclusive of so many languages is pretty big. You could even run Flash sites in WebAssembly, the only thing stopping that from happening is copyright law. It would probably be even safer and run faster than Adobe's plugin.
- thrower123 6y agoOr you could just run native software... I dunno, I don't get the point. If it gets rid of the dumpster fire that is JS applications, good, but it'd be better if the web could be for documents and applications could be for applications. I'm too cynical and I've seen too much to believe that it'll be silver bullets and rainbows. The write-once, run-everywhere idea always falls down, and pushes everything to lowest common denominator shovel-ware.
- tiborsaas 6y agoThis is art, I love it.