Rick Cook - Wizard’s Bane
Здесь есть возможность читать онлайн «Rick Cook - Wizard’s Bane» весь текст электронной книги совершенно бесплатно (целиком полную версию без сокращений). В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Жанр: Фэнтези, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.
- Название:Wizard’s Bane
- Автор:
- Жанр:
- Год:неизвестен
- ISBN:нет данных
- Рейтинг книги:4 / 5. Голосов: 1
-
Избранное:Добавить в избранное
- Отзывы:
-
Ваша оценка:
- 80
- 1
- 2
- 3
- 4
- 5
Wizard’s Bane: краткое содержание, описание и аннотация
Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Wizard’s Bane»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.
Wizard’s Bane — читать онлайн бесплатно полную книгу (весь текст) целиком
Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Wizard’s Bane», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.
Интервал:
Закладка:
Oh yes, debugging features. It would need a moby debugger. Bugs in a magic program could crash more than the system.
It’s a pity the universe doesn’t use segmented architecture with a protected mode, Wiz thought to himself as he drifted off.
As he was slipping into unconsciousness, he remembered one of his friend Jerry’s favorite bull session raps. He used to maintain that the world was nothing but an elaborate computer simulation. "All I want is a few minutes with the source code and a quick recompile," his friend used to tell him.
He fell asleep wondering if he would get what Jerry had wanted.
All through the next day Wiz’s mind was boiling. As he chopped wood or worked in the kitchen he was mentally miles away with dictionaries and compiler/interpreters. He didn’t tell Moira because he knew she wouldn’t like the notion. For that matter, he wasn’t sure Shiara would approve. So when they were sitting alone tht evening he broached the subject obliquely.
"Lady, do you have to construct a spell all at once?"
"I am not sure I know what you mean, Sparrow."
"Can’t you put parts of simple spells together to make a bigger one?"
Shiara frowned. "Well, you can link some spells together, but . . ."
"No, I mean modularize your spells. Take a part of a spell that produces one effect and couple it to a part of a spell that has another effect and make a bigger spell."
"That is not the way spells work, Sparrow."
"Why not?" Wiz asked. "I mean couldn’t they work that way?"
"I have never heard of a spell that did," the former wizardess said.
"Wouldn’t it be easier that way?" he persisted.
"There are no shortcuts in magic. Spells must be won through hard work and discipline."
"But you said…"
"And what I said was true," Shiara cut him off. "But there are things which cannot be put into words. A spell is one, indivisible. You cannot break it apart and put it back together in a new guise any more than you can take a frog apart and turn it into a bird."
"In my world we used to do things like that all the time."
Shiara smiled. "Things work differently in this world, Sparrow."
"I don’t see why," Wiz said stubbornly.
Shiara sighed. "Doubtless not, Sparrow. You are not a magician. You do not know what it is like to actually cast spells, much less weave them. If you did it would be obvious."
Wiz wasn’t sure who had said "be sure you’re right and then go ahead," but that had been his motto ever since childhood. The stubborn willingness to go against common opinion,and sometimes against direct orders, had gotten him the reputation for being hard to manage, but it had also made him an outstanding programmer. He was used to people telling him his ideas wouldn’t work. Most of the time they were wrong and Wiz had always enjoyed proving that. In this case he knew he was right and he was going to prove it.
All the same, he didn’t want anyone to know what he was up to until he was sure he could make it work. The thought of Moira laughing at him was more than he could bear.
Just inside the Wild Wood, perhaps 200 yards from the keep of Heart’s Ease, was a small log hut. From the stuff on the floor Wiz suspected it had been used to stable horses at one time. But there were no horses here now and the hut was long deserted. Wiz cleared out the debris and dragged a rude plank bench which lay in a corner under the window. There was a mouse nest in another corner, but he didn’t disturb that.
The next problem was writing materials. This world apparently wasn’t big on writing, at least there weren’t any books in Heart’s Ease. The usual material was parchment, but he didn’t have any. Finally he settled on shakes of wood split from the logs in the woodpile and wrote on them with charcoal.
Fundamentally, a computer language depended on three things. It had to have some method for storing and recalling data and instructions, instructions had to be able to call other instructions and it had to be able to test conditions and shift the flow of control in response to the results. Given those three very simple requirements, Wiz knew he could create a language.
His first experiment would just be to store and recall numbers, he decided. He wanted something useful, but he also wanted something that would be small enough not to be noticed, even here in the quiet zone. Besides, if magic hurt Shiara he did not want to make detectable magic.
Drawing on what Shiara had told him, he put together something very simple, even simpler than the fire spell he had discovered by accident.
Although the spell was simple, he labored over it for an entire day, checking and rechecking like a first-year computer science student on his first day in the computer lab.
Late that afternoon he picked up a clean slab and a piece of charcoal. His hand was shaking as he wrote 1 2 3 in large irregular characters on the wood. Then he very carefully erased the numbers leaving only a black smear.
"Remember," he said and passed his hand over the board. There was a stirring shifting in the charcoal and the individual particles danced on the surface like an army of microscopic fleas. There, stark against the white of newly split wood, appeared 1 2 3.
"Son of a bitch!" Wiz breathed. "It worked."
He stared at the reconstituted numbers for a long time, not quite believing what he had done. He repeated the experiment twice more and each time the characters or designs he scrawled on the board and erased reappeared on command.
Okay, the next step is a compare spell. In IF-THEN. For that I’ll need . . . Then he started as he realized how late it had gotten. He still hadn’t cut wood for the next day and it was almost time for dinner.
For a moment the old fascination and new sense of responsibility warred in his breast. Then he reluctantly put down the board and started back to the keep. If I don’t show up soon someone is likely to come looking for me, he thought. Besides, they’ll need wood for tomorrow.
No one seemed to notice his absence or made any comment when he disappeared the next day after his stint at the woodpile. The comparison spell also proved to be straightforward. The final step was the calling spell, the spell that would call other spells. That was the key, Wiz knew. If it worked he had the beginnings of his language.
Again Wiz worked slowly and carefully, polishing his ideas until he was sure he had something that would work. It took nearly three days before he felt confident enough to try it.
Once more he wrote a series of numbers on a clean slab of wood. Then he erased them. Then he readied the new spell.
"Call remember," he commanded.
There was a faint "pop" and a tiny figure appeared on the work bench. He was about a foot high with dark slick hair parted in the middle and a silly waxed mustache. He wore white duck trousers, a ruffled shirt and a black bow tie. Without looking at Wiz, he passed his hand over the board and once again the bits of charcoal rearranged themselves into the numbers Wiz had written. Then with another "pop" the figure disappeared.
Wiz goggled. A demon! I just created a demon. Shiara had said that once a spell grew to a certain level of complexity it took the form of a demon but he had never expected to make one himself.
He had never considered what a command would look like from within the computer. I never had to worry about that, he thought, bemused.
This particular command looked darned familiar. Wiz didn’t know for sure, but he doubted that bow ties and waxed mustaches were worn anywhere on this world. After wracking his brains for a couple of minutes he remembered where he had seen the little man before. He was the cartoon character used to represent the interpreter in Starting Forth, Leo Brodie’s basic book on the Forth language.
Читать дальшеИнтервал:
Закладка:
Похожие книги на «Wizard’s Bane»
Представляем Вашему вниманию похожие книги на «Wizard’s Bane» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.
Обсуждение, отзывы о книге «Wizard’s Bane» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.