lulu-berlin/rusty-typescript
소개
A TypeScript compiler written in Rust
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalrusty-typescript
A TypeScript compiler written in Rust.
This is a very experimental project in its initial phase. Its goal is to create a WebAssembly implementation of TypeScript written in Rust.
Note that this is still a normal TypeScript compiler, compiling TypeScript code into JavaScript. It only leverages Rust and WebAssembly for better performance.
The approach taken here is to inline the WebAssembly binary into the
JavaScript, and bundle everything into one TypeScript file (with type
checking and linting disabled).
This makes the result platform-independent (browser vs. nodejs) and easy
to inject into the source code of TypeScript.
This way, the new implementation can be verified against the same tests used by TypeScript itself.
How to run it?
You would need to have nodejs and npm installed. Running npm install will automatically install the Rust toolchain and wasm-pack (using wasm-pack-npm).
You might need to add the cargo binary directory to your PATH, like so:
$ export PATH="$HOME/.cargo/bin:$PATH"
To build the WebAssembly artifact, run:
$ npm run build
To inject the artifact into the TypeScript source code (included here as a git submodule), run:
$ npm run inject
To run the TypeScript tests against the injected source code, run:
$ npm test
Contribute
Contributions are very welcome. Just open an issue, add a comment to an existing one or fork and make a pull request.
Rewriting the entire codebase of TypeScript is a very big (and fun!) project. There is a lot to do and enough for whoever is interested in giving a hand. Join me and let's make it happen :)

관련 프로젝트 살펴보기
불러오는 중…