Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

microvium sync w/endo? #28

Open
dckc opened this issue Jun 22, 2022 · 0 comments
Open

microvium sync w/endo? #28

dckc opened this issue Jun 22, 2022 · 0 comments

Comments

@dckc
Copy link
Owner

dckc commented Jun 22, 2022

IOU markup clean-up

seen https://lobste.rs/s/6a3me8/microvium_is_very_small ? https://coder-mike.com/behind-microvium/

Easy Distributed Applications
and snapshots.
and modules.
Their module API looks like compartments with bits and bobs renamed. might be nice to get them to use the same name

(edited)

Microvium is very small - @lobsters
7 comments

Behind Microvium - Coder Mike
Behind Microvium
09:38
dckc
D
/ host.js
const Microvium = require('microvium');

const vm = Microvium.create();

// Create a "print" function in the global scope that refers to this lambda function in the host
vm.globalThis.print = s => console.log(s);

// Run some module source code
vm.evaluateModule({ sourceText: 'print("Hello, World!");' }); // Prints "Hello, World!" to the console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant