sableland/sable

`sable snapshot` subcommand

Opened this issue · 3 comments

We should support AoT compiled JS.

$ bueno snapshot mod.js
$ bueno run mod.snapshot

Snapshots will most likely not be stable across bueno versions, so we should definitely note the current bueno version and warn that the snapshot was generated in an old version.

We'd need to think whether we would even support running them not-locally.
We'd also need to check if the snapshot has been compiled for current platform.

Also because snapshots would probably be susceptible to memory attacks we should require --allow-all as well as to warn the user about that