Skip to content
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9ff2d0e
docs: create author and build your own async article info
chlin501 Oct 23, 2025
37bba0d
docs: add outline and update some sentences
chlin501 Oct 23, 2025
564a371
docs: update build your own async article
chlin501 Oct 27, 2025
ee2ecb4
docs: unified typesetting style
chlin501 Oct 27, 2025
24db0ad
docs: update worker section and some typesetting
chlin501 Oct 27, 2025
3a0fd86
docs: add LL scheduler next batch paragraph
chlin501 Oct 28, 2025
0a9ae12
docs: add LL scheduler least loaded paragraph
chlin501 Oct 28, 2025
79374c7
docs: remove line number in code block
chlin501 Oct 28, 2025
ff588ee
docs: update dir layout and code compilation info
chlin501 Oct 28, 2025
85b3320
docs: update scheduler, and some compilation info
chlin501 Oct 29, 2025
02fe4cf
docs: update authors info and photo image
chlin501 Oct 29, 2025
2642be7
docs: update execution commands, and runtime info
chlin501 Oct 30, 2025
4b29b0e
docs: update higher overview class diagram
chlin501 Oct 30, 2025
6da8b38
docs: add conclusion
chlin501 Oct 30, 2025
800d9a7
chore: add graalvm tag
chlin501 Oct 30, 2025
7dbf1f4
docs: fix typos, and rephrase some sentencesh
chlin501 Oct 30, 2025
b31458c
docs: add an example that runs the async program
chlin501 Nov 2, 2025
db9e1f1
docs: append fiber text to zio, and cats effect
chlin501 Nov 2, 2025
06d1c2d
docs: add plural to the noun
chlin501 Nov 2, 2025
27fc9d7
docs: update profile photo
chlin501 Nov 11, 2025
f89e5c8
docs: update the article based on review
chlin501 Nov 11, 2025
f8501b2
docs: rename the async name to concurrent
chlin501 Nov 11, 2025
13b99cd
docs: update make targets' line number
chlin501 Nov 11, 2025
27f58ea
docs: update wording for the introduction
chlin501 Nov 11, 2025
ddda574
docs: update the links to makefile line number
chlin501 Nov 11, 2025
4f1ca09
docs: update wording in introduction section
chlin501 Nov 11, 2025
606d061
docs: rephrase wording to alternative apporach
chlin501 Nov 11, 2025
00e0f9c
docs: update photo image
chlin501 Nov 12, 2025
8977216
Merge remote-tracking branch 'upstream/main' into build-your-own-async
chlin501 Nov 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update make targets' line number
  • Loading branch information
chlin501 committed Nov 11, 2025
commit 13b99cd23be4aff5e8764ed4d28d68df56e3057c
33 changes: 10 additions & 23 deletions src/data/articles/build-your-own-async/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,6 @@ The installation of required depdendent jars can be referred to at the Makefile
# continuations dependencies
curl -s -L -O --create-dirs --output-dir ./continuations/libs \
https://repo1.maven.org/maven2/org/graalvm/espresso/continuations/24.2.2/continuations-24.2.2.jar
curl -s -L -O --create-dirs --output-dir ./continuations/libs \
https://repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.3.6/scala3-library_3-3.3.6.jar
curl -s -L -O --create-dirs --output-dir ./continuations/libs \
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.16/scala-library-2.13.16.jar

# concurrent dependencies
curl -s -L -O --create-dirs --output-dir ./concurrent/libs \
https://oss.sonatype.org/content/groups/public/org/scalatest/scalatest-app_3/3.2.17/scalatest-app_3-3.2.17.jar
curl -s -L -O --create-dirs --output-dir ./concurrent/libs \
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.16/scala-library-2.13.16.jar
```

## Higher Overview
Expand Down Expand Up @@ -243,7 +233,7 @@ abstract class Coroutine[S, E] extends Generator[E] {

* Compile the code with

* [Make compile-continuations](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L65) target, or
* [Make compile-continuations](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L67) target, or

* Execute

Expand Down Expand Up @@ -298,7 +288,7 @@ override def execute(value: Option[S] = None): (Option[E], Task[S, E]) =

* Compile the code with

* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L82) target, or
* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L84) target, or

* Execute

Expand Down Expand Up @@ -329,7 +319,7 @@ final case class Worker[T](

* Compile the code with

* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L82) target, or
* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L84) target, or

* Execute

Expand Down Expand Up @@ -385,7 +375,7 @@ final case class TaskQueue[T](

* Compile the code with

* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L82) target, or
* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L84) target, or

* Execute

Expand Down Expand Up @@ -456,7 +446,7 @@ override def leastLoaded(): (Worker[T], LeastLoadedScheduler[T]) = {

* Compile the code with

* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L82) target, or
* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L84) target, or

* Execute

Expand Down Expand Up @@ -550,7 +540,7 @@ Finally, it is the time to orchestrate the entire flow. The *Runtime* object in

* Compile the code with

* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L82) target, or
* [Make compile-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L84) target, or

* Execute

Expand Down Expand Up @@ -643,17 +633,14 @@ Runtime.spawn(runtime, t1, t2, t3, t4)
Before running our program, following dependencies are required to install beforehand.

```bash
# scalatest dependencies
curl -s -L -O --create-dirs --output-dir ./concurrent/libs \
https://repo1.maven.org/maven2/org/scala-lang/modules/scala-xml_2.13/1.2.0/scala-xml_2.13-1.2.0.jar
curl -s -L -O --create-dirs --output-dir ./concurrent/libs \
https://repo1.maven.org/maven2/org/scala-lang/scala3-library_sjs1_3/3.7.2/scala3-library_sjs1_3-3.7.2.jar

# our concurrent code dependencies
curl -s -L -O --create-dirs --output-dir ./concurrent/libs \
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.16/scala-library-2.13.16.jar
curl -s -L -O --create-dirs --output-dir ./concurrent/libs \
https://oss.sonatype.org/content/groups/public/org/scalatest/scalatest-app_3/3.2.17/scalatest-app_3-3.2.17.jar
curl -s -L -O --create-dirs --output-dir ./concurrent/libs \
https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.16/scala-library-2.13.16.jar
```

### Test Our Program
Expand All @@ -662,7 +649,7 @@ curl -s -L -O --create-dirs --output-dir ./concurrent/libs \

* Compile the code with

* [Make compile-test-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L88) target, or
* [Make compile-test-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L90) target, or

* Execute

Expand All @@ -675,7 +662,7 @@ curl -s -L -O --create-dirs --output-dir ./concurrent/libs \

* Test the code with

* [Make run-test-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L94) target, or
* [Make run-test-concurrent](https://codeberg.org/chlin501/concurrent4s/src/branch/main/Makefile#L96) target, or

* Execute

Expand Down