Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Dinnerbone
/
Rascal
Public
Notifications
You must be signed in to change notification settings
Fork
2
Star
22
Code
Issues
4
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Add options for optimization phases, and improve constant folding significantly
- #41
#41
Merged
Dinnerbone
merged 13 commits into
main
Dinnerbone/Rascal:main
from
constant_folding
Dinnerbone/Rascal:constant_folding
Copy head branch name to clipboard
May 9, 2026
Conversation
Commits
13
(13)
Checks
Files changed
Merged
Add options for optimization phases, and improve constant folding significantly
#41
Dinnerbone
merged 13 commits into
main
Dinnerbone/Rascal:main
from
constant_folding
Dinnerbone/Rascal:constant_folding
Copy head branch name to clipboard
Commits
Commits on May 9, 2026
refactor(codegen): Rename Simplifier to ConstantFolder
Dinnerbone
committed
5a80fe0
View commit details
Copy full SHA for 5a80fe0
Browse repository at this point
refactor(codegen): Rename simplifier.as to constant_folding.as
Dinnerbone
committed
7987016
View commit details
Copy full SHA for 7987016
Browse repository at this point
refactor(codegen): Rename Optimizer to RegisterPromoter
Dinnerbone
committed
0132134
View commit details
Copy full SHA for 0132134
Browse repository at this point
feat(api): Add OptimizationOptions to control which optimization passes get applied
Dinnerbone
committed
b0040ed
View commit details
Copy full SHA for b0040ed
Browse repository at this point
refactor(codegen): Slightly refactor constant folding to make it easier to implement more
Dinnerbone
committed
5462daa
View commit details
Copy full SHA for 5462daa
Browse repository at this point
feat(codegen): Fold "a" + "b" into "ab"
Dinnerbone
committed
4271b68
View commit details
Copy full SHA for 4271b68
Browse repository at this point
feat(codegen): Fold constants to bools with ! unary operator
Dinnerbone
committed
07c9354
View commit details
Copy full SHA for 07c9354
Browse repository at this point
feat(codegen): Fold constants to numbers with - unary operator
Dinnerbone
committed
2fbf61b
View commit details
Copy full SHA for 2fbf61b
Browse repository at this point
fix(parser): Parse +foo as a unary add, as it'll later convert things to float
Dinnerbone
committed
dbc44a3
View commit details
Copy full SHA for dbc44a3
Browse repository at this point
feat(codegen): Fold constants to numbers with + unary operator
Dinnerbone
committed
38052ec
View commit details
Copy full SHA for 38052ec
Browse repository at this point
feat(codegen): Fold constants to numbers with ~ unary operator
Dinnerbone
committed
09b2b81
View commit details
Copy full SHA for 09b2b81
Browse repository at this point
feat(codegen): Fold constants to numbers or strings with + binary operator
Dinnerbone
committed
d226704
View commit details
Copy full SHA for d226704
Browse repository at this point
feat(codegen): Fold constants to numbers with - binary operator
Dinnerbone
committed
37cff06
View commit details
Copy full SHA for 37cff06
Browse repository at this point
You can’t perform that action at this time.