digitalmars.D.learn - D and Async I/O
- Russel Winder (17/17) May 11 2020 OK, so I need to create an asynchronous TCP server (not HTTP or HTTPS, t...
- bauss (7/16) May 11 2020 vibe.d is much more mature than Hunt, that would be my take on it.
- Paolo Invernizzi (5/24) May 12 2020 Have a look also to Martin std.io [1] and Steven iopipes [2], if
OK, so I need to create an asynchronous TCP server (not HTTP or HTTPS, this= is a real server ;-) ). I think the normal response is "Use Vibe.d". However, recently I see Hunt i= s an alternative. Has anyone any way of choosing between the two? I notice that Hunt uses it's own library eschewing all of Phobos. Is this a= n indicator that Phobos is not suitable for networking activity? =20 --=20 Russel. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk
May 11 2020
On Monday, 11 May 2020 at 14:02:54 UTC, Russel Winder wrote:OK, so I need to create an asynchronous TCP server (not HTTP or HTTPS, this is a real server ;-) ). I think the normal response is "Use Vibe.d". However, recently I see Hunt is an alternative. Has anyone any way of choosing between the two?vibe.d is much more mature than Hunt, that would be my take on it. Also Hunt lacks documentation etc.I notice that Hunt uses it's own library eschewing all of Phobos. Is this an indicator that Phobos is not suitable for networking activity?std.socket is terrible, so yes that is an indicator. You can't even wrap something up fast in it either. Basically it's low-level while not being low-level at the same time. You have to handle __everything__ yourself pretty much.
May 11 2020
On Monday, 11 May 2020 at 15:02:59 UTC, bauss wrote:On Monday, 11 May 2020 at 14:02:54 UTC, Russel Winder wrote:Have a look also to Martin std.io [1] and Steven iopipes [2], if you need something simple. [1] https://github.com/MartinNowak/io [2] https://code.dlang.org/packages/iopipeOK, so I need to create an asynchronous TCP server (not HTTP or HTTPS, this is a real server ;-) ). I think the normal response is "Use Vibe.d". However, recently I see Hunt is an alternative. Has anyone any way of choosing between the two?vibe.d is much more mature than Hunt, that would be my take on it. Also Hunt lacks documentation etc.I notice that Hunt uses it's own library eschewing all of Phobos. Is this an indicator that Phobos is not suitable for networking activity?std.socket is terrible, so yes that is an indicator. You can't even wrap something up fast in it either. Basically it's low-level while not being low-level at the same time. You have to handle __everything__ yourself pretty much.
May 12 2020