← Back to context

Comment by nDRDY

1 day ago

Why didn't they ask Claude to remove all of the `unsafe` at the same time??

"at the same time" is a recipe for failure with coding agents.

  • It's also a recipe for failure for ports in general. Same goes for the "not idiomatic Rust" comments above — that would be nonsense.

    You want to port it as faithfully as possible to the original, porting it bug-for-bug, quirk-for-quirk. Then, over time, after the port has been proven to be as identical to the original as possible, you can gradually fix those kinds of internals.

    That's why TypeScript's tsgo native port is so good.

    • tsgo will inherit many benefits from go, even if it is never fully "idiomatic".

      This is in direct contrast to this port, which requires significant re-architecting (or made "idiomatic", if you wish) in rust to achieve any of the benefits of the language. You can't re-architect one step at a time.

      4 replies →