Earlier quoted context omitted.
Aren't non-leader RAFT nodes already read-only?
I guess I meant observer nodes, with read-only DB access.
Dqlite – High-Availability SQLite
111–120 of 120 posts
Re: Dqlite – High-Availability SQLite
#112Interesting nugget about golang from their FAQ: https://github.com/canonical/dqlite/blob/master/doc/faq.md Why C? The first prototype implementation of dqlite was in Go, leveraging the hashicorp/raft implementation of the Raft algorithm. The project was later rewritten entirely in C because of performance problems due to the way Go interoperates with C: Go considers a function call into C that lasts more than ~20 mic…
> since all major languages have provisions to create C bindings. Does WebAssembly or any of its runtimes provide a way to do this?
Re: Dqlite – High-Availability SQLite
#113Earlier quoted context omitted.
I guess I meant observer nodes, with read-only DB access.
I just mean that RAFT nodes are already read-only for most of their lives — it’s not clear to me why you’d want nodes to be dedicated as read-only; it would only reduce consistency guarantees (and I believe you wouldn’t be avoiding the heartbeat and data consistency network chatter).. I think the leadership functionality comes cheap
I know Zookeeper, for example, supports observer nodes: essentially a cheaper read-only cache. Chubby at Google had the same thing.
Re: Dqlite – High-Availability SQLite
#114Earlier quoted context omitted.
> since all major languages have provisions to create C bindings. Does WebAssembly or any of its runtimes provide a way to do this?
Yes, emscripten/llvm builds C code into webassembly. I'd say a significant portion of webassembly is C/C++ sourced.
Re: Dqlite – High-Availability SQLite
#115I really like the design of this website. It's simple, information-rich, fast, and doesn't contain a ridiculous number of images or dynamic components. It's a shame that I can only say this for a select few websites these days.
Yet it's still loaded with hundreds of KB of custom fonts, because the designers would rather I look at a blank page for a couple seconds than gaze upon their design with a typeface that isn't exactly the same one they have on their computer. My resolution, window size, color settings, text zoom, font rendering, etc, are almost certainly different, too, but at least they've made the page more than twice as slow by fo…
Re: Dqlite – High-Availability SQLite
#116Earlier quoted context omitted.
you can probably compile c to webassembly using clang/llvm
That's not what the parent was asking. They were asking if WASM has an FFI interface for runtimes that want to not execute the WASM code entirely sandboxed from the host, but rather want to allow you to dlload(2) code into the OS process hosting the WASM interpreter and call it through WASM ops. Presumably, https://github.com/CraneStation/wasmtime would benefit from such an FFI API being specified.
Re: Dqlite – High-Availability SQLite
#117Earlier quoted context omitted.
you can probably compile c to webassembly using clang/llvm
That's not what the parent was asking. They were asking if WASM has an FFI interface for runtimes that want to not execute the WASM code entirely sandboxed from the host, but rather want to allow you to dlload(2) code into the OS process hosting the WASM interpreter and call it through WASM ops. Presumably, https://github.com/CraneStation/wasmtime would benefit from such an FFI API being specified.
Re: Dqlite – High-Availability SQLite
#118Earlier quoted context omitted.
you can probably compile c to webassembly using clang/llvm
That's not what the parent was asking. They were asking if WASM has an FFI interface for runtimes that want to not execute the WASM code entirely sandboxed from the host, but rather want to allow you to dlload(2) code into the OS process hosting the WASM interpreter and call it through WASM ops. Presumably, https://github.com/CraneStation/wasmtime would benefit from such an FFI API being specified.
Re: Dqlite – High-Availability SQLite
#119Earlier quoted context omitted.
Yes, emscripten/llvm builds C code into webassembly. I'd say a significant portion of webassembly is C/C++ sourced.
You can't use emscripten/llvm with, #include to provide a GUI per se, can you?
Re: Dqlite – High-Availability SQLite
#120Earlier quoted context omitted.
> since all major languages have provisions to create C bindings. Does WebAssembly or any of its runtimes provide a way to do this?
Genuine question here: if you’re already going to be shipping native code, why would you need WebAssembly in the mix, especially if you’re not targeting a browser?