Download ebooks file (Ebook) Rust High Performance: Learn to skyrocket the performance of your Rust applications by Iban Eguia Moraza ISBN 9781788399487, 9781785880254, 178839948X, 178588025X all chapters
Download ebooks file (Ebook) Rust High Performance: Learn to skyrocket the performance of your Rust applications by Iban Eguia Moraza ISBN 9781788399487, 9781785880254, 178839948X, 178588025X all chapters
com
OR CLICK HERE
DOWLOAD EBOOK
ebooknice.com
ebooknice.com
https://ebooknice.com/product/sat-ii-success-
math-1c-and-2c-2002-peterson-s-sat-ii-success-1722018
ebooknice.com
https://ebooknice.com/product/rust-for-c-programmers-learn-how-to-
embed-rust-in-c-c-with-ease-48159110
ebooknice.com
ebooknice.com
https://ebooknice.com/product/effective-rust-35-specific-ways-to-
improve-your-rust-code-56677956
ebooknice.com
ebooknice.com
Rust High Performance
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.
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
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
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
Preface
Get in touch
Reviews
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
Borrowing degradations
Cyclomatic complexity
Summary
2. Extra Performance Enhancements
Compile-time checks
Sequential state machines
Unstable sorting
Map hashing
Sequences
Maps
Sets
Summary
Allocations
Mutability, borrowing, and owning
Lifetimes
Memory representation
Alignment
Complex enumerations
Unions
Shared pointers
Summary
4. Lints and Clippy
Clippy
Installation
Configuration
Lints
Casting
Bad practice
Performance lints
Unwraps
Shadowing
Integer overflow
Lint groups
Summary
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
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
Constant functions
Inline assembly and naked functions
Using bigger integers
Single instruction multiple data
Allocation API
Compiler plugins
Summary
8. Must-Have Macro Crates
10. Multithreading
Concurrency in Rust
Understanding the Send and Sync traits
The Send trait
Panicking in Rust
Moving data between threads
The move keyword
Sharing data between threads
Thread pooling
Parallel iterators
Summary
Understanding futures
Future combinators
Summary
Other Books You May Enjoy
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.
, 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.
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.
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.
Once the file is downloaded, please make sure that you unzip or
extract the folder using the latest version of:
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!
Conventions used
There are a number of text conventions used throughout this book.
Piracy: If you come across any illegal copies of our works in any
form on the Internet, we would be grateful if you would provide us
with the location address or website name. Please contact us at
copyright@packtpub.com with a link to the material.
GHENT.
My anxiety was to learn something of the actual state of
manufacturing industry in Belgium, and Ghent, its principal seat and
centre, presented the most favourable opportunities. Our
introductions were numerous, but my chief obligations are to M.
Grenier, one of the most intelligent and accomplished men of
business whom it has been my good fortune to meet. He had been
formerly an officer in the Imperial Guard of Napoleon, whilst Belgium
was a province of the empire, but on the return of peace, in 1815,
betook himself to pursuits of commerce, and is now connected with
some of the most important manufacturing and trading
establishments of Belgium. I owe a similar acknowledgment for the
polite attentions of M. de Smet de Naeyer,[6] an eminent
manufacturer, and one of the officers of the Chamber of Commerce
and of the Conseil de Prud’hommes at Ghent.
The latter body which is an institution, originally French, was
introduced in Belgium by a decree of Napoleon in 1810. It is a board
formed jointly of employers and workmen, elected by annual
sections, and discharging all its functions, not only gratuitously as
regards the public, but without payment to its own members,
beyond the mere expenditure of the office, and a moderate salary to
a secretary. Its duties have reference to the adjustment of the
mutual intercourse between workmen and their masters in every
branch of manufacture, the prevention of combinations, the
performance of contracts, the regulation of apprenticeship, and the
effectual administration of the system of livrets—a species of
permanent diploma, which the artisan received on the termination of
his pulpilage, signed by the master to whom he had been articled,
and sealed by the President of the Conseil de Prud’hommes. Without
the production of his livret, no tradesman can be received into
employment; and in it are entered all his successive discharges and
acquittances with his various masters. The powers of fining and of
forfeiture exercised by the conseil, are summary up to a certain
amount, and in cases of graver importance, there is a resort to the
correctional police.
But the main functions of the Conseil de Prud’hommes are the
prevention of any invasion of the peculiar rights of any manufacturer,
or the counterfeit imitation of his particular marks; and especially
the protection of the copyright of all designs and productions of art
for the decoration of manufactures. With this view, every proprietor
of an original design, whether for working in metals or on woven
fabrics, is empowered to deposit a copy of it in the archives of the
council, enveloped in a sealed cover, and signed by himself; and to
receive in return a certificate of its enrolment, and the date of
reception. At the same time, he is called upon to declare the length
of time for which he wishes to secure to himself the exclusive right
of its publication, whether for one, two, or three years, or for ever,
and in either case, a trifling fee is demanded, in no instance
exceeding a franc for each year the protection is claimed, or ten for
a perpetuity.[7] In the event of any dispute as to originality or
proprietorship, the officer of the council is authorized to break the
seal, and his testimony is conclusive as to the date and
circumstances of the deposit.
The effect of this simple and inexpensive tribunal has been found
so thoroughly effectual, that the most equitable security has been
established for designs of every description applicable to works of
taste, and the intellectual property of a pattern has been as
thoroughly vindicated to its inventor through the instrumentality of
the register of the Prud’hommes, as his material property, in the
article on which it is to be impressed, is secured to him by the
ordinary law. In fact, the whole operation of the institution at Ghent
has proved so beneficial to manufactures universally, that by a projet
de loi of 1839, similar boards are about to be established in all the
leading towns and cities, as Liege, Brussels, Courtrai, Antwerp,
Louvain, Mons, Charleroi, Verviers, and the manufacturing districts,
generally, throughout Belgium.
One of our first visits was to a mill for spinning linen yarn, recently
constructed by a joint stock company, called La Société de la Lys, in
honour, I presume, of the Flemish river on which it is situated, and
which is celebrated on the continent for the extraordinary suitability
of its waters for the preparation of flax. Belgium, from the remotest
period, even, it is said, before the Christian era, has been celebrated
for its manufacture of clothing of all descriptions. It was from
Belgium that England derived her first knowledge of the weaving of
wool; damask has been made there since the time of the Crusades,
when the soldiers of Godfrey of Bouillon and of Count Baldwin,
brought the art from Damascus; and to the present hour, the very
name of “Holland” is synonymous with linen, and the cloth so called,
has for centuries been woven principally in Flanders.
Under the government of Austria, the manufacture seems to have
attained its acmé of prosperity in the Netherlands, her exports of
linen, in 1784, amounting to 27,843,397 yards, whilst at the present
moment, with all her increase of population and discoveries in
machinery, she hardly surpasses thirty millions. Again, under the
continental system of Napoleon, from 1805 to 1812, it attained a
high degree of prosperity, which sensibly decreased after the events
of 1814, when English produce came again into active competition
with it.
The cultivation of flax is still, however, her staple employment, one
acre in every eighty-six of the whole area of Belgium, being devoted
to its growth. In peculiar districts, such as Courtrai and St. Nicolas,
so much as one acre in twenty is given to it; and in the Pays de
Waes, it amounts so high as one in ten. Every district of Belgium, in
fact, yields flax, more or less, except Luxembourg and Limburg,
where it has been attempted, but without success; but of the entire
quantity produced, Flanders alone furnishes three-fourths, and the
remaining provinces, one. The quality of the flax, too, seems,
independently of local superiority in its cultivation, to be essentially
dependent upon the nature of the soil in which it is sown. From that
around Ghent, no process of tillage would be sufficient to raise the
description suitable to more costly purposes; that of the Waloons
yields the very coarsest qualities; Courtrai those whose strength is
adapted for thread; and Tournai alone furnished the fine and
delicate kinds, which serve for the manufacture of lace and cambric.
Of the quantity of dressed flax prepared in Belgium, calculated to
amount to about eighteen millions of kilogrammes, five millions were
annually exported to England and elsewhere, on an average of eight
years, from 1830 to 1839. According to the returns of the Belgian
custom-houses, the export has been as follows—from 1830 to 1839.
1831 5,449,388 kilogr.
1832 3,655,226 ”
1833 4,392,113 ”
1834 2,698,870 ”
1835 4,610,649 ”
1836 6,891,991 ”
1837 7,403,346 ”
1838 9,459,056 ”
It is important to observe the steady increase of the English
demand since 1834. The remainder is reserved for home
manufacture into thread and cloth, and it is estimated by M.
Briavionne, that the cultivation of this one article alone, combining
the value of the raw material with the value given to it by
preparation, in its various stages from flax to linen cloth, produces
annually to Belgium, an income of 63,615,000 francs.[8]
Belgium possesses no source of national wealth at all to be put into
comparison with this, involving as it does, the concentrated profits
both of the raw material and its manufacture, and, at the present
moment, the attention of the government and the energies of the
nation are directed to its encouragement in every department, with
an earnestness that well bespeaks their intimate sense of its
importance.
Nor are the prudent anxieties of the Belgium ministry on this point
without serious and just grounds. Their ability to enter into
competition with England in the production of either yarn or linen
cloth, arises solely from the fortunate circumstance to which I have
just alluded, that not only do they themselves produce the raw
material for their own manufactures, but it is they, who, likewise,
supply it to their competitors, almost at their own price. Such is the
superiority of Belgian flax, that whilst, in some instances, it has
brought so high a price as £220 per ton, and generally ranges from
£80 to £90; not more than £90 has in any instance that I ever heard
of, been obtained for British, and its ordinary average does not
exceed £50.
The elements of their trade are, therefore, two-fold, the growth of
flax, and secondly, its conversion by machinery into yarn and cloth.
In the latter alone, from the relative local circumstances of the two
countries, it is utterly impossible that Belgium could successfully
maintain the contest with England, with her inferior machinery, her
more costly fuel, and her circumscribed sale; but aided by the other
happy advantage of being enabled to supply herself with the raw
material at the lowest possible rate, and her rivals at the highest,
she is in possession of a position of the very last importance.
But, should any circumstance arise to alter this relative position,
should England wisely apply herself to the promotion of such an
improvement in the cultivation and dressing of her flax at home as
would render it in quality equal to that for which she is now
dependent for her supply from abroad—should India or her own
colonies betake themselves to its production, or should some other
country, adopting the processes of Belgium, supplant her in the
market, and thus reduce her competition with England to a mere
contest with machinery, the linen trade of Belgium could not by any
possibility sustain the struggle, and her staple manufacture for
centuries would pass, at once, into the hands of her rivals.
Conscious of their critical situation in this respect, the King of
Holland, during his fifteen years’ administration of the Netherlands,
bestowed a care upon the encouragement and improvement of their
mechanical skill, which may have, perhaps, been carried to an
unwise extreme; and with a similar anxiety for the maintenance of
their ascendancy in the other department, the ministers of King
Leopold have devoted a sedulous attention to the cultivation of flax;
and the very week of my arrival at Ostend, a commission had just
returned from England, whose inquiries had been specially directed
to the question of imposing restrictions upon its exportation.
Much of the uneasiness of the government upon this head, arises,
at the present moment, from the necessity of promoting vigorously
the spinning by machinery, and, at the same time, the difficulty of
finding employment for the thousands who now maintain themselves
by the old system of spinning by hand, and whom the successful
introduction of the new process will deprive of their ordinary means
of subsistence. Although this is one of those complaints to which we
have long been familiarized in England, and which the people of this
country have, at length, come to perceive is not amongst—
“Those ills that kings or laws can cause or cure,”
the alarm and perplexity of the Belgians, and their earnest
expostulation on finding their employment suddenly withdrawn, have
caused no little embarrassment to their own government; and a
formidable party, both in the country and in the House of
Representatives, have been gravely consulting as to the best means
of securing a continuance of their “ancient industry” to the hand-
spinners at home, by restricting the export of flax to be spun by
machinery abroad!
The practicability of this, and the propriety of imposing a duty upon
all flax shipped for England, was understood to be the subject of
inquiry by the commission despatched by the Chambers to England,
which consisted of Count d’Hane, a member of the upper house, M.
Couls, the representative for the great linen district of St. Nicolas,
and M. Briavionne, a successful writer upon Belgian commerce, and
one or two other gentlemen connected with the linen trade.
The application of machinery to the manufacture of linen yarn,
though comparatively recent in its introduction into Belgium, has,
nevertheless, made a surprising progress, and bids fair, if
unimpeded, to maintain a creditable rivalry with Great Britain. The
offer by Napoleon, in 1810, of a reward of a million of francs for the
discovery of a process by which linen could be spun into yarn with
the same perfection as cotton, naturally gave a stimulus to all the
artisans of the empire, and almost simultaneously with its
promulgation, a manufacturer of Belgium, called Bawens, announced
his application of the principle of spinning through water, which is
now in universal use. The old system of dry spinning, however, still
obtained and was persevered in till superseded, at a very recent
period, by the invention of Bawens, improved by all the subsequent
discoveries in England and France.
The seat of the manufacture, at present, is at Ghent and Liege, and
is confined to a very few extensive establishments, projected by joint
stock companies, or Sociétés Anonymes,[9] for the formation of
which, there has latterly been almost a mania in Belgium. Four of
these establishments, projected between 1837 and 1838, proposed
to invest a capital amounting amongst the whole, to no less than
fourteen millions of francs. One of them at Liege, perfected its
intention and is now in action. A second, at Malines (Mechlin), was
abandoned after the buildings had been erected, and the other two
at Ghent, are still only in process of completion. Besides these, there
is a third at Ghent, in the hands of an individual, calculated for
10,000 spindles.
That which we visited belonging to La Société de la Lys, may be
taken as a fair illustration of the progress which the art has made in
Belgium, as the others are all constructed on similar models, and
with the same apparatus in all respects. It was originally calculated
for 15,000 spindles, but of these not more than one third are yet
erected, and in motion, and but 5,000 others are in preparation. The
steam engines were made in England, by Messrs. Hall, of Dartford,
on the principle known as Wolf’s patent, which, using two cylinders,
combines both a high and low pressure, and is wrought with one
half to one third the fuel required for the engines, in ordinary use in
England,[10] an object of vast importance in a country where coals
are so expensive as they are in Belgium.[11] The machinery is all
made at the Phœnix works in Ghent, the preparatory portions of it
are excellent, and exhibit all the recent English improvements, and in
roving they use the new spiral frames. But the spinning rooms show
the Belgian mechanics to be still much behind those of Leeds and
Manchester, as evinced by the clumsiness and imperfect finish of the
frames, although they were still producing excellent work; the yarn
we saw being of good quality, but of a coarse description, and
intended for home consumption, and for the thread-makers of Lisle.
The quantity produced, per day, was quite equal to that of English
spinners,[12] and their wages much the same as those paid in
Ireland, and somewhat less than the English.[13]
On the whole, the linen trade of Belgium, notwithstanding its
extensive preparation of machinery, and the extraordinary demand
for its flax, must be regarded as in anything but a safe or a
permanent position. In those stronger articles which can be made
from flax of English growth, the English considerably undersell her
already; an important trade is, at this moment, carried on in the
north of Ireland in exporting linen goods to Germany, whence they
were formerly imported into England, and whence they are still sent
into Belgium, where the damask trade of Courtrai, which has been
perpetually declining since 1815, is now, all but superseded by the
weavers of Saxony and Herrnhut; and the tickens of Turnhout, by
those woven from the strong thread of Brunswick.
The contemplated measure of the French government, to impose a
heavy duty on the importation of linen-yarn, will, if persevered in, be
most prejudicial to the spinners of Belgium, as more or less, it must
inevitably diminish their consumption. On the other hand, as
England herself may be said to grow no flax for her own
manufacture, and that of Ireland is not only far inferior in quality to
the Dutch and Belgian, but inadequate to her own consumption, and
every year increasing in demand and rising in price,—so long as
Great Britain is thus dependant upon her own rivals for a supply of
the raw material to feed her machinery, at an expense of from 8 to
10 per cent, for freight and charges, in addition to its high first cost,
and whilst she must, at the same time, compete with them in those
continental markets, which are open to them both, the spinning mills
of Belgium cannot but be regarded otherwise than as formidable
opponents. Nor is this apprehension diminished by the fact, that
Belgium, which a few years since had no machinery for spinning
yarn, except what she obtained from other countries, or could
smuggle from England at a serious cost, is now enabled to
manufacture her own, and has all the minerals, metals, and fuel
within herself, which combined with industry and skilled labour, are
essential to bring it to perfection. For the present, the English
manufacturer, has a protection in the cost of his machinery alone—
the factory of the Société de la Lys cost £80,000 to erect, which
supposing its 10,000 spindles to be in action, would be £8 per
spindle, and as only the one half of these are at present employed,
the actual cost is sixteen pounds; whilst an extensive mill can be
erected in Ireland for from £4 to £5, and in England for even less.
The difference of interest upon such unequal investments, must be a
formidable deduction from the actual profits of the Belgians.
We returned to our Hotel by a shady promenade along the
Coupure, which connects the waters of the Lys with the canal of
Bruges, the banks of which planted with a triple row of tall trees,
form one of the most fashionable lounges and drives in Ghent.
Opening upon it are the gardens of the Casino, a Grecian building of
considerable extent, constructed in 1836 for the two botanical and
musical societies of Ghent, and, in which, the one holds its concerts,
and the other its spring and autumn exhibition of flowers. At the
rear of the building is a large amphitheatre with seats cut from the
mossy bank and planted with flowers, where the Société de St.
Cecile give their Concerts d’Eté, which are held in the open air, in
summer, and at which as many as six thousand persons have
occasionally been accommodated.
In the rearing of flowers, Belgium and more especially Ghent, has
outrivalled the ancient florists of Holland, the city is actually
environed with gardens and green-houses, and those of the
Botanical Society, are celebrated throughout Europe for their
successful cultivation of the rarest exotics. At Ghent their sale has, in
fact, become an important branch of trade; plants to the value of a
million and a half of francs having been exported annually, on
account of the gardeners in the vicinity; and it is no unusual thing to
see in the rivers, vessels freighted entirely with Camellias, Azaleas,
and Orange trees, which are sent to all parts of Europe, even to
Russia by the florists of Ghent.
The general appearance of the city, without being highly
picturesque, is to a stranger, of the most agreeable I remember to
have seen. It does not present in the mass of its houses and
buildings, that uniform air of grave antiquity which belongs to those
of Bruges, the greater majority of the streets having been often
rebuilt and modernized, as well as from the effects of civic
commotions, as to suit the exigencies of trade and manufactures,
which, when they deserted the rest of Belgium, seem to have
concentrated themselves here. Its modern houses are almost all
constructed on the Italian model, with ample portes-cochers,
spacious court yards, lofty staircases, tall windows, and frequently
frescoes and bas-reliefs, to decorate the exterior.[14] Almost every
house is furnished with an espion, a small plate of looking-glass
fixed outside the window, at such an angle, that all that is passing in
the street is seen by those inside, without their appearing
themselves.
Here and there upon the quays and in the narrower streets, there
are to be found the gloomy old residences of the “Men of Ghent,”
now converted into inns or ware-rooms, with their sharp tilted roofs,
high stepped gables, abutting on the street, fantastic chimneys, and
mullioned windows, sunk deep into the walls. And turning some
sudden corner in a narrow passage obstructed by lumbering
waggons, drawn by oxen, one finds himself in front of some huge
old tower, or venerable belfry, covered with gothic sculpture, and
stretching up to the sky till he has to bend back his head to descry
the summit of it. One singular old building on the Quai aux Herbes,
remarkable for its profusion of Saxon arches and stone carvings, was
the Hall of the Watermen, whose turbulent insurrection under John
Lyon, is detailed with quaint circumstantiality in the pages of
Froissart. But in the main, the streets of Ghent are lively and
attractive, and its squares, spacious and planted with trees, forming
a striking contrast to the melancholy brick and mortar buildings, that
compose the manufacturing towns of England. Here too, as in
Manchester and Leeds, the population seem all alive and active, but
instead of the serious and important earnestness which one sees in
every countenance in Lancashire, the Gantois seems to go about his
affairs with cheerfulness and alacrity, as if he was less employed on
business than amusement. The canals are filled with heavily laden
barges, and the quays with long narrow waggons of most primitive
construction, into which they unload their cargoes; whilst the
number of handsome private carriages, that one sees in every
thoroughfare, bespeak, at once, the wealth and refinement of the
population. The shops are exceedingly good though not particularly
moderate in their charges, and I was somewhat surprised to see as
an attraction on the sign boards at the doors of the drapers and
modistes, the announcement that Scotch and English goods were to
be had within. Altogether the combination of antique singularity with
modern comfort, commercial bustle, wealth, gaiety, cleanliness, and
vivacity, which is to be seen at Ghent, cannot fail to strike the most
hurried traveller, and I doubt much whether it is to be found in equal
perfection, in any other city of the continent of equal extent.
Every quarter of the city exhibits traces of the former wealth of the
burghers, and every building has some tradition characteristic of the
fiery turbulence of this little municipal republic. Bruges and Ghent
are, in this regard, by far the most interesting towns of Flanders.
Brussels, Liege and Ypres, are all of more modern date and
infinitively less historical importance, during the stormy period of the
Flemish annals from the 12th to the 16th century. Ghent was a
fortified town a thousand years ago, when its citadel was erected by
Baldwin of the Iron Arm, but it was only with the rage for the
Crusades, that the wealth and importance of the towns of the Low
Countries arose; when the Seigneurs, in order to obtain funds to
equip them for their expeditions to the Holy Land, released the
inhabitants of the towns from their vassalage, and sold to them the
lands on which their cities were built, and all the rights of self
government, privileges which subsequently assumed the form of a
corporate constitution. Ghent thus obtained her independence from
Philip of Alsace, in 1178, and for the first time secured the right of
free assembly, the election of her own provosts, a common seal, and
belfry, always an indispensable accompaniment of civic authority,
and important in sounding the alarm and convoking the citizens
upon every emergency.
It was in consequence of these momentous concessions, that whilst
the lords of the soil and their agrarian followers were wasting their
energies in distant war, or subsisting by rapine and violence against
one another, the inhabitants of the towns, secured within their walls
and fortified places, were enabled to devote themselves to
manufactures and to commerce, and thus to concentrate in their
own hands, the largest proportion, by far, of the monied wealth of
the Netherlands.
But, coupled with their high privileges, there were also some
restrictions, to which we of to-day are indebted for the vast and
magnificent edifices which the burghers of these flourishing
communities have left for our wonder and admiration. The rights
accorded to them by their Seigneurs were rigidly confined to the
limits of their own walls, no free burgher could purchase or hold
landed estate beyond the circuit of his municipality; and thus, whilst
driven to accumulate capital in the pursuit of trade and traffic, they
were equally constrained to invest it, not in land, like the retired
merchants of modern times, but in the construction of these vast
palaces and private mansions, and in the decorations of their
dwellings, and the adornment of their cities.
It is to this political circumstance of their position that we are to
refer, in order to account for the extent and splendour of those
ancient houses which we meet at every turning in Bruges and Ghent
—for the costly carvings and sculptured decorations of their fronts
and interiors, and for the quantity of paintings and ornaments in
which they abound.
The accumulation of their municipal resources, too, required to be
similarly disposed of, and was applied to the erection of their lofty
belfries, the construction of those gigantic towers which are elevated
on all their churches, and to the building of their town halls and
hôtels-de-ville, whose magnitude and magnificence, are a matter,
equally of admiration of the genius which designed, and
astonishment at the wealth which was necessary to erect them.
As the towns increased in prosperity and wealth, money always
sufficed to buy from their sovereigns fresh privileges and powers,
and fresh accessions of territory to be added to their municipal
districts, till, at length, the trades became so numerous as to enroll
themselves in companies, half civil and half military, whilst all united
to form those trading commandaries or Hansen, the spread of
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com