[Feature request] Optimization: Link packages based on static analyzation of source code

オープン
#3,210 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
typescript
領域
build-system

調査の方向性

Start by running scriptc build ./nm_scriptc.ts --print=native-link-info and inspect which object files are linked despite appearing unused. The issue proposes several possible approaches but does not choose one or define completion criteria; first determine how the compiler currently selects native object files and agree on the intended behavior before implementation.

索引モデルが issue の本文から書いたものです。

説明

Looking at the result of scriptc build ./nm_scriptc.ts --print=native-link-info I don't think the source code uses scr_crypto_async.o, scr_child.o, scr_json.o, scr_url.o, scr_ffi.o.

A. The compiler can automatically remove linked object files not used in the source code. That would include omitting error codes and such for object code (string nm_scriptc) not used in the emitted executable, per static analysis.

B. The compiler can start with a blank canvas and link object files that are necessary to complete the instructions in the source code.

C. Other approaches.

主要言語
TypeScript
スター
6.5k
フォーク
212
平均マージ
13時間 2分
マージ済み PR(30日)
798

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vercel-labs/scriptc のほかの issue

vercel-labs/scriptc の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。