3 ms·
The only Bun shipped product I've used in anger is OpenCode and I regularly run into segfaults on it. I doubt this is the reason for migration but every time it
by cropcirclbureau 5mo ago
The only Bun shipped product I've used in anger is OpenCode and I regularly run into segfaults on it. I doubt this is the reason for migration but every time it happens, it reminds me the real cost of unsafe code. That being said, Zig is an absolute pleasure to write and I can't wait until it has a real library ecosystem, Rust's greatest boon.
- mswphd 5mo agothe rust port (at least currently) heavily uses unsafe as well https://github.com/oven-sh/bun/compare/claude/phase-a-port#diff-27db7fe365f3cf0d5338b002b8413e6ca0f47832fe59dca3fa51dd3e12468955 https://github.com/oven-sh/bun/compare/claude/phase-a-port#d... that isn't particularly surprising, but the point is I would expect getting things more stable than the zig version would take a bit.
- xiphias2 5mo agoThat's completely normal at the first step of the language transformation. Actually it's required if you do a file by file transformation first while wanting to maintain interface compatibility. I'm not sure I would take this kind of path, I would much more focus on refactoring the project to small and easily translatable components with small boundaries, but it's cheap to try things.
- ozgrakkurt 5mo agoHow do you even run it with bun? I get nodejs not found error when running opencode command in terminal. I installed it via bun too.
- peesem 5mo agotry `bunx --bun whateverthecommandis`?