Andy Wingo writes: > On Tue 26 Jul 2016 17:55, Christopher Allan Webber writes: > >> I've been told on IRC that the "right solution" is to add r6rs style >> binary ports: >> >> http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-9.html >> >> So maybe that's what should be done? > > I did this :) Missing some tests though and indeed completely > untested. Please give it a go then we can see about implementing TLS > ports on top of that. > > Andy Here's two patches. The first fixes some of the section names in the r6rs-ports.test file, and can be applied to master immediately. The second patch is the tests. I ported tests in the most naive way possible: copy/pasting the custom-binary-input-port and custom-binary-output-port tests and adjusting for the custom-binary-input/output-port. It's not ideal, a bit spaghetti'ish, but maybe that's okay? I'm not sure. However, two are not working: one fails and one errors, with the following: FAIL: r6rs-ports.test: 8.2.13 Input/output ports: custom binary input/output port supports `port-position', not `set-port-position!' - arguments: (expected-value 42 actual-value #f) ERROR: r6rs-ports.test: 8.2.13 Input/output ports: custom binary input/output port unbuffered & 'port-position' - arguments: ((misc-error "seek" "port is not seekable" (#) #f)) I'm not sure if this is an error on my side, features not supported by the new ports, or legitimate test failures. I'll try to do more research, but if someone who's more knowledgable knows what's going on, maybe that would speed things up. - Chris