Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • Seriously, the simulation needs a reboot.
  • What is the purpose of this?
  • I don't know whats a meme or not anymore..
  • > An experimental TypeScript port of the TypeScript 7.0.2 compiler (TypeScript-Go, or tsgo), compiled to native code with scriptc.

    would it not have been easier to start from v6, the one already in typescript?

  • > An experimental TypeScript port of the TypeScript 7.0.2 compiler (TypeScript-Go, or tsgo), compiled to native code with scriptc.

    I don’t get it. Isn’t the golang version already native?

    Or is this one of those things where it’s not supposed to make sense?

  • The back and forth between writing tools in javascript and go or rust seems like it's in an unstable equilibrium right now:

    - Go / Rust: It's easier than ever to rewrite existing tools in more performand languages

    - Javascript: The v8 runtime for vercel or cloudflare workers is a much cheaper way to run certain workloads (e.g. conversational agents) than running a heavy weight vm. See just bash as another example project for taking advantage of this (https://github.com/vercel-labs/just-bash)

    I'm curious to see what happens!

  • Did anyone benchmark against Buns‘ new time typecheck that landed in v 1.4.3? I would do it but too far away from my machine right now.
  • I confirmed, it's faster than the Go version, which is very surprising, and super impressive!

    Caveats:

    - I don't think it's right to say that it's "written in TypeScript". In fact, it's written in the subscript of TypeScript that scriptc supports. scriptc isn't just a subset of ts; it even diverges from ts semantics in sneaky ways to facilitate its optimizations. So, these folks have really created a TypeScript-like native language with some kind of RC-GC hybrid and a bunch of caveats. Not clear if this is any better than just creating a new language.

    - Very likely that it was codeveloped with scriptc, so it's getting maximum benefit from exactly the sorts of idioms that scriptc supports well. And, I would bet they landed optimizations to scriptc specifically to get this result.

    This could be useful, assuming they invest in supporting it, and you're the sort of person who needs 2x faster ts compiles.

Explore Birbla archives