Skip to content

A few small Introcaml fixes - #3

Merged
let-def merged 3 commits into
let-def:introcaml-550from
lthls:introcaml-fixes
Aug 5, 2026
Merged

let-def merged 3 commits into
let-def:introcaml-550from
lthls:introcaml-fixes

Conversation

@lthls

@lthls lthls commented Aug 4, 2026

Copy link
Copy Markdown

I had a number of weird errors when playing around with Introcaml, and here are some fixes I made along the way.
The main issue is that I was testing a compiler not configured for introspection, but it turns out that some of the introspection features kind of work even if introspection is disabled which confused me and caused a few errors.

The main fix is the second commit: when introspection is disabled, the compiler still produces block descriptions (maybe that should be fixed too ?), but since all descriptions will share the same index it's basically unusable. The commit simply skips the loading of descriptions if introspection is disabled.

The third commit fixes an actual issue I ran into before finding out that introspection was disabled. Since all block had all descriptions, the printers sometimes tried fancy interpretations, in particular I got closures interpreted as if they were arrays and it did not go well. With this fix, things should get a bit better, although with the previous commit this should only be relevant in presence of hash collisions.

@let-def
let-def merged commit 595670f into let-def:introcaml-550 Aug 5, 2026
13 of 25 checks passed
@let-def

let-def commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants