Zulip Chat Archive

Stream: lean4

Topic: plans for network programming API


view this post on Zulip 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?

view this post on Zulip 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.

view this post on Zulip 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?

view this post on Zulip 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

view this post on Zulip 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

view this post on Zulip 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.

view this post on Zulip Sebastian Ullrich (Jan 17 2021 at 22:32):

Oh, I didn't actually know that was there


Last updated: May 18 2021 at 22:15 UTC