From e720987a4277dc24201a032dd3a02c940d573b4c Mon Sep 17 00:00:00 2001 From: ~sopmep-malpub Date: Wed, 16 Dec 2020 15:18:45 -0600 Subject: [PATCH 1/4] Fix dead link --- workflow.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow.md b/workflow.md index 0ba7672..ad39f5e 100644 --- a/workflow.md +++ b/workflow.md @@ -108,7 +108,7 @@ This can be done at the command line like so: cp -r your_code_directory/* your_pier_directory/app/ ``` -You can also use a [script like this one](https://github.com/timlucmiptev/gall-guide/blob/master/example-code/install.sh) to copy all Gall directories to your pier. +You can also use a [script like this one](https://github.com/timlucmiptev/gall-guide/blob/master/install.sh) to copy all Gall directories to your pier. ### Use `create-landscape-app` to Sync Files to Your Pier Once we begin creating Landscape apps, we will able to use `create-landscape-app` to monitor our JS and Hoon files, and copy them to our ship as they're updated. From 3149a257da8c21af588a231eeaf1102b05351d8f Mon Sep 17 00:00:00 2001 From: ~sopmep-malpub Date: Fri, 18 Dec 2020 07:58:36 -0600 Subject: [PATCH 2/4] Remove missing import --- example-code/app/fordexample.hoon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example-code/app/fordexample.hoon b/example-code/app/fordexample.hoon index 76398c8..dc1c08c 100644 --- a/example-code/app/fordexample.hoon +++ b/example-code/app/fordexample.hoon @@ -1,5 +1,5 @@ /- fordex=fordexample, *fordexample2 -/+ *server, default-agent, base=base64 +/+ *server, default-agent :: evaluate Hoon code /= n2w /lib/number-to-words :: mark example From b3acfb4acbb76a33b163ab97e504dfe671e8269b Mon Sep 17 00:00:00 2001 From: ~sopmep-malpub Date: Fri, 18 Dec 2020 07:58:44 -0600 Subject: [PATCH 3/4] Fix typo --- lifecycle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lifecycle.md b/lifecycle.md index 72372a5..a482ac0 100644 --- a/lifecycle.md +++ b/lifecycle.md @@ -134,7 +134,7 @@ Let's look at the code of our `on-init` arm: [%pass /bind %arvo %e %connect [~ /'~lifecycle'] %lifecycle] == ``` -We see that it returns a `(quip card _this)`. As mentioned in the [last lesson](arms.md), this type means a `list` of `card`, along with `_this_` at the end (short for `$_(this)`: the type of `this`, our core). +We see that it returns a `(quip card _this)`. As mentioned in the [last lesson](arms.md), this type means a `list` of `card`, along with `_this` at the end (short for `$_(this)`: the type of `this`, our core). Gall arms that return this structure are passing 0 or more actions (`card`s) back to Gall to perform, and also return a new state of our app to Gall. You can see more detail on the structure of cards in the [types appendix](appendix_types.md)--this one is an `arvo-note`. It starts with `%pass`, which means it's like a function call. The `%e` is for "Eyre", the Arvo networking vane. This is a command to listen for incoming HTTP requests on address `/~lifecycle` of our ship. We'll explore this more in the [HTTP lesson](http.md). From 4080f7eb20e93ec2cfb86038a44d0142ba121423 Mon Sep 17 00:00:00 2001 From: ~sopmep-malpub Date: Fri, 18 Dec 2020 08:00:51 -0600 Subject: [PATCH 4/4] Fix typo --- ford.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ford.md b/ford.md index da6496e..21984a1 100644 --- a/ford.md +++ b/ford.md @@ -49,7 +49,7 @@ This works in exactly the same way as `/+`, with the difference that it looks in We've seen `default-agent` a lot already. It just gets used once, on line 27. ## `/=` Import the Evaluation of a Hoon File -In line 4, we use `/=`. The `/=` rune imports the result of building a hoon file from a user-specified path (the second argument, `/lib/number-to-words`), wrapping it in a face specified by the first argument (`n2w`). The final /hoon at the end of the path must be omitted. This is similar to `` and `/-`, but just allows us to import from any directory. +In line 4, we use `/=`. The `/=` rune imports the result of building a hoon file from a user-specified path (the second argument, `/lib/number-to-words`), wrapping it in a face specified by the first argument (`n2w`). The final /hoon at the end of the path must be omitted. This is similar to `/+` and `/-`, but just allows us to import from any directory. Run `:fordexample %evaluate-hoon-example`, and you'll see how we now have access to the `to-words` arm in `number-to-words`.