The Transformers at Hogwarts

Chapter 58 Transfiguration Spell



Chapter 58 Transfiguration Spell

Allen looked solemnly at the light curtain in the mirror. He thought that the null value of these two key-value pairs must be due to his negligence when casting the spell.

He thought carefully about all the details of when he cast a spell in the abandoned girls' bathroom.

Soon he thought of something. What he wanted to see in his heart just now was the light curtain that appeared when he cast the Transfiguration Charm when he first transformed into Thunderbird's eyes. At that time, he seemed to have turned a match into a needle.

Therefore, only the first key-value pair has a value on the light curtain, and the value of the first key-value pair is the description of the deformation result
Allen suddenly had some understanding in his heart, and he immediately adjusted what he longed to see in his heart.

This time he was eager to see the light curtain of the Transfiguration spell that Thunderbird saw in November. At that time, he mastered the new usage of the Transfiguration spell. At that time, the effect of the spell he cast was to make a handkerchief fold itself twice in a row.

As he adjusted his heart, the light curtain in the mirror also changed.

This time the value of the first key-value pair becomes empty, but the value of the second key-value pair is not empty, and the value of the third key-value pair is still empty.

Allen couldn't wait to observe the value of the second key-value pair. The value of the second key-value pair was also composed of ancient runes. He could distinguish the meanings of a few familiar runes sporadically, but he couldn't figure out what it was. What is this for.

Moreover, he also found that the format of this value was very strange. He tried his best to connect the format of this value with various data structures he was familiar with before, but in the end he found that it was all in vain.

He began to think of what Professor McGonagall said in this application - giving logic to the deformed target's actions.

Allen fell into contemplation again, the action logic is for the deformed target to execute
implement? ! !

Allen figured it out at once. If the transformation spell is regarded as a computer function, the three key-value pairs are the three input parameters of this function. The input parameters are generally some basic data types, such as the aforementioned A dictionary is the basic data type, but in most high-level programming languages, a closure can be passed as an input parameter, and a closure can be understood as a function defined inside a function.

In layman's terms, it is to pass a program into the function so that the function can execute the program.

Using the Transfiguration spell as an example, the behavior that the caster intends to make the target perform will be translated into something similar to a program, such as folding the handkerchief from the left side first, how long should the handkerchief on one side be folded? , after the first folding is completed, the second folding can be carried out, how should the second folding be carried out.
This kind of program is the value of the second key-value pair of the transformation spell. This parameter determines how the transformation target should act. The more detailed this program is written, the more accurate the movement of the transformation target will be.

And the information of this kind of program will also be sent to the will of the world, and then when the will of the world manifests the effect of the transformation spell, it will assign the action logic contained in this kind of program to the transformation target.

This discovery instantly aroused Allen's interest. He didn't expect that the magic of this world could be analyzed to such an extent with the idea of ​​programming. What exactly is that thing he called "the will of the world"?This is a question that he has been thinking about, but has no clue.

But this question is too grand, and Allen quickly drove the question out of his mind in the end.

He turned his attention back to the value of the second key-value pair of the Transfiguration Curse. This kind of procedural stuff is written in ancient runes. Does that mean that ancient runes are also a programming language that can be read? for programming?
Alan, who was a programmer in his previous life, was very interested in this idea. He didn't expect that his old profession would still come in handy in this magical world. He even couldn't wait to use ancient runes to program.

But he also knows that the conditions are still immature, and he still has too little ancient rune, and then he needs to understand its grammar to program the ancient rune, and the most important thing is that he still doesn't know where to find it A compiler for ancient rune programming.

Allen could only sigh for a long time, and continued to observe the third key-value pair of the Transformation Curse. The value of this key-value pair is also empty now.

This time Allen has more experience.

He instantly thought of the new application of Transfiguration that Professor McGonagall had mentioned—establishing a link with the transfiguration target, and then being able to control the actions of the transfiguration target in real time.

Obviously the third key-value pair is to control whether to establish a link with the deformation target.

Professor McGonagall started talking about the new applications of the Transfiguration spell in early November, and by December, Allen had actually mastered these two new applications.So when he transformed Thunderbird's eyes in December, he implemented the transformation spell that missed the link with the transformation target.

He quickly found the memory of the light curtain that appeared with the Transfiguration Curse. It established a link with the handkerchief, and at the same time endowed the handkerchief with action logic. The link established with the handkerchief enabled Allen to control the handkerchief in real time. Corrected the action of the handkerchief to make its folding action more precise.

Then he followed the previous method to make the light curtain appear in the Mirror of Erised.

Sure enough, this time, the first key-value pair is empty, and the values ​​of the second and third key-value pairs have values.

The value of the third key value is particularly short, and the ancient magic text Alan happened to know, which means "YES".

So Allen speculates that the key of the third key-value pair means "whether to establish a link".

He wanted to quickly write down the key, but found that he didn't bring a pen and paper, so he had to look at it a few more times, trying to imprint the key in his mind.

In the end, the more he looked at it, the more he felt that he had seen the ancient rune of this key before, and finally he remembered it.

There is also a key in the key-value pair of the Oolong Out of the Hole spell. The ancient magic text is very similar to this, and the caster can also establish a link with the snake summoned by the Oolong Out of the Hole spell. It seems that the establishment of a link is the two spells. The mechanism is the same.

Just as Allen was fascinated by the sunglasses, Harry and Ron broke free from the shackles of Allen's petrification spell, but Allen knew nothing about it.
Harry and Ron looked at Allen in awe, looked at each other tacitly, and then rushed towards Allen together.

"Allen, you are so despicable that you cursed your good brother! Ron, let's deal with him together!" Harry's suggestion received Ron's enthusiastic response.

Allen wanted to take out his wand at the first moment, but Ron controlled his arm. Facing the attack of the two, Allen gave up resisting wisely and was thrown to the ground
"All right, all right! I was wrong! I won't look at the mirror, I'll show you all." Alan begged for mercy in a low voice.

"Don't change the subject, let's talk about your sneak attack!" Ron was not fooled at all, lying on the ground for a while made him sober now, and now he didn't care so much about what he saw in the mirror. He even started to tickle Allen's itch.

Allen couldn't bear it anymore, he was the most ticklish.

It was a sudden voice in the corridor outside that ended their argument.They didn't realize how loud their voices were just now.

"quick!"

As soon as Ron put the cloak of invisibility on the three of them, Mrs. Norris's shining eyes turned in the door.The three stood motionless, thinking the same thing in their minds—does the cloak of invisibility work on cats? After about a century, Mrs. Norris finally turned and left.

"Still not safe—he's probably gone to Filch, I'm sure he heard us. Let's go."

Ron pulled Harry and Allen out of the room.

 Still looking for votes!
  
 
(End of this chapter)


Tip: You can use left, right, A and D keyboard keys to browse between chapters.