6 ms·
is this close to what you had in mind? https://gist.github.com/pims/711549577759ad1341f1a90860f1f3a5 https://gist.github.com/pims/711549577759ad1341f1a90860f1f
by iampims 4y ago
is this close to what you had in mind?
https://gist.github.com/pims/711549577759ad1341f1a90860f1f3a5 https://gist.github.com/pims/711549577759ad1341f1a90860f1f3a...
- simonw 4y agoYes! Very much so. Just tried this and it works great! I changed app.py to this: import sqlite3 print(sqlite3.connect(":memory:").execute( "select sqlite_version()" ).fetchone()[0]) And it output "3.39.2" - but the same code in my regular Python interpreter output "3.40.1", which demonstrates that the WASM Python there has its own WASM-compiled SQLite.
- iampims 4y agoGreat! I still need to look into how to limit memory consumption. Fuel works well enough for now, but there might be an option to limit execution by time, not just instructions.