프로젝트
GitHub에서 보기
ovr/StaticScript
소개
:rocket: TypeScript를 프런트엔드로, LLVM을 백엔드로 사용하는 TypeScript 컴파일러입니다.
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
StaticScript
Real Static Typed Script - RSTS project.
StaticScript is a language on top of TypeScript as frontend and LLVM as backend for code-generation to binary.

How it was implemented
My talk about How it's working on hight level and about V8/JIT and etc
I prepared two talks on PiterJS meetup with explanation about how it was implemented
Part 1
Part 2
(Video)(Sorry, but due technical problems on meetup It was not recorded)
Installing
For latest stable version:
npm install -g static-script
Let's write simple example
Put it in calculate-pi.ts
{
function calculatePI(cycles: number): number {
let inside = 0;
for (let i = 0; i < cycles; i++) {
let x = Math.random() * 2 - 1;
let y = Math.random() * 2 - 1;
if ((x*x + y*y) < 1) {
inside++
}
}
return 4.0 * inside / cycles;
}
console_log(calculatePI(1000000000));
}
Next compile it:
$ ./bin/ssc calculate-pi.ts
Next run it:
$ time ./output/main
This will produce:
3.144800
./output/main 0,01s user 0,00s system 80% cpu 0,013 total
LICENSE
This project is open-sourced software licensed under the MIT License.
See the LICENSE file for more information.
관련 프로젝트 살펴보기
불러오는 중…