Skip to content

Question: Like a script host #46

@Astn

Description

@Astn

I've done a little script hosting before for things such as games, and rules engines, and I really like the idea of being able to do the same thing with webassembly, because the user could pick from various languages that compile to web-assembly.

I'm hoping this would be an incredible performance improvement over script hosting.

I feel like I would need to define some interfaces, and hook functions and then somehow let those be defined in web-assembly so they could be used by script clients to compile against.

I see that interface types is still a proposal and might solve this issue.

Do you have any advice on how this could be done right now? I'd love an example if you have a little time on a setup where we are able to pass an object, or struct to a standard named handler on the webAssembly side, and then deal with the result on the host side.

The specific use case I'm thinking of at the moment would be for supporting user defined functions similar to SQL server stored procedures, or UDFs inside a database engine.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions