[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] [GSoC] Question on "Rust implementation of GNUne

From: Andrew Cann
Subject: Re: [GNUnet-developers] [GSoC] Question on "Rust implementation of GNUnet utils" project
Date: Mon, 21 Mar 2016 13:28:46 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

How do you mean? Control-flow-wise your program looks exactly the same as if
you were using blocking IO and threads. Rust helps a lot in stopping you from
being able to shoot yourself in the foot here: No piece of data can be accessed
from multiple coroutines at once unless they all have read-only access.

On Mon, Mar 21, 2016 at 06:23:48PM +0100, Jeff Burdges wrote:
> I'd like to get Christian's opinions on that.  I'm vaguely worried that
> coroutines leave you understanding the actual flow less well.  Although
> maybe that's only a problem when doing lower level stuff that mio
> already handles.  
> On Mon, 2016-03-21 at 12:47 -0400, Andrew Cann wrote:
> > Another option would be to use mioco. Mioco let's you write 
> > blocking/threaded
> > style code but underneath uses green threads and non-blocking IO. This is
> > similar to what you'd see in Go.

Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]