SRFI 181: Custom ports
Arthur A. Gleckler
(16 Feb 2020 08:03 UTC)
|
Re: SRFI 181: Custom ports
Lassi Kortela
(16 Feb 2020 14:01 UTC)
|
Re: SRFI 181: Custom ports
Lassi Kortela
(21 Feb 2020 23:24 UTC)
|
Re: SRFI 181: Custom ports
John Cowan
(22 Feb 2020 19:19 UTC)
|
Re: SRFI 181: Custom ports
Vincent Manis
(17 Feb 2020 23:04 UTC)
|
Re: SRFI 181: Custom ports
John Cowan
(18 Feb 2020 17:51 UTC)
|
Re: SRFI 181: Custom ports
Arthur A. Gleckler
(18 Feb 2020 18:22 UTC)
|
Re: SRFI 181: Custom ports
John Cowan
(19 Feb 2020 12:42 UTC)
|
Re: SRFI 181: Custom ports
Arthur A. Gleckler
(19 Feb 2020 18:11 UTC)
|
Re: SRFI 181: Custom ports
Lassi Kortela
(19 Feb 2020 18:13 UTC)
|
Re: SRFI 181: Custom ports
Arthur A. Gleckler
(19 Feb 2020 18:17 UTC)
|
Re: SRFI 181: Custom ports
Lassi Kortela
(19 Feb 2020 18:30 UTC)
|
Re: SRFI 181: Custom ports
Arthur A. Gleckler
(19 Feb 2020 18:51 UTC)
|
Re: SRFI 181: Custom ports
Vincent Manis
(19 Feb 2020 22:57 UTC)
|
Re: SRFI 181: Custom ports
Jim Rees
(04 Mar 2020 12:36 UTC)
|
u8-ready? and char-ready?
Lassi Kortela
(04 Mar 2020 12:46 UTC)
|
Re: u8-ready? and char-ready?
Jim Rees
(04 Mar 2020 13:09 UTC)
|
Re: u8-ready? and char-ready?
Lassi Kortela
(04 Mar 2020 13:30 UTC)
|
Re: u8-ready? and char-ready?
Jim Rees
(04 Mar 2020 14:48 UTC)
|
Re: u8-ready? and char-ready?
Marc Feeley
(04 Mar 2020 15:07 UTC)
|
Re: u8-ready? and char-ready?
Lassi Kortela
(04 Mar 2020 15:13 UTC)
|
Re: u8-ready? and char-ready?
Marc Feeley
(04 Mar 2020 15:31 UTC)
|
Re: u8-ready? and char-ready?
Marc Nieper-Wißkirchen
(04 Mar 2020 15:39 UTC)
|
Re: u8-ready? and char-ready?
Marc Feeley
(04 Mar 2020 15:49 UTC)
|
SRFI 18 implementation status - R5RS/R7RS Schemes
Lassi Kortela
(04 Mar 2020 16:08 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Lassi Kortela
(04 Mar 2020 16:13 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Marc Feeley
(04 Mar 2020 16:18 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Lassi Kortela
(04 Mar 2020 16:26 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Lassi Kortela
(04 Mar 2020 16:28 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Marc Feeley
(04 Mar 2020 16:46 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Lassi Kortela
(04 Mar 2020 17:03 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
John Cowan
(04 Mar 2020 23:23 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Marc Feeley
(05 Mar 2020 13:08 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
John Cowan
(05 Mar 2020 20:44 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Göran Weinholt
(05 Mar 2020 22:16 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
John Cowan
(05 Mar 2020 22:22 UTC)
|
Re: SRFI 18 implementation status - R5RS/R7RS Schemes
Arthur A. Gleckler
(04 Mar 2020 19:26 UTC)
|
Re: u8-ready? and char-ready?
Lassi Kortela
(04 Mar 2020 15:07 UTC)
|
Re: u8-ready? and char-ready?
Marc Feeley
(04 Mar 2020 15:31 UTC)
|
Re: u8-ready? and char-ready?
Jim Rees
(04 Mar 2020 15:32 UTC)
|
Waiting on custom ports / CL Gray Streams Lassi Kortela (04 Mar 2020 15:41 UTC)
|
Re: u8-ready? and char-ready?
John Cowan
(04 Mar 2020 17:18 UTC)
|
Re: u8-ready? and char-ready?
Lassi Kortela
(04 Mar 2020 17:26 UTC)
|
Re: u8-ready? and char-ready?
Marc Feeley
(04 Mar 2020 14:55 UTC)
|
Re: SRFI 181: Custom ports
Jim Rees
(04 Mar 2020 19:31 UTC)
|
Re: SRFI 181: Custom ports
John Cowan
(05 Mar 2020 00:36 UTC)
|
Re: SRFI 181: Custom ports
Jim Rees
(05 Mar 2020 21:53 UTC)
|
Re: SRFI 181: Custom ports
John Cowan
(05 Mar 2020 22:08 UTC)
|
> Third option - perhaps the simplest - just declare the result of > {u8,char}-ready? on custom ports to be unspecified. This effectively > makes them portably useless w.r.t. custom ports, but doesn't prohibit an > implementation from doing better. Arthur said MIT Scheme allows adding arbitrary user-defined methods to a port. A ready? procedure could be one of those. But it feels like ready? for custom ports is a much more complex complex abstraction than the already-quite-complex situation with OS file ports. Has anyone in the Lisp/Scheme community explored the implications? FWIW, here's the popular "Gray Streams" extension for Common Lisp: <http://www.nhplace.com/kent/CL/Issues/stream-definition-by-user.html>. STREAM-READ-CHAR-NO-HANG stream [Generic Function] This is used to implement READ-CHAR-NO-HANG. It returns either a character, or NIL if no input is currently available, or :EOF if end-of-file is reached. The default method provided by FUNDAMENTAL-CHARACTER-INPUT-STREAM simply calls STREAM-READ-CHAR; this is sufficient for file streams, but interactive streams should define their own method. STREAM-PEEK-CHAR stream [Generic Function] Used to implement PEEK-CHAR; this corresponds to peek-type of NIL. It returns either a character or :EOF. The default method calls STREAM-READ-CHAR and STREAM-UNREAD-CHAR. STREAM-LISTEN stream [Generic Function] Used by LISTEN. Returns true or false. The default method uses STREAM-READ-CHAR-NO-HANG and STREAM-UNREAD-CHAR. Most streams should define their own method since it will usually be trivial and will always be more efficient than the default method.