News for hackers. Stuff that matters.

flandre

Re:Making a RISC-V Operating System Using Rust on Wednesday June 14, 2023 @11:45AM (#36327697)
> However rust versions everything.

I chuckled a little, after all, GCC isn't versioned and there's no companies out there still using GCC 4 or whatever kind of suffering they prefer.

Re:Making a RISC-V Operating System Using Rust on Wednesday June 14, 2023 @11:40AM (#36327630)
> the C standard is horrible. Just about everything is undefined behavior

How is this horrible? This is the core defining feature of C. It is equivalent of saying that a phallic shaped object with a sharp edge is terrible because you may cut/stab yourself and bleed to death, therefore dull equivalent is better (always). This is known as a knife. Knives with extremely sharp blades exist because grinding at the thing you're trying to cut for hours isn't something all of us enjoy. Have you tried not hurting yourself instead before calling it terrible? Sure, one idiot may die because of it, some unlucky guy may get killed with one, but really, I prefer using a real knife when cooking my food and I will never change my mind about that until I die.

> In addition, for large projects, all of the manual namespace management is also a bit of a bore.

When you're writing in C, fun is the least of your worries. I can recommend C++ for big projects, noone but yourself forces use of templates and classes in that department. I can't speak for people writing for controllers made in 1984 with proprietary compilers that probably aren't even maintained anymore, but that's not my problem. For projects like Linux, C++ would be more than sufficient. It's ironic that Rust has been accepted to Linux kernel because what he said about C++ over a decade ago couldn't be more true for Rust aswell, even though all you need to fix that is a bit of discipline, ironic given C programming is practically 99.97% of that.

> One big issue with C is that more or less, the CPU architecture has to treat memory as an array of bytes.

Not relevant, virtual memory is used in practically all modern hardware and "virtual" here means that you have arrays and have no clue what it's truly like already in hardware. Even kernels run in this mode, and all kernel code is written with this expectation. Before you make up such bullshit nonsense, you should tell us about this memory model that's superior to dumb arrays, because until then, noone has ever thought of a better one.

Re:Making a RISC-V Operating System Using Rust on Wednesday June 14, 2023 @11:18AM (#36327287)
It wouldn't look like anything because "modern" means bloated garbage that does less in more time. You guessed it, I'm talking about Rust, and when you're writing a kernel out of all things, Rust has infinite disadvantages and 0 advantages over C.

I'm sure many people have a lot to say to counter this fact, but really, all I need to do is look at https://www.cvedetails.com/vulnerability-list/vendor_id-1902..., whoever begins writing a Rust kernel will reintroduce at least half of these and the other half will be bugs you never even imagined because of false sense of security and lower barrier to entry into a field that's pretty bare, and very very cruel.

If you really believe that Rust fixes having to remember 300 different hardware types that you support and somehow will check that your code is safe for all of them at compile time, you're gravely mistaken.

Re:Reddit Is OpenAI’s Moat? on Wednesday June 14, 2023 @10:33AM (#36326640)
My favorite alternatives are email and going outside.
Re:Reddit Is OpenAI’s Moat? on Wednesday June 14, 2023 @10:31AM (#36326599)
Should've packed it up back in usenet days: https://en.wikipedia.org/wiki/Mark_V._Shaney

Also, if reddit is in any dataset of these models then it's no wonder that I'm not intrigued by artificial """intelligence""" at all.