all repos — h3rald @ 1eb06d52333a9e7d7cc05d6a5482dd0391e1b1f0

The sources of https://h3rald.com

#DecemberAdventure
Fabio Cevasco h3rald@h3rald.com
Tue, 24 Dec 2024 18:15:53 +0100
commit

1eb06d52333a9e7d7cc05d6a5482dd0391e1b1f0

parent

110665ea2515f50d8a3288291abb2e5a25a436c9

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M contents/articles/december-adventure-2024.mdcontents/articles/december-adventure-2024.md

@@ -709,4 +709,10 @@ - `throw` — Throw an error.

All of these symbols require some internal wizardry that cannot be implemented in hex itself, so, they should be native symbols. -At the same time, I also started working on a (currently untested) [utils.hex](https://github.com/h3rald/hex/blob/next/lib/utils.hex) defining a few utility symbols. The idea is to create a little _standard library_ in hex itself.+At the same time, I also started working on a (currently untested) [utils.hex](https://github.com/h3rald/hex/blob/next/lib/utils.hex) defining a few utility symbols. The idea is to create a little _standard library_ in hex itself. + +### Day #24 + +Getting ready for the v0.3.0 release! I updated the [spec](https://hex.2c.fyi/spec) to mention the new symbols and remove the old ones, I changed the example used for documenting the bytecode (a symbol to calculate the _factorial_ of an integer), and also used the same one for the [tutorial](https://hex.2c.fyi/learn). The main driver for this change was to introduce the concept of operators and also to use an example that can be run on the [playground](https://hex.2c.fyi/play), so that you can follow the tutorial without downloading anything. + +All the tests are running fine and I also updated the web script to leverage operators (and use while instead of each). The idea is to have a Christmas release tomorrow, obviously.