https://github.com/extism/hello-from
WIP Extism Demo
https://github.com/extism/hello-from
Last synced: 5 months ago
JSON representation
WIP Extism Demo
- Host: GitHub
- URL: https://github.com/extism/hello-from
- Owner: extism
- License: bsd-3-clause
- Created: 2023-09-26T21:06:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T03:52:32.000Z (over 2 years ago)
- Last Synced: 2025-04-28T11:17:14.160Z (over 1 year ago)
- Language: Makefile
- Size: 16.6 MB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A demo piping a string through a plug-in written in each PDK:
Each plug-in exports a function that takes a string and appends `"Hello from $lang!"` to it. It effectively does this:
```
print(csharp(fsharp(rust(c(js(go("Hello from Python!")))))))
```
Building (note: this won't setup all the dependencies for you):
```bash
make build
```
Running:
```bash
make run
```
```bash
Load plug-ins [Enter]>
Loaded 6 plugins in 905 ms
Run plug-ins [Enter]>
Hello from Python!
Hello from Rust!
Hello from C!
Hello From F#!
Hello from Csharp!
Hello from Go!
Hello from JavaScript!
Ran 6 plug-ins in 87.5158 ms
Run plug-ins [Enter]>
Hello from Python!
Hello from Rust!
Hello from C!
Hello From F#!
Hello from C#!
Hello from Go!
Hello from JavaScript!
Ran 6 plug-ins in 1.6611 ms
```