Skip to content

Use .NET source for interpreter instructions - #366

Merged
slozier merged 5 commits into
IronLanguages:mainfrom
slozier:lightbind2
Oct 20, 2026
Merged

slozier merged 5 commits into
IronLanguages:mainfrom
slozier:lightbind2

Conversation

@slozier

@slozier slozier commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Copy the arithmetic and comparison instructions from .NET's source to fill gaps and reduce the amount of code we maintain. This came about from a bug in EqualInstruction/NotEqualInstruction, where unsigned types used the signed instructions (_UInt16 = new EqualInt16()).

Also support more operators and IsTrue/IsFalse in the LightCompiler, and fall back to Compile in LightBind for unsupported expressions.

@slozier
slozier merged commit c127d04 into IronLanguages:main Oct 20, 2026
8 checks passed
@slozier
slozier deleted the lightbind2 branch October 20, 2026 01:59
@BCSharp

BCSharp commented Oct 20, 2026

Copy link
Copy Markdown
Member

This looks good but I see more code being added than removed. Do you intend to trace the development in the .NET runtime and keep our copies up to date?

@slozier

slozier commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

This looks good but I see more code being added than removed. Do you intend to trace the development in the .NET runtime and keep our copies up to date?

Yes, the plan is to basically treat this as an external package and pull in updated copies from the .NET runtime once in a while. Although I don't expect much development on their side of things...

@BCSharp

BCSharp commented Oct 20, 2026

Copy link
Copy Markdown
Member

Thanks!

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