Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable type checking on all queries defaulting to unknown type schema. #69

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

IsaacFleetwood
Copy link
Contributor

Doing a pull request because of potential breaking changes.

Changes include:

  • Added unknown types & unknown type inference rules.
  • Type checking adds type conversion operators, including forcing overflow/underflow of integers in JS.
  • Adding string concatenation operation to allow for differentiating string/int addition.
  • Added variable type inference algorithm that uses topological sort of variable dependencies (self-dependent variable loops aren't currently handled, e.g. (data.*A.val).*A. )

All tests currently pass on my local machine, with minimal changes to them. (AOC 2023 had to have changes, due to the new string concatenation operation)
Screenshot from 2025-02-16 23-09-11

…l optimizations

Set all queries to default to unknown type schema and defaulted to enabling typing on them
@TiarkRompf TiarkRompf merged commit 31d568b into main Feb 18, 2025
3 checks passed
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