https://serverless-stack.com/ logo
#sst
Title
# sst
r

Ross Coundon

06/25/2021, 10:22 PM
I came across swc today - a superfast TypeScript compiler written in rust and tried it out, and it is superfast. It got me wondering would it be possible for SST to use it, or perhaps offer the option. It could speed up builds considerably if type checking wasn't required. I.e. in our development cycle, we catch all typescript type related errors prior to the deployment step anyway, so having the swc option could mean much faster builds. This article is where I came across it.
f

Frank

06/25/2021, 10:23 PM
Nice, let me take a look. I was hoping for something to speed up type checking.
r

Ross Coundon

06/25/2021, 10:24 PM
Yeah, that's not covered (yet) Some compilation benchmarks here
There's been a clamour for the TypeScript compiler to be entirely re-written in Rust but it's a huge undertaking
t

thdxr

06/25/2021, 10:30 PM
There's a guy working on that as a closed source project
Typechecking in rust. He has pretty up to date progress on how many tests remaining to make pass
Last I checked typescript team was explicit that they would not be rewriting it. Kind of sad, I have a beefy desktop and local development with autocomplete is pretty slow
r

Ross Coundon

06/25/2021, 10:39 PM
Ah, that's the chap who wrote swc
t

thdxr

06/26/2021, 1:00 AM
Oh right it's the same guy