Skip to content

Commit d7fc4c3

Browse files
committed
first commit
1 parent 60e4d53 commit d7fc4c3

11 files changed

+450
-2
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# inform linguist that files with these extensions are indeed smalltalk files
2+
*.st text eol=crlf linguist-language=Smalltalk
3+
*.project text eol=crlf
4+
*.properties text eol=crlf
5+
*.configmaps text eol=crlf
6+
*.dat binary

.project

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
#srcDirectory : 'source'
3+
}

README.md

+49-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,49 @@
1-
# CSS2022-async-demo-vast
2-
Camp Smalltalk Supreme 2022 Async Demos
1+
2+
<p align="center">
3+
<!---<img src="assets/logos/128x128.png">-->
4+
<h1 align="center">Camp Smalltalk Supreme 2022 Async Demos</h1>
5+
<p align="center">
6+
Camp Smalltalk Supreme 2022 Async Demos
7+
<!---
8+
<br>
9+
<a href="docs/"><strong>Explore the docs »</strong></a>
10+
<br>
11+
-->
12+
<br>
13+
<a href="https://github.com/instantiations/CSS2022-async-demo-vast/issues/new?labels=Type%3A+Defect">Report a defect</a>
14+
|
15+
<a href="https://github.com/instantiations/CSS2022-async-demo-vast/issues/new?labels=Type%3A+Feature">Request feature</a>
16+
</p>
17+
</p>
18+
19+
Material used for the [Intro to Asynchronous Programming with VAST](https://campsmalltalksupreme.wordpress.com/2020/06/28/daily-events/) presentation at the [Camp Smalltalk Supreme 2022](https://campsmalltalksupreme.wordpress.com/) conference.
20+
21+
## License
22+
- The code is licensed under [MIT](LICENSE).
23+
- The documentation is licensed under [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/).
24+
25+
26+
## Installation
27+
28+
1. Install [VA Smalltalk 11.0.0 or newer](https://www.instantiations.com/products/vasmalltalk/download.html).
29+
2. Install Tonel support in your development image following [this guide](https://github.com/vasmalltalk/tonel-vast#installation).
30+
3. Clone this repository.
31+
4. The easiest and recommended approach is to install it via a script:
32+
33+
```smalltalk
34+
| loader path |
35+
path := (CfsPath named: '<insert path to root CSS2022-async-demo-vast local repo here>').
36+
loader := TonelLoader readFromPath: path.
37+
loader
38+
beUnattended; "do not prompt and use all defaults"
39+
useGitVersion.
40+
loader loadAllMapsWithRequiredMaps.
41+
```
42+
43+
Or you can load the Configuration Map `CSS 2022 - Async Demos` from the context menu of the Configuration Maps Browser: `"Import"` -> `"Load Configuration Maps from Tonel repository..."` -> select path to root `CSS2022-async-demo-vast` local repo. This will open a dialog and will use convenient defaults for the load. Refer to [its documentation](https://github.com/instantiations/tonel-vast#using-gui-menus) for more details.
44+
45+
46+
47+
## Demos
48+
49+
All presented demos are in written as methods of the class `CampSmalltalkSupreme2022Examples`. We recoomend to first do Futures, then Promises, then Zones and finally Streams.

scripts/tonel-export.st

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| writer path |
2+
path := (CfsPath named: '<insert path to root CSS2022-async-demo-vast local repo here>').
3+
writer := TonelWriter new.
4+
writer
5+
addLatestConfigurationMapNamed: 'CSS 2022 - Async Demos';
6+
addApplicationsFromConfigurationMaps.
7+
writer writeProjectInto: path.

scripts/tonel-import.st

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| loader path |
2+
path := (CfsPath named: '<insert path to root CSS2022-async-demo-vast local repo here>').
3+
loader := TonelLoader readFromPath: path.
4+
loader
5+
beUnattended;
6+
useGitVersion.
7+
loader loadAllMapsWithRequiredMaps.

source/.configmaps

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
#conditions : [ ],
4+
#ts : 3832764876,
5+
#comment : '',
6+
#formatVersion : '1.1',
7+
#applications : OrderedCollection [
8+
{
9+
#name : 'CampSmalltalkSupreme2022ExamplesApp',
10+
#versionName : '1.0',
11+
#ts : 3832759021
12+
}
13+
],
14+
#name : 'CSS 2022 - Async Demos',
15+
#versionName : '1.0'
16+
}
17+
]

source/.properties

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
#format : 'tonel',
3+
#formatVersion: '1.1'
4+
}

0 commit comments

Comments
 (0)