Re:Rome: An experimental JavaScript toolchain
by kevsim on Thursday February 27, 2020 @01:16AM
(#22431032)
It has no external dependencies but supports compiling typescript, flow, etc. Does this mean compilers for those will be re-reimplemented inside Rome? Not really looking forward to build tool-specific bugs with those languages.
[ Parent
| on HN ]
Re:Rome: An experimental JavaScript toolchain
by sebastianmck on Thursday February 27, 2020 @01:56AM
(#22431239)
It does. And it's a risk not keeping up with their pace of development. Supporting those "compilers" is just supporting their syntax, which both fortunately already have very good compliance test suites because other tools like Babel already reimplement their syntax anyway.
Re:Rome: An experimental JavaScript toolchain
by playpause on Thursday February 27, 2020 @05:33AM
(#22432164)
Interesting. Do you mean that Rome won’t perform type-checking in TypeScript/Flow, it just strips their type annotations (like their respective Babel plugins do today)? If so, is the idea that people might continue to use the tsc/flow binaries in parallel with Rome (e.g. if they want to validate types in a commit hook, or for in-editor linter-style warnings)?
I've been really looking forward to this source release since reading your tweets about it. Sorry it got posted to HN before you wanted it to, but thanks for making the code public at this stage.
Re:Rome: An experimental JavaScript toolchain
by dan15 on Thursday February 27, 2020 @11:32AM
(#22434722)
> is the idea that people might continue to use the tsc/flow binaries in parallel with Rome
I think so, in the same way that people use both Babel and TypeScript (or Flow) today. TypeScript/Flow check the types, while Babel simply strips them out when compiling the code.
Re:Rome: An experimental JavaScript toolchain
by Waterluvian on Thursday February 27, 2020 @01:39AM
(#22431150)
Well, Typescript is literally checked in to the repo under node_modules. So I imagine the author just means "forget lockfiles, let's check this all in."
Re:Rome: An experimental JavaScript toolchain
by sebastianmck on Thursday February 27, 2020 @01:42AM
(#22431169)
The TypeScript type checker is only used to type check the Rome source code. The compiler is not used at all.
Re:Rome: An experimental JavaScript toolchain
by gonzus on Thursday February 27, 2020 @03:05AM
(#22431535)
Do you plan to self-host at some point, and get rid of the dependency on the (external) TS compiler?
Re:Rome: An experimental JavaScript toolchain
by Vinnl on Thursday February 27, 2020 @03:54AM
(#22431741)
As I understand it, the goal is not for Rome to do type-checking, but just for it not to choke on TypeScript's syntax (i.e. what Babel does):
> Supporting those "compilers" is just supporting their syntax, which both fortunately already have very good compliance test suites because other tools like Babel already reimplement their syntax anyway.