| ▲ | ttflee a day ago |
| Why not using Swift? |
|
| ▲ | norman784 a day ago | parent | next [-] |
| Swift is very weak outside Apple ecosystem, compared to Rust. Not sure nowadays, but Swift used to have breaking changes each major release, that's a non go for a big project. |
| |
| ▲ | ttflee a day ago | parent [-] | | But Swift has a stable ABI which neither Zig nor Rust could provide. | | |
| ▲ | norman784 17 hours ago | parent | next [-] | | How important is stable ABI for projects like Bun? I think it only matters if you are building a shared library. | |
| ▲ | satyapr93 17 hours ago | parent | prev [-] | | only on macOS. On other platforms ABI is not stable. |
|
|
|
| ▲ | Ygg2 20 hours ago | parent | prev [-] |
| Andreas Kling talked about it. It boils down to C++ interop sucks (no surprise for lang made by Apple), ecosystem is tiny, Rust works well enough with LLMs. https://youtu.be/DbHjKi_jASY |
| |
| ▲ | pjmlp 17 hours ago | parent | next [-] | | Swift is one of the few toolchains that actually has some kind of builtin C++ interop, alongside Objective-C++, D, .NET (via C++/CLI), Carbon (eventually). | |
| ▲ | jabwd 16 hours ago | parent | prev [-] | | He just wanted to use LLMs for coding, and not enough training data on Swift code exists for his use case. Admitting to that would be rather silly, so here we have this sentiment now exist rent free in people's brains. The C++ interop of Swift is perfectly fine, to such a degree that FoundationDB is now using it effectively alongside its C++ origins. |
|