Forgot your password?
typodupeerror

Comment Re: Rust is a specialist language (Score 1) 184

Sort of. By definition, OOP requires inheritance.

Inheritance is but one aspect of OOP, and is not the only one. OOP is a number of techniques, none of them obligatory, but most importantly I see it as a design tool. I've done OOP without inheritance hierarchies. Don't get me wrong, I absolutely hate the 90s and the books on software design that created bloatware for decades, but OOP is not as harmful as agitators today insist it is. Done right, it can be as efficient as high-performance code”, because it will translate to the same code. Done wrong (which is how everything will be done, anyway), it will result in bloatware. I understand why people hate it, but not using OOP does not mean an automatic improvement of the code quality or performance.

The Linux kernel doesn't use any analog to inheritance, and neither does rust.

Last I checked, there are structures with pointers to functions, and that's a one-level inheritance (which is what most of the sane OO design uses). You basically have an interface and leaves, and that's absolutely fine OO design.

This is the one and only reason why rust is not considered to be an OOP language.

That subtracts from its value, does not add.

And honestly, inheritance is an ill-conceived idea to begin with. Inevitably you end up with the fragile base class problem and decide, after it's way too late, that you should have just stuck with composition. And when you really think about it, what real-world problem is solved by modeling it based on inheritance? Other than maybe simple shapes, nothing much, and even with shapes it can run into problems.

I hate to disappoint, and I will not go into detail for this rant, however, there are real issues solved by inheritance. As I said, most are one level deep - interface + implementation. I worked on enough solutions that showed me that even multiple inheritance and multiple levels of inheritance make sense. I work in the embedded space mostly, and in RT software, and I can tell you that there's a cost and a benefit, and most of the time, the benefits of the inheritance-based design outweighs the cost of it. However, I am not here for a lecture in software architecture. You'll have to take my trust me, bro” or pester me in private. :)

People used to think OOP was perfect for games, but it turns out it's pretty crap.

I'll not comment on the rest of the paragraph, but I believe there's a lot of OO design in games to say that it's... fine? OOP is not a single feature. It is an application of a design that is expressed as objects, and C++ for example allows you to actually bypass the virtual calls completely (templates, CRTP) if you want performance from your OOP. I do get why Muratori is upset with some OO-way to do things, but he is also exaggerating, and terribly biased.

Multi-inheritance is even uglier. You know why Bjarne Stroustrup added that to C++? Basically because somebody else said that it can't be done in C++, and he wanted to prove them wrong. That's always a great reason to add a feature to a language, wouldn't you say?

Citation needed. But also, I've seen multiple inheritance used correctly and it has been a useful feature. I would definitely return your PR if you sent me a multiple-inheritance solution where you'd have critical speed requirements, but I have seen it used correctly, and I don't care if Bjarne added it just to show off, it's good thing that it did happen.

What's wrong with RAII?

Nothing, he's just one of those idiots who likes to shout a bunch of buzzwords as if he understands what they mean even though he has no idea.

I still would've loved to hear the original reply, because he was quite sure that RAII is a bad thing, and I would've loved to hear the arguments.

Comment Re:Rust is a specialist language (Score 1) 184

Port ripgrep to one of these languages, then come back here and tell us how it went.

I will take it as an exercise, meaning I will probably not do it, because I have other better things to do. However, could you explain exactly which feature is unique to Rust that is impossible to do in other language?

Comment The second I see an ad Google is gone for me (Score 1) 71

The second I see an ad on YouTube Google is gone for me, and not only me, I'm sure of that. And I know that this will happen soon, and unfortunately for them I am actually prepared to go into 0$/mo to Google. I'm just waiting for an excuse, and by God, do they seem eager to give it to me.

But what they should be asking is what are the people we're annoying doing? Are they... don't know, more than household managers? Maybe they make work-related decisions that might affect future business for us?”

Comment The end of copyright (Score 1) 83

I used to advocate for piracy in my 20s, when I could barely afford anything, but then changed my mind. For more than a decade I advocated for respecting copyrights, because even if the copyright system is truly skewed towards American financial interests, there are ways to profit from it even for poorer countries. I convinced a lot of people that copyright is a good thing, even with its flaws, even when hiding academic content and knowledge behind paywalls and high markups.

Now, it's impossible for me to argue for copyright anymore. All my arguments fall flat in the face of the way the US abuses now the terms of copyright. Basically, the judge says that theft is fine if you can't reproduce the thing that you stole, so that's perfect. I will not be able to reproduce blockbusters either, nor books, nor other forms of content. if these are the new terms of copyright, then so be it.

Comment Re:well good (Score 1) 83

The knowledge of these books is so thoroughly distilled into training these LLMs it is ridiculous to call them derivative works.

Excellent! Now that's an awesome defense next time I'll pirate anything: the knowledge of the things I pirated is so thoroughly distilled in me that it's ridiculous to consider my act illegal.

Comment How productivity is measured (Score 4, Insightful) 121

Now, quoting from the guy, the developers chose Rust as technology, and the company went to developers and *asked them how productive they feel* in a technology they chose. Now, Google is not the ideal workplace that people thought it was 15 years ago. Google is a company that prepares itself for the next firing round. Their work is probably not AI related, because if it was they would've done something in python. What will the answer be? What would you answer, especially knowing that your productivity isn't measured in the quality of what you release because *there's nobody to measure that*!!!

I really hate the trend of strong-arming Rust as if it was safe. It isn't. You can mess up just like in C++ or C, the unsafe keyword doesn't change the accessibility of ways of messing things up. It is possible that a lot of the code that you have out there written in Rust is better because Rust was adopted by more senior developers because they are the only ones who accept fighting with the compiler so much. Plus, Rust codebases don't have to struggle with 80s, 90s and 00s mindsets in the libraries they use because, well, it didn't exist back then. So I get what's going on there. I wish Rust developers would do more work with their code than with their mouths, because their choir is cacophonously deafening.

Comment The advice is pure rubbish (Score 3, Informative) 100

It made sense for Hemingway, since his first draft was on paper and there's so little space to modify that draft that was on paper. You could make sidenotes, cut words, but how much editing can you do on paper? Not much. So after you did the work on the first draft you'd start rewriting - mind you, not rewriting something else entirely, but the thing you worked on.

But now we have infinitely-refreshable paper. No need to throw away your drafts. But perhaps this piece of advice deserves to be thrown away.

Comment She did what she wanted to do (Score 1) 117

... she brought attention to herself and her company. Which is great. People who are interested in astrology will talk about her fierce attitude, the rest will either applaud her or point out that she's hypocritical. She's the talk of the town, go her. It's always good to see privileged people succeed in life. Sexism sometimes works, and I love how tone-deaf people ignore the fact that they defend a privileged woman taking advantage of her gender, while complaining that segregated conferences, stuff like women-in- conferences that sprung up all over the place, make her feel left out.

To those that ask themselves: but what if she discovers that being a woman is not the reason why people ignored her?” - don't fret. She sounds like a smart woman, she already knows that. She decided to play the gender card, and I bet it wasn't an easy choice - it's not the choice you make when you have too much business to take care of. And for those that insist that what she says is pure BS - remember, she's a *founder*, of course everything she says is BS, regardless of her gender, race, or sexual orientation.

Slashdot Top Deals

I have the simplest tastes. I am always satisfied with the best. -- Oscar Wilde

Working...