r/computerscience • u/[deleted] • Nov 09 '19
Code is magic
I just had a wonderful realization and I thought I might share. To preface this, I always wanted to go to Hogwarts as a kid and learn magic. I became somewhat disenfranchised with the world as I grew older, but I have recently begun to rekindle a sense of wonder and excitement for the world.
A big part of that has been learning to code. I was thinking about this the other day, and I realized that I have essentially been learning magic by any standard throughout history, and for some reason I take that for granted!
Through a high-level language, we manipulate electrons in order to create symbolic information patterns that can accomplish real tasks - to anyone from any other time in history, if they could see us they would think we were literally witches and wizards.
At Hogwarts the students learn to predict the rough future through magic. I can do the same with data analysis, game theory, and machine learning networks. They can see things from the other side of the world - I just finished coding a security cam for my dorm. They can imbue non-living matter with sentience - robotics. They can manipulate life - bioinformatics - if I had access to the right tools I could literally breed glowing animals. Artificial intelligence adds an even cooler aspect to this given we might soon be able to create sentience from non-sentient matter! Even the bad powers, killing people, controlling people etc are real - consumer programming, psychometric targeting through the internet, drone strikes, malicious hacking, etc.
By extension, everything we are exploring in modern science is really magic. We don't really know how this stuff works or why it works - if you look at the physical constants of the universe they seem somewhat arbitrary. While we do have a good sense of the relational properties between things in reality, we don't know why they are what they are - like electrons! We know the rules that dictate their interaction with other things in reality, but we don't know why they exist the way they do, where they came from, or for that matter where any of this really came from! Somehow through all these layers of abstraction, from basic properties of atoms and forces, to high-level symbolic computation, we manage to actually do stuff, and that stuff is no less absolutely amazing! I don't think it's hyperbole to say that we're all doing real magic.
4
u/satanikimplegarida Nov 10 '19
I HATE magic. With passion. Of a thousand suns.
Let me explain what I mean about that. First of all, it trivializes the monumental efforts of countless scientists and engineers who spent countless hours and laid down the foundational work of which we now benefit so much. Secondly, saying something is magic absolves you from what I see as your responsibility to actually understand what's going on behind a system, an algorithm and so on. Computer science can be understood. There is nothing 'magical' about it.
All in all, in my (apparently not-so-humble) opinion, I think that this is not a sound mindset, at least not for a scientist.
As a bonus, here's Jonathan Blow's presentation about preventing the collapse of civilization. He's theorizing that our superficial understanding of science will be problematic for the human species, since 'stressors' could wipe out vast swaths of knowledge in an instant. Enjoy.
https://youtu.be/pW-SOdj4Kkk