Zulip Chat Archive
Stream: lean4
Topic: plans for network programming API
Christian Pehle (Jan 17 2021 at 14:43):
Currently there is no support for network programming, is that something that would eventually be supported by the standard library or should be contributed as third-party libraries?
Sebastian Ullrich (Jan 17 2021 at 15:03):
Lean 4 has been directly inspired by Rust in many regards, and the same can probably be said of its future standard lib size :) . So yes, a separate Lean package sounds like the more likely option at this point.
Huỳnh Trần Khanh (Jan 17 2021 at 15:12):
this might be tangential but does Lean 4 support some sort of asynchronous programming?
Huỳnh Trần Khanh (Jan 17 2021 at 15:12):
when there is I/O things must be either blocking or asynchronous right and I'd prefer asynchronous
Marc Huisinga (Jan 17 2021 at 15:16):
You can use tasks:
https://github.com/leanprover/lean4/blob/master/src/Init/Core.lean#L110
https://github.com/leanprover/lean4/blob/master/src/Init/System/IO.lean#L99
Christian Pehle (Jan 17 2021 at 21:25):
In fact I thought in line with https://doc.rust-lang.org/std/net/index.html, basically UDP, TCP, Sockets, etc., not higher level protocols.
Sebastian Ullrich (Jan 17 2021 at 22:32):
Oh, I didn't actually know that was there
Last updated: Dec 20 2023 at 11:08 UTC