sb0 changed the topic of #m-labs to: https://m-labs.hk :: Mattermost https://chat.m-labs.hk :: Logs http://irclog.whitequark.org/m-labs
zng has quit [Quit: ZNC 1.7.2 - https://znc.in]
zng has joined #m-labs
_whitelogger has joined #m-labs
tinyfpga has quit [Ping timeout: 252 seconds]
X-Scale has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Nine out of ten l33t h4x0rz prefer it]
rjo has quit [Quit: WeeChat 1.6]
rjo has joined #m-labs
X-Scale has joined #m-labs
rohitksingh has joined #m-labs
<_whitenotifier-3> [nmigen] Success. Coverage not affected when comparing 4310254...1fedc1d - https://codecov.io/gh/m-labs/nmigen/compare/43102541032f0bb51775bc1756fd125b984d6de8...1fedc1d140cfb600a39a13871217b1f6a844f6c1
<whitequark> rjo: so, artiq has the io traits.
<whitequark> in libio. and the implementations, awkwardly, in sched.rs
<whitequark> but i think now that rust has native async support, that's what should be used instead
<whitequark> the whole artiq scheduler is a hack working around lack of nice async
<whitequark> rjo: regarding peek. i don't feel comfortable providing you with two slices. that binds me hard to one specific internal representation.
<whitequark> but i think i can give you a slice of slices.
<whitequark> it's not currently possible to allocate a variable length slice in stable rust, but it will be, soon
<whitequark> rjo: regarding DMA. i don't think that's possible.
<whitequark> poll() takes a &mut SocketSet. if your code is running when the handler fires (which is very likely) you are probably borrowing a socket
<whitequark> the ownership on that is kinda sketchy anyhow, the main problem being that access to any socket excludes all others
<whitequark> so it might be possible to enable the DMA interrupt iff you have released the socket set
<whitequark> that'd be easy. i can make an example for it, i think. but the ergonomics of using smoltcp without something like artiq's sched layer are unfortunate.
rohitksingh has quit [Ping timeout: 252 seconds]
cr1901_modern1 has joined #m-labs
cr1901_modern has quit [Ping timeout: 268 seconds]
lkcl has quit [Ping timeout: 245 seconds]
cr1901_modern1 has quit [Quit: Leaving.]
cr1901_modern has joined #m-labs
lkcl has joined #m-labs
loxodes has joined #m-labs