unisonweb / unison

A friendly programming language from the future
https://unison-lang.org
Other
5.81k stars 271 forks source link

Remove packing for bools. #5449

Open ChrisPenner opened 1 week ago

ChrisPenner commented 1 week ago

Overview

On trunk, primitive operations return a 'tag', then we run a separate branch instruction which returns the equivalent Unison bool datatype.

This change alters primitive ops which return bools to simply put the correct unison bool directly onto the stack, saving an instruction on each boolean op.

Implementation notes

Test coverage

Existing transcripts