wasify-io / wasify-go Goto Github PK
View Code? Open in Web Editor NEWWasify
Home Page: https://pkg.go.dev/github.com/wasify-io/wasify-go
License: MIT License
Wasify
Home Page: https://pkg.go.dev/github.com/wasify-io/wasify-go
License: MIT License
Allow file system configuration functionality in ModuleConfig
FSConfig: wasify.FSConfig{
Enabled: true,
HostDir: "./dir",
GuestDir: "/",
}
Add tests that tests wazero specific code and validates WASM/module behaviours.
Simplify return values from guest functions.
Considering this project isn't maintained, at least notify potential users about it.
Add log host function to allow guest users to log and debug their modules using mdk
mdk.Log()
depends on #2
Add optional Attributes field for ModuleConfig
type ModuleConfig struct {
...
Attributes map[string]string
....
}
These attributes will be accessible within the module with the help of Module Development Kit mdk
.
val := mdk.Attr("key") // val or nil
// Or mdk.GetAttr("key") ?
optionally, good to have built-in converters:
val := mdk.Attr("name").String()
val := mdk.Attr("age").Int()
...
Error wrapping is a beneficial practice in Go's public APIs because it enhances clarity and problem-solving for users. By adding context to error messages, developers can quickly understand why an error occurred and trace its origins. This makes troubleshooting and resolution more efficient, shields internal implementation details, and maintains consistency in error handling. Moreover, it aids in versioning and ensures that changes to underlying code don't disrupt users' error-handling strategies.
Add missing unit tests.
In wasm runtimes, basic functions like serving web pages or logging data aren't included by default. For example, if we want to send a request to a website from a part of our wasm program, we first need to set up a special host function for this purpose. Then, we can use that function within the module to get the data we need. It's a good idea to prepare essential functions like these in advance for users.
We should create a feature that makes it easy to generate these built-in functions, which can be used by people who write wasm programs. This way, users can perform tasks like making web requests without the hassle of setting up everything from scratch. The goal is to simplify the process for everyone involved.
Supported types in Params and Results are only "byte" right now. []byte is simple and useful. However, it would be nice to also have number types like uint32
, uint64
, float32
, and float64
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.