2 ms·
I totally agree with you about SSL. That's what I meant with abstracting I/O on top of platform-primitives. Similar to how the Reqwest crate in Rust-land uses
by zorr 5y ago
I totally agree with you about SSL. That's what I meant with abstracting I/O on top of platform-primitives.
Similar to how the Reqwest crate in Rust-land uses fetch on WASM and something else for other platforms. For the developer the API to define requests remains the same.
Flutter/Dart also does something similar in its http packages. I would like to see the same thing but decoupled from the UI framework.
edit: Rust Cargo and Kotlin multi-platform Gradle tooling are heading in the right direction. Both have support for defining a common interface with platform-specific implementations and good support for building against various target platforms.
- Comevius 5y agoI don't know where Rust or Kotlin are heading, but C/WASM and Dart are already there today. I use Zig for the C/WASM part, it does cross compilation out of box. It's also a C compiler. It has built-in libc for Windows, macOS and Linux, and built-in wasi-libc. https://ziglang.org/ https://ziglang.org/