-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
C-bugSomething isn't workingSomething isn't working
Description
Summary
Copied from Discord.
Very simple program requires 100MB+ memory
use rustpython_vm as vm;
fn main() -> vm::PyResult<()> {
vm::Interpreter::without_stdlib(Default::default()).enter(|vm| {
let scope = vm.new_scope_with_builtins();
let source = r#"a = 1"#;
let code_obj = vm
.compile(source, vm::compiler::Mode::Exec, "<embedded>".to_owned())
.map_err(|err| vm.new_syntax_error(&err, Some(source)))?;
vm.run_code_obj(code_obj, scope)?;
Ok(())
})
}
Expected
Actual
./wasmi_cli /tmp/embedded-rust-python.wasm
memory allocation of 79167488 bytes failed
Aborted
Python Documentation
Metadata
Metadata
Assignees
Labels
C-bugSomething isn't workingSomething isn't working