Live data from Hacker News

Bun's unreleased Rust port has 13,365 unsafe blocks

bun.com

21–30 of 57 posts

Re: Bun's unreleased Rust port has 13,365 unsafe blocks

#21
post #7

The current level of insanity with AI is off the charts. Porting to a safe language without the safety features.

As a human I would likely port it the same way. First a translation close to 1:1 from the source, then redesign/refactor areas little by little to match the target language idioms

Re: Bun's unreleased Rust port has 13,365 unsafe blocks

#24
post #7

The current level of insanity with AI is off the charts. Porting to a safe language without the safety features.

C2Rust, the most popular transpiler from C to Rust will leave a bunch of unsafe blocks. After the initial port it is expected for the authors to go in and work to remove them.

Re: Bun's unreleased Rust port has 13,365 unsafe blocks

#25

Assertions without context, charts about other charts, numbers (so many numbers) without data. An audit with no auditor. Pure infoslop. What a time to be alive.

And the tone, I hate it so much. Would it have been really that bad to use technical prose instead of every single sentence reading like a punchline?

Re: Bun's unreleased Rust port has 13,365 unsafe blocks

#28

Could you imagine if Postgres decided to yolo a port (even if unreleased) to rust? Why port the whole thing like this? Why not do it piecemeal and get each piece to prod? Look no further than their owner for the reason, unless it is merely a coincidence this only happened after a change in ownership…

That’s the most absurd IMHO. Why not do the same experiment but module by module? And little by little rustify the whole codebase. It really feels like the whole project is a marketing experiment for Mythos

Re: Bun's unreleased Rust port has 13,365 unsafe blocks

#29
post #7

The current level of insanity with AI is off the charts. Porting to a safe language without the safety features.

C2Rust, the most popular transpiler from C to Rust will leave a bunch of un safe blocks. After the initial port it is expected for the authors to go in and work to remove them.

[deleted]

Re: Bun's unreleased Rust port has 13,365 unsafe blocks

#30
post #7

The current level of insanity with AI is off the charts. Porting to a safe language without the safety features.

Porting is usually a messy process. Do you know it's less safe than the Zig version? Maybe it's just highlighting where the problems already existed. Regardless, wild hyperbole are not constructive.

Nobody knows if it is less safe than the Zig version because nobody has ever read the code. Maintainers included
Post reply on HN