@tmikov
Tzvetan Mikov
4 years
Should we eventually add support for parsing TypeScript? (3 of 3)
16
2
179

Replies

@tmikov
Tzvetan Mikov
4 years
A major milestone: Hermes can now parse the entirety of Facebook's JavaScript codebase, both for web and RN, including all ES6+ features, JSX and Flow type annotations, no Babel or any preprocessing. A single server VM with 24 workers parses 450MB/s. (1 of 3)
10
112
784
@tmikov
Tzvetan Mikov
4 years
We can literally parse 4GB of JavaScript in 10 seconds on a single server VM. Note that this is just parsing, not compilation. The compiler doesn't support all features yet, but we are getting there. (2 of 3)
1
2
77
@tmikov
Tzvetan Mikov
4 years
For the record, I am not surprised by the replies to this tweet :-) Sincere question: why would it be useful in practice if Hermes could parse TypeScript?
9
0
25
@andrewg95
Andrew Goodale
4 years
@tmikov Please focus on full ES2016+ support first, so we reduce the amount of Babel we need to have. It's 2020 and we still have to transform `const` to `var` in React Native.
1
0
1
@tmikov
Tzvetan Mikov
4 years
@andrewg95 We are working on it. Coming very soon!
0
0
0
@jamonholmgren
Jamon
4 years
@tmikov Yes!!!
0
0
2
@birch_js
Jamie Birch
4 years
@tmikov Absolutely; outside of Facebook, TypeScript is king for bringing strong typing to React projects.
0
0
9
@natural_clar
Naturalclar(Jesse K.)
4 years
@tmikov Awesome news with hermes! I'd love to see support for parsing TypeScript
0
1
1
@rnewman
Richard
4 years
@tmikov I suspect you already know the answer: yes! I haven’t seen a single team use TypeScript and go back to vanilla JS.
0
0
3
@nemons
nemons
4 years
@tmikov Yes please
0
0
1
@bernaferrari
Bernardo Ferrari
4 years
@tmikov YESSSSS. Does Facebook has zero typescript? That's weird. I didn't know Flow was so used there.
1
0
1
@_vgrafe
Vincent Grafé
4 years
0
0
1
@Arhelmus
Arthur Kushka
4 years
@tmikov Wow, that’s provocative 😅
0
0
2
@rauschma
Axel Rauschmayer (INACTIVE)
4 years
@tmikov I actually like that TypeScript syntax only exists at compile time (and not at runtime).
0
0
1
@montogeek
Fernando Montoya
4 years
@tmikov Clearly no. Stay with JS.
0
0
1
@jbddc
bernas
4 years
@tmikov aye!!
0
0
0
@MaullerZ
MaullerZ
4 years
0
0
0
@rpamely
Robbie Pamely
4 years
@tmikov Without giving it too much thought, it sounds like a good idea.
0
0
0