oxc-project / oxc-project/backlog

Determine if any limits we can place on AST size

Open
#27 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I asked for opinions on Discord about whether we could place any limits on max AST size in order to limit size of arena to 4 GiB.

Upshot was definitely not in all cases, but maybe in majority. It needs research.

As starting point, Boshen suggested parsing all of https://github.com/elastic/kibana and measuring AST size. Do that!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by parsing all of elastic/kibana and measuring AST size, as suggested in the issue. Record the results across the repository and use them to determine whether practical AST limits could keep the arena below 4 GiB; document cases where a limit would not work.

Written by the indexing model from the issue text.

Assessment

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.