Tsrs: A Port of TypeScript to Rust
Recorded: Oct. 20, 2026, 3 p.m.
| Original | Summarized |
Introducing tsrs: a Port of TypeScript to Rust | Cloudflare Blog Skip to contentAll CategoriesAIDevelopersRadarProduct NewsSecurityPolicy & LegalZero TrustSpeed & ReliabilityLife at CloudflarePartnersSwitch Site LanguageEnglishDeutschEspañolEspañol (Latinoamérica)FrançaisItaliano日本語한국어繁體中文简体中文PortuguêsРусскийBahasa IndonesiaภาษาไทยTiếng ViệtPolskiالعربيةעבריתSvenskaNederlandsTürkçeLoginDashboardContact SalesBlogDeveloper PlatformJavaScriptOpen Source3 TagsShow 3 tagsPost TagsDeveloper PlatformJavaScriptOpen SourceAll tagsMatching tagsNo tags found1.1.1.12FAAbuseAccessAccess Control Lists (ACLs)AccessibilityAccount TakeoverAcquisitionsAddressingAdvanced Certificate ManagerAdvanced DDoSAdvertisingAegisAEOAfricaAfroflareAgent CloudAgent Development LifecycleAgent ReadinessAgentsAgents WeekAgents Week 2026AIAI BotsAI GatewayAI SearchAI WAFAI WeekAI-SPMAlertmanagerAlways OnlineAMDAMPAnalyticsAnonymousAnti MalwareAnycastAPIAPI GatewayAPI SecurityAPI ShieldAPJCAppleApplication SecurityApplication ServicesArea 1 SecurityArgo Smart RoutingASCIIAsiaAthenian ProjectAtlassianAttacksAudit LogsAustinAustraliaAuthenticationAuthyAuto RagAutomatic HTTPSAutomatic Platform OptimizationAutomationAutoMinifyAwardsAWSBaiduBandwidth AllianceBandwidth CostsBest PracticesBetaBetter InternetBGPBillingBirthday WeekBlack FridayBlackbirdBot Fight ModeBot ManagementBotnetBotsBPFBrandBrand ProtectionBrazilBrowser InsightsBrowser RenderingBrowser RunBug BountyBugsBYOIPCacheCache PurgeCache ReserveCache RulesCaliforniaCanadaCap'n ProtoCAPTCHACareersCASBCategoriesCDNCDNJSCertificate AuthorityCertificate PinningCertificate TransparencyCertificationCFSSLChallenge PageChatGPTChinaChina NetworkChristmasChromeCIO WeekCISAClaireCLIClickHouseClientlessClientless Web IsolationCloud ConnectorCloud Email SecurityCloudflare AccessCloudflare AppsCloudflare Area 1Cloudflare CallsCloudflare Email ServiceCloudflare for CampaignsCloudflare for SaaSCloudflare for StartupsCloudflare GatewayCloudflare HistoryCloudflare ImagesCloudflare Media PlatformCloudflare MeetupsCloudflare NetworkCloudflare OneCloudflare One ClientCloudflare One User Risk ScoreCloudflare One WeekCloudflare OSCloudflare PagesCloudflare PolishCloudflare QueuesCloudflare RealtimeCloudflare StreamCloudflare TunnelCloudflare TVCloudflare WorkersCloudflare Workers (PT)Cloudflare Workers KVCloudflare Workers KV (ES)Cloudflare Zero TrustCloudforce OneCloudyCode OrangeCoinbaseColombiaCommunityComplianceCompressionConfig RulesConfiguration ManagementCongestion ControlConnectivityConnectivity CloudConsumer ServicesContainersContent Independence DayContent ScanningContextCoreCOVID-19Crawler HintsCrowdStrikeCrypto WeekCryptographyCSAM ReportingCustomer SuccessCustomer ZeroCustomersCVECVE-2023-50387Cyber ReadinessCybersecurityD1DashboardDataData CatalogData CenterData LocalizationData Localization SuiteData LossData Loss PreventionData PlatformData Privacy DayData ProtectionData SovereigntyData Transfer BucketDatabaseDDoSDDoS AlertsDDoS ReportsDebuggingDeep DiveDescalerDesignDeskopeDeveloper DocumentationDeveloper PlatformDeveloper SpotlightDeveloper WeekDevelopersDevelopers StorageDevice SecurityDevOpsDEXDigital Experience MonitoringDigital ForensicsDisruptDistributedDistributed SystemsDistributed WebDiversityDLPDMARCDNSDNS FilteringDNS FloodDNS SecurityDNSSECDogfoodingDoHDomain RankingsDomain Scoped RolesdosdDrupalDue ProcessDurable ExecutionDurable ObjectsEarly HintsEarth DayeBPFEC2eCommerceEdgeEdge ComputingEdge DatabaseEdge RulesEducationEgressElasticElection SecurityElectionsElliptic CurvesEmailEmail RoutingEmail SecurityEmail WorkersEmDashEmissionsEmployee Resource GroupsEncrypted SNIEncryptionEngineeringEnterpriseEntropyEPYCEthereumEuropeEuropean UnionEventsExploitFacebookFancy BearFast FontsFCCFeature FlagsFedRAMPFedRAMP HighFedRAMP ModerateFirefoxFirewallFirmwareFloridaFootballFormal MethodsForresterFortranFoundation DNSFounders' LetterFranceFraudFreeFreedom of SpeechFront EndFull StackFull Stack WeekFunGA WeekGartnerGatebotGDPRGen XGeneral AvailabilityGenerative AIGeo Key ManagerGermanyGitHubGoGoogleGoogle AnalyticsGoogle CloudGoogle WorkspaceGovernment InnovationGrace HopperGrafanaGraphQLGreenGrinchGrowthgRPCGuest PostHackathonHalloweenHardwareHashiCorpHertzbleedHeuristicsHistoryHolidaysHolocaustHong KongHosting ConHostnamesHTTP2HTTP3HTTPSHuman RightsHurricaneHybrid CloudHyperdriveI'm Under Attack ModeIBMICANNiCloud Private RelayIdentityIETFIETF StandardsIL4Image OptimizationImage RecognitionImage ResizingImage StorageImpactImpact WeekIncident ReportIncident ResponseIndiaIndicators of CompromiseIndonesianInferenceInfrastructureInfrastructure as CodeInsightsIntelInterconnectionInternal DNSInternet PerformanceInternet QualityInternet RegulationInternet ShutdownInternet SummitInternet TrafficInternet TrendsInternship ExperienceIntrusion DetectionInvestorsIoCsiOSIoTIPFSIPsecIPv4IPv6IRAPIsraelItalyIWDJAMstackJapanJavaScriptJengoJengo PolicyJoomlaJudeoflareKafkaKernelKey ValueKeyless SSLKeyTrapKillnetKoreaKubernetesLangChainLatencyLatin AmericaLatinflareLavaRandLazarus groupLeaked Credential ChecksLegalLegal Patents SableLGBTQIA+Life at CloudflareLinuxLisbonLive StreamingLlamaLLMLoad BalancingLocalizationLog PushLog4JLog4ShellLoggingLogsLUAMachine LearningMagecartMagic FirewallMagic Network MonitoringMagic TransitMagic WANMagic WAN ConnectorMalicious JavaScriptMalwareManaged ComponentsManaged RulesMarch of CloudflareMASQUEMCPMeerkatMeetUpMerisMessage ProtocolMexicoMicro-frontendsMicrosoftMicrosoft 365Microsoft AzureMiddle EastMigration HubMilestonesMiniflareMirageMiraiMitelMitigationMixed Content ErrorsMLopsMobileMobile SDKModel Context ProtocolMoldovaMonitoringMulti-CloudMulti-UserMySQLNaaSNet NeutralityNetworkNetwork InterconnectNetwork Performance UpdateNetwork ProtectionNetwork ServicesNetworkingNew YearNGINXNinjasNISTNode.jsNorth AmericaNotebooksNotificationsNSEC3OAuthObservabilityOceaniaOCSPOfficesOktaOlympicsOnboardingOpen APIOpen SourceOpenAIOpenBMCOpenDNSOpenSSLOpenTelemetry OptimizationOrigin RulesOutageOxyPacific NorthwestPage RulesPage ShieldParallelsPartnersPartnershipPassword-reusePasswordsPasswords (PT)PatentsPay Per CrawlPAYGOPaymentsPCI CertifiedPeeringPerformancePerformance OptimizationPhishingphpPhythonPingoraPipelinesPlanetScalePlansPlatform EngineeringPlatform WeekPleskPolicy & LegalPoliticsPortugalPost MortemPost-QuantumPostgresPrecursorPrepared StatementsPrismaPrivacyPrivacy PassPrivacy WeekPrivate IPPrivate NetworkProduct DesignProduct NewsProgrammingProgramming (PT)Project Fair ShotProject GalileoProject Honey PotProject PangeaProject SafekeepingProject TurpentinePrometheusProtocolsProudflareProxyingPublic SectorPythonPython WorkersQuantizationQueuesQUICQUICHEQuicksilverR2R2 Super SlurperRadarRadar AlertsRadar APIRadar MapsRailgunRandomnessRansom AttacksRapid ResetRaspberry PiRate LimitingRC4RDDoSReactReading ListReal-timeRecruitingRegional ServicesRegistrarReliabilityRemote Browser IsolationRemote Desktop Protocol Remote WorkReplicationResearchResolverRestreamingRetreatReverse EngineeringREvilRisk ManagementRoad to Zero TrustRocket LoaderRocksDBRoutingRouting SecurityRPCRPKIRRDNSRSARussiaRustRust WorkersSaaSSAAS SecuritySableSaltSamplingSandboxSASESave The WebSDKSearch EngineSecrets StoreSecure Web GatewaySecuritySecurity AnalyticsSecurity CenterSecurity PostureSecurity Posture ManagementSecurity Service EdgeSecurity Weeksecurity.txtSEOServer PushServerlessServerless (PT)Serverless AIServerless WeekServersSIEMSigned Exchanges (SXG)SIMSingaporeSingle Sign On (SSO)Smart PlacementSmart ShieldSnippetsSOC as a ServiceSouth AfricaSouth AmericaSpainspdySpectrumSpeedSpeed & ReliabilitySpeed BrainSpeed WeekSpoofingSportsSQLSRESSESSHSSLStandardsStartup Enterprise PlanStatisticsStopTheHackerStorageSumo LogicSuper BowlSupercloudSupply Chain AttacksSupportSustainabilitySWAGSWGSwiftSwitzerlandSXSWSYNSYN FloodSyriaTCPTeamTeams DashboardTech TalksTechCrunchTechnical WritingTerraformTestimonialsTestingTexasThanksgivingThe Serverlist NewsletterThreat DataThreat FeedsThreat IntelligenceThreat OperationsThreat ReportThreatsTiered CacheTikTokTLSTLS 1.3ToolsTorTracingTrafficTransform RulesTransparencyTrendsTrust & SafetyTTFBTTLTURNTURN ServerTurnstileTypeScriptUDPUkraineUnited KingdomUniversal SSLURL ScannerUSAUser ResearchVDIVectorizeVetflareVideoVisibilityViteVoIPVPCVPNVulnerabilitiesWAFWAF Attack ScoreWAF RulesWaiting RoomWARPWARP ConnectorWASMWeb Application FirewallWeb Asset DiscoveryWeb3WebAssemblyWebinarsWebMCPWebPWebRTCWebSocketsWildebeestWomenflareWordPressWorkers AIWorkers LaunchpadWorkers LogsWorkers ObservabilityWorkers SitesWorkers UnboundWorkers VPCWorkflowsWorld IPv6 DayWranglerx402Year in ReviewZ3ZarazZero Day ThreatsZero TrustZero Trust WeekZone VersioningArtificial IntelligenceWorkersClient-Side SecurityArchitectureMulti-tenant SecuityMulti-tenant SecuritycfBEACONCrawlersDeveloper PlatformJavaScriptOpen SourceOctober 20, 2026Introducing tsrs: a Port of TypeScript to RustBoshen Chen, Dimitri Mitropoulos, and Christoph Nakazawa6 minute readCOPY URLCloudflare and VoidZero are now working with Max Schwenk of Owner.com on tsrs, a Rust port of the TypeScript compiler. We are doing this work in close collaboration with the TypeScript team, and incubating tsrs as part of the Oxc JavaScript compiler toolchain.Our goal is to help developers spend less time waiting for their code to be checked and more time building. Making TypeScript faster and more memory-efficient also helps bring complete development environments to more places, including right in your browser.To be clear, we are not forking TypeScript. We believe the TypeScript team should remain in full control of the language’s design and direction. They have maintained a long-term vision while guiding TypeScript’s adoption across the JavaScript community. We do not want to change that.The TypeScript team can move quite fast on many things, but for some features they may spend years intentionally exploring options and making prototypes before picking the right implementation. A Rust port has to follow those decisions closely, or it will eventually fall apart and become incompatible. We have to preserve the TypeScript language strictly based on its original implementation – and the TypeScript team should remain solely responsible for deciding what that looks like.Performance and memory improvementsEarly benchmarks of our Rust port of TypeScript are promising: tsrs is up to 8x faster and uses ~70% less memory compared to TypeScript 7.0 when using the same number of type check workers:As you can see, the next version of TypeScript already brings many performance improvements, making TypeScript 7.1 beta up to 2.5x faster than TypeScript 7.0. Some of these optimizations were upstreamed from tsrs, and we’re hoping to find more.You may have seen recent benchmarks of different TypeScript ports with various performance claims, often due to using larger machine types and different options compared to TypeScript’s defaults. We worked with the TypeScript team to ensure the above benchmarks are comparing the same configuration.By default, tsrs ships with an adaptive configuration dependent on the machine type that uses more memory but is even faster:Try tsrsTypeScript in Rust aims to be a faithful port of TypeScript. You can try an experimental release by installing the tsrs package from npm:npm install tsrs |
, Max Schwenk, and the TypeScript team, and currently part of the Oxc JavaScript compiler toolchain. The primary objective of tsrs is to enable developers to shift their focus from waiting for type checking to actively building code, thereby accelerating the development process and enhancing both performance and memory efficiency of TypeScript. It is explicitly clarified that tsrs is not a fork of TypeScript; the TypeScript team retains full control over the language's design and direction, and the port is intended to be a faithful translation that strictly adheres to the original implementation, ensuring compatibility and preserving the language's core characteristics." Word count: Let's count words in each sentence. Sentence 1: "The blog post, authored by Boshen Chen, Dimitri Mitropoulos, and Christoph Nakazawa, announces the introduction of tsrs, a Rust port of the TypeScript compiler, developed in close collaboration between Cloudflare, VoidZero, Max Schwenk, and the TypeScript team, and currently part of the Oxc JavaScript compiler toolchain." Sentence 2: "The primary objective of tsrs is to enable developers to shift their focus from waiting for type checking to actively building code, thereby accelerating the development process and enhancing both performance and memory efficiency of TypeScript." Sentence 3: "It is explicitly clarified that tsrs is not a fork of TypeScript; the TypeScript team retains full control over the language's design and direction, and the port is intended to be a faithful translation that strictly adheres to the original implementation, ensuring compatibility and preserving the language's core characteristics." Paragraph 1 total: 46+36+49 = 131 words. Paragraph 2: "In terms of technical performance, early benchmarks of tsrs demonstrate significant improvements: it is up to eight times faster and uses approximately seventy percent less memory compared to TypeScript 7.0 when using an equivalent number of type check workers. The next version of TypeScript, specifically TypeScript 7.1 beta, already achieves up to two and a half times the speed of TypeScript 7.0, with several of these optimizations having been derived from tsrs, suggesting a potential for further upstream contributions. To ensure that performance comparisons are not misleading, the developers ensured that benchmarks are conducted with identical configurations, avoiding disparities introduced by different machine types or option settings. By default, tsrs includes an adaptive configuration that selects a memory-intensive yet faster setting tailored to the available machine resources, striking a balance between throughput and resource usage." Sentence 1: "In terms of technical performance, early benchmarks of tsrs demonstrate significant improvements: it is up to eight times faster and uses approximately seventy percent less memory compared to TypeScript 7.0 when using an equivalent number of type check workers." Sentence 2: "The next version of TypeScript, specifically TypeScript 7.1 beta, already achieves up to two and a half times the speed of TypeScript 7.0, with several of these optimizations having been derived from tsrs, suggesting a potential for further upstream contributions." Sentence 3: "To ensure that performance comparisons are not misleading, the developers ensured that benchmarks are conducted with identical configurations, avoiding disparities introduced by different machine types or option settings." Sentence 4: "By default, tsrs includes an adaptive configuration that selects a memory-intensive yet faster setting tailored to the available machine resources, striking a balance between throughput and resource usage." Paragraph 2 total: 39+40+28+28 = 135 words. Paragraph 3: "The context of this porting effort is one of rapid evolution in compiler porting. While a previous attempt to port TypeScript to Go resulted in a successful, highly efficient implementation, the advent of large-scale artificial intelligence has enabled the independent, rapid porting of TypeScript to other languages such as Rust and C++. This has created a clear demand for even more accelerated and memory-efficient TypeScript implementations. The choice of Rust is motivated by its unique advantages, particularly in the domain of WebAssembly. Rust's memory management model allows for straightforward and efficient memory interactions between a WebAssembly guest and host, avoiding the need for a garbage collector that complicates compilation to Wasm. This fundamental design makes Rust exceptionally well-suited for WebAssembly, facilitating tight execution loops and minimal memory footprints. This capability enables the execution of fully encapsulated development systems in sandboxed environments, which can be deployed not only in tight loops on Cloudflare Workers but also client-side in browsers, on embedded devices, and in IoT applications, unlocking new possibilities for secure, high-performance development tooling." Sentence 1: "The context of this porting effort is one of rapid evolution in compiler porting." Words: The (1), context (2), of (3), this (4), porting (5), effort (6), is (7), one (8), of (9), rapid (10), evolution (11), in (12), compiler (13), porting (14). 14 words. Sentence 2: "While a previous attempt to port TypeScript to Go resulted in a successful, highly efficient implementation, the advent of large-scale artificial intelligence has enabled the independent, rapid porting of TypeScript to other languages such as Rust and C++." Words: While (1), a (2), previous (3), attempt (4), to (5), port (6), TypeScript (7), to (8), Go (9), resulted (10), in (11), a (12), successful (13), highly (14), efficient (15), implementation (16), the (17), advent (18), of (19), large-scale (20), artificial (21), intelligence (22), has (23), enabled (24), the (25), independent (26), rapid (27), porting (28), of (29), TypeScript (30), to (31), other (32), languages (33), such (34), as (35), Rust (36), and (37), C++ (38). 38 words. Sentence 3: "This has created a clear demand for even more accelerated and memory-efficient TypeScript implementations." Words: This (1), has (2), created (3), a (4), clear (5), demand (6), for (7), even (8), more (9), accelerated (10), and (11), memory-efficient (12), TypeScript (13), implementations (14). 14 words. Sentence 4: "The choice of Rust is motivated by its unique advantages, particularly in the domain of WebAssembly." Words: The (1), choice (2), of (3), Rust (4), is (5), motivated (6), by (7), its (8), unique (9), advantages (10), particularly (11), in (12), the (13), domain (14), of (15), WebAssembly (16). 16 words. Sentence 5: "Rust's memory management model allows for straightforward and efficient memory interactions between a WebAssembly guest and host, avoiding the need for a garbage collector that complicates compilation to Wasm." Words: Rust's (1), memory (2), management (3), model (4), allows (5), for (6), straightforward (7), and (8), efficient (9), memory (10), interactions (11), between (12), a (13), WebAssembly (14), guest (15), and (16), host (17), avoiding (18), the (19), need (20), for (21), a (22), garbage (23), collector (24), that (25), complicates (26), compilation (27), to (28), Wasm (29). 29 words. Sentence 6: "This fundamental design makes Rust exceptionally well-suited for WebAssembly, facilitating tight execution loops and minimal memory footprints." Words: This (1), fundamental (2), design (3), makes (4), Rust (5), exceptionally (6), well-suited (7), for (8), WebAssembly (9), facilitating (10), tight (11), execution (12), loops (13), and (14), minimal (15), memory (16), footprints (17). 17 words. Sentence 7: "This capability enables the execution of fully encapsulated development systems in sandboxed environments, which can be deployed not only in tight loops on Cloudflare Workers but also client-side in browsers, on embedded devices, and in IoT applications, unlocking new possibilities for secure, high-performance development tooling." Words: This (1), capability (2), enables (3), the (4), execution (5), of (6), fully (7), encapsulated (8), development (9), systems (10), in (11), sandboxed (12), environments (13), which (14), can (15), be (16), deployed (17), not (18), only (19), in (20), tight (21), loops (22), on (23), Cloudflare (24), Workers (25), but (26), also (27), client-side (28), in (29), browsers (30), on (31), embedded (32), devices (33), and (34), in (35), IoT (36), applications (37), unlocking (38), new (39), possibilities (40), for (41), secure (42), high-performance (43), development (44), tooling (45). 45 words. Paragraph 3 total: 14+38+14+16+29+17+45 = let's sum: 14+38=52, +14=66, +16=82, +29=111, +17=128, +45=173 words. Paragraph 4: "The maintenance of tsrs is a collaborative effort, with plans to merge tsc-rs and tsrs into a single package that fully supports all features of TypeScript, including the Language Server Protocol and content mappers. This approach mirrors the established process used to maintain Vinext in sync with its upstream Next.js project. In this model, agents are employed to review changes, fetch diffs, and open tracking issues for any modifications that could affect compatibility. Each night, a compatibility matrix is regenerated by running the Next.js test suite against the project. When gaps are identified, agents can identify the relevant changes across both codebases, build reproductions, port necessary tests, and propose fixes. This process will be applied to TypeScript as well, with extreme care taken to avoid diverging behaviors from upstream TypeScript. When performance improvements are discovered, the team aims to contribute them back to the upstream TypeScript codebase, ensuring that all implementations benefit. Additionally, differences such as the ordering of diagnostics are recognized and efforts are made to minimize these discrepancies prior to stable release." Sentence 1: "The maintenance of tsrs is a collaborative effort, with plans to merge tsc-rs and tsrs into a single package that fully supports all features of TypeScript, including the Language Server Protocol and content mappers." Words: The (1), maintenance (2), of (3), tsrs (4), is (5), a (6), collaborative (7), effort (8), with (9), plans (10), to (11), merge (12), tsc-rs (13), and (14), tsrs (15), into (16), a (17), single (18), package (19), that (20), fully (21), supports (22), all (23), features (24), of (25), TypeScript (26), including (27), the (28), Language (29), Server (30), Protocol (31), and (32), content (33), mappers (34). 34 words. Sentence 2: "This approach mirrors the established process used to maintain Vinext in sync with its upstream Next.js project." Words: This (1), approach (2), mirrors (3), the (4), established (5), process (6), used (7), to (8), maintain (9), Vinext (10), in (11), sync (12), with (13), its (14), upstream (15), Next.js (16), project (17). 17 words. Sentence 3: "In this model, agents are employed to review changes, fetch diffs, and open tracking issues for any modifications that could affect compatibility." Words: In (1), this (2), model (3), agents (4), are (5), employed (6), to (7), review (8), changes (9), fetch (10), diffs (11), and (12), open (13), tracking (14), issues (15), for (16), any (17), modifications (18), that (19), could (20), affect (21), compatibility (22). 22 words. Sentence 4: "Each night, a compatibility matrix is regenerated by running the Next.js test suite against the project." Words: Each (1), night (2), a (3), compatibility (4), matrix (5), is (6), regenerated (7), by (8), running (9), the (10), Next.js (11), test (12), suite (13), against (14), the (15), project (16). 16 words. Sentence 5: "When gaps are identified, agents can identify the relevant changes across both codebases, build reproductions, port necessary tests, and propose fixes." Words: When (1), gaps (2), are (3), identified (4), agents (5), can (6), identify (7), the (8), relevant (9), changes (10), across (11), both (12), codebases (13), build (14), reproductions (15), port (16), necessary (17), tests (18), and (19), propose (20), fixes (21). 21 words. Sentence 6: "This process will be applied to TypeScript as well, with extreme care taken to avoid diverging behaviors from upstream TypeScript." Words: This (1), process (2), will (3), be (4), applied (5), to (6), TypeScript (7), as (8), well (9), with (10), extreme (11), care (12), taken (13), to (14), avoid (15), diverging (16), behaviors (17), from (18), upstream (19), TypeScript (20). 20 words. Sentence 7: "When performance improvements are discovered, the team aims to contribute them back to the upstream TypeScript codebase, ensuring that all implementations benefit." Words: When (1), performance (2), improvements (3), are (4), discovered (5), the (6), team (7), aims (8), to (9), contribute (10), them (11), back (12), to (13), the (14), upstream (15), TypeScript (16), codebase (17), ensuring (18), that (19), all (20), implementations (21), benefit (22). 22 words. Sentence 8: "Additionally, differences such as the ordering of diagnostics are recognized and efforts are made to minimize these discrepancies prior to stable release." Words: Additionally (1), differences (2), such (3), as (4), the (5), ordering (6), of (7), diagnostics (8), are (9), recognized (10), and (11), efforts (12), are (13), made (14), to (15), minimize (16), these (17), discrepancies (18), prior (19), to (20), stable (21), release (22). 22 words. Paragraph 4 total: 34+17+22+16+21+20+22+22 = let's sum: 34+17=51, +22=73, +16=89, +21=110, +20=130, +22=152, +22=174 words. Paragraph 5: "Looking ahead, Cloudflare already hosts a suite of open source Rust tools that underpin the JavaScript ecosystem, including Vite, Rolldown, Oxlint, and Oxfmt. The authors express enthusiasm for deeper integration of tsrs into these tools, particularly for type-aware lint rules within Oxlint. The overarching goal is to maintain tsrs as a healthy, well-supported open source project without interfering with the TypeScript project itself. The collaboration with the TypeScript team and the broader JavaScript community is seen as essential to building the best and fastest implementations of TypeScript together, leveraging the strengths of both the Rust port and the upstream TypeScript ecosystem." Sentence 1: "Looking ahead, Cloudflare already hosts a suite of open source Rust tools that underpin the JavaScript ecosystem, including Vite, Rolldown, Oxlint, and Oxfmt." Words: Looking (1), ahead (2), Cloudflare (3), already (4), hosts (5), a (6), suite (7), of (8), open (9), source (10), Rust (11), tools (12), that (13), underpin (14), the (15), JavaScript (16), ecosystem (17), including (18), Vite (19), Rolldown (20), Oxlint (21), and (22), Oxfmt (23). 23 words. Sentence 2: "The authors express enthusiasm for deeper integration of tsrs into these tools, particularly for type-aware lint rules within Oxlint." Words: The (1), authors (2), express (3), enthusiasm (4), for (5), deeper (6), integration (7), of (8), tsrs (9), into (10), these (11), tools (12), particularly (13), for (14), type-aware (15), lint (16), rules (17), within (18), Oxlint (19). 19 words. Sentence 3: "The overarching goal is to maintain tsrs as a healthy, well-supported open source project without interfering with the TypeScript project itself." Words: The (1), overarching (2), goal (3), is (4), to (5), maintain (6), tsrs (7), as (8), a (9), healthy (10), well-supported (11), open (12), source (13), project (14), without (15), interfering (16), with (17), the (18), TypeScript (19), project (20), itself (21). 21 words. Sentence 4: "The collaboration with the TypeScript team and the broader JavaScript community is seen as essential to building the best and fastest implementations of TypeScript together, leveraging the strengths of both the Rust port and the upstream TypeScript ecosystem." Words: The (1), collaboration (2), with (3), the (4), TypeScript (5), team (6), and (7), the (8), broader (9), JavaScript (10), community (11), is (12), seen (13), as (14), essential (15), to (16), building (17), the (18), best (19), and (20), fastest (21), implementations (22), of (23), TypeScript (24), together (25), leveraging (26), the (27), strengths (28), of (29), both (30), the (31), Rust (32), port (33), and (34), the (35), upstream (36), TypeScript (37), ecosystem (38). 38 words. Paragraph 5 total: 23+19+21+38 = 101 words. Total words: 131 + 135 + 173 + 174 + 101 = let's add: 131+135=266, +173=439, +174=613, +101=714 words. So total is around 714 words, well within 1350 words. Good. We should ensure we haven't included any extraneous info. We've covered all key points. We need to reference authors name sparingly. We did at the start: "authored by Boshen Chen, Dimitri Mitropoulos, and Christoph Nakazawa". In the later paragraphs, we mention "The authors express enthusiasm" which is using their name sparingly. That's fine. We must not have an explicit title or conclusion. The summary ends with the future plans paragraph, which is part of the content, not a separate conclusion. That's acceptable. We must not use markdown, so plain text. We must not use special characters unless required. We used "tsc-rs" which has a hyphen, but that's part of the name, so it's fine. "Wasm" is a proper term, no special char. "LSP" is an acronym, but it's standard. No # or other special chars. We must tailor to college graduate audience. The language is professional but accessible, explaining concepts like WebAssembly, memory management, etc., as needed. It's suitable. We must not share that we are an AI. We didn't. We must answer directly after thinking. So we'll output the summary as the answer. We should double-check that we didn't include any external information. All is from the text. One minor point: The text says "Cloudflare and VoidZero are now working with Max Schwenk of Owner.com on tsrs". We included that in the first paragraph: "developed in close collaboration between Cloudflare, VoidZero, Max Schwenk, and the TypeScript team". That's correct. The text also says "incubating tsrs as part of the Oxc JavaScript compiler toolchain." We included that. The benchmarks: "up to 8x faster and uses ~70% less memory compared to TypeScript 7.0". We included "up to eight times faster and uses approximately seventy percent less memory". Good. TypeScript 7.1 beta: "up to 2.5x faster than TypeScript 7.0". We included "up to two and a half times the speed of TypeScript 7.0". Good. We included the adaptive configuration and same configuration for benchmarks. We included the Go port context and AI enabling rapid ports. We included why Rust: WebAssembly, memory management, etc. We included maintenance: merging tsc-rs and tsrs, agents, compatibility matrix, etc. We included future integration with Cloudflare's Rust tools and Oxlint. We included goal of maintaining as healthy open source project without interfering. All good. Now, we must ensure the summary is in paragraph form, easy to read. It is. No tables, algorithms, code. We didn't include any. No markdown. We'll output plain text. We should not have any preamble. So the output will start with the summary. We'll write it as: "The blog post, authored by Boshen Chen, Dimitri Mitropoulos, and Christoph Nakazawa, announces the introduction of tsrs..." And then continue. We must ensure that we don't add any extra commentary. Let's finalize the text. We might want to slightly polish for flow. But it's already good. I'll produce the final answer.</think>The blog post, authored by Boshen Chen, Dimitri Mitropoulos, and Christoph Nakazawa, announces the introduction of tsrs, a Rust port of the TypeScript compiler, developed in close collaboration between Cloudflare, VoidZero, Max Schwenk, and the TypeScript team, and currently part of the Oxc JavaScript compiler toolchain. The primary objective of tsrs is to enable developers to shift their focus from waiting for type checking to actively building code, thereby accelerating the development process and enhancing both performance and memory efficiency of TypeScript. It is explicitly clarified that tsrs is not a fork of TypeScript; the TypeScript team retains full control over the language's design and direction, and the port is intended to be a faithful translation that strictly adheres to the original implementation, ensuring compatibility and preserving the language's core characteristics. In terms of technical performance, early benchmarks of tsrs demonstrate significant improvements: it is up to eight times faster and uses approximately seventy percent less memory compared to TypeScript 7.0 when using an equivalent number of type check workers. The next version of TypeScript, specifically TypeScript 7.1 beta, already achieves up to two and a half times the speed of TypeScript 7.0, with several of these optimizations having been derived from tsrs, suggesting a potential for further upstream contributions. To ensure that performance comparisons are not misleading, the developers ensured that benchmarks are conducted with identical configurations, avoiding disparities introduced by different machine types or option settings. By default, tsrs includes an adaptive configuration that selects a memory-intensive yet faster setting tailored to the available machine resources, striking a balance between throughput and resource usage. The context of this porting effort is one of rapid evolution in compiler porting. While a previous attempt to port TypeScript to Go resulted in a successful, highly efficient implementation, the advent of large-scale artificial intelligence has enabled the independent, rapid porting of TypeScript to other languages such as Rust and C++. This has created a clear demand for even more accelerated and memory-efficient TypeScript implementations. The choice of Rust is motivated by its unique advantages, particularly in the domain of WebAssembly. Rust's memory management model allows for straightforward and efficient memory interactions between a WebAssembly guest and host, avoiding the need for a garbage collector that complicates compilation to Wasm. This fundamental design makes Rust exceptionally well-suited for WebAssembly, facilitating tight execution loops and minimal memory footprints. This capability enables the execution of fully encapsulated development systems in sandboxed environments, which can be deployed not only in tight loops on Cloudflare Workers but also client-side in browsers, on embedded devices, and in IoT applications, unlocking new possibilities for secure, high-performance development tooling. The maintenance of tsrs is a collaborative effort, with plans to merge tsc-rs and tsrs into a single package that fully supports all features of TypeScript, including the Language Server Protocol and content mappers. This approach mirrors the established process used to maintain Vinext in sync with its upstream Next.js project. In this model, agents are employed to review changes, fetch diffs, and open tracking issues for any modifications that could affect compatibility. Each night, a compatibility matrix is regenerated by running the Next.js test suite against the project. When gaps are identified, agents can identify the relevant changes across both codebases, build reproductions, port necessary tests, and propose fixes. This process will be applied to TypeScript as well, with extreme care taken to avoid diverging behaviors from upstream TypeScript. When performance improvements are discovered, the team aims to contribute them back to the upstream TypeScript codebase, ensuring that all implementations benefit. Additionally, differences such as the ordering of diagnostics are recognized and efforts are made to minimize these discrepancies prior to stable release. Looking ahead, Cloudflare already hosts a suite of open source Rust tools that underpin the JavaScript ecosystem, including Vite, Rolldown, Oxlint, and Oxfmt. The authors express enthusiasm for deeper integration of tsrs into these tools, particularly for type-aware lint rules within Oxlint. The overarching goal is to maintain tsrs as a healthy, well-supported open source project without interfering with the TypeScript project itself. The collaboration with the TypeScript team and the broader JavaScript community is seen as essential to building the best and fastest implementations of TypeScript together, leveraging the strengths of both the Rust port and the upstream TypeScript ecosystem. |