Skip to content

Compile to web assembly #553

@SuperFola

Description

@SuperFola

Is your feature request related to a problem?

We can’t run ArkScript code on the web, and need to rely on servers with ArkScript docker containers.

Describe the solution you would like

I’d like to be able to embed ArkScript on web pages, eg make a game on itch.io and upload an HTML files bundle containing ArkScript (byte)code as well as the VM transpiled to wasm to run the game code.

This requires being able to compile the runtime with a compiler like emscripten, as well as updating runtime plugin loading in the VM, to be able to load wasm files (eg importing raylib bindings for ArkScript, the plugin would have to be wasm so we can run it).

Is it a big modification to the language? Leave it if you don't know

  • Breaking change
  • Compiler/syntax modifications
  • Runtime modifications (standard library, modules, packages...)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions