Known limitations and open decisions
Each entry is one intentional gap or one open decision. Everything not listed here works as the reference describes.
Platforms and distribution
Section titled “Platforms and distribution”- No Windows arm64: there is no Windows arm64 entry stub, so there is no Windows arm64 release of
xlorxlc. - Unsigned releases: a release is checked against the SHA-256 in its own
checksums.txt, which detects corruption but not a compromised host. - No shell integration:
xlhas no shell completion and no Homebrew formula. - Windows is verified under Wine only: the Windows e2e programs run under CrossOver/Wine, never on real Windows, and
threadsandpanicsare not run there. - Windows threads are unverified:
std/threadon Windows (CreateThread,WaitOnAddress) is cross-built only and has not run under Wine or on Windows yet. - Windows paths are Latin-1: the file API widens a path byte by byte; only
fsListDirconverts UTF-8 to UTF-16. - A Windows fd is a truncated handle: it is the low 32 bits of the handle, and a socket fd carries bit 30.
- Windows links and permissions: only the read-only attribute is mapped, a symbolic link’s file or directory kind is fixed when it is created, creating one needs Developer Mode, and
readLinkdoes not read junctions. - No
DllMain: a DLL built with--emit=sharedruns neither its@initand@entryon load nor its@finion unload, so the host calls_xl_initAlland_xl_finiAll. - No
tryon Windows: the register snapshot oftryis not written for Windows, sotryis an error there. - macOS dylib
@finineeds an unload:__mod_term_funcruns only when the image is unloaded, which neither a process exit nor the stdlib does. - Linux hooks are checked in Docker only: the Linux
_startstub and the.init_array/.fini_arrayhooks run only in the Docker e2e legs, and the shared-library load test runs on macOS only. - Linux links statically:
-l<name>needs a static archive on the linker’s search path, and dynamic linking (PT_INTERP, PLT/GOT) is not implemented.
Language and compiler
Section titled “Language and compiler”- C convention through pointers: a
fn(...)value and a virtual method of an@repr(c)class use the xlang convention, so a struct by value through either does not match C or C++ (a C function that passes one cannot be a value,E0778). - No Itanium typeinfo: the vtable of an
@repr(c)class has anulltypeinfo slot and no_ZTI...symbol. - Interface escape check is
return-only (E0760): an interface over a stack object that escapes through a global, a field, an out-parameter or a variable is not detected. - No owning interface: an interface over a
newobject cannot be deleted through the interface, so the owner keeps the concrete pointer. - No explicit base constructor call: a derived
initruns only the base’s argument-lessinit. - Arrays do not drop their elements: an array whose element needs drop is
E0721(E0759for a payload enum), and a droppable payload enum cannot be a global or a struct field (E0758). - Generic gaps: type parameters have no constraints, a generic method outside a class is
E0733, overloaded generic methods areE0405, and an overlap of two impl templates (E0731) is found only when an instance that matches both is used. - Generic code reaches an operator, not a method: inside
fn f<T>(a: T, b: T)the operators==and<resolve on the instantiatedTand find afn ==(*T, *T)/fn <(*T, *T)for a user type, and a free generic functionfn hash(a: T)is reached the same way (each is looked up as a call after monomorphization, so every type used with the generic needs the operator or the reason isE0709/E0404). An interface method on a bareTdoes not resolve (E0404): a generic that needs one must take the interface as a parameter (fn f<T>(v: T, h: Hash)), or carry the operation as afn(T, ...) -> Rvalue.<T: Hash>is not grammar (E0002). A method cannot be taken as a value (&v.methodisE0709). - A generic function sees an operator only if its own module imports the declaring module: an operator function is resolved per instantiation against the imports of the module that declares the generic, not of the module that calls it.
Vec.sorttherefore only compiles for a type whosefn <is reachable fromcollections/vec(it importsstr/stringfor theStringoperators), and a type declared elsewhere without that import isE0709there and must usesortBy. - An interface cannot be implemented on a primitive (
E0706):impl Hash for i32 { }is rejected because only a struct or a class hasimpl. A container keyed by hash therefore keys on a struct (the stdlib shipsI32Key,U64Key,I64Keywrappers andString), and a container that must hold a primitive carries the hasher as an object and hashes the raw bytes. - A generic class field is not dropped (
E0758for a payload-enum field, a silent leak for a plainV):needsDropresolves the fields of the generic declaration, whereVis never droppable, soclass Slot<V> { value: V }leaks avaluethat is aString. A container that stores a generic value in a class field must drop it in its owndropwith__builtin_drop(&self.value), which works for a type needing drop and is a no-op for one that does not. - No thread-local storage: there is no
thread_localattribute, no__thread/_Thread_localmarker and no per-thread global, so the stdlib keeps noerrno-style per-thread state and an allocator cache cannot be per-thread; onlystructstate guarded by an atomic or a lock is available. f<T>(x)is decided by the next token:<...>is a type-argument list when the>is followed by(,{,),],,,;or a line end, soi < j > (k)is a generic call.Fis not inferred from an untyped closure:apply(x, |v| v * 2)withfn apply<F>(x: i32, f: F)isE0724; write|v: i32| v * 2.Tis not inferred from a slice argument:fn f<T>(s: []T)orfn f<T>(s: []mut T)called asf(a[0..n])isE0404(and in some positionsE0706), because the slice is not a type the inference uses to bindT. An explicit type argument,f<i32>(a[0..n]), works. The stdlib slice algorithms instd/collections/slicetake a function pointer, not a genericF, for the same reason.- A generic return type is not inferred through an
Fparameter:fn map<U, F>(self: *Option<T>, f: F) -> Option<U>cannot bindUat a call (E0724even with explicit type arguments), becauseFis still an unresolved parameter whenUis solved. The stdlib writes such an adaptor asf: fn(*T) -> U, which infersUfrom a non-capturing closure or a named function and is whatOption.map/andThen/okOr,Result.map/andThen/mapErrandVec.sortByuse; a capturing closure has no generic adaptor form and must be hoisted to a named function or aforloop. - Overloaded calls give no expected type: an array literal passed to an overloaded or generic call needs a typed local.
- Virtual methods are not overloadable (
E0405). - Variadic packs are compile-time only: each argument list is a separate instance, a pack cannot be indexed or used as a value, and a pack function cannot be
export(c),declare, virtual, generic or a method (E0736). - Tuples: nested destructuring, destructuring in a
forheader and&of an element of a temporary tuple are not implemented. - Payload enums: named payload fields, nested patterns, a payload pattern next to other variants in one
case,==andswitchthrough a pointer without*are not implemented, and the tag is alwaysi32. - A generic variant needs a target type:
Result.Ok(1)without a typed local, argument orreturnisE0756. ?has no error conversion: the error type of the callee and the caller must be the same.resultTake/resultTakeErrneed a plain payload: they switch through a pointer, which only lends the payload (E0720on a move), so a droppable payload must be taken by value (resultOrElse,?, or aswitchon an owned value).- Slices have no borrow rules: a
[]mut Tmarks intent only, with no alias or lifetime guarantee. foroverstryields bytes: a rune form is not decided.strdoes not own its bytes: the caller keeps them alive, and writing through the*u8of a literal is undefined behavior.constis not a compile-time constant: it cannot be an array length, astaticAssertoperand or adefineargument, and its initializer cannot read anotherconst.- No address of a temporary and no static methods: a method result must be stored before another method is called on it (
a.add(&b).normalized()isE0709). - The missing-return check (
E0764) is syntactic: a path ends only atreturn, awhile truewithoutbreak, a-> nevercall or aswitchthat covers every variant, so a loop whose condition is always true in another form still needs areturnafter it. a--bis nota - -b:++and--are tokens.~xin a constant is untyped: in adefineor a global initializer~xis-x - 1; cast the result.- HIR does not fold constants:
N * 2is folded only in code generation. - Gaps met while writing
xl: adefinecannot hold an array ofstr, andfor x in [&a, &b]yields**T, which method calls do not dereference. tryunwinds by frame pointers: foreign frames and separately compiled modules are not unwound, a function with cleanup keeps its locals in memory and is not inlined, and a cleanup that panics while unwinding is not handled.- One init table per executable: a prebuilt archive’s
@initfunctions run only when the host calls that archive’s_xl_initAll; per-archive tables are an open decision. - Reachability roots are coarse: every vtable and interface method is a root, so a used class or impl is kept whole, and a reachable path keeps its
@libraryimports. - Debug info has no struct or class types.
--incrementalcaches objects only: semantic analysis still runs for every module.
Packages (xl pkg, xlang.toml, xlang.lock)
Section titled “Packages (xl pkg, xlang.toml, xlang.lock)”Packages is the reference; these are the decisions it rests on.
- Git is the registry: packages are tags fetched with the
gitexecutable, and there is no hosting API, search or publish command. - Builds never fetch: only
xl pkgdownloads packages. - Integrity is the commit hash:
xlang.lockhas no content checksum or signature, so a compromised host or a force-pushed first download is not detected. - No version solving: one copy per repository per build, the project’s own entry wins, and two different required versions are
E0743. - Only exact tags: a branch or a commit is
E0742, and a pre-release or test tag is neverlatest(E0744). - No major-version paths:
v2.0.0andv1.9.0of one repository cannot coexist. - Source only: a package cannot ship prebuilt objects, and a project cannot pin a stdlib in
xlang.toml. - No package metadata beyond dependencies: there is no compiler-version requirement,
dev-dependencies, optional dependency, build hook, feature flag or-Dforwarding. xlang.local.tomlis read in the project root only.- Identity is the repository path: a moved repository needs a
sourceoverride, and git submodules and LFS files are not fetched. - The cache is per project:
.xlang/cacheis never pruned automatically, and a failedinstallcan leave sources in it.
Runtime and memory
Section titled “Runtime and memory”- Allocator replacement is not tracked per block: after
currentAllocator = v, a block allocated before is freed throughv, and a userallocwithout a userfreefrees through the stdlibfree. stdin()is not thread-safe: the sharedStreamand its buffer have no lock.
The xl tool
Section titled “The xl tool”xl newasks with a line prompt: the main-or-lib question reads one line from the terminal; there is no up-down menu, because the stdlib has no raw terminal mode (termios on Unix, console input on Windows).xl fmtis token-level: it re-indents by brace depth and normalizes whitespace, but does not reflow long lines and does not normalize operator spacing (a unary-and a binary one are not told apart without a parser); an AST formatter in the compiler is a later step.
Testing
Section titled “Testing”- No test discovery: a test file registers its tests with
test(&s, "name", fn)and returnssuiteRun. - No chained matchers: the matchers are typed functions (
expectEq,expectEqStr,expectNear, …). - A panic ends the file’s run:
std/testingdoes not usetryyet. xl testhas no per-file timeout and no regular-expression patterns: the stdlib has no timed wait for a child process and no regular expressions; patterns are files, directories, globs and substrings. A glob has no[...]class (globMatchhas none), and a directory with more than 4096 entries is searched only in part (fsListDirreads into a fixed buffer).- The native e2e runner is unix-only: Windows is covered by
run.shunder CrossOver and by the CI job that runsprocess.xl, and the runner has no per-test timeout.
Stdlib text, data formats and files
Section titled “Stdlib text, data formats and files”viewandasStrreturnstron purpose: they are the zero-copy views inside the stdlib; every other function returns text as aString.*u8buffers remain instd/httpandstd/tls: parts of both still pass a pointer and a length.JsonWriter.valueStringtakesstr, not*String.- Glob has no escape:
globMatchcannot match a literal*or?, and bracket classes are not implemented. - JSON is not a tree:
jsonPointerGetandjsonSkipRawreturn raw views, and there is no typed object model. - CSV reads one line at a time: a quoted field across lines needs the caller to join the lines.
- TOML: validation does not catch duplicate keys or table redefinitions,
tomlGetdoes not process escapes in quoted keys, and a repeated[[array]]returns its first occurrence. - CBOR, MessagePack and protobuf are partial: the CBOR and MessagePack readers check and skip without building values, and protobuf has primitives only.
- Base58 has input caps: 512 bytes to encode, 800 bytes decoded.
- Fixed output buffers: the decoders and writers report overflow instead of growing.
- Fixed-Huffman compression only: dynamic Huffman, lazy matching, compression levels, zstd, brotli, LZ4 and Snappy are not implemented.
- Tar extraction ignores modes, times and links: the stdlib readers write regular files, and
xlsets the executable bit on the binaries it installs. - No time zones in
std/time: it is UTC only, RFC 3339 is the only parsed form, and the zone module does not evaluate the POSIX DST footer (RFC 8536 section 3.3) or find zone files itself. - No version ranges:
std/semvercompares versions only.
Stdlib networking and HTTP
Section titled “Stdlib networking and HTTP”- No IPv6 sockets or address types: the public network layer on top of
std/sys/sockis not written. - The HTTP server is sequential: one connection at a time with a blocking
acceptandConnection: close, so a slow client stalls others for up to the 20 s receive timeout. - HTTP request limits: request bodies need
Content-Length, and the server has no keep-alive, panic recovery, body binding or static-file helpers. - Fixed router sizes: a route pattern and a group prefix are at most 128 bytes and a chain at most 8 handlers; a longer pattern stops the program.
- The router matches linearly: static routes first, no radix tree, no case-insensitive redirect and no forwarding to another route.
- Open HTTP rules: several differing
Content-Lengthvalues (the first is used) and the absolute-URI and*target forms (HTTP audit). - The HTTP client is minimal: no cookie jar, keep-alive, decompression, proxy, IPv6, HTTP/2,
Expect: 100-continueor streamed request body, and the read timeout covers each read. - TLS 1.2 and 1.3, ECDHE with AEAD only (the rustls set): TLS 1.1 and older, RSA key transport, finite-field DHE, CBC and RC4 suites are not implemented on purpose. TLS 1.3 offers and accepts x25519 key shares only (TLS 1.2 also has P-256 and P-384) and has no HelloRetryRequest; neither version has resumption, 0-RTT, client certificates, ALPN or SNI-based virtual hosting.
- TLS server keys: PKCS#8, PKCS#1 RSA or SEC1 EC (RSA to 4096 bits, P-256, P-384), with no Ed25519 or encrypted keys and a chain of at most 60000 bytes.
- Certificate checks: revocation, nameConstraints, extended key usage, critical extensions, policies and IP SANs are not checked.
- Root stores: macOS reads
/etc/ssl/cert.pem(not the keychain), Windows reads theROOTstore without on-demand roots or policy stores, and the root bundle is cached without a lock. - Handshake limits: 64 KiB per message and 8 certificates.
- Readiness polling on Windows is WSAPoll: it reports sockets only, holds at most 256 watches per process, returns at once on an empty set, and is not run on real Windows.
- IOCP and io_uring are not wired in: a completion backend does not fit the readiness API, and
std/sys/uringstops at a NOP round trip (Docker’s seccomp profile refuses it). - Protocol messages are builders and parsers only: NTP is one query, SOCKS5 has no authentication, syslog has no transport, MQTT has no connection loop, DNS answers are not parsed into records, the IP/TCP builders need raw sockets that are not wrapped, and TCP has no state machine.
- Address configuration is a pure state machine: DHCP, DHCPv6 and SLAAC do no I/O, and they omit the ARP probe, IA_TA, prefix delegation, rapid commit, reconfigure and privacy addresses.
- No OAuth token exchange:
std/auth/oauthbuilds the authorization URL and PKCE values only. - JWS and JWT: ES384, RS384, RS512 and PS256 are not verified, JWK sets are not read, and claims are not validated.
- Punycode has no nameprep: callers pass prepared labels.
Stdlib processes and system information
Section titled “Stdlib processes and system information”- Windows has no signals:
signal,terminateandkillall callTerminateProcesswith exit code 1. - macOS pipes are not atomically close-on-exec:
pipehas noO_CLOEXECform, so a child spawned by a foreign thread in the gap may inherit an end. - macOS keeps
posix_spawn_file_actions_addchdir_np: the unsuffixed name exists only from macOS 26. - Environment snapshots: Linux
env.list()reads the environment at exec time, and Windows does not re-sort the block whenCommand.envadds entries. - Windows system information is partial:
hwProductNameandgpuDrmDevicesreturn 0, the CPU name is thePROCESSOR_IDENTIFIERtext, and arm64 reports no SHA-3, SHA-512 or CRC32 flag. - Untested Windows calls:
fsListDirandsysMapGuardedare type-checked only, and a symlinked directory reports kind 4. - macOS has no directory listing or GPU enumeration:
getdirentriesis not in the verified XNU table, and Metal and IOKit are deferred. - The DRM success path is untested: no container has a DRM driver.
Stdlib cryptography, mathematics and identifiers
Section titled “Stdlib cryptography, mathematics and identifiers”- Not constant-time: AES, bignum arithmetic, RSA key generation, ECDSA and secp256k1 signing and TLS server signing branch or index on secret data.
- AES modes: XTS needs whole blocks, and CBC does not pad.
- Not implemented on purpose: AES-CFB, AES-OFB, AES-OCB, DES and 3DES, RC4, Blowfish, Twofish, Camellia, SM4, ARIA, SEED, CAST5, IDEA, RC2, RC5, RC6, Serpent, Kuznyechik, BLAKE3, RIPEMD, Whirlpool, Tiger, SM3, GOST, Streebog, Argon2, bcrypt, DSA, SM2, OCSP requests, PKCS#8 and PKCS#12 encryption, QUIC and DTLS.
- Unchecked against vectors:
concatKdf,x963Kdfand keyed BLAKE2 have no published test vector in the tests. - HKDF rejects BLAKE2: BLAKE2 has no HMAC block size here.
- No streaming HMAC:
hmactakes the whole message. - RSA keys use e = 65537 only.
- Ed448 is slow and pure only: it reduces through
bigintDivMod, and Ed448ph and contexts are not implemented. - CSR and CRL are read only: attributes and extensions are not read, nothing is signed, and RSA private keys cannot be written.
- Floating point is checked to 1e-9: the functions are not correctly rounded, the trigonometric reduction loses accuracy beyond about 1e6, and
powwith a non-integer exponent loses about |y log x| ulps. BigIntis bounded at 4160 bits: a larger result panics,modPowneeds an odd modulus, andsubpanics when the result would be negative.- Identifiers without host data: cuid v1 and XID use random per-process machine bytes, and cuid v2 hashes with SHA-256 instead of SHA-3.
- Time is the caller’s: every identifier generator takes the time as a parameter.
- Snowflake-family layouts are project conventions, and Sqids and Hashids are not implemented because neither has a specification.