logoalt Hacker News

cornholiotoday at 5:26 AM2 repliesview on HN

Typescript is a dynamic language. Without changing the language, there is fundamentaly no way to resolve at compile time decisions that can be made only at runtime (ie, they are data driven). Monomorphization helps pin down (some) dynamic types but the fundamental problem remains.


Replies

nielsbottoday at 6:05 AM

Why don't JITs preserve previous work across runs of the same code?

If you encounter code with the same hash as last time, load up the previously generated binary and run that... or is that already happening?

mirekrusintoday at 6:05 AM

Julia?

show 1 reply