You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I/O operations are mentioned in the OwlManual, but of course Scheme I/O is not
functional. A possible compromise would be to provide a fold over an input
port and an unfold onto an output port. See
http://trac.sacrideo.us/wg/wiki/PortOperationsCowan for some ideas on the
subject.
Original issue reported on code.google.com by [email protected] on 19 Dec 2011 at 5:13
The text was updated successfully, but these errors were encountered:
That seems to be fairly close to a planned alternative IO model. Currently IO
is handled by threads which use the VM primops, so that all message
passing/polling and IO can be handled using the same message passing facility.
While this works, some programs that need faster IO have ended up using lazy
lists of byte vectors which are written while forced. Given how poorly Owl does
in the printing benchmark and how little the special features allowed by
thread-based IO seem to be necessary in practice, PortOperationsCowan might end
up being pretty close to how IO will be done in the future.
Original comment by aohelin on 19 Dec 2011 at 10:29
Variable arity is being added and the functional thread-based IO system was
functionally equivalent (no pun intended) with one that simply does
side-effecting IO with primops, so there is really no reason to not implement
R[57]RS IO.
Original comment by aohelin on 9 May 2012 at 12:32
Original issue reported on code.google.com by
[email protected]
on 19 Dec 2011 at 5:13The text was updated successfully, but these errors were encountered: