Skip to content

gmlewis/moonbit-pdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmlewis/moonbit-pdk

This is an experimental Extism PDK for the MoonBit programming language.

Build

Before building, you must have already installed the MoonBit programming language, the Go programming language, and the Extism CLI tool.

To install MoonBit, follow the instructions here (it is super-easy with VSCode): https://www.moonbitlang.com/download/

Then, to build this PDK, clone the repo, and type:

$ moon update
$ moon install
$ ./build.sh

Run

To run the examples, type:

$ ./run.sh

Status

This PDK is just in its infancy.

The code has been updated to support compiler version:

$ moon version
moon 0.1.20240624 (e25afbc 2024-06-24)

These plugins work (with the caveat that full UTF-8 input is not yet supported, only ASCII input currently works for strings):

  • greet

    e.g. ./scripts/greet.sh 'My Name'

  • count-vowels

    e.g. `./scripts/count-vowels.sh 'Once upon a dream'

  • http-get

    e.g. ./scripts/http-get.sh

About

Experimental Extism PDK for the MoonBit programming language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published