Repository navigation
EGCL v0.0.10
0.0.10 - 2026-10-19
Added
-
install-egcl-forksalso installs the EGCL forks of Ironclad, pure-tls and chipz, which HTTPS through pure-tls and archive extraction with chipz need (#429). -
EGCL-MOP:FORWARD-REFERENCED-CLASS, the metaclass of a class named as a superclass before it is defined.CLASS-OFanswers it and such a class prints as#<FORWARD-REFERENCED-CLASS FOO>, as on SBCL; it is aCLASSbut not aSTANDARD-CLASS, since nothing has yet said what its instances look like, and it becomes an ordinary class -- the same object, so references already taken to it stayEQ-- when the definition arrives (#417). -
EGCL-MOP, the metaobject-protocol packagedocs/egcl-lisp-api.mdspecified but the bootstrap never installed. It providesCLASS-DIRECT-SUPERCLASSES,CLASS-DIRECT-SUBCLASSES,GENERIC-FUNCTION-METHODS,CLASS-FINALIZED-P,FINALIZE-INHERITANCE,INTERN-EQL-SPECIALIZERandVALIDATE-SUPERCLASS, and is the home ofCLASS-SLOTS,CLASS-DIRECT-SLOTSand theSLOT-DEFINITION-*readers.COMMON-LISP-USERuses it, so those names stay reachable unqualified where a person is typing (#380; issue #371). -
DEFCLASS's:METACLASStakes effect:CLASS-OFanswers the named metaclass instead ofSTANDARD-CLASS. The option was parsed and discarded, so a kernel that tells its own classes from plain ones with(eql (class-of (find-class name)) (find-class 'its-metaclass))-- Gendl's does -- saw every class as plain (#380; issue #371). -
Package-local nicknames (CDR 10).
DEFPACKAGEaccepted:LOCAL-NICKNAMESand dropped it, so a library's(:local-nicknames (:a :alexandria))lefta:define-constantunreadable: "package not found: A". The option now takes effect, the reader,FIND-PACKAGE,INTERNandFIND-SYMBOLresolve a prefix through the current package's local nicknames before the global names,EGCL-EXTexportsADD-PACKAGE-LOCAL-NICKNAME,REMOVE-PACKAGE-LOCAL-NICKNAME,PACKAGE-LOCAL-NICKNAMESandPACKAGE-LOCALLY-NICKNAMED-BY-LISTas the API document already listed them,:PACKAGE-LOCAL-NICKNAMESis on*FEATURES*, and UIOP'sDEFINE-PACKAGEfinds the functions inEGCL-EXT(#372). -
Socket endpoint queries:
(egcl::%socket-listener-local-name listener),(egcl::%socket-local-name stream)and(egcl::%socket-peer-name stream)report an endpoint as an octet vector and a port together, four elements for IPv4 and sixteen for IPv6. A library adapter could previously learn a listener's port but never any address, so usocket'sget-local-address,get-peer-address,get-peer-portandget-local-namehad no primitive behind them and AllegroServe could not log or print a socket (#352, #366; issue #350). -
egcl-ext:chdirandegcl-ext:delete-directory, and through themuiop:chdir,uiop:delete-empty-directoryanduiop:delete-directory-tree, which signalled "Not (currently) implemented on EGCL" (#392). -
The manual now documents every
EGCL-EXTfunction, includingSETENV,UNSETENV,GET-PRECISE-TIME,REAL-TIME-NANOSECONDS, the package-local nickname functions,HASH-TABLE-WEAKNESS, the funcallable-instance functions, declaration introspection and the embedded-file functions. Each one has an anchored entry and a symbol-index row (#409).
Fixed
- A thread waiting in
SLEEPno longer holds up a garbage collection. A collection needed by another thread used to wait on the sleeper and give up, so a server whose main thread parks in(loop (sleep 60))could abort a worker with "memory allocation of 16 bytes failed" (#434). LOADandCOMPILE-FILEbind*PACKAGE*for the extent of the file, so a file that sets*PACKAGE*and then starts a thread stays in its own package. The file's package used to live in the global value every thread shares, and the loader could read its next form in another package, then report "undefined function" for a function the file had just defined (#433).- A
MAKE-PACKAGEname clash or aDELETE-PACKAGEof a missing package signals aSIMPLE-PACKAGE-ERRORwhose report says what failed, such as "a package named FOO already exists". Both are still correctable withCONTINUE; until now they signalled a barePACKAGE-ERRORwith no message (#436). SLEEPinside a fiber suspends only that fiber, so other fibers on the same carrier keep running. It used to block the carrier thread until it woke. In a pinned fiber it followsEGCL-FIBER:*PINNED-BLOCKING-ACTION*, like the other blocking operations (#437).- A macro defined inside a
LETkeeps its captured binding across a saved image, as aDEFUNorDEFMETHODin the sameLETalready did. Only a macro's name, lambda list and body reached the image, and every restored expander was rebound to the fresh global environment, so an expansion that mentioned a captured variable signalledUNBOUND-VARIABLE. anaphora definesSYMBOLICandANAPHORICinside(with-unique-names ...), so in any saved core every anaphoric macro failed with "the variableANAPHORA::S-INDICATORis unbound". A macro now records which captured frame it closed over, and restored definitions share one frame rather than each getting a copy, so a binding several of them see stays shared (#431; issue #426). - A failed socket call carries its operating system error number, so usocket reports a port in use as
ADDRESS-IN-USE-ERRORand a refused connection asCONNECTION-REFUSED-ERROR. Both used to arrive asUNKNOWN-ERRORwith errno 0, and a port probe that handled onlyADDRESS-IN-USE-ERRORretried the same busy port forever. Socket failures signal the newEGCL-EXT:SOCKET-OS-ERROR, which is still aFILE-ERROR, andEGCL-EXT:SOCKET-OS-ERROR-ERRNOreads the number. The usocket fork also accepts listeners with the defaultcharacterelement type (#432; issue #427). - A generic function dispatches an interpreted lambda or closure on the
FUNCTIONclass.CLASS-OF,FUNCTIONPandTYPEPall answeredFUNCTION, but dispatch disagreed with them in both tiers, so(brt (lambda (y) y))chose aLISTmethod over aFUNCTIONone and aLIST-only generic accepted a lambda outright. A compiled lambda and#'carwere already correct (#423). SETQof a parameter whose name is special reaches the callees that read it. Such a parameter is bound in the frame and then made dynamic, and the assignment path tried the frame before the value cell, so it updated a stale frame copy: after(defun f (&key ((:indent *ind*) *ind*)) (setq *ind* 0) (reader)),(f :indent t)answered the old value instead of0(#425).- A class metaobject prints its own name:
#<STANDARD-CLASS UC>and#<STRUCTURE-CLASS ST>, as on SBCL, CCL and ECL. Once a class became an object it printed through the generic instance path, so every standard class in the image printed as the identical#<STANDARD-CLASS>-- useless in a backtrace or a slot dump (#402). - A class restored from an image keeps the slot shadowing its
:allocation :classdeclaration implies. The names a class declares class allocated were not written to the core, so a class finalized for the first time after a restore -- which is what subclassing a restored class does -- rebuilt its layout without them, and an inherited instance slot of the same name wrongly entered that layout. CLST format version 4 records the field (#393). INTERRUPT-THREADinterrupts a running thread. It posted a value nothing ever observed, read only after the entry function returned, so rather than interrupting a thread it overrode the return value of one already finishing. It now raises the pending signal taken at every tier's safepoints, and sends a directedSIGUSR1so a thread parked in a syscall wakes; a wait with no deadline no longer parks forever through the signal (#373).FILE-POSITIONworks on a Gray stream. It signalled a bareSTREAM-ERROR, so cl-tar could not extract any archive and ocicl could not install a package. The Gray protocol gainsSTREAM-FILE-POSITION, as in SBCL, whichFILE-POSITIONcalls andEGCL-GRAY-STREAMSexports (#428).- A compiled method shows up as
(METHOD <generic-function>), with its qualifier, inEGCL_SPROFprofiles, the tiering log and backtraces, instead of an anonymousMETHODshared by every method (#421). - A form whose value is only tested no longer leaks its other values into the result.
(if (values x 99) x (list x))returned X and 99 in compiled code, and a compiledUNLESScould even return the test's value instead ofNIL;IF,WHEN,UNLESS,CONDand non-finalAND/ORforms now pass on only the primary value, as in SBCL (#419). - A fill-pointer or adjustable string made with
:element-type 'base-charis aBASE-STRING:ARRAY-ELEMENT-TYPEanswersBASE-CHAR, it is stored 8-bit, andVECTOR-PUSH,VECTOR-PUSH-EXTENDandADJUST-ARRAYsignalTYPE-ERRORfor a wider character instead of storing it, as in SBCL (#418). - A class redefinition or
CHANGE-CLASSno longer moves the instance it updates, so an object keeps its identity: two references to it stayEQ, anEQhash table still finds it, andSLOT-MAKUNBOUNDreturns the object the caller passed in. Instances hold their slots indirectly, as in SBCL, and an update replaces that storage rather than the object. A metaclass that gains a slot now gives its existing classes that slot without disturbing them, which previously corrupted the class registry (#414). BASE-CHAR,STANDARD-CHARandEXTENDED-CHARare proper subtypes ofCHARACTERat more doors:(coerce #\λ 'base-char)and(coerce #\a 'extended-char)signalTYPE-ERRORinstead of returning the character, the interpreter's(the base-char #\λ)signals one, and anEXTENDED-CHARarray is aCHARACTERstring.COERCEto a string signalsTYPE-ERRORfor an element that is not a character instead of dropping it, andMAKE-ARRAYrejects:initial-contentswhose length is not the vector's instead of padding it (#416).- String literals are
CHARACTERstrings, as in SBCL, so a copy of one can hold any character:(setf (char (copy-seq "abc") 0) #\λ)works, and a literal is the same kind of string whether its file was compiled or not.EGCL-EXT:READTABLE-BASE-CHAR-PREFERENCE(:SYMBOLS,:STRINGS,:BOTHorNIL, as in SBCL) can make a readtable read compact 8-bit literals instead (#411). - Several threads may read one hash table at once, as in SBCL; only writes need exclusive access. Concurrent lookups in a table keyed by conses or other objects hashed by address used to crash once a garbage collection moved its keys (#400).
- Threads running interpreted code no longer crash while another thread collects garbage. A
:synchronized thash table now takes its lock on every operation as documented; it never did, and the interpreter's shared macro-expansion cache is such a table (#398). - A class is an object rather than its own name symbol, so
(symbolp (find-class 'foo))is false andDEFCLASSreturns the class as CLHS requires. A class with a user:METACLASSis now an instance of it:TYPEPholds, a method specialized on the metaclass applies and is preferred over one onSTANDARD-CLASS, and the class carries the metaclass's slots (issue #384, #399). - A slot added by redefining a class takes its
:INITFORMon instances that already exist, as CLHS 4.3.6 requires:(defclass c () ()), an instance, then(defclass c () ((s :initform 42)))leftSunbound where it now answers 42.UPDATE-INSTANCE-FOR-REDEFINED-CLASSis called for the update, so a method specialized on it participates and receives the added slots, the discarded slots and their values (#412, #408). - A class that is only a forward reference -- named as a superclass and not yet defined -- can no longer be instantiated, as in SBCL:
MAKE-INSTANCE,ALLOCATE-INSTANCEandCHANGE-CLASSeach used to return an object with no slots, built against a layout the eventualDEFCLASSthen contradicts.EGCL-MOP:CLASS-FINALIZED-Palso stops claiming T for such a class, or for a class that inherits from one, andEGCL-MOP:FINALIZE-INHERITANCEsignals for them instead of silently doing nothing (#406). - A class named as a superclass before it is defined, and then defined with a
:METACLASSthat has slots, is an instance of that metaclass like any other.CLASS-OFanswered the metaclass whileTYPEP,SLOT-EXISTS-P,SLOT-VALUE, the metaclass's slot accessors and method dispatch all still saw a plainSTANDARD-CLASS. A kernel that appends a late-defined mixin to every class -- Gendl's does -- hit this on exactly the classes that mattered (#404; issue #384). - An inherited slot is reachable when the superclass is defined after the subclass:
(defclass sub (super) ...)followed by(defclass super () ((a)))leftAunusable on an instance ofSUB. Redefining a class now updates its subclasses' instance layouts, and no longer discards its record of them (#399). TYPE-OFanswers the class itself when the class has no proper name, rather than a name that no longer finds it (#399).- A built-in class is an object rather than an integer.
(find-class 'integer)was the fixnum -14, so(eql -14 (find-class 'integer))and(integerp (find-class 'standard-class))were both true,(class-name -14)answeredINTEGER, a method specialized onBUILT-IN-CLASSapplied to the integer -14, and a class printed as-40(#396). - A readtable built from the standard syntax with
GET-MACRO-CHARACTERandSET-MACRO-CHARACTER, as named-readtables'(:merge :standard)does, reads the forms inside a list with that readtable. It used the standard one, so a pythonic"""…"""string inside a form broke apart (40ants-doc).LOADalso binds*READTABLE*, so a loaded file'sIN-READTABLEno longer leaks into the code that loaded it (#392). - A constant one library defines while it compiles no longer becomes the symbol another package reads for that name. ironclad's and flexi-streams'
+BUFFER-SIZE+turned up in drakma and salza2, and salza2'sDEFPARAMETERof it failed as an assignment to a constant (#392). COMPILE-FILEno longer panics on data shaped like aDEFCONSTANTform, such as theCASEkey((defconstant) …). A literal string with a fill pointer, such as cl-interpol's#?"…"reads, compiles into the fasl instead of making the whole file source-only, and the read-time#.forms of a file that is still source-only see its source as*COMPILE-FILE-PATHNAME*(#392).- A saved image keeps every compiled function. One whose code referred to a constant the compiled-unit format could not hold, such as a package, a hash table, a host-built closure or a
HANDLER-BINDhandler, was left out with a warning and ran interpreted after a restart; an image of ocicl lost several hundred. Compiled files now hold package and hash-table constants too (#392). BASE-CHARis the element type of an 8-bit base string, consistently.TYPEPcalled every character aBASE-CHARwhileBASE-STRINGmatched only 8-bit storage,MAKE-STRINGignored:element-type, andMAP,COERCEandMAKE-SEQUENCEbuilt 32-bit strings forBASE-STRING, so(make-array 5 :element-type 'base-char)and(map 'base-string ...)answered stringsTYPEPrefused as base strings, andTYPE-OFcalled every stringSIMPLE-BASE-STRING.BASE-CHARis now the code points below 256 andEXTENDED-CHARthe rest,UPGRADED-ARRAY-ELEMENT-TYPEandARRAY-ELEMENT-TYPEanswerBASE-CHARfor 8-bit strings (a string displaced onto one included), the constructors honor the requested width (a wide character is aTYPE-ERROR),COPY-SEQ,SUBSEQ,REVERSEand theREMOVE,SUBSTITUTEandREMOVE-DUPLICATESfamilies keep a string's width, andTYPE-OFanswers(SIMPLE-ARRAY CHARACTER (n))for a 32-bit string (ansi sequencesMAP.SPECIALIZED-STRING.3,LENGTH.STRING.6; the sequences chapter now passes completely and joins the gate) (#403).- Hash tables find every key their test calls equal. An
EQUALPtable missed1d0for1,0.5for1/2, an adjustable or fill-pointer vector or string for a simple one, a string for a vector of its characters, and equal structures and hash tables;EQUALtables missed fill-pointer strings and lost an adjustable-vector key once an element changed.EQL(andEQL/EQUALtables) no longer treat-0d0as0d0, norEQUAL-0.0as0.0, andSXHASHno longer changes when the garbage collector moves an object (#388). - A generic function dispatched on a class object no longer answers whatever the first such call decided. With methods on
STANDARD-CLASSandSTRUCTURE-CLASS, whichever class was passed first fixed the answer for every class passed after it, and a method onBUILT-IN-CLASStraded decisions with one onINTEGERthe same way (#389). - A saved image no longer lets newly compiled code redefine the local functions of code it saved. Loading the ocicl runtime in the
make imageegcl replaced one insidePARSE-INTEGER, after which(parse-integer "1")signalled "not an integer" and ASDF could not load babel (#386). RESTARTis consistently a standard class. Its class precedence list has always been(RESTART STANDARD-OBJECT T), but(class-of (find-class 'restart))answeredBUILT-IN-CLASSand(subtypep 'restart 'standard-object)answered false. All three agree now (#387).MAKE-PATHNAMEno longer builds a pathname with a wrong component when a garbage collection happens while it runs: with a:directorylist or a namestring:defaults, a freshly made:nameor:typestring could be replaced by unrelated data, such as the directory's namestring (#382).- A library's own
DEFUNofCLASS-PRECEDENCE-LISTno longer redefines the implementation's.EGCL-MOPowns and exports the name now, and the interpreter dispatches that spelling, so a bare read of it inside a package that does not inheritEGCL-MOPinterns that package's own symbol instead of the implementation's. WithCLASS-SLOTSin the previous release this completes #370 (#383). FORMAT's~Rprints bignums in English:(format nil "~R" (expt 10 20))signalled a TYPE-ERROR saying its argument was not an integer. It also names every short-scale group through vigintillion, so 10^9 is "one billion", not "one thousand million" (#381).~D,~B,~O,~Xand~Rkeep a pad or comma character outside Latin-1: it was cut to its low byte, so#\★padded with a control character (#381).NTH-VALUEandDECODE-UNIVERSAL-TIMEsignal a TYPE-ERROR for an argument that is not a non-negative integer instead of converting it through a float: a compiled(nth-value -1 ...)answered the first value, and(decode-universal-time 1.5)decoded a time (#381).- A library's own
DEFUNofCLASS-SLOTSno longer redefines the implementation's. The non-ANSI MOP readers were reachable as a bare name from any package, so an internal helper of that name in a package that exports nothing hijacked the implementation's function, process-wide and silently. They live inEGCL-MOPnow.CLASS-PRECEDENCE-LISTandMETHOD-SPECIALIZERSare unchanged: they are name-dispatched builtins whose dispatch ignores the package, so moving the symbol does not stop the override (#380; issue #370). - A package designator that names no package now signals
PACKAGE-ERRORinstead of creating the package.INTERN,EXPORT,IMPORT,SHADOWandUSE-PACKAGEcreated it;FIND-SYMBOL,UNUSE-PACKAGEandPACKAGE-USE-LISTanswered as though the lookup had simply found nothing. So a typo in a package name, or a library loaded before the package it names, left a live package of that name:FIND-PACKAGEthen answered it, a laterDEFPACKAGEof the real one merged into the mistake, and the fault surfaced far from where it was made.DEFPACKAGEstill resolves a forward:usereference, which is what the create-on-miss path exists for (#379; issue #375). OPENandWITH-OPEN-FILEhonor:external-format :latin-1(also:iso-8859-1) and:ascii, alone or as the first element of a list such as(:latin-1 :eol-style :lf);:defaultand:utf-8remain UTF-8. The keyword was accepted and ignored, so a Latin-1 file was decoded as UTF-8 and the first accented letter was aSTREAM-ERROR: cl-pdf opens its font metrics and cl-typesetting its French hyphenation patterns that way, and cl-typesetting could not load. Reading decodes one octet per character, writing refuses a character outside the format's range, andSTREAM-EXTERNAL-FORMATanswers the format a file stream was opened with instead of:default. A format the stream layer cannot decode (:utf-16,:utf-32) is refused atOPENrather than read as UTF-8 (#374).LISTENon a freshly opened octet file stream answers T while bytes remain and NIL at the end of the file. With nothing buffered yet it asked the handle as if it were a socket, and a regular file always answered NIL, so a(unsigned-byte 8)file stream had to be read once beforeLISTENsaw it (#369). The file-stream case joins the socket test of #360.- A thread waiting for input on a stream no longer locks every other thread out of it. Input parked while holding the stream's state mutex, so for as long as one thread waited for a peer, any other operation on that stream blocked --
CLOSE, a write on the other half of a socket, evenINPUT-STREAM-P, which performs no I/O. A server could not close a worker's idle keep-alive connection, and on a bidirectional socket it could not write a reply while another thread read. Readers are now serialized on a separate lock and wait with the state mutex released (#353; issue #350). - The same fix now covers composite streams. A
TWO-WAY,ECHO,CONCATENATEDorSYNONYMstream reached its component while still holding its own lock, so a read parked on the component locked every other thread out of the composite -- and*TERMINAL-IO*is bidirectional (#354; issue #350). - Character reads and process-pipe reads use the same non-parking path as byte reads, so a read that waits for input holds no stream mutex. Regular file I/O is deliberately excluded: a readiness poll always reports a regular descriptor ready, so polling cannot make a disk read cooperative, which is also where the JVM leaves file I/O for its virtual threads (#365; issue #350).
READ-SEQUENCEon a socket no longer deadlocks other threads using that stream. It was the last read that still waited while holding the stream's state mutex, and the reachable one: socket streams are(unsigned-byte 8), soREAD-SEQUENCEis how a library reads a socket. Any other thread touching the stream blocked --CLOSE, a write on the other half, evenSTREAM-ELEMENT-TYPE, which performs no I/O -- and because the thread that would supply the bytes was usually the blocked one, the program deadlocked rather than merely stalling.READ-SEQUENCEnow waits with the mutex released and resumes where it left off, so a request split across several arrivals still fills completely and a short count still means end of file (#367; issue #350).COMPILE-FILEnow gives the body of a load-time-only top-levelEVAL-WHENthe top-level processing CLHS 3.2.3.1 requires. Without:COMPILE-TOPLEVELbut with:LOAD-TOPLEVEL, the body forms are still top-level forms, so a nested(eval-when (:compile-toplevel) ...), aDEFMACROor aDEFPACKAGEamong them keeps its compile-time effect. The whole form was evaluated instead, which answered NIL for the outer form and never reached the inner one: cl-store'sDEFBACKENDexpands to exactly that nest, so every later use in the file compiled as a function call and the fasl died loading with "STREAM is unbound" (#355).GET-DISPATCH-MACRO-CHARACTERnow reports a callable function for each standard#sub-character (CLHS 2.4.8) rather than NIL for all but#\. A reader that wraps the standard syntax -- zacl rewrites Allegro's(version>= ...)features and hands the rest back to the standard#+reader -- died calling NIL (#356).- A control transfer out of a reader macro now passes through
COMPILE-FILE's pre-read. AHANDLER-CASEclause aroundCOMPILE-FILEtaking a condition a reader macro signalled, or an invoked restart, was reported as a read failure and silently downgraded the output to a source-only artifact, so the clause never ran (#357). - The reader now accepts the character names SBCL and Clozure CL share:
Ff,Formfeed,Lf,Cr,Bs,Ht,Sp,DelandAltmode.CHAR-NAMEstill answers the standard names, so printing round-trips are unchanged (#358). - The reader now closes the list when a Lisp reader-macro function returns no values immediately before the closing parenthesis, as it already did for
#|...|#. The list previously lost its terminator
(#359). LISTENno longer consumes the pending byte of an octet stream. It was
READ-CHAR-NO-HANGfollowed byUNREAD-CHARfor every stream, which on an
octet socket parked the byte in the character unread slot whereREAD-BYTE
never looks:LISTENanswered T and theREAD-BYTEafter it hung or lost an
octet outright. usocket'sWAIT-FOR-INPUTcallsLISTENon every stream
socket before its backend runs, so AllegroServe hung on its first read after
every wait (#360).FUNDAMENTAL-STREAMnow sits underSTREAM, so a method onSTREAMapplies
to a Gray stream and(typep gray-stream 'stream)is true
(#362).DEFINE-SYMBOL-MACROdefinitions now live in one process-wide table, so a
symbol macro defined on one thread is visible on every other. Each thread
previously kept its own, and a definition made before a thread started was
invisible inside it
(#363).
Performance
- A function with
&optionalparameters binds them by position, filling in defaults in a short prologue, instead of through the general lambda-list binder on every call. Calls to such functions in pure-tls's certificate parsing and inSEARCHtook about a third less time (#392). - A compiled function whose
IFreturns a call's result in one arm, such as a recursive(if (< n 2) (leaf n) (+ (f (- n 1)) (f (- n 2)))), now uses the direct native calling convention instead of going through Rust for every call: about 5 ns per call instead of about 700 ns (#420). - Generic-function calls do less repeated work. A
DEFCLASSaccessor reads or writes its slot directly once dispatch selects it (user methods on the accessor still take over), slot writes skip the class-slot search for ordinary slots, and per-generic and per-class facts are cached. From compiled callers an accessor read takes about 3 us instead of 11, a write 8 instead of 23, andREAD-BYTEon a Gray stream 40 instead of about 110; a repeated HTTPS request through drakma and pure-tls is about twice as fast (#415). - A method body that loops now reaches optimized native code (T2) like the same body in a
DEFUN. It used to stop at baseline native code (T1) until its 4096th call: a 1000-iteration loop took about 4 ms per call as a method and 30 us as a function, and now takes about 50 us as a method. Methods restored from a saved image are covered too (#413). - AES, GCM's GHASH multiply and SHA-256 compression run in the runtime, as
EGCL-EXT:CRYPTO-*block primitives that EGCL's Ironclad fork calls in place of its portable Lisp. With the fork, encrypting 64 KB with AES-GCM takes seconds instead of 193 s, hashing it with SHA-256 takes under 0.3 s instead of 18 s, and a repeated HTTPS request through pure-tls is about 10x faster.EGCL-EXT:SHA256andEGCL-EXT:CRC32are now documented (#410). - Calls made from compiled (native) code into other compiled functions are cheaper: a call no longer looks
FUNCALL/APPLYup by name, rebuilds the callee's per-call buffers, rescans its bytecode or registers a global root for it, and finding the current execution's state is quicker. A recursive native caller spends about 27% less per call (about 38% when it establishes aHANDLER-CASE), and a cached(asdf:load-system :babel)is about 5% faster (#390). - Compiled code finds its execution-local state with fewer checks per access, so a native call that establishes a
HANDLER-CASEcosts about 7% less again (#397).