7 comments

  • afavour 1 hour ago
    Fascinating. I've written cross platform (WASM, iOS, Android) libraries with Rust before and had a good time but Rust can be a pain too. Cross-platform Typescript is a really interesting proposition.

    That said, the more I think about it the more dubious I am. The site boasts no runtime dependencies but clearly it’s going to need things like a garbage collector, you can’t just magic that requirement away. At a certain point is it just doing what a JS engine’s JIT compilation does… except ahead of time?

    Also doesn't inspire confidence that the text on the site is very clearly AI generated and the GitHub log shows an endless stream of AI powered commits. About 15 per hour, every hour? Doesn’t scream stability.

    • __s 58 minutes ago
      tbf Rust also can spit out pretty big binaries for small programs
      • afavour 33 minutes ago
        Agreed. You can optimize things a fair amount with the Rust compiler, at least.
  • madanparas 26 minutes ago
    Perry uses NaN-boxing to preserve TypeScript's dynamic type system at runtime, the same approach as JavaScriptCore. The PERF_ROADMAP is honest about the cost: 1.86x behind Zig on image convolution, with 1.24 billion wasted instructions traced specifically to NaN-box unboxing. You cannot get C-level performance without dropping TypeScript semantics, and dropping them means you are no longer compiling TypeScript.
    • Dylan16807 13 minutes ago
      I think you mean you can't get that performance without monomorphization. When you know the types you can...

      ...wait, I went and looked up that file.

      "The Three Optimizations That Would Close the Gap"

      You're presenting the data from there in an extremely misleading way! They in no way need to drop any Typescript semantics to go faster.

  • evil_buzzard 1 hour ago
    the claim of "no runtime" is a bit dubious... you're telling me that you're statically linking a full, modern UI library into every app?
  • koteelok 1 hour ago
    Calling a couple million lines of ai written Rust "stable software" is a bold statement
  • 0x1997 1 hour ago
    • koteelok 1 hour ago
      The screenshots in the showcase look goofy
  • __s 1 hour ago
    Curious where on spectrum compiling to wasm falls between art project & optimization potential. Should be able to make some nice interfaces between TS-wasm & TS-web
  • haeseong 33 minutes ago
    [flagged]