This chapter lists what the RVM does not do yet, or does wrongly, collected from the "Known gaps" sections of the other chapters and checked against both hosts and native ooRexx. It is a work list: each entry says what is missing or wrong, the hosts that show it, the observable effect and the chapter that explains the mechanism. Differences that are decisions are not here: they are the accepted entries of 17-divergences.md, only cross-referenced at the end, as are the differences pending a decision.
| Kind | Meaning |
|---|---|
| missing | not implemented: the construct or routine is absent, or fails with an RVM-specific error (usually 93.900 "RVM: ...") |
| bug | implemented, but the behaviour is wrong and should be fixed |
| open divergence | a difference from native that nobody chose, catalogued in 17 with status open; fixing it is welcome |
| limit | a consequence of a host or platform that cannot be removed without a design change |
| unverified | the RVM's behaviour has not been compared with native |
Hosts: both (the ooRexx host, launched by
rvm, and the JS host, js/rvm), ooRexx
host, JS (Node and browser),
Node, browser. Every bug
below was reproduced with a probe on both launchers and native
rexx.
a. += 1), USE ARG to targets other than simple
variables, stems, compounds, message terms and references, and the AST's
Upper.Instruction compile to ERR 93.900, so a
program that never executes them still runs. Native ooRexx rejects these
at translation (e.g. use named arg is 25.905), so no
portable program is affected. See 03,
08.rexx rvm.rex -f): ooRexx must be installed, and each one
costs about a quarter of a second. A browser page without the compiler
loaded has no INTERPRET (93.900), no run-time sources
(Method~new, Routine~new,
Package~new(name, source), DEFINE with source:
93.900), no interactive trace (pauses are skipped) and only R-code
external routines; sources compiled by the browser's compiler are not
cached. See 03, 05, 14.runSync,
sendSync, a thunk) runs the other activities in place; one
of them that waits, in a nested machine of its own, for what only the
first can do is 93.900 "RVM: nested waits cross" (native goes on). A
limit of the design. See 07, 17.RVM_WORKER=0, and in the browser,
a read of standard input blocks every activity until it ends (there is
no thread to read it for the program). See 07.rvm-prelude*.mjs only by its R-code
format and ISA versions; after a prelude change without a format change,
regenerate by hand. See 10, 14.rexx and DIRECTORY works on
the host's virtual file system. See 11.RVM_QUEUES, RVM_MACROSPACE or the RVM's
rxqueue there. See 13.OLEObject, OLEVariant,
which ooRexx for Windows has in .environment) is not there.
See 16..RexxInfo~executable/libraryPath are
.nil, waits busy-wait on the main thread; external routines
must be R-code (a source file is 43.1). Exercised only under Node and in
Chromium-based browsers. RVM_TBCHECK works only under Node.
See 14.EINPROGRESS says (Winsock says EWOULDBLOCK, so
a connect is -1), and the JS host's worker is Linux's (host names,
FIONREAD, SO_RCVTIMEO is
ETIMEDOUT on Windows, shutdown of an
unconnected socket, errno names). The sock- cases on
Windows show them.lseek): accepted, see 17.SO_REUSEADDR always): accepted, see 17.rvm.rex requires all of
RVM.Machine.cls, which drags in the objects, BIFs,
REXXUTIL, rxmath, hostemu, commands, Number and Stream packages: about
half of the 5 MB library and roughly a third of a second of the first
load, even for a compile-only run. Splitting those into a package that
only the machine requires is proposed, not done. See 15.None at present.
Differences kept until the owner decides whether each is accepted or fixed are described under Open: pending decision in 17, and are neither gaps nor accepted divergences until then. None is pending at present.
These look like missing features but are decisions; they are described in 17 and are not to be "fixed" without revisiting the reason given there.
| Behaviour | Entry in 17 |
|---|---|
| macrospace and RXFUNCADD registrations per process; no rxapi | Macrospace, rxapi |
| deterministic inter-activity order (it also changes which assertions after a REPLY the test framework counts in the official REPLY group) | Order |
UNINIT only at program end; no WeakReference; no GC-dependent
behaviour (Class~subclasses after GC) |
UNINIT, WeakReference |
rexxc images are not read |
rexxc |
rxunixsys not provided |
Library coverage |
REXXUTIL's named semaphores, SysFork,
SysWait, SysCreatePipe not provided |
Library coverage |
| queues are the process's, shared with commands through a file | Queues |
| EXTERNAL methods of an ooRexx library the RVM lacks fail when they run, not when the package loads | EXTERNAL methods |
| 10,000 activations per activity | Activation depth |
| speed of the ooRexx host | Speed |
| a second Stream object on a standard input redirected to a file reads it from the start (undefined behaviour) | Second stream |