News for hackers. Stuff that matters.
Re:Swift is a more convenient Rust by benreesman on Friday September 06, 2024 @07:53AM (#41465307)
It’s doable!

But bindgen/cbindgen/cxx/etc exist for a reason: it hurts like a root canal.

In my particular case, tiktoken is substantially like 600 lines of Rust. If I have a deadline do I fuck with the linker or just write it again? I’m marshaling std::string here, fuck let’s just write it.

What I’m not going to re-write because I’m not a magnificent maniac like geohotz? I’m not going to rewrite libtorch. Which is written in C++ like all the software you can’t really live without.

There are no comments on this comment yet.