--- a/rlbind.scm 2026-11-17 23:44:40.469826294 -0300 +++ b/rlbind.scm 2026-11-17 23:44:44.776003499 -0300 @@ -419,10 +419,16 @@ (set! i (+ i 1))) seqs))) (define (for-decls proc) + ;; fredygames: the order of a hash table follows memory addresses, so the generated C + ;; changed between runs; sorting by name makes the output (and the wasm) reproducible. (for-each (lambda (kv) (proc (cdr kv))) - decls)) + (sort! (let ((l '())) + (for-each (lambda (kv) (set! l (cons kv l))) decls) + l) + (lambda (x y) + (stringstring (car x)) (symbol->string (car y))))))) (define (for-cdecls-satisfying pred?) (lambda (proc) (for-decls