Live data from Hacker News

Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

github.com

91–100 of 147 posts

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#91
post #19

I used to like rust, but I feel like I’m being Pavlovian-conditioned to recoil at its mention now.

I have the opposite feeling; I am liking Rust more and more and thinking most of the world's C code should be rewritten. It seems like a sweet spot of enforced memory safety, performance, and human/agent readability.

Rust and C++'s overcomplex syntax are a nightmare to maintain and set.

Go should have been the C succesor long ago, at least for 64 bit machines. In the end It's from the same people of Unix/C/Plan9, so they know their flaws and reasons.

For C++ like performance, sadly there's nothing close to Rust, but Zig and Nim can be close and good enough. Inb4 "mah objects", just use Java or C# and forget C++ forever for OOP programming. The sooner, the better. If you like using C++ just as an improved C and hate templates and objects, just use it for QT5/6 and some performing games and applications. Go can handle the rest just fine.

What I'd love is to see projects like Cataclysm DDA:Bright Nights rewritten in Go, they could save tons of issues on compiling (Clang 11 here, a nightmware to compile) and running, because for an open world game using the GC would free tons of waste on references and objects ingame. Also it will compile much faster and it could be ported to most platforms with no efforts at all.

And I say this as an ScummVM user and sometimes I like debugging some old adventure and RPG games under it...

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#92

I hate that 5 years ago I'd see a headline like this and think it was awesome, and now it's just "look at what someone's spent tokens on today"

Written by AI and not nearly as impressive at all. Such a shame because I thought someone had spent real time and effort producing this. The output is commoditised and now neither important nor precious. Damn near anyone could repeat it.

I wish people who do this stuff could at least write their own docs.

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#93

Earlier quoted context omitted.

Stop trying to make fetch happen

They actually did make fetch happen. Once upon a time it was usual in Javascript to use a thing called XMLHttpRequest which despite its name isn't actually for XML, it's just that XML was a big deal when it was created. The replacement API for making normal HTTP requests is just named fetch, and it was "new" so long ago that popular web browsers had versions like 40 rather than 150. That movie is so old it's entirely…

The cool kids now use axios instead of fetch (LLMs really like using axios, so all the vibe coded stuff uses it).

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#95
post #84
post #12

Earlier quoted context omitted.

If the readme is anything to go by, this doesn't look like it was written by hand. Codex if I were to guess. I wonder the coding agent "improved" the code. The readme hints at the prompt: > It keeps the original system's semantics — what it does — while rethinking how it's expressed: stronger types, clearer module boundaries, idiomatic abstractions everywhere. "idiomatic abstractions" would certainly bloat the line c…

If that's the case, I don't really get the purpose of this. It's presumably not a useful system for day to day computing. The main reason I could see someone wanting to build this would be as an educational exercise, and using an LLM to do it completely fails at that.

Figuring out how to prompt and test is educational, and it's potentially a useful test of a model/harness.

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#96

Earlier quoted context omitted.

More LoC means easier to quantify the impact when telling a story. The actual code quality may be lower but that’s the schmuck’s problem that comes after once promo is acquired.

I’ve never worked with Silicon Valley people before now, and now I get why so many projects are abandoned and rewritten when they could just use open source. The whole culture is promo driven.

Coders like to code. It's in our nature. Even those who will get no benefit from it still _very_ often code their own version of things for various reasons, often bad reasons.

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#97
post #95
post #84

Earlier quoted context omitted.

If that's the case, I don't really get the purpose of this. It's presumably not a useful system for day to day computing. The main reason I could see someone wanting to build this would be as an educational exercise, and using an LLM to do it completely fails at that.

Figuring out how to prompt and test is educational, and it's potentially a useful test of a model/harness.

[deleted]

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#99
post #64

Earlier quoted context omitted.

Can you elaborate on what causes that reaction specifically?

It's pretty much the standard target for slop now, so now "in Rust" kind of implies "I just pointed Claude at it and have no idea if the result is any good, also it's an abandoned project." Tbh I think Rust is popular and mainstream enough that it doesn't matter too much. There are still plenty of great Rust projects out there.

Truly, is that Rust's fault that sloppers are targeting it?

Personally I'm becoming increasingly disillusioned with current LLMs' capabilities. All those recent high profile "rewrites" turned out to be transliterations to unsafe Rust.

I could rewrite anything in unsafe Rust like right now, despite being a novice in the language.

Re: Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

#100

The Redox operating system is a complete rewrite of operating system concepts in Rust. Disclaimer, I worked on the Mac OS port.

What does it mean to work on a port of redox on macos? The ability to compile it / build a disk image on macOs?
Post reply on HN