Skip to content

Commit

Permalink
Merge pull request #15 from pedropark99/error-handling
Browse files Browse the repository at this point in the history
New chapter about error handling and union types
  • Loading branch information
pedropark99 authored Jul 30, 2024
2 parents 4df2986 + 7b25588 commit 38b4008
Show file tree
Hide file tree
Showing 72 changed files with 5,705 additions and 4,304 deletions.
666 changes: 333 additions & 333 deletions Chapters/02-debugging.qmd

Large diffs are not rendered by default.

2,080 changes: 1,040 additions & 1,040 deletions Chapters/04-http-server.qmd

Large diffs are not rendered by default.

1,018 changes: 509 additions & 509 deletions Chapters/05-pointers.qmd

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions Chapters/06-vectors.qmd
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
engine: knitr
knitr: true
syntax-definition: "./Assets/zig.xml"
---

```{r}
#| include: false
source("./zig_engine.R")
```


# Building a grayscale image filter

In this chapter, I want to build a stupid image filter with you, like the ones you have in Instagram or Photoshop.
The image filter we are going to implement here, is a grayscale filter. The basic idea is to
receive an input image and transform it into a grayscale image.

In this chapter, hopefully, I'm going to teach about vectors in Zig, and also,
about using C libraries.


---
engine: knitr
knitr: true
syntax-definition: "./Assets/zig.xml"
---

```{r}
#| include: false
source("./zig_engine.R")
```


# Building a grayscale image filter

In this chapter, I want to build a stupid image filter with you, like the ones you have in Instagram or Photoshop.
The image filter we are going to implement here, is a grayscale filter. The basic idea is to
receive an input image and transform it into a grayscale image.

In this chapter, hopefully, I'm going to teach about vectors in Zig, and also,
about using C libraries.


1,808 changes: 904 additions & 904 deletions Chapters/07-build-system.qmd

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Chapters/09-data-structures.qmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@



# Introduction

In this chapter, we are going to discuss some Data Structures available from
the Zig Standard Library, specially `ArrayList` and also `HashMap`. We also
are going to talk about generics with linked lists.



# Introduction

In this chapter, we are going to discuss some Data Structures available from
the Zig Standard Library, specially `ArrayList` and also `HashMap`. We also
are going to talk about generics with linked lists.
Loading

0 comments on commit 38b4008

Please sign in to comment.