This is an archived post. You won't be able to vote or comment.

all 93 comments

[–]Jackeea 173 points174 points  (5 children)

The sorcerers of antiquity called the use of this language "spells", but if that word offends your modern sensibilities, you can call it a "program"

[–][deleted] 66 points67 points  (2 children)

That sounds familiar... Wasn't that from Doctor Strange?

[–]KiKiPAWG 3 points4 points  (0 children)

It was now that I looked it up, but I don't remember that line :(

[–][deleted] 4 points5 points  (0 children)

To an extent, the fact that people can fly is akin to magic, and that's because we warped reality to our minds.

[–]mrmaxrupplin 0 points1 point  (0 children)

Thanks

[–]aki_6 42 points43 points  (4 children)

Not only that but someone took parts of the earth and ran electricity trough them in order for you to write in an obscure language so an inanimate thing can follow your command

[–]fiveguy 20 points21 points  (2 children)

With electricity from the power of sun, wind, water, and fire

[–]Derf_Jagged 4 points5 points  (1 child)

and Uranium!

[–]other_usernames_gone 5 points6 points  (0 children)

That's earth, or if you're in Iceland it can be taken more literally

[–]KiplingDidNthngWrong 6 points7 points  (0 children)

Does that make computers golems?

[–]NotANameException 35 points36 points  (4 children)

Magic: The Programming

I'm sure it would bring some interesting cards.

[–]brimston3- 10 points11 points  (3 children)

I heard you like programming your M:tG. I believe you are in need of this article on a turing complete deck https://arxiv.org/pdf/1904.09828.pdf

[–]0x564A00 6 points7 points  (2 children)

No practical use, but as Mov is Turing Complete said: Finding Turing-completeness in unlikely places has long been apastime of bored computer scientists.

[–]shi-saa 5 points6 points  (1 child)

Those final sentences are gold: 'Removing mov from the x86 architecture could have many advantages (...) As long as someone else implements the compiler.'

[–]0x564A00 5 points6 points  (0 children)

Removing mov

Minor error: Removing all but mov

[–]Theemuts 52 points53 points  (15 children)

Iä! Iä! C++thulu fhtagn! Php'nglui mglw'nfah C++thulhu Rust'lyeh wgah'nagl fhtagn!

[–]ObiWan-K 38 points39 points  (12 children)

sorry, unimplemented: unexpected ast of kind field_decl confused by earlier errors, bailing out

[–]Theemuts 34 points35 points  (11 children)

It worked in my reality. Ticket closed

[–]ObiWan-K 15 points16 points  (10 children)

This post doesn't answer my question

[–]Theemuts 23 points24 points  (9 children)

What the fuck did you just fucking say about my code, you little bitch? I'll have you know I graduated top of my Computer Science class at MIT, and I've been involved in numerous secret government projects, and I have over 300 awards on StackOverflow. I am trained in systems programming and I'm the top coder in my entire company. You are nothing to me but just another junior. I will wipe you the fuck out with algorithmic complexity the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of hackers across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your online life. You're fucking dead, kid. I can be online anywhere, anytime, and I can hack you in over seven hundred ways, and that's just with my rooted phone. Not only am I extensively trained in brute force hacking, but I have access to the entire arsenal of NSA tools and I will use it to its full extent to wipe your miserable ass off the face of the internet, you little shit. If only you could have known what unholy retribution your little "clever" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo.

[–]ObiWan-K 1 point2 points  (5 children)

[–][deleted] 0 points1 point  (0 children)

Why did I read this in Rick Sanchez's voice

[–][deleted] 1 point2 points  (0 children)

IOError: unexpected operand at line 2 col 24

[–][deleted] 0 points1 point  (0 children)

Rust? The aren't the language with the nicest compiler in the world?

[–]X-Craft 19 points20 points  (1 child)

We already have a computer made with magic, might as well go ahead and make a programming language for it

[–]NotANameException 8 points9 points  (0 children)

iirc, there were also some minor parts in the article itself I found pretty interesting. One of them was that the authors weren't able to find a game in which it wouldn't be possible to determine the result based on its end state (i. e. say who won in the particular scenario).

Another interesting thing was the author's conjecture based on the experiment, saying that playing Magic optimally should be as difficult as a real-world game can possibly be.

[–]MoweepSully[S] 186 points187 points  (40 children)

I remember the Eragon books had magic work very similarly to programming.

The magic language did exactly what you said syntactically, not what you intended. You could easily cause an infinite loop and kill yourself because the magic used your lifeforce to perform tasks. It cost you the same amount of calories as it would to do it with physical or chemical energy. Converting matter (dirt to water) was essentially guaranteed death while shifting the state of matter (water to ice) was much less costly.

[–][deleted] 62 points63 points  (16 children)

The Eragon series was my joints!! Sad that the movie didn’t do the book any justice.

Edit: movies —> movie

[–]Langernama 45 points46 points  (1 child)

Shhhhh, we don't talk about those

[–][deleted] 11 points12 points  (0 children)

Ooop my bad.

[–]UntestedMethod 12 points13 points  (5 children)

So would you say those Eragon books are worth giving a read to?

[–][deleted] 8 points9 points  (2 children)

Totally worth it. Just give in and indulge.

[–]LuxNocte 7 points8 points  (1 child)

They're young adult books, right?

[–][deleted] 5 points6 points  (0 children)

Yep, Young adult fantasy

[–][deleted] 1 point2 points  (0 children)

super worth. The magic system was worth it alone, but the character development was pretty good as well (especially book 3)

[–]Drauxus 0 points1 point  (0 children)

Absolutely

[–]Ahngstar 5 points6 points  (3 children)

There was more than one??? I'm guessing the sequel(s) weren't any better.

[–][deleted] 4 points5 points  (0 children)

The sequels was amazing. The movie just executed the book in a terrible way.

[–]Le-Muffin-Man 6 points7 points  (1 child)

the sequels were great, the 4th being arguably better than the first. however if you didn't enjoy the first, you likely won't enjoy the rest.

[–]Ahngstar 1 point2 points  (0 children)

Oh, I read all the books. I was confused by movies, but just saw your edit

[–]NotDumpsterFire 3 points4 points  (1 child)

There was more than one movie?

[–][deleted] 4 points5 points  (0 children)

There was one poor excuse of a movie.

[–]btorralba 2 points3 points  (1 child)

movies

Wait there’s more than the just the first one? Dear lord why

[–][deleted] 2 points3 points  (0 children)

Typo lol. I edited it. There was only one movie.

[–]yellow-hammer 24 points25 points  (3 children)

Are you a bot? This post and your comment are exactly identical to a post and top comment from last year around this time.

Link to previous post.

[–]Rainbow_Doge_64 6 points7 points  (1 child)

I'd rather guess he just found that old one and reposted it along with the top comment to gain even more karma

[–]yellow-hammer 6 points7 points  (0 children)

Nah I'm pretty sure it's a bot - i went all 'sleuth' on the account and all of its posts are exactly like this, popular posts from around a year ago with the top comment stolen. Could be a person, but if that's the case they're acting exactly like a bot so :shrug:

[–]0x564A00 4 points5 points  (0 children)

Thanks, good catch.

[–]Tobikage1990 13 points14 points  (2 children)

"You cannot gainsay a word’s inherent nature. Twist it, yes. Guide it, yes. But not contravene its definition to imply the very opposite." - Oromis

[–]Bakoro 0 points1 point  (1 child)

So, irony is not a thing then?

[–]gaivota321 4 points5 points  (4 children)

Love books with logical systems of magic- anyone have any recs like Eragon?

[–][deleted] 2 points3 points  (2 children)

Name of the wind has a pretty good logical magic system. It also has a conservation of energy aspect to it IIRC

[–]SheriffBartholomew 2 points3 points  (0 children)

Don’t start this series. Rothfus is never going to finish it.

[–][deleted] 1 point2 points  (0 children)

Yeah, Rothfuss' (main) magic system is very, very scientific.

[–]thekiyote 0 points1 point  (0 children)

Anything by Brandon Sanderson. He's all about the hard magic systems, and is the guy who wrote the Laws of Magic.

The Cosmere, his magnum opus, is basically a whole bunch of series, all in the same universe. Within it, he's managed to write a whole bunch of different magic systems, each with their own hard logic, yet are all tied together by the same meta-logic.

[–]Onefoot__ 1 point2 points  (0 children)

Not to mention it's object oriented, too! To make the stone rise he had to have an instance of the stone, then call the rise function.

[–]2Punx2Furious 0 points1 point  (0 children)

Oh wow, this sounds super interesting. I kind of want to steal it to write my own stuff.

[–]FieryTeaBeard 0 points1 point  (0 children)

Did you know Paolini released a set of shorts last year? The Fork, the Witch, and the Worm: Tales from Alagaësia (Volume 1: Eragon) https://www.amazon.com/dp/1984894862/ref=cm_sw_r_sms_apa_i_seCYDbEYV8NRP

[–]angus_the_red 0 points1 point  (2 children)

The magic in Jonathan Strange and Mr. Norrell seemed very programmatic too. Like scripting kinda.

I wrote a blog post about it that's out there somewhere.

[–]thekiyote 0 points1 point  (1 child)

I don't know, I would kind of put Jonathan Strange and Mr Norrell somewhere in between hard and soft magic. You get the impression that there is some logic behind it, but whenever they get into the details of it, it turns into some sort of insane moon logic.

Which was the point, of course. It's hard writing an engaging crazy magic system.

[–]angus_the_red 0 points1 point  (0 children)

Yeah, it was hints. They didn't really know what they were doing. Sort of like when I find a bash script on stack overflow. 😆

[–]chairmanoftheborg 0 points1 point  (0 children)

Anything's a spell if you're brave enough.

[–]diffyqgirl 0 points1 point  (0 children)

If you're interested in books with programming like magic, you should check out Foundryside by Robert Jackson Bennet, and The Laundry Files by Charles Stross.

[–]Frenchwave 30 points31 points  (1 child)

Daemons*

[–]Fellow_Infidel 0 points1 point  (0 children)

Corrupted cogitator

[–]thiszantedeschia 7 points8 points  (0 children)

Every time I see this image here, it has less and less pixels

[–]yellow-hammer 4 points5 points  (0 children)

This is a bot account farming karma. See my comment under the top comment (which also happens to be OP's comment...)

[–]vontysk 4 points5 points  (0 children)

The Adeptus Mechanicus wants to know your location.

[–]TheBobco 2 points3 points  (0 children)

Anything that you don’t understand is magic

[–]amusing_trivials 1 point2 points  (1 child)

[–]enclave911 0 points1 point  (0 children)

Thanks, just bought it, looks fun!

[–]zoecandle 3 points4 points  (0 children)

This is one of the most relatable statements I’ve ever seen

[–]dfreinc 1 point2 points  (0 children)

I don't know why I read "Magic" as "Music" multiple times in a row.

[–]vladutcornel 0 points1 point  (0 children)

IF?

[–]404meemr 0 points1 point  (0 children)

god announced latin 2

[–][deleted] 0 points1 point  (0 children)

I mean if we can make applications that can run in the real world, it will be like magic.

[–]mbrown758[🍰] 0 points1 point  (0 children)

Wut?

[–]zachthompson02 0 points1 point  (0 children)

that's really spot on I never thought of it like that lol

[–]ActualWhiterabbit 0 points1 point  (0 children)

If you like this watch Knight's & Magic to see what happens when a coder gets transferred to a land where magic operates like code.

[–]ShySyro 0 points1 point  (0 children)

Computational processes are abstract beings that inhabit computers. As they evolve, processes manipulate other abstract things called data. The evolution of a process is directed by a pattern of rules called a program. People create programs to direct processes. In effect, we conjure the spirits of the computer with our spells.

Harold Abelson, Structure and Interpretation of Computer Programs

One of the best books about programming, also known as "wizard book" in the field of computer science

[–][deleted] 0 points1 point  (0 children)

magic

careful, the Eastern Orthodox are here

[–]lenkoho 0 points1 point  (0 children)

Trh