Forgot your password?
typodupeerror

Comment Re:Wait! What? (Score 1) 79

If your code doesn't compile in Rust just wrap it with unsafe { }
Hacking around and doing it the wrong way is much easier than figuring out how to get a complicated data structure through the borrow checker and value** lifetimes.

** I think of Rust values as objects in the general sense.

Comment Re:Rust designed to mitigate limitations found in (Score 3, Interesting) 79

You can use non-standard extensions with C++ today to cover some of what Rust does, like -Wlifetime in C++ for something roughly equivalent to Rust's compile-time borrow checker. UBSan/ASan lets you enforce address and undefined behavior with runtime checks, it's useful and easy to use, but it has a big performance impact so you normally turn it off in production code.

Google Carbon seems promising, but it deviates enough from C++ that it feels like yet another language. But theoretically you will be able to have a project that has a mix of C++ and Carbon and it should Just Work(tm).

Ada / SPARK is an alternative to must of what Rust offers, it's a wildly different approach and not a 1:1 equivalent. But you can make reliable software and even do some formal verification and static analysis on it. It's easier to deal with violation messages from the Ada compiler than with Rust. But it's also a lot more work to put all the contracts and declarations in place (you need multiple files just to make a module, so it's a very different workflow compared to C/C++/Rust).

Comment Re:What I love about Rust. (Score 1) 79

Coming from Pascal where write/writeln is a special language construct that doesn't work like any other function/procedure, it's refreshing to see that Rust made printing a macro, and that you can roll your own easily. That every macro ends in ! makes a lot of sense in terms of transparency, but it was a confusing little doodad in the syntax to see on my first day.

Comment Re: Adversarial patterns FTW! (Score 1) 99

I pretty sure everyone hates my old fashioned classical liberalism with a touch of center left view on social democracy, welfare capitalism, mixed economy under a transparent and democratic governance. I'm usually the bad guy for saying that we should embrace and accept people who come from other cultures, but that also there is a dominate culture in this country so raising your children to speak English fluently is vital for their financial success.

My wishy-washy middle of the road politics upsets everyone. But most of those people deserve to be upset all the time.

Comment Re: Adversarial patterns FTW! (Score 1) 99

That's why I don't advertise my politics on my truck. If the wrong people in government found out that I am for a constitutional republic with elected representation and a system of checks and balances with three coequal branches of government, I would surely be labeled as an agitator, a far left radical, and perhaps even a terrorist.

Comment Re:Why? (Score 1) 45

Engineers need to remember that time exists.

You have three months to teach a teen how to control a robot with a microcontroller.

OK, how much of that do you budget to CS and assembly?

Month 1: Architecture and data structures? You have 18 40 minute periods and maybe homework assignments.

Half of the class won't even gain mastery in that time. By time your class is over they will still be having memory management problems.

So then you've failed to achieve the goal.

There are engineers who remember that time exists and for the rest we have engineering managers. Not ideal, just how it is.

To be sure engineering schools are doing a bad job at teaching reality. Even in a dx/dr environment, it's so weird.

Comment Dump it into the ocean (Score 1) 140

Add the waste to the existing pile off the Farallon Islands.

Excellent fishing there, you can catch rockfish and lingcod most of the season almost as fast as you can take them off the hook. I'm hardly radioactive at all, although I got terribly seasick because the water is usually really rough from the Golden Gate out to the Farallons.

Comment Re:Which is it? (Score 1) 126

A bonfire can't write Shakespeare, but it can still burn you. A car can't cook you breakfast, but if the brakes fail it can still cracks a few eggs (heads)

AI agents have no agency. They are not alive. And their capabilities are inconsistent and it struggles to translate competency in one area to another.

Slashdot Top Deals

"I've finally learned what `upward compatible' means. It means we get to keep all our old mistakes." -- Dennie van Tassel

Working...