0% found this document useful (0 votes)
10 views75 pages

98601

The document is about the book 'Rust High Performance' by Iban Eguia Moraza, which focuses on improving the performance of Rust applications. It covers various topics such as common performance pitfalls, memory management, profiling, and asynchronous programming, providing practical tips and techniques for Rust developers. The book is designed for readers with some prior knowledge of Rust and aims to enhance their understanding of high-performance programming concepts within the language.

Uploaded by

piikmeizi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views75 pages

98601

The document is about the book 'Rust High Performance' by Iban Eguia Moraza, which focuses on improving the performance of Rust applications. It covers various topics such as common performance pitfalls, memory management, profiling, and asynchronous programming, providing practical tips and techniques for Rust developers. The book is designed for readers with some prior knowledge of Rust and aims to enhance their understanding of high-performance programming concepts within the language.

Uploaded by

piikmeizi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 75

Read Anytime Anywhere Easy Ebook Downloads at ebookmeta.

com

Rust High Performance Learn to skyrocket the


performance of your Rust applications 1st Edition
Iban Eguia Moraza

https://ebookmeta.com/product/rust-high-performance-learn-
to-skyrocket-the-performance-of-your-rust-applications-1st-
edition-iban-eguia-moraza/

OR CLICK HERE

DOWLOAD EBOOK

Visit and Get More Ebook Downloads Instantly at https://ebookmeta.com


Rust High Performance

Learn to skyrocket the performance of your Rust applications


Iban Eguia Moraza
BIRMINGHAM - MUMBAI
Rust High Performance

Copyright © 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any
form or by any means, without the prior written permission of the publisher, except in the case of brief
quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express or implied.
Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages
caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products
mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the
accuracy of this information.

Commissioning Editor: Merint Mathew


Acquisition Editor: Sandeep Mishra
Content Development Editor: Akshada Iyer
Technical Editor: Abhishek Sharma
Copy Editor: Safis Editing
Project Coordinator: Prajakta Naik
Proofreader: Safis Editing
Indexer: Mariammal Chettiyar
Graphics: Jisha Chirayil
Production Coordinator: Arvindkumar Gupta

First published: March 2018

Production reference: 1270318

Published by Packt Publishing Ltd.


Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.

ISBN 978-1-78839-948-7

www.packtpub.com
To my father, Manu, and to the memory of my mother, Arantza, for giving me all the opportunities I had in my
life, and for being there when I most needed it.
mapt.io

Mapt is an online digital library that gives you full access to over
5,000 books and videos, as well as industry leading tools to help you
plan your personal development and advance your career. For more
information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical
eBooks and Videos from over 4,000 industry professionals

Improve your learning with Skill Plans built especially for you

Get a free eBook or video every month

Mapt is fully searchable

Copy and paste, print, and bookmark content


PacktPub.com
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade to the
eBook version at www.PacktPub.com and as a print book customer, you are
entitled to a discount on the eBook copy. Get in touch with us at
[email protected] for more details.

At www.PacktPub.com, you can also read a collection of free technical


articles, sign up for a range of free newsletters, and receive
exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Iban Eguia Moraza is a passionate Rust developer. He has a
bachelor's degree in computer engineering and a master's degree in
information and communication security. He has over 10 years of
experience in web development, and since 2015, he has been
developing Rust applications.

Iban loves space exploration and the latest technologies. In this


regard, he has developed open source software for stratospheric
balloons from the ground up, and he now works at the CERN particle
physics laboratory. He likes to travel to learn from the most
experienced people.
This book would not have been possible without the moral help of my dad and coworkers. They were really
motivating when I was struggling to find enough time to write the book. I also have to thank the Rust
community for always being helpful in fixing all my issues and questions. Without doubt, it's the most friendly
and welcoming community I have ever encountered in software development.
About the reviewer
Daniel Durante is an avid coffee drinker/roaster, motorcyclist,
archer, welder, and carpenter whenever he isn't programming. From
the age of 12, he has been involved with web and embedded
programming with PHP, Node.js, Golang, Rust, and C.

He has worked on text-based browser games that have reached over


1,000,000 active players, created bin-packing software for CNC
machines, embedded programming with cortex-m and PIC circuits,
high-frequency trading applications, and helped contribute to one of
the oldest ORMs of Node.js (SequelizeJS).

He has also reviewed the following books for Packt:

PostgresSQL Developer's Guide


PostgreSQL 9.0 High Performance
Rust Programming By Example
I would like to thank my parents, my brother, my mentors, and friends who've all put up with my insanity of
sitting in front of a computer day in and day out. I would not be here today if it wasn't for their patience,
guidance, and love.
Packt is searching for authors
like you
If you're interested in becoming an author for Packt, please visit autho
rs.packtpub.com and apply today. We have worked with thousands of

developers and tech professionals, just like you, to help them share
their insight with the global tech community. You can make a
general application, apply for a specific hot topic that we are
recruiting an author for, or submit your own idea.
Table of Contents
Title Page

Copyright and Credits

Rust High Performance

Dedication

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files


Conventions used

Get in touch
Reviews

1. Common Performance Pitfalls


Asking the Rust compiler about performance

Optimizations
Build configuration

Optimization level
Debug information

Link-time optimizations
Debug assertions

Panic behavior
Runtime library paths

Translation issues
Indexing degradations
Using iterators
Iterator adaptors

Real-life example
Specialized adaptors

Interaction between adaptors


Itertools

Borrowing degradations
Cyclomatic complexity

Summary
2. Extra Performance Enhancements

Compile-time checks
Sequential state machines

Complex state machines


Real-life type system check example

Extra performance tips


Using closures to avoid runtime evaluation

Unstable sorting
Map hashing

Perfect hash functions


Standard library collections

Sequences
Maps

Sets
Summary

3. Memory Management in Rust


Mastering the borrow checker

Allocations
Mutability, borrowing, and owning

Lifetimes
Memory representation

Alignment
Complex enumerations

Unions
Shared pointers

The cell module


Cells
RefCell
The rc module

Summary
4. Lints and Clippy

Using Rust compiler lints


Lints
Avoiding anonymous parameters

Avoiding heap allocated box pointers


Avoiding missing implementations
Enforcing documentation
Pointing out trivial casts

Linting unsafe code blocks


Unused lints
Variant size differences
Lint groups

Clippy
Installation
Configuration
Lints

Casting
Bad practice
Performance lints
Unwraps

Shadowing
Integer overflow
Lint groups
Summary

5. Profiling Your Rust Application


Understanding the hardware
Understanding how the CPU works
Speeding up memory access with the cache

Cache misses
How can you fix it?
Cache invalidation
CPU pipeline

Branch prediction
The relevance of branch prediction for our code
Profiling tools
Valgrind

Callgrind
Cachegrind
OProfile

Summary
6. Benchmarking
Selecting what to benchmark
Benchmarking in nightly Rust

Benchmarking in stable Rust


Continuous integration for benchmarks
Travis-CI integration
Benchmark statistics with Criterion

Summary
7. Built-in Macros and Configuration Items
Understanding attributes
Trait derivations

Crate features
Configuration attributes
Macros
Console printing

String formatting
Compilation environment
Loading byte arrays and strings at compile time
Code paths

Checking preconditions and postconditions


Others
Nightly Rust
Conservative trait return

Constant functions
Inline assembly and naked functions
Using bigger integers
Single instruction multiple data

Allocation API
Compiler plugins
Summary
8. Must-Have Macro Crates

Working with external data


Data serialization and deserialization
Serializing and deserializing complex structures
Parsing byte streams

Learning about useful small crates


Creating lazily evaluated statics
Avoiding boilerplate code for the builder pattern
Managing errors

Logging efficiently in Rust


Creating command-line interfaces
Using Rust for web development
Creating extremely efficient templates

Connecting with a database


Creating a complete web server
Summary
9. Creating Your Own Macros

Creating your own standard macros


Macro variants
Complex macros
Creating procedural macros

Implementing a simple trait


Implementing complex derivations
Implementing getters
Implementing setters

Metaprogramming in nightly Rust


Understanding compiler plugins
Declarative macros
Summary

10. Multithreading
Concurrency in Rust
Understanding the Send and Sync traits
The Send trait

The Sync trait


Other types of concurrency in Rust
Understanding multithreading
Creating threads

Panicking in Rust
Moving data between threads
The move keyword
Sharing data between threads

Channels between threads


Multithreading crates
Non-blocking data structures
Scoped threads

Thread pooling
Parallel iterators

Summary

11. Asynchronous Programming


Introduction to asynchronous programming

Understanding I/O in the CPU

Getting the kernel to control the I/O


Asynchronous programming from the programmer's perspective

Understanding futures
Future combinators

Asynchronous I/O in Rust

Creating Tokio codecs


WebSockets in Rust

Understanding the new Generators

Summary
Other Books You May Enjoy

Leave a review - let other readers know what you think


Preface
Welcome to Rust High Performance. In this book, you will get a
gentle introduction to high-performance programming by learning
how to improve the performance of your Rust code. It will show you
how to translate your code from other languages properly by
avoiding common bottlenecks, and it will show you how to easily
increase the performance of your application using some idiomatic
Rust APIs.

You will learn about the great Rust community by finding great
crates that will increase the development efficiency while also
improving the performance of your application, and you will write
examples to use all your knowledge. You will write your own macros
and custom derives, and you will learn about asynchronous and
multithreaded programming.
Who this book is for
In this book, you will find everything you need to improve the
performance of your Rust code; you will learn many tricks and use
helpful crates and tools. Therefore, the book is written from the
basis that you already have some knowledge of programming in
Rust.

This book will not cover the whole world of high-performance


programming since it's an incredibly wide topic. You will find a gentle
introduction to most of the generic high-performance programming
concepts and learn how specific patterns can be used in the Rust
programming language.
What this book covers
, Common Performance Pitfalls, helps you learn why
Chapter 1

translating from languages such as C/C++ can lead to big


performance decline, how to improve your algorithms using different
Copy/Clone types and references, and understand how cyclomatic
complexity can make compiler optimizations less effective.

, Extra Performance Enhancements, takes a step forward to


Chapter 2

understand some tips and tricks Rust gives us to improve the


performance of your applications. After learning about common
mistakes in the previous chapters, you will learn how to use the Rust
type system to your advantage, creating complex compile-time
checks and evaluations. You will also understand the difference
between the common standard library collections so that you can
choose the right one for your algorithm.

, Memory Management in Rust, shows you how to improve


Chapter 3

the memory footprint of your applications by taking advantage of the


borrow checker. You will learn about lifetimes and how to properly
use them, understand the different representation attributes that will
help your data be properly structured in memory, and finally, learn
how to create efficient shared pointer structures for your application
using standard library types.

, Lints and Clippy, teaches you the power of lints and how to
Chapter 4
configure them to give you proper suggestions. You'll learn how to
configure clippy, an incredibly powerful tool that will point out
common errors and potential performance improvements. In this
chapter, you will learn the most important clippy lints and use them
in your development workflow.

, Profiling Your Rust Application, covers how to use profiling


Chapter 5

software so that you can easily find performance bottlenecks in your


applications. You'll learn how cache misses impact your code and
how to find where in the code is the application spending more time.
You will learn to fix those bottlenecks and therefore improve the
overall performance of the application.

Chapter 6, Benchmarking, discusses how to detect performance critical


code and how to benchmark it in both Rust stable and nightly. You
will also learn how to set up your continuous integration
environment to get performance reports and track them during the
development process of your project.

Chapter 7, Built-in Macros and Configuration Items, brings you to the


world of attributes that can personalize your code so that you target
specific platforms with each section of your code using all of each
platform's potential. You will understand how to divide your crate so
that not all the code has to be compiled for each use, and you will
finally learn how to use nightly features to improve the efficiency of
your code and the amount of code to write.

, Must-Have Macro Crates, introduces you to multiple


Chapter 8

metaprogramming crates—create serializable structures, deserialize


data from languages such as JSON or TOML, parse log files, or
create a lot of boilerplate code for your data structures. Here, you
can understand how to initialize complex static structures and use a
proper error handling. Finally, thanks to nightly Rust and plugins,
you will be able to create a small web server with a database and
even attach to it the fastest template system in existence.

, Creating Your Own Macros, covers how to write your own


Chapter 9

macros to avoid code boilerplate. You will understand how the new
macros 1.1 work and create your first custom derive. Finally, you will
learn how compiler plugins internally work and will create your own
compiler plugin.

, Multithreading, outlines how to create multiple threads to


Chapter 10
balance the work of your application. You will understand the full
power of Rust's threads and the synchronization primitives in the
standard library. In addition, you will learn how to send information
between threads. Finally, you will read about some useful crates that
will enable you to implement work stealing algorithms, parallel
iterators, and more.

, Asynchronous Programming, helps you understand how


Chapter 11
asynchronous programming works. Here, you can learn how to
develop asynchronous algorithms in Rust, thanks to mio and futures,
and learn the new async/await syntax. You can also create
asynchronous applications using tokio and WebSockets.
To get the most out of this
book
This book assumes some basic knowledge of the Rust programming
language. If you are new to Rust, the first few chapters of the
official Rust book are a great prelude. Nevertheless, you should have
moderate to deep knowledge of at least one programming language;
basic knowledge of terminal usage will also be needed.

Having basic knowledge of computer architectures is a plus, along


with basic knowledge of high-performance programming in C/C++.
They are not required, though, since in this book we will cover all
the base theory to understand how the performance improvements
work behind the scenes.

You will need a code editor or an IDE to follow the book. Rust has
been heavily tested in Microsoft's Visual Studio Code, GitHub's Atom,
and IntelliJ's IDEA IDE. I have personally used Atom to write the
code examples, but feel free to use your favorite text editor or IDE.
You will probably find plugins or extensions for your editor.

In the case of VS Code, Atom, and IntelliJ IDEA, you will find official
Rust packages along with unofficial extensions. Personally, I've been
using the Tokamak package for Atom.
Download the example code
files
You can download the example code files for this book from your
account at www.packtpub.com. If you purchased this book elsewhere, you
can visit www.packtpub.com/support and register to have the files emailed
directly to you.

You can download the code files by following these steps:

1. Log in or register at www.packtpub.com.


2. Select the SUPPORT tab.
3. Click on Code Downloads & Errata.
4. Enter the name of the book in the Search box and follow the
onscreen instructions.

Once the file is downloaded, please make sure that you unzip or
extract the folder using the latest version of:

WinRAR/7-Zip for Windows


Zipeg/iZip/UnRarX for Mac
7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://githu
b.com/PacktPublishing/Rust-High-Performance. In case there's an update to the
code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and
videos available at https://github.com/PacktPublishing/. Check them out!
Another Random Document on
Scribd Without Any Related Topics
one face to the other, and putting down his hand into the depths of
his great pocket, said with a smile,—
“Why, I think I shall have to read you a story which a young friend
of mine wrote, and sent to me the other day, asking my opinion of
it. I read it out of doors last evening, and have it in my pocket still.
It is funny we should begin talking about our work, for that is what
the story is about.”
Squib’s face lighted at mention of a story, as did Seppi’s also.
“Oh, please read it to us,” he said eagerly. “Has it got a name?”
“It has a motto, which perhaps will do as well; I wonder if you are
Latin scholar enough to translate it. My young friend has called it
—’Via Crucis, Via Lucis.’ Can you construe that?”
“It is something about a cross and light,” said Squib, after
considering.
“Yes; it means—’The Way of the Cross is the Way of Light.’ Now, I
will read you the story; and then perhaps you will understand
better.”
And so Herr Adler read:—
I.
Many long years ago a child dwelt in a quaint old city, and laboured
diligently to earn his daily bread. He was fatherless and motherless,
and nobody paid much heed to the lonely boy.
Now, hard by that city, just without the walls, stood a great
monastery, wherein lived men called monks, who dwelt apart from
other men, and thought best to serve God by renouncing those
things which men hold dear, and giving themselves to fasting and
prayer.
For many hundreds of years men believed that God could best be
served so; and some of the monks led very pious and godly lives.
The rich and great of the earth called them holy men, and often
gave to them great gifts in money or land, to be spent to the glory
and honour of God. And when the monks were faithful to their vows,
this money entrusted to them was spent either in relieving the
necessities of the poor, or in the erection of churches or other
buildings to be used for the honour and glory of God.
At the time of which I speak—long, long ago—when the child dwelt
in this city, a stately church was being built hard by the monastery
walls, and it fell to the lot of the boy to labour with the masons, and
to hand them the heavy hodfuls of mortar as they stood upon the
scaffolding at their toil.
Day after day they toiled at their work, and the child with them; and,
behold, the days grew very long to him, and waxed more and more
wearisome. The hodfuls of mortar seemed to become heavier day by
day; and when he saw other children passing by, laughing and
singing in their play, his heart cried out against the hardness and
dreariness of his own life. Instead of looking upwards, and taking
pleasure in the progress of the stately building, and his own humble
share in the pious work, he was looking ever earthwards, and his
heart grew heavy within him.
Now it came to pass that the monks from the monastery hard by
came ofttimes to the place where the workmen laboured, and
watched the walls of the church rising ever higher and more high,
and sometimes worked with their own hands upon some of the
beautiful carving in stone or wood with which it was to be adorned;
for to these pious men there was no drudgery in work that was done
for the honour and glory of God; and they looked forward with
longing for the day when the voice of prayer and praise should
ascend from these walls, and when men should learn ever more and
more of the nearness of His abiding presence in His church.
One of the monks who oftenest came to watch or to work was called
Father Gottlieb—and his very name seemed to show something of
the nature of the man, for Gottlieb means “the love of God;” and
those who looked upon the gentle face, which bore traces of fastings
and prayers and vigils, could see that love shone forth from his
deep-set eyes, and could hear it in the tones of his beautiful voice.
For Father Gottlieb had a voice that sometimes sounded like a
trumpet call; and since he had been dedicated to the service of the
Lord from his youth, and had been long resident within the walls of
the monastery, the men of the city had come to love and revere him,
and even the rough workmen hushed their loud voices, and were
ashamed of their idle jests, when they saw the tall form of the monk
approaching.
Sometimes as he stood and watched the work, a look of rapture
would steal into his eyes, and he would utter words which had a
beautiful sound, albeit not all of those who stood by knew what was
meant by them.
It chanced one day, as Father Gottlieb was looking on at the
builders’ toil, that he stood close beside the child of whom I have
spoken, and looking up to heaven he cried,—
“Blessed are those who are counted worthy to serve Him! Yea, thrice
blessed, for their reward shall be great!”
Then the child, looking up into the face of the monk, took courage to
ask a question.
“Of whom dost thou speak, holy father? Who are these blessed
ones?”
And the monk laid a hand upon his head as he answered,—
“All are blessed—thou and all thy fellow-labourers; for ye serve a
gracious and kindly Master, who will bless all your toil for Him.”
But the child answered and said,—
“Nay, but mine is a hard taskmaster. Day by day do I do my part,
and toil in the heat of the sun. Yet ofttimes he gives me harsh
words, and never a blessing. I am weary to death of such service.”
But the monk looked down at the child with a searching gaze and
made answer,—
“Ah, my child, thou hast not yet learned whom thou dost serve. He
is no harsh Taskmaster. He is gracious and loving, and full of
compassion and tender mercy. And blessed are those who are
permitted to toil for Him, and raise up temples to His honour and
glory!”
But the child understood him not. He thought only of his earthly
taskmaster, and in the face upturned to the monk was nothing but
thankless discontent and wonder. Father Gottlieb was gazing
upward, where high up in the dazzling blue air the builders were
toiling at the soaring spire of the church, and raising his hand and
pointing heavenwards, he asked,—
“What dost thou see there, my child?”
Then the child looked, and made answer,—
“I see the builders busy at their work.”
But the monk answered and said,—
“I see the smiling of the Master’s face.”
Then the bells began to sound forth the Angelus, and the monk
went back to the monastery, for he had his appointed work to do,
and might not linger longer. And the child took up his task again.
Night by night as the child lay upon his rude bed he thought of the
father’s words, but he comprehended them not, for his heart was full
of bitterness because of the hardness of his own lot, and the
thankless toil which he had grown to hate.
“The master is not kind,” he cried aloud. “He is a hard taskmaster.
He chides me oft. I never see a smile upon his face. I will no more
of his service. To-morrow I will go forth into the wide world, and find
fresh paths to walk in. I will no longer serve. I will be mine own
master.”
For the child thought only of an earthly master, and knew not that
he was set in the world to serve the Master in the heavens as well.
So when the day dawned he arose from his bed, while all the world
yet slumbered, and wandered away from his home.
II.
Ah, how sweet it was to stand in the early sunshine, free as the
sunbeams themselves! drinking in the pure morning air, listening to
the glad warbling of the happy birds as they flew hither and thither
in the green woodland!
Sweet, indeed, were the voices of nature, and yet the child’s soul
was not attuned to their harmonies. For each and every one of them
sang of the appointed work given to him to do in the wonderful and
mysterious realm of Nature; and the child had made a vow that he
would toil no more, that he would be no servant; so the voices of
Nature, which it was given him to understand, fell ofttimes upon
unwilling ears.
Yet, though he could understand the voices around him, he was not
surprised. It seemed as if the dewy morning had woven some spell
about him, and as if he were in some sort changed, albeit in very
truth that same child who had fled from the city, and from his
appointed place, that he might be free from service. Nor did his
heart misgive him one whit for the thing that he had done.
Climbing up a mountain he presently came upon a brook, rippling
down over the rocky boulders. Weary and footsore he sat down
beside the clear water, dipping his hot feet into a cool, deep pool,
and listening the while to the song of the laughing stream as it
leaped or glided down the side of the mountain. It sang of the rocky
cavern whence it came, fed by some unseen springs in the depths of
the hills, of the avalanches which fell with the melting of the snow
from the heights above, of the green meadows in the valley below,
towards which it was hastening, and even of great cities through
which it must pass, and where it must do an appointed work, before
it reached the great and boundless ocean towards which it, like all
water, was for ever trending.
But when the child heard this song, and saw how the water foamed
and dashed amongst the rocky boulders, instead of choosing the
softer spots for its channel, he cried aloud, and said,—
“Brooklet, wherefore dost thou choose such a toilsome way for
thyself? See yonder, where the flowers bloom and the moss makes a
soft carpet! Turn aside from those cruel rocks, and linger where all is
fresh and fair and sweet; and haste not to the haunts of men, where
there are toil and trouble! Why wilt thou not rest and play here in
this pleasant place?”
But the brooklet answered and said,—
“Thou talkest foolishly, O mortal child! Not mine the choice. I have
my appointed course and work set for me. I do but follow where the
Master points the way. Amid rocks and melting snows I gather
strength and volume for my journey; but I may not linger to disport
myself in green valleys. I have a work to do for the Master, and He it
is who bids me ever forward and onward. I am here to do His holy
will.”
But the child waxed angry, and said,—
“Hadst thou laboured as I have in the heart of the city, thou wouldst
not talk thus. Thou wouldst turn aside and do thine own pleasure.
For sweet is freedom!”
“Nay,” murmured the brooklet, “sweet is service for Him. And
blessed are they who serve the Master in His appointed way.”
Presently the child, being footsore and hungry, sought a place of
shelter for the night, and finding himself in his wanderings at the
door of a farmhouse, he craved food at the hands of the good folk
there and a night’s lodging. These, taking pity on his loneliness,
gave him bread to eat and milk to drink, and allowed him to make
his bed amidst the fragrant hay in a loft above the cowshed.
That night, waking from the sleep of exhausted nature, he thought
he heard the sound of voices beneath, and looking through a wide
crack in the floor, saw that the cattle below were conversing with
one another, nor did it surprise him, after all that had occurred to
him that day, to find that he understood what they said to each
other.
“Oh, how my bones do ache!” grumbled a young bullock, who had
been working at the plough (as is the fashion in the country in which
the child lived), “I have been yoked to the plough all day. And now I
shall have but a few short hours’ rest before they take me forth
again.”
“And we,” answered a pair of strong white oxen, who were greedily
munching their fodder, having been that night brought into their
stalls quite late, “we have been worse used than thou, brother; for
we were up with the sun, and have been working till he set,
dragging I know not how many loads of hay from the meadows to
the yard. Truly our case is an evil one! And to-morrow will be like to-
day. And after the hay comes the harvest, and nothing but work,
work, work from morning till night. Ugh! Ugh!”
“Nay, but is it not a great and blessed thing, my brothers, to share in
the beautiful harvesting of the earth?” questioned a gentle-faced
brown cow with a white star on her forehead. “Methinks it is a
gracious and goodly task to prepare the brown fields for the sowing
of the seed, and, again, to help in the joyful ingathering. For the
hearts of all men are glad with great rejoicing, and they will bless
the Master who has sent the gracious harvest blessing; and we who
have toiled and laboured will assuredly not lose our share in the
gladness and the reward.”
“Ah!” said the young bullock impatiently, “it is easy for thee and such
as thee to talk! Thou dost not labour day after day in the heat of the
sun, as I am called upon to do!”
“Nevertheless,” answered the meek cow, “I have had many a burden
to bear in my time; and I have had my moments of impatience and
murmuring. But I have learned to love my bondage now, and to
seek happiness in service; for all that we do is done for the Master,
and it is His desire that each one of His creatures shall serve Him in
the appointed place and way. Yea, and blessed is all work done for
the Master. May He accept it and bless it to the world!”
Then the elder cattle bowed their heads and said, “Amen!” but the
child started up and cried,—
“O foolish beasts, which know not the power ye possess! Rise up
and break the bonds which bind you! Rush forth free and untamed
into the wide world!”
But the cattle heeded him not, standing silent in their stalls. Only the
swallows stirred and twittered in the eaves above, and the child
presently sank to sleep again.
But, when the day broke, he rose and crept away from the farm, for
he thought, “If I stay here they will perchance seek to make a
servant of me, and I am no man’s servant now!”
Nevertheless, in this he greatly erred, for whether he willed it or no,
he was born to the service of God.
III.
For many days the child wandered on through the smiling fields
whitening for the harvest, and ever and anon as he neared some
village he would see bands of reapers going forth to their toil,
singing glad songs; or would meet them returning home at the close
of the day, weary, yet rejoicing in the glorious weather, and in the
bounteous harvest which God had given them. Many amongst them
would speak kindly to the child, and he always had food given him
when he needed it; yet he would presently slip away from those who
would have befriended him, saying in his heart,—
“These are all workers and toilers. Perchance, if I remain with them
they will ask labour of me;” for his heart was yet set against any sort
of toil, and as he went along and saw how the world toiled and
laboured, he rejoiced to think that no man could ask service of him.
Anon he came, upon one hot, sultry day, to a village. The wide
street was empty, for all the world was out in the harvest-fields, but
the great trees which bordered the road on either side gave a
grateful shade, and from the neighbourhood of an open door, half-
way down the street, came the cheerful ring of a blacksmith’s
hammer.
The child, being hot and weary, and disposed to linger in the shade,
drew nearer, and, pausing by the open door, seated himself upon an
upturned barrow and idly watched the flying sparks, and listened to
the creaking of the bellows.
Many horses were waiting to be shod, and the smith attended to
them in turn. But presently he gave a nod to his companion, who
disappeared for a while, and he himself came out wiping his heated
brow, and seated himself beside the child, in the cool shadow of the
tree.
From beneath the barrow he drew forth provision for his mid-day
meal, and, marking the weary and wistful face of the child, he gave
him food and drink in abundance, and as they dined together he
talked to him kindly.
“Whence art thou, boy?” he asked; “for I know not thy face, albeit I
have lived here, man and boy, all my life.”
“I am from a far city,” answered the child; “a city that lies beyond
yonder mountains.”
“Nay, that is far indeed!” said the smith; “and whither away now?
For thou art over-young to wander alone through the world.”
“I know not,” answered the child, and then he suddenly crimsoned,
he scarce knew why, as he felt the eyes of the smith rest gravely
upon him.
“Is it well to fly from the nest where the hand of God hath placed
us?” questioned the man with gentle severity: the child hung his
head and gave no answer.
Dinner being ended, the smith arose and girded on his leather apron
afresh; then he turned into the forge and grasped his heavy
hammer. But the child eyed him in surprise.
“It is so hot at noonday,” he said; “surely thou wilt rest awhile ere
thou dost labour again?”
The smith smiled as he swung his hammer, and blew up his forge
with the great bellows.
“Nay, child,” he answered, “rest cometh at night, and sweet it is to
the weary who have earned it by the labour of their hands in the
appointed place; but the day is given us by the Master for work, and
He looks that we fulfil our allotted tasks with the best that is in us.
Look, too, at yon patient horses, waiting to be shod, and think of the
loads of golden grain awaiting to be drawn homeward by them!
Suppose a thunder-storm comes up to-night, and the grain is not
housed because the horses be not shod, and that because the smith
was sleeping the noontide hour away when he should have been at
work. A fine story that for the Master’s ears!”
But the child looked about him round the forge, and said,—
“I had thought it all belonged to thee.”
“Ay, so it does,” answered the smith, “and was my father’s before
me.”
“Then why canst thou not rest at thy will, since no man is thy
master?”
But at that question the blacksmith turned upon him, and cried with
a loud voice,—
“Child! Though the forge be mine, and the anvil and the iron, yet my
time is not mine own, for I serve a Master to whom I must give
account of each day as it passes. Yet,” he added, in a gentler voice,
“He is full of compassion and tender mercy, and hath pity on the
weakness of His children.”
And something in the good man’s face made the child ask,—
“Dost thou find pleasure, then, in His service?”
And the blacksmith answered,—
“His smile is worth far more than ten thousand pieces of silver. Ah,
my child, thou hast still much to learn, seeing that thou knowest not
as yet thy Master.”
But the words fell on unwilling ears, and in his heart the child said,
“I have no master;” and presently, while the smith worked, he crept
away in the lengthening shadows, for he feared lest the good man
might seek to make him his fellow-labourer at the anvil.
IV.
Days and weeks rolled by, and the child still wandered on. He met
kindness from the people through whose villages he passed, and
food and shelter were given him, else must he surely have died. But
though his bodily needs were satisfied, a great hunger of the heart
arose within him that was less easily appeased, for it seemed to him
that he was quite, quite alone in the world, and that he had nothing
to do—no part or lot with the busy life he ever saw about him.
The faces of the workers were happy, but his grew pale and thin.
Men and boys sang at their toil, or called cheerily to one another,
and the women in the houses laughed as they watched the gambols
of their children, and would throw pitying glances on the toil-worn
little traveller. He was never turned away from a hospitable door
where he craved food or shelter, yet his loneliness grew ever greater
and greater, and at last his strength began to fail him, till he ofttimes
felt he could scarcely drag himself along the road. Yet he still strove
to journey on, he scarce knew why, save that he feared always, if he
remained in any place, that he would be made a servant by the good
people who befriended him.
This was why he would not stop, though almost too ill to trail himself
along, until it came to pass that one day he fell beside the road, and
lay there near unto death.
Now the place where he fell was a very lonely one, hard by a great
wood, and for a long while nobody passed that way, but anon there
came by a man, who, when he saw the child, stopped and looked
earnestly upon him, and, seeing that he was very ill, lifted him in his
arms and bore him away to his own dwelling, which was in the heart
of the great wood itself.
For many days the child lay upon the good man’s bed, and it seemed
as though the Angel of Death hovered very near to him; yet God had
mercy on the boy, and raised him up from his bed of sickness, and
the care of the kind master of the house was rewarded.
Little by little the child was able to take note of the things about
him, and to sit up in bed and see what went on; and that which
struck him most as he watched the good man of the house was, that
he was never idle. What it was that he did the child did not at first
know, for he worked outside, and all the boy could hear was the
ceaseless sound of tools, mingling often with the music of some
song or chant which the worker would croon to himself. It sounded
like carpentering work, the child thought, and as his strength
returned he began to desire to go out and watch it. So one day,
feeling stronger than he had done before, he rose and dressed
himself, and made his way out into the sunny garden, glimpses of
which he had seen all this while through the open casement of the
window.
The garden was very full of flowers, which showed signs of tender
care; and to the right was a carpenter’s shed, with all the tools and
implements, and certain articles standing about, some only just
begun, and others quite or almost finished. The master of the house
was not in the shed, but sitting in his garden, and in his hands he
held a great piece of wood, fashioned in the shape of a cross, upon
which he was carving, with wonderful skill and fidelity to nature, a
wreath of flowers, copying these from the blossoms which bloomed
around him.
When the child appeared, and timidly drew near, the good man
greeted him with a smile.
“What art thou doing?” asked the child, “and wherefore dost thou
put such strength and skill into a bit of wood? Is it not hard work to
carve it thus? And of what use is it when done?”
With another smile the worker made reply,—
“It is hard work, truly, my child, but it is blessed work too, for this
cross is to bear a message of comfort and hope to one who will
rejoice to hear it.”
But the child’s face was full of perplexity, and his eyes asked the
question which his lips knew not how to frame. The master of the
house looked searchingly at him, and then said,—
“Knowest thou not, my child, that the cross is the symbol of all the
pain or trouble or toil of this present life, which we are called upon
to bear, and to share with Him who bore the cross for us, and who
has said, ‘If any man would follow me, let him deny himself, and
take up his cross and follow me?’ And yet, because He hath borne
the cross first, He hath hallowed and sweetened it for us. So that we
who carry our crosses for love of Him, seeking to follow in His
footsteps, find them so covered with flowers that we grieve not at
their weight, but rejoice always in the fragrance of the flowers.”
The child answered nothing, and the man presently spoke again,
pointing, as he spoke, to a little wreath of smoke that curled up from
behind the trees.
“In yonder cottage lives a sick woman upon whom the Lord has laid
a heavy cross of pain and suffering. But she takes it from His hand,
and makes no murmur. This cross, covered with the forms of
beautiful flowers, I am fashioning for her.”
Day by day, as the sun sank to his rest and the master of the house,
putting aside his daily task, took out his cross and worked at the
flowers on it, the child came forth and sat beside him, watching him
and hearing him talk, and little by little it seemed to him that scales
fell from his eyes, and that some change he could not understand
was wrought within him.
When the cross was completed, he went with the maker of it to the
humble cottage where the suffering woman lay, and he watched the
light deepen in her eyes as she beheld the gift, and heard the words
which the giver spoke of it.
As they left the cottage together, he stole his hand into that of his
friend, and asked,—
“Why does she have that pain to bear? Is it not cruel of the Master
to send her such a cross?”
“Nay, child,” answered the good man; “we must not speak thus. The
Master knows best. He gives to each his own cross, and blessed is
every one who bears it after Him in meekness and lowliness of
heart.”
“Have we all a cross to bear?” asked the child. “I love not to bear
nor to suffer. Fain would I enjoy my life and be happy!”
“And so thou shalt be, even in the cross-bearing, O child, if thou wilt
walk after the Master and serve Him,” answered the master of the
house. “Hear His own words: ‘Come unto me all that be weary and
heavy laden, and I will give you rest!’ There is no rest, no earthly
happiness that can compare with that which the Master gives to
those who come to Him.”
“But how can we come to Him?” asked the child; “and how can we
bear our crosses after Him when we know not what they are, nor
where to find them?”
But at that question the good man smiled and laid his hand upon the
head of the child, drawing him between his knees as he seated
himself anew in his garden.
“We have no need to seek crosses for ourselves, my child. The
Master gives to each one of us that which He would have us carry.
Often it may be no heavier a one than the day’s toil as it comes to
us, wrought for Him with the best that is in us. All that we do can be
done for Him. He has said so—and blessed be His name! Our daily
toil is sometimes hard and cheerless of itself, but borne as the cross
after the Master, it becomes sweet and blessed to us. The cross
blossoms with flowers beneath His smile. Oh, taste and see how
gracious the Lord is. Blessed is the man that trusteth in Him!”
Tears stood in the eyes of the child as he heard these words. He laid
his hand upon that of his instructor and said,—
“Suffer me to dwell with thee and learn thy craft, and all that thou
canst teach me. I would fain take up my cross and follow the Master.
I would work with thee and for thee, and learn to serve others as
thou dost.”
But the master of the house looked long and earnestly at him, and
answered with tender gravity,—
“No man putting his hand to the plough, and looking back, is fit for
the kingdom of God.” And as the child gazed at him with wondering
and uncomprehending eyes, he added, still very gently, “It is not for
us to choose our path, nor the cross we think is lightest and
pleasantest to carry.”
Then the child’s conscience suddenly smote him, for he remembered
the hods of mortar he had left lying in the great city, beside the
unfinished church, and great tears rolled down his cheeks as he
began to understand that there, and there alone, lay the cross which
the Master had given him to bear. But although he wept bitterly, yet
his purpose did not falter. He would go back to his appointed task,
and seek the cross he had flung away in impatient despite.
So he said farewell to his friend, who gave him a blessing with tears
in his eyes, and began his weary and toilsome journey. Long and
hard did the road seem, and often his heart wellnigh failed him, but
still he pushed manfully on, for he had learned to look upwards for
help and strength. He knew who was his Master.
He met many kindnesses to cheer him on his way, and now when
food and shelter were given him, he would strive to repay his hosts
ere he started in the morning by some simple act of service—cutting
wood or carrying water, or even amusing a fretful child while the
mother prepared the morning meal. Service was no longer hard and
distasteful to him, for he strove to do all for the Master.
Many a time did some kind woman offer him service in a pleasant
homestead, and greatly would the child have rejoiced to be saved
the rest of that toilsome journey; but the memory of his forsaken
task would come afresh upon him, and he resolutely journeyed on.
“Not mine, not mine the choice,” was the cry of his heart; “I must
bear the cross the Master laid upon me!”
V.
At last, as he journeyed onwards, he saw the walls of the city rise
before him, and hastening onwards ever faster and faster, he
approached the familiar town just as the last rays of the sun were
illuminating the walls of the monastery and lighting up the beautiful
white walls of the church. But what had come to those walls all this
while? The child looked, and rubbed his eyes and looked again. For
the structure which he had left all rough and unfinished was now a
beautiful and stately building, complete in every detail, and upwards
into the blue air soared the tapering spire, crowned with its cross,
pointing ever upward towards the heaven beyond. And from within
the building came a sound of music, like to the sound of many
waters; and the child could hear the words of praise and
thanksgiving that told of the pious joy which filled the hearts of the
worshippers. And as he watched, it seemed to him that a great glory
filled the air, and that a cloud of golden light descended upon the
church, while grand, beautiful voices from within and without sang
the glorious words of promise,—
“The kingdoms of this world shall become the kingdom of our God
and of His Christ, and He shall reign for ever and ever.”
Then the child suddenly understood the end and purpose of that toil
which he had shunned—to raise a holy house of prayer and praise
that should teach men how to live and work that this glorious
kingdom might the sooner come.
Now as he stood, watching with a full heart, he felt a touch upon his
hand, and saw a hurrying throng going by, and one spoke in his ear
and said,—
“Child, haste! haste! the Master hath come and calleth thee!”
And another voice took up the word and said,—
“He calleth for all those who have helped to rear this temple to His
honour and glory.”
Then the child suddenly broke into bitter weeping, remembering
how he had rejected his share of the work, and had left his hodfuls
of mortar lying on the ground. Yet, in spite of his grief and shame,
he was borne along by the crowd, and was aware of a strange and
wonderful shining, the like of which he had never seen before; and
casting himself down with his face to the ground he confessed his
unfaithfulness, and prayed for the forgiveness of the Master.
Then it seemed to him that a hand was laid upon him, and a face
looked down at him in infinite compassion and love, and a voice said
in his heart,—
“Thy sin is forgiven thee. Arise and go in peace. Take up thy cross
and follow me.”
And in his rapture the child smote his hands together and cried
aloud,—
“O Lord, thy servant heareth!” and in so speaking he awoke.
Yes, he awoke, and behold it was all a dream! And he found himself
lying beside his hodfuls of mortar beneath the unfinished walls of
the church, while the men lay about resting from the mid-day heat,
or eating their noontide meal.
All a dream! And the child’s heart was full of joy; for he was still
here, at his post. He could take up his cross and bear it in the
Master’s strength, for the Master’s sake, and look forward in joy and
hope to that glorious day when the Kingdom should be his for ever
and ever.
And so deeply was the vision graven on his heart, that from that day
forward toil was blessed to him, and his cross blossomed with
flowers, for his work was done with all his might in the power of the
Lord, wherefore it was a joy to him and not a source of sorrow; his
heart was full of thanksgiving and praise.
Father Gottlieb noted the change in the once pale and sorrowful
face, and pausing beside the child one day, he pointed upwards and
asked,—
“What dost thou see there beyond, my child?”
And with a smile of beautiful radiance the child made answer,—
“I see the shining of the Master’s face.”
Then the good monk passed on his way rejoicing, and said in his
heart,—
“Behold His servants shall serve Him, and they shall see His face.
Hallelujah!”

The children were quite silent for several minutes after the reading
of the story. Probably both entered more into its spirit than either
could have explained. Herr Adler looked first at the one and then at
the other, and finally asked smiling,—
“Well, am I to tell my young friend the author that two little boys
have liked her story, and have learned something from it?”
“Oh yes, please,” answered Squib, drawing a long breath; and then,
after another fit of silent musing, he burst out in his sudden fashion,

“O Herr Adler, I will try! I will try!”
Herr Adler did not ask what it was that Squib would try to do; but
from the kind and gentle look that came into the good man’s face,
the little boy knew that he had been understood.
It was very hard to say good-bye. Squib needed all his manliness to
hold back his tears; and Seppi’s flowed freely down as their kind
friend held their hands in his for the last time, and blessed them
both, and kissed them before he took his way down the green slope.
Squib went with him a little way, but would not leave Seppi for long,
and with another rather husky good-bye, he turned just as the path
entered the pine wood, and ran back to Seppi.
He found him lying on the grass, still crying; but he soon wiped
away his tears and sat up.
“I shall see him again—somewhere. He said so himself; I am sure it
is true. I shall see him again some day. But we shall miss him so!
There is nobody else like him in the world. Oh, little Herr, I am so
glad that you have seen Herr Adler!”
And Squib answered with earnest gravity—
“And so am I; very glad!”
CHAPTER X.
A MOUNTAIN STORM.

“H e is more of a squib than ever,” laughed Colonel Rutland.


“I told you he was too good company to be left at home.”
“He’s a walking compendium of instruction, information, and
anecdote,” added Mr. Lorimer. “I always told you, Rutland, that that
boy hadn’t got his square head for nothing. He will make his mark
some day.”
“We’re talking about you, Squib,” cried Uncle Ronald, catching sight
of the boy. “Come along, we’re just starting for a walk. You shall tell
us a story as we go.”
“Where are you going?” asked Squib.
“To the head of the glacier over there. It’s about five miles off they
say; is that too much for you, eh?
“Five miles from here to the glacier,” said Squib, with a little twinkle
in his eye; “but how far from the glacier to here?”
Then as the pedestrians looked at him and made no answer, the
smile beamed all over his face, and he said,—
“I’ll tell you a story. There was an Austrian lieutenant, and he had
ridden to Vienna from Prague. He was dining with a noble lady, and
at table they were talking about the distance it was between the two
towns. The lady turned and said, ‘You have just come, sir; you can
tell us how far it is from Vienna to Prague.’ Then the young man put
his hands together and said, ‘Excellency, I can tell you exactly the
distance from Prague to Vienna, because I have ridden it; but I have
never been from Vienna to Prague yet, so I cannot tell you how far it
is.’ Then everybody began to laugh, and the lady said, ‘But, my dear
sir, it is the same.’ But he put his hands together again and said,
‘Excellency, from Easter to Pentecost is forty days, but from
Pentecost to Easter is three hundred and twenty days! The distance
from Prague to Vienna I can tell you, but the distance from Vienna
to Prague I do not know.’”
“He was a smart fellow,” remarked Uncle Ronald laughing.
“Yes, he was very funny,” answered Squib, who having been, as it
were, wound up, was prepared to “go off” considerably longer. “I will
tell you another story about him. He was dining at an inn called the
Golden Lion, and several of the people were teasing him and making
fun, because he was so funny and silly. And the waiter who was
attending them came up and asked him a riddle, and said, ‘Who is
it?—my father’s son, but not my brother?’ And he couldn’t guess, so
by-and-by the waiter smacked his chest and said, ‘Why, myself of
course,’ and then everybody roared with laughter, so that the young
officer thought it must be very funny. Just a few days afterwards he
was dining with the noble lady again, and at dinner he said
suddenly, ‘Excellency, let me ask you a riddle. Who is it?—my father’s
son, but not my brother.’ The lady said directly, ‘Why, yourself, of
course.’ ‘No, Excellency,’ he said, putting his hands together, ‘not
myself—the waiter at the Golden Lion!’”
The gentlemen laughed heartily at the story, and at Squib’s way of
telling it, unconsciously imitated from Herr Adler.
“I suppose that’s another of your new friend’s stories? He must have
had a wonderful memory, if he’s anything like what you represent
him.”
“You couldn’t guess half how good and how clever and how
interesting he is if you hadn’t seen him yourself,” answered Squib
with enthusiasm. “Mother understands a little, because he once
came here; but nobody could find out everything in one afternoon.”
For some little time Squib was the regular companion of his father
and uncle on their walks; and he quoted Herr Adler morning, noon,
and night, to the great entertainment of the party. These
expeditions, many of them very interesting ones, helped Squib over
the blank which Herr Adler’s departure had made in his present life.
It was Herr Adler’s stories that he quoted to the walking party; but
in his heart he turned over many of the other lessons he had
received from his friend, and made numbers of resolves, many of
which were never entirely forgotten or set aside.
But after spending a week or two at the chalet, the mountaineers
went off for another spell of climbing at some distance. More visitors
arrived from England to keep company with the ladies; and Squib
found himself once more free to resume his old habits, and to return
to the Valley of the Silent Watchers, which always drew him like a
magnet when he had nothing else to do.
How Seppi’s thin face did light up with pleasure at sight of his friend!
“It seemed as if everything went away together when Herr Adler
was gone and you had gone too,” said the little goat-herd with
patient sadness. “I know I oughtn’t to say ‘everything,’ when there’s
so much left. I did try to think of all the things the good Herr Adler
had told us. It helped a great deal; but I am so glad to see you
back.”
“I’m glad to come,” answered Squib truthfully enough, “I think I like
our quiet days the best. But what will you do in the winter, Seppi,
when I’ve gone right away to England, and Herr Adler won’t be
coming, and you can’t go out on the hills and draw, and everything
is different?”
Sudden tears stood in Seppi’s eyes at the question. He had grown to
love Squib with that kind of passionate love that often grows up in
the heart of a child, and becomes almost a pain at last. Squib had,
as it were, rooted himself into the very fibres of his heart. He had
not seriously faced the thought that the little boy was only a bird of
passage; that he was here just for a few short weeks, and then
would go away, perhaps never to return. He had built up a fanciful
idea of his own that the grand people from England, of whom the
peasants spoke with reverence and respect, had bought the chalet
for their very own, and would often come to it; and Squib had
spoken so much of his love for the valleys and mountains that Seppi
might be pardoned for thinking he meant to stay there always. To
the peasant boy Squib appeared like a little prince, able to come and
go and do as he would; and surely if he loved mountains and the
free mountain life so much, he would be able to come very often to
enjoy them, and stay a long time when he came.
“But—but—you are not going away, are you?” he faltered; “and you
will surely come again?”
“I’m not going away yet—not for a good many weeks,” answered the
other little boy, “but by-and-by we shall have to go back. I think
we’ve got the chalet for three months. And I don’t know about
coming again. You see I shall be going to school soon, and then
there will only be the holidays—and those, I suppose, will be spent
at home. When I’m a man, I think I shall often come to Switzerland
and climb mountains, and do lots of nice things; but I don’t think
that will be for a good many years. None of the others have ever
been abroad, and this is just a treat for me before I go to school.”
Seppi’s tears flowed silently down his cheeks as he heard this, and
as he gradually came to understand from his comrade’s explanations
that Squib was not a fairy prince, able to come and go at will and do
just what he liked, but a little English boy, bound by many rules and
regulations, and with a regular round of duties mapped out for him
for many years to come. His visions of constantly seeing the little
Herr on the hills in summer began to dissolve like dreams at waking
time, and his heart seemed to grow strangely heavy as he realized
that he might not see his little friend any more after he once left,
until both had grown to manhood.
“And it takes such a long, long time to grow up!” he sighed. “Peter is
older than I, but he isn’t grown up, though he has been talking of it
and waiting—oh, ever so long! What shall I do when I never see you
any more—and the years when Herr Adler doesn’t come either?”
“I’ll write to you,” said Squib suddenly, putting out his hand and
laying it on Seppi’s; “I’ll write you a letter every quarter, and I’ll send
you paper and chalk sometimes by parcel post;” and then warming
with his subject, he went on in his vehement fashion, “and I’ll send
you an envelope with one of your Swiss stamps on it, if I can get
them, and you shall send me a drawing back, and if you can, you
will write me a letter too, and tell me how you are, and how Moor is,
and Ann-Katherin, and everybody, and the goats. Then we shall
seem always like friends, and if I ever can I’ll come and see you;
only I can’t promise, because I shan’t be able to do as I like till I’m a
man.”
Making plans like this was the best substitute for Seppi’s vague
dreams of always having Squib near at hand. As the days flew by
they made more and more detailed plans about keeping up some
sort of a correspondence, and both were pleased to think that this
friendship would not vanish away when the boy was carried off
again to England.
All this while Squib had never seen Seppi’s home, save at a distance.
The little goat-herd never went back till after Squib had left him in
the afternoon, and he was too lame to wander about for pleasure.
Moreover, there were the goats to think of and care for, and it had
never occurred to him that the little Herr could feel the smallest
interest in so poor a place as his home.
Squib, however, had often looked across at it and wondered what it
was like inside; but he had not invited himself there in case Seppi’s
mother might not like it. Yet he had a great wish to see her, and
Ann-Katherin too, and had sometimes thought he would ask Seppi to
go home early some day and let him accompany him.
But before he had ever got to the point of doing so, a sudden visit
was paid by him to the chalet in a quite unexpected fashion.
For some days it had been very hot indeed—so hot that the little boy
had felt indisposed for anything but to lie about in idleness, and
even the goats had done little but crowd together in the shelter of
the rock and nibble a little bit of grass in quite a lazy way. The dogs
seemed to enjoy the sultry weather most, lying side by side in the
sun and basking there to their hearts’ content; but sometimes it
became too hot even for them, and they would retire panting into
the shade with their tongues out, or trot down to the brook for a
drink.
Hitherto the summer had been very fine and calm. Once or twice the
boys had heard a rumble of thunder far away, but it had never come
near them. Seppi had told Squib many stories of the violence of the
summer thunder-storms in his valley, and Squib had wished he
might see one; and now it seemed as if this wish were to be
gratified.
It was the fifth of these very hot days. Squib thought it was the
hottest day he ever remembered in his life, and wondered if India
could be hotter. He and Seppi had to get under the great rock,
where the shade was densest, for the pine trees did not afford
nearly enough shelter.
The sky was cloudlessly blue, and the mountains opposite looked
nearer than they had ever done before. The Silent Watchers seemed
to have even advanced a few steps nearer each other, and Squib felt
that if any persons had been climbing their shining white sides, he
would have been able to watch their movements. There was a great
silence over the world, and, as Squib expressed it, “everything
sounded hollow.” He could not well have explained what he meant
by this obscure saying; but Seppi understood in a moment, and said,

“Yes, I think there will be a storm by-and-by. We must watch for it.
If it comes it will be a bad one.”
“I should like to see a bad storm,” said Squib; but Seppi shook his
head doubtfully.
“They are not always nice. Sometimes they are rather dreadful.
Mother did not much like me to go so far to-day; but I knew you
would be here.”
“Yes, I didn’t know you ever stayed away. But if you would like to be
nearer your home—”
“Oh, I don’t mind. If it looks like a storm we will move. But it is too
hot now. I think Moor will know if one is coming. He is so sensible.”
Both dogs were rather uneasy, though, perhaps, not more so than
was accounted for by the great heat. They kept out of the sun’s rays
to-day, and sometimes paced or moved about as if unable quite to
get comfortable.
The boys lay on the dried moss and talked without attempting to
work; and after they had eaten their dinner, for which neither felt
any great appetite, they must have dozed off to sleep, for they were
brought to a consciousness of their surroundings by the uneasy
whining of Moor about his little master; and when they hastily sat
up, they found that a change had come over the look of things.
Away in the east opposite them the sky was still blue and cloudless,
and the snow glittered and shone as brightly as ever; but behind
them had come up a great mass of purple-black clouds, edged with
an angry livid red, and the air felt not only hot, but full of sulphur.
Seppi started to his feet with a little cry of alarm.
“The storm! the storm!” he cried. “Little Herr, we must run for
shelter. Come with me! come to my home. You will never get to
yours. And you must not go through the woods. The storm has
come, and it will be a dreadful one. Oh, why did I go to sleep?”
Seppi was already summoning his goats by the familiar calls they
knew so well, and Squib had his arm about him to help him down
the hill.
“Run on without me!” cried Seppi, “I am so slow. You can’t miss the
way—straight down the path and across the plank bridge, and there
is the chalet just ahead of you.”
But Squib only held him tighter by the arm.
“We will go together. I will help you,” he said. “Czar will take care of
the goats, and they know their way home. Come along,” and as
Moor came up to his little master to help him, the party was soon on
its way down the side of the valley, Seppi finding the help of Squib’s
arm much better than that of his crutch.
Crash—bang—roar!
What an awful noise it was! and coming so close upon that blinding
flash of lightning that Squib, who had learned something of the
nature of thunder-storms, knew it must be dangerously near. Seppi
knew it by experience, and gripped his comrade tighter by the arm.
The air about them grew suddenly dark and stifling, the valley
seemed filled with booming voices calling and shouting back to one
another. Squib would have stopped to listen had not Seppi hurried
him on.
“Don’t waste a minute. It’s coming right on us. Ask God to keep us
safe. It’s going to be an awful storm!”
These words, panted out in gasping fashion, awoke in Squib’s heart
a sense of personal peril which he had never before experienced in
his short and protected life.
“Is it dangerous?” he asked in a low voice; and Seppi squeezed his
arm as he said,—
“Men and beasts are killed on the mountains every year when these
storms come. Oh, I ought not to have slept! I promised mother not
to get into danger. Little Herr, do run on and get into shelter. It
doesn’t matter what happens t—”
The sentence was not finished; for so terrible a flash of lightning
smote across their vision that both children started, clung together,
and shut their eyes. Then just overhead, as it seemed, came that
terrible crackling and crashing and roaring, echoed back from the
mountains till the sound seemed more than human ears could bear.
Squib involuntarily covered his, and hid his face till the violence of
the explosion had passed, and when he looked up again it was to
find himself enveloped in wreaths of suffocating vapour.
Seppi’s white face seemed to be looking out of a strange halo, and
he caught the gasping words,—
“O little Herr! your dog—your dog!”
Squib started, dashed his hand across his eyes and looked round
him. A few yards from them stood Czar, upright, motionless, in a
strange posture. And even as the boy looked, wondering at Seppi’s
cry, the huge creature dropped suddenly over on his side as if he
had been shot, and lay motionless and rigid.
“Czar! Czar!” cried Squib, making a quick step forward. “Seppi! what
is it?”
“He was struck by the lightning,” answered the little peasant, “I saw
it. I once saw a goat killed that way. It seemed as if fire was all
round him for a moment, and the ground seemed to shake. Didn’t
you feel it? He was dead in a moment. I know how lightning kills. O
little Herr, don’t cry. It couldn’t have had time to hurt him. And it
might have been you—or me. It might have been both of us.”
With an awed face Squib realized this truth. Well, indeed, might it
have been either or both of them. He was too much shocked and
bewildered for tears, and Seppi drew him insistently onwards, past
the corpse of the noble hound—Squib could see for himself that no
spark of life was left in him, and did not seek to linger—down
towards the bridge, casting apprehensive glances behind him as he
did so, towards the huge bank of lurid cloud. But the next minute—
following almost immediately upon that fatal lightning flash, came a
sudden gust of wind rushing up from behind them, and waking
every pine tree in the valley into a whispering, moaning life; and as
he heard that sound Seppi cried out,—
“Come quick! quick! The rain will soon be on us; and we must get
across the bridge before it comes.”
For a breathless three minutes they scrambled down—the goats
having by this time taken themselves homewards as fast as their
nimble feet would carry them—and reached the bridge before any
fresh development had taken place. But as they set their feet upon it
the heavy cloud suddenly seemed to open its mouth in passing, and
down came—was it rain? Squib gaspingly asked himself; it seemed
rather as if the river itself had risen up and was tumbling bodily over
them.
With a splash and a crash, and a roar of another kind, fell the
torrent of lashing rain. Close as the two boys were to the chalet,
they were wet to the skin before they reached it. It was just like
being in the sea, Squib thought, when the great breakers come
tumbling over you. He was by this time so blinded and bewildered by
the terrific violence of the storm that he felt as if it were all part of a
confused dream; and when he was drawn into shelter by kind,
motherly hands, and heard around him a confusion of sympathetic
voices, it was quite a number of minutes before he could really make
out what was happening, or whether he was asleep or awake.
Gradually, however, the mists cleared from his eyes. He found
himself in a strange room, standing before a fire of wood and stuff
like peat which gave out a queer smell, and burned in a black-
looking stove, and seemed not to have been lighted very long,
though it burned hot and fiercely. There were three people in the
place besides himself and Seppi—a woman with eyes like Seppi’s,
dressed as all the Swiss peasants are, and with a kind, motherly
face, who was taking off his wet jacket and calling out to somebody
else to bring clothes from the press for the little gentleman; a little
girl with her hair tightly braided, and a pair of very quick black eyes,
who darted off to do her mother’s bidding; and a big boy, many sizes
bigger than Seppi, who was helping his brother off with his soaked
garments, and talking to him about the storm in the rude dialect
which sounded rougher from his lips than from the others’.
Everything went so quickly and briskly that, before Squib had time to
collect his ideas, he found himself wrapped in queer but dry
garments, perched on a rough chair by the side of the stove, while
his own clothes were spread out in the heat to dry, the motherly
woman keeping up a constant flow of pitying talk, and the little girl
staring at him with her bright black eyes as if she would never stop.
“You are Ann-Katherin,” said Squib, speaking for the first time.
She smiled all over her face and came a step nearer.
“You are Seppi’s little Herr,” she said; “I know all about you. But
where is your big dog?”
A spasm crossed Squib’s face.
“He is dead,” he answered in a low voice; “the lightning killed him
just now.”
Ann-Katherin’s face was full of vivid sorrow and sympathy.
“Ah, the poor Hündchen! And he so beautiful and faithful. Ah, but
Seppi has told me of him, and I love him. Oh, these cruel, cruel
storms! They kill so many every year—men and beasts. But the good
God took care of you and Seppi. You were not hurt?”
“No,” answered Squib a different look coming over his face, “we
were not hurt. He took care of us.”
That thought hindered Squib from any outbreak of sorrow over his
lost favourite. Deeply as he grieved for the poor dog killed in a
moment, he could not but feel that a sense of awed gratitude and
thankfulness for his own escape must keep back his sorrow for the
poor dumb animal. He was quite old enough and quite imaginative
enough to realize the intensity of his own peril. God had protected
him in the time of his danger. It would be ungrateful, therefore, to
make too great a lamentation for the death of poor Czar.
“We will bury him to-morrow,” said little Ann-Katherin. “Peter will dig
him a grave. We will have a beautiful funeral. Seppi shall carve a
headstone, and we will always remember him.”
This thought comforted Squib, and was afterwards carried out and
from that day forward the little boy often found his way to the chalet
on the other side of the valley.
The storm had done much mischief to the garden, and Squib was
pleased and proud to help to make things neat and tidy again. Seppi
had taken a bad cold from his wetting, and was not able to go out to
the hillside with the goats. They fed nearer home with Moor and
Ann-Katherin to tend them, and the others worked about the place,
and Seppi did what he could, and carved a headstone (of wood) for
Czar during his leisure moments. He was also engaged upon a
portrait of the hound, enlarged from some of his many studies; and
when Squib had this presented to him in a little frame, made by
Seppi also, he almost cried with pleasure and gratitude.
“But I wish Seppi would get strong and well again,” he said to his
mother when displaying his treasure; “I want us to go out together
to feed the goats again.”

You might also like