Welcome to libsql Discussions! #8
Replies: 4 comments 7 replies
-
Hey @glommer — awesome idea you guys are working on. I think having some support for WASM in SQLite would be incredible. I imagine a future where you can write things like CHECK constraints in any language you please, have them compile to WASM and send that as a blob to SQLite as part of a migration. Example: #[libsql::constraint]
fn check_is_ipv4(data: &[u8]) -> Result<(), ConstraintError> {
Ipv4Addr::try_from(&data)?;
Ok(())
} I feel like this feature alone is worth it's weight in gold, because it means you can "extend" SQLite more easily with custom data types. The other idea you guys have discussed — bringing In any case, I hope this project succeeds. What's the next steps? |
Beta Was this translation helpful? Give feedback.
-
@xfbs and as for your io_uring question - as explained in #3, I think sqlite is not that far from being able to handle async I/O. It already has a poll-like interface where it returns |
Beta Was this translation helpful? Give feedback.
-
I would like to see WASI as a compile target for libsql so that It could be compiled into WASI applications. This would potentially enable a heterogeneous mix of users and their sqlite backed applications to be hosted on the same OS safely, potentially even in the same OS process. Mix in a little LiteFS behind it and I'm sure everybody that ends up here can see where this leads. Note that this is a distinct concept from WASM support inside of libsql. Anecdotally.... I got as far as the following compile command. The errors left look like a bunch of stuff related to POSIX users and permissions and file locking etc... |
Beta Was this translation helpful? Give feedback.
-
Would it make sense to schedule a (weekly) meeting for this project? I feel like that might be a good way to get together, share some ideas and coordinate development. |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions