-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildOn.html
339 lines (322 loc) · 13.2 KB
/
BuildOn.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<!DOCTYPE html>
<html>
<!--
RustCommWithThreadPool.html
-->
<head>
<title>BuildOn</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/StylesPageFrameDefaults.css" />
<link rel="stylesheet" href="css/StylesPageFrameStructure.css" />
<link rel="stylesheet" href="css/StylesPageFrameMenus.css" />
<link rel="stylesheet" href="css/StylesPageFrameThemeRust.css" />
<link rel="stylesheet" href="css/StylesWebComponents.css" />
<script src="js/ScriptsWebComponents.js"></script>
<script src="js/ScriptsPageFrameRsRepos.js"></script>
<script src="js/ScriptsPageFramePagesRsRepos.js"></script>
<script src="js/ScriptsPageFrameKeyboard.js"></script>
<style>
summary {
padding: 3px 0px 5px 0px;
}
.container {
display: grid;
grid-template-columns: 0em 0.6fr 1.5fr 0.6fr 1fr 0em;
/*link to pg, descrip, link to repo, status grid-column-gap: 0em;*/
padding: 0.0em;
margin: 0em 0.25em 1em 0.25em;
border: 1px solid var(--dark);
}
.item1 {
grid-column: 2;
padding: 0.2em 1em;
border: 2px solid var(--dark);
}
.item2 {
grid-column: 3;
padding: 0.2em 1em;
border: 2px solid var(--dark);
}
.item3 {
grid-column: 4;
padding: 0.2em 1em;
border: 2px solid var(--dark);
}
.item4 {
grid-column: 5;
padding: 0.2em 1em;
border: 2px solid var(--dark);
}
.gray {
background-color: #ddd;
}
.spread {
margin: 1em;
}
.tightSpread {
margin: 0.5em;
}
#github #pagetitle {
background-color: #440000;
color: #440000;
}
#github #title {
background-color: #440000;
color: #fefefa;
}
#github #subtitle {
background-color: #440000;
color: #fefefa;
}
#github a.repoLink {
background-color: #440000;
color: #fefefa;
}
</style>
<script>
function loadifrust() {
var loc = window.location.href;
if (window.self === window.top) {
window.location.href = 'TOCRust.html?src=' + loc;
}
else {
window.top.location.href = loc;
}
}
</script>
</head>
<body id="github" onload="initialize()">
<a id="Next" href="RustCommExperiments.html">N</a>
<a id="Prev" href="RustStringConversions.html">P</a>
<page-frame>
<frame-header>
<nav id="navbar"></nav>
</frame-header>
<main>
<div id="about" onclick="this.style.display = 'none'">about</div>
<div id="modified">11/29/2022</div>
<div id="page">BuildOn Repo</div>
<div id="hlp"></div>
<a id="top"></a>
<content>
<header>
<a target="_blank" class="repoLink" href="https://github.com/JimFawcett/BuildOn">BuildOn code</a>
<hgroup id="pagetitle" onclick="loadifrust()" style="cursor:pointer;">
<h1 id="title">BuildOn Repository</h1>
<h3 id="subtitle" class="indent">Learning Rust by Building</h3>
</hgroup>
<div onmouseleave="closeQuickStatus()" style="padding-right:25px; position:absolute; top:1.9em; right:0.25em;">
<details>
<summary class="darkItem quickStatus" style="border:1px solid var(--light);">Quick Status</summary>
<status-grid style="padding:5px 10px;" class="lightItem border">
<status-itemLeft>
Project Steps
</status-itemLeft>
<status-itemRight>
not started yet
</status-itemRight>
<status-itemLeft>
Demonstration code
</status-itemLeft>
<status-itemRight>
not yet
</status-itemRight>
<status-itemLeft>
Documentation
</status-itemLeft>
<status-itemRight>
yes
</status-itemRight>
<status-itemLeft>
Test cases
</status-itemLeft>
<status-itemRight>
NA
</status-itemRight>
<status-itemLeft>
Static library
</status-itemLeft>
<status-itemRight>
NA
</status-itemRight>
<status-itemLeft>
Build requires
</status-itemLeft>
<status-itemRight>
Rust installed
</status-itemRight>
<status-itemLeft>
Planned design changes
</status-itemLeft>
<status-itemRight>
Add many short steps
</status-itemRight>
</status-grid>
</details>
</div>
</header>
<spacer-15></spacer-15>
<indent-block background-color:#fefefa; display:inline; padding:0px 10px; max-width:70%;">
"Procrastination is the art of keeping up with yesterday"
<br />
- Don Marquis
</indent-block>
<div style="height:1.5em;"></div>
<div>
<h3 id="contents">Contents:</h3>
<t-b>
<!--<a href="#code">Code List</a>,--> <a href="#steps">Steps List</a>
</t-b>
<indent-blocks>
<t-b>
There are a lot of excellent references for Rust programming, but sometimes the best way to get started
is to write code. That's what this repository is all about.
</t-b>
<t-b>
The BuildOn plan starts with a project that is small enough to understand easily, but rich enough to
illustrate many of Rust ideas. Here's a quick <a target="_blank" href="Resources/BuildOn/Build-On.pdf">BuildOn Summary</a>
</t-b>
<t-b>
We will start with a Project called TextFinder that, given a path, set of file patterns, and text to find,
seaches the directory tree rooted at the specified path and reports all files from the pattern set that
contain specified text.
</t-b>
<t-b>
We decompose TextFinder into a set of libraries and an executive package. Then, in a series of
presentations, cover the implementation of each, starting from one that is fairly simple to construct,
and moving on to more complex libraries that progressively require more Rust knowledge.
</t-b>
<t-b>
<div style="border:2px solid darkred; padding:0.5rem 1rem; margin:1rem 1rem;">
I think of these steps as a work book for the <a target="_blank" href="RustStory_Prologue.html">Rust Story</a>. The story
provides a fairly complete narrative description of the Rust programming language.
<s-halfEm></s-halfEm>
Each project step takes an important feature or capability of the language, provides a consise statement,
an example of its operation, and, for most of the steps, a short set of links to things you need to know
to complete the step.
</div>
</t-b>
<div style="height:0.5em;"></div>
<h3 id="steps">Steps:</h3>
<t-b>
Here are the currently planned Project steps:
</t-b>
<div class="indent">
<ol class="tights" start="0">
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Intro.html">BuildOn Introduction</a></menu-item><br />
<menu-right>
What is BuildOn? Why Rust? Rust Safety<br />
You will find introductory code
for step_1 in the <a target="_blank" href="https://github.com/JimFawcett/BuildOn">BuildOn Repository</a>.
</menu-right>
</li>
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Step1.html">TextFinder Introduction</a></menu-item><br />
<menu-right>
Getting started: references, partitioning, execution
Next Step: text_search lib specification, step references. You will find introductory code
for step_1 in the <a target="_blank" href="https://github.com/JimFawcett/BuildOn">BuildOn Repository</a>.
</menu-right>
</li>
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Step1.html#textfinder">TextSearch</a></menu-item><br />
<menu-right>
text_search lib: references, example implementation
Next Step: dir_nav lib specification, step references.
</menu-right>
</li>
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Step2.html">DirNav</a></menu-item><br />
<menu-right>
dir_nav lib: references, example implementation
Next Step: cmdln_parser lib specification, step references.
</menu-right>
</li>
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Step3.html">CmdlnParser</a></menu-item><br />
<menu-right>
cmdln_parser lib: references, example implementation
Next Step: display lib specification, step references.
</menu-right>
</li>
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Step4.html">Executive</a></menu-item><br />
<menu-right>
executive and display: references, example structure
Next Step: regular_expression extensions, references
</menu-right>
</li>
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Step5.html">Regular Expression Extension</a></menu-item><br />
<menu-right>
regular_expression extension: references, example implementation
Next Step: concurrency
</menu-right>
</li>
<li class="top">
<hr />
<menu-item class="top"><a target="_blank" href="Resources/BuildOn/Step6.html">Concurrency Extension</a></menu-item><br />
<menu-right>
parallel_search extension: references, example implementation
Next Step: New Project?
</menu-right>
</li>
</ol>
</div>
<s-1Em></s-1Em>
<t-b>
The current plan is to conduct a Zoom remote session for each step, perhaps bi-weekly or once a month.
We will record that and post along with step code.
</t-b>
<t-b>
These steps present relatively small simple demonstration codes, and a few that are larger.
We may, if enthusiasm holds, start a new project after this is complete.
</t-b>
<t-b>
<a id="code"></a>
<s-halfEm></s-halfEm>
</t-b>
</indent-blocks>
</div>
<spacer-25></spacer-25>
</content>
<a id="bottom"></a>
<page-TOC id="pages" style="display:none;">
</page-TOC>
<page-sections id="sections" style="display:none;">
<sec-elem style="width:0.0em"> </sec-elem>
<menu-elem class="secElem"><a href="#bottom">bottom</a></menu-elem>
<menu-elem class="secElem"><a href="#steps">steps</a></menu-elem>
<menu-elem class="secElem"><a href="#contents">contents</a></menu-elem>
<menu-elem class="secElem"><a href="#top">top</a></menu-elem>
<div class='darkItem popupHeader' style="padding:0.25em 2.0em;" onclick="this.parentElement.style.display='none'">Sections</div>
</page-sections>
</main>
<frame-footer>
<menu-item style="width:2.0em;"> </menu-item>
<menu-elem id="nextLink2" onclick="bottomMenu.next()">Next</menu-elem>
<menu-elem id="prevLink2" onclick="bottomMenu.prev()">Prev</menu-elem>
<menu-elem id="pgbtn" onclick="bottomMenu.pages()">Pages</menu-elem>
<menu-elem onclick="bottomMenu.sections()">Sections</menu-elem>
<menu-elem onclick="bottomMenu.about()">About</menu-elem>
<menu-elem id="kysbtn" onclick="storyHlpMenu.keys()">Keys</menu-elem>
<menu-elem style="margin-right:1em">
<span id="loc" style="display:inline-block; font-weight:normal"></span>
</menu-elem>
</frame-footer>
</page-frame>
<script>
let loc = document.getElementById("loc");
let fn = window.location.href.split(/\/|\\/).pop();
loc.innerHTML = fn + ":";
</script>
</body>
</html>