ballercat / ballercat/walt

Optimizer

Open
#63 1 comment 2 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
JavaScript
Stars
4.6k
Forks
119
PR merge metrics
No merged PRs in 30d

Description

# Goal
Create an optimizing pass.

# Overview
Go nuts? There is zero static optimization currently, everything written is emitted.

Dead code elimination sounds great. [AssemblyScript does it,](https://github.com/AssemblyScript/assemblyscript/blob/d8fa04f9108bfc9559f50b72ac29547615bb5f4e/tests/compiler/showcase.ts#L76) which is dope.

# Acceptance Criteria

- [ ] It works
- [ ] It's tested
- [ ] It's opt-in and configurable

Contributor guide

Open the contributing guide

Research direction

No Walt source file, entry point, or test is named. Start by locating the compiler's emission pipeline and read the linked AssemblyScript example for dead-code elimination; define the optimizer's scope, configuration, and opt-in behavior before implementing it. Done means optimization works, is tested, and is configurable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.