Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unyt-org/example-threads
An example that showcases Threads using DATEX and UIX
https://github.com/unyt-org/example-threads
datex multithreading thread uix uix-example unyt
Last synced: about 2 months ago
JSON representation
An example that showcases Threads using DATEX and UIX
- Host: GitHub
- URL: https://github.com/unyt-org/example-threads
- Owner: unyt-org
- License: mit
- Created: 2023-09-19T14:30:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T16:45:45.000Z (3 months ago)
- Last Synced: 2024-10-18T15:21:45.654Z (3 months ago)
- Topics: datex, multithreading, thread, uix, uix-example, unyt
- Language: TypeScript
- Homepage: https://threads.example.unyt.org
- Size: 1.29 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example: Threads
This repository demonstrates the concepts of type-safe **Multi-Threading** based on [DATEX](https://datex.unyt.org) and Web Workers.
In this demo, we are calculating the digits of PI and creating a [TOR vanity address](https://community.torproject.org/onion-services/advanced/vanity-addresses/).## Installation
1. Install the **UIX command line tool** following the [Getting Started](https://docs.unyt.org/manual/uix/getting-started#the-uix-command-line-tool) guide in our documentation.2. Clone this repository to your local machine:
```bash
$ git clone https://github.com/unyt-org/example-threads.git
```
3. Run the project local
```bash
$ uix --port 8000
```
4. Navigate to your favourite web browser and open http://localhost:8000 to see everything in action.## Structure
This diagram outlines the UIX default project structure.
```
.
└── example-threads/
├── common/
│ ├── components/
│ │ ├── MainPage.scss // Main style declaration
│ │ └── MainPage.tsx // Main component
│ ├── PI-Worker.ts // Worker for PI calculation
│ └── TOR-Worker.ts // Worker for TOR address gen
├── frontend/
│ ├── entrypoint.css // Front-end style declaration
│ └── entrypoint.tsx // Front-end entrypoint
├── app.dx // Endpoint config file
└── deno.json // Deno config file
```## Features
* Threading
* Multiple threads
* Disposing of threads## Preview
---
© unyt 2024 • [unyt.org](https://unyt.org)