Skip to content

Commit 72fe832

Browse files
authored
Merge pull request #3 from danbugs/danbugs/chapter6
[chapter-work] chapter 6 finished (pre-review)
2 parents 62455d4 + 3c7f5f1 commit 72fe832

File tree

45 files changed

+5146
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+5146
-14
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "chapter06/smart-cms/ollama-provider"]
2+
path = chapter06/smart-cms/ollama-provider
3+
url = https://github.com/danbugs/ollama-provider.git

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ members = [
1515
"chapter05/wasm_udf_example",
1616
"chapter05/smart_cms/smartcms_test_host",
1717
"chapter05/smart_cms/smartcms_ml_guest",
18+
"chapter06/hello-world-spin",
19+
"chapter06/hello-world-wasmcloud",
20+
"chapter06/smart-cms",
1821
]

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,9 @@ The book is still under development, so this repository will be updated as I pro
1313
- [x] Chapter 4 (Interfacing Wasm with the Underlying System)
1414
- Part 2: Production-Grade Wasm
1515
- [x] Chapter 5 (Applications of Wasm from machine learning to databases)
16-
- [ ] Chapter 6 (Creating Production-Grade Wasm Applications)
16+
- [x] Chapter 6 (Creating Production-Grade Wasm Applications)
1717
- Part 3: Wasm on the Cloud and the Edge
1818
- [ ] Chapter 7 (Introducing Wasm Containers with Docker)
1919
- [ ] Chapter 8 (Scalability for Wasm with Kubernetes)
2020
- [ ] Chapter 9 (Wasm for Edge Devices and IoT)
2121

22-
## Platform Used
23-
24-
Unless specified, all examples in this repository were run on:
25-
```bash
26-
HP ENVY Laptop 15-ep1xxx
27-
Microsoft Windows 11 Pro
28-
x64-based PC
29-
11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
30-
Intel(R) UHD Graphics 1073741824 / NVIDIA GeForce RTX 3050 Laptop GPU 4293918720
31-
8 cores
32-
16GB RAM
33-
```

chapter05/smart_cms/smartcms_ml_guest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod bindings;
44
use tokenizers::Tokenizer;
55
use rand::prelude::*;
66
use ndarray::Array;
7-
use std::{convert::TryInto, fs};
7+
use std::fs;
88

99
use bindings::{Guest, wasi::nn::{
1010
graph::{Graph, load, ExecutionTarget, GraphEncoding},
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
.spin/

0 commit comments

Comments
 (0)