patatahooligan

joined 1 year ago
[–] patatahooligan@lemmy.world 7 points 2 weeks ago (1 children)

Using memory efficiently can give you a 10-100x win.

Yes, it can. But why is this exclusive to assembly? What are you planning to do with your memory use in assembly that is not achievable in C++ or other languages? Memory optimizations are largely about data structures and access patterns. This is available to you in C++.

Also, if you don't want 90% of the craziness of C++ then why not just code in C++ without 90% of the craziness? As far as I know what's what a lot of performance-critical projects do. They operate with a feature whitelist/blacklist. Don't tell me you have the discipline to work entirely in assembly and the knowledge to beat the compiler at the low level stuff that is not available to you in C++ but you can't manage avoiding the costly abstractions.

I think it speaks volumes how rarely you hear about programs being programmed in assembly. It's always this one game and never any meaningful way to prove that it would gain performance by not being written in C++ when using a modern compiler.

[–] patatahooligan@lemmy.world 22 points 2 weeks ago (3 children)

You are very unlikely to write assembly that is more optimized than what a modern compiler could produce for anything longer than a trivial program. I don't know if it made sense at the time of the original RCT, but OpenRCT would definitely not benefit from being written in assembly.

[–] patatahooligan@lemmy.world 20 points 2 weeks ago (3 children)

Not even close. The paper is questioning LLMs ability to reason. The article talks about fundamental flaws of LLMs and how we might need different approaches to achieve reasoning. The benchmark is only used to prove the point. It is definitely not the headline.

[–] patatahooligan@lemmy.world 17 points 1 month ago (1 children)

For anyone stumbling onto this who actually wants to be educated, the science has practically unanimously agreed that climate change is mainly caused by human activity. No expert is unaware of the cycles that temporarily affect climate. They are well studied, modeled, and found to pale in comparison to human-made climate change. You can find comparisons between human and natural drivers, with sources from expert organizations and scientific studies, here and here. Funnily enough, the NOAA, which this commenter used as a source for El Niño and La Niña below, also hosts this article which literally starts by linking to a page that points out how climate change is mostly caused by humans.

[–] patatahooligan@lemmy.world 3 points 1 month ago (4 children)

Where are you searching for updates? Your motherboard manufacturer should release firmware updates that include the microcode patches.

[–] patatahooligan@lemmy.world 65 points 1 month ago (2 children)

No, there isn't really any such alternate timeline. Good honest causes are not profitable enough to survive against the startup scams. Even if the non-profit side won internally, OpenAI would just be left behind, funding would go to its competitors, and OpenAI would shut down. Unless you mean a radically different alternate timeline where our economic system is fundamentally different.

[–] patatahooligan@lemmy.world 3 points 1 month ago

You would still not be allowed to to redistribute it though. Others would not be able to build your code and distribute binaries either. Just the act of creating a fork is not enough to create a viable project.

[–] patatahooligan@lemmy.world 7 points 1 month ago

Is there any terminal that uses smooth scrolling, including for command output? Like, for example, you run ls and the files scroll into view rather than the terminal abruptly jumping to the end of the output? I find the jarring transition disorienting and would like to get rid of it.

[–] patatahooligan@lemmy.world 2 points 1 month ago

How would an NFT help in any way? We're not lacking the means to prove you bought the game. We're lacking companies willing to sell you games and laws that prevent companies from saying "buy" when they mean "rent". If we got to a place where torrenting software you've bought in the past is legal, we don't need NFTs to accomplish it...

[–] patatahooligan@lemmy.world 3 points 2 months ago* (last edited 1 month ago) (1 children)

Helix's editing model is so much better than vim's. I would probably use it if it was be closer to a drop-in replacement for vim. I really hope this neovide issue gains some traction because I don't think I can daily drive anything that isn't as smooth as neovide again.

[–] patatahooligan@lemmy.world 13 points 2 months ago (1 children)

I've gamed on Linux for the past 5 years. If you use Steam, most stuff works out of the box after you enable a single setting. Now that the linux gaming community is growing it's easier to find workarounds for the games that don't work. The only games that are hopelessly broken right now are games with intrusive anti-cheats that don't support Linux. You can head over to protondb.com and check compatibility status for your games, including workarounds when necessary.

If you don't use Steam, then I'm not sure. Last time I played non-Steam games there was more troubleshooting and tweaking required but it's been a couple of years and I don't know the current state. It's worth noting that Valve's compatibility layer, Proton, is open-source and based on other open-source projects. There's work currently being done to port the functionality outside of Steam. Hopefully, this will mean that in the future all launchers will behave similarly.

But that's just the software side of things. Don't forget to check how your hardware works on Linux as well.

[–] patatahooligan@lemmy.world 3 points 2 months ago (1 children)

I think there's a minor mistake in your command. jounalctl --boot -1 is the previous boot. The counting starts at --boot 0 for the current one.

20
submitted 1 year ago* (last edited 1 year ago) by patatahooligan@lemmy.world to c/linux@lemmy.ml
 

I have an SSD from a PC I no longer use. I need to keep a copy of all its data for backup purposes. The problem is that dd reports "Input/output error"s when copying from the drive. There seem to be 20-30 of them in the entire 240GB drive so it is likely that most or all of my data is still intact.

What I'm concerned about is whether these input/output errors can cause issues in the image outside of the particular bad blocks. How does dd handle these errors? Will they be eg zeroed in the output or will the simply be missing? If they are simply missing will the filesystem be corrupted because the location of data has been shifted? If so, what tool should I be using to save what can be saved?

EDIT: Thanks for the help guys. I went with ddrescue and it reports to have saved 99.99% of the data. I guess there could still be significant loss if the 0.01% happens to be on filesystem structures, but in this case maybe I can use an undeleter or similar utility to see if I can get back the files. In any case, I can work at my leisure now that I have a copy of the data on non-failing storage.

 

cross-posted from: https://kbin.social/m/steamdeck@sopuli.xyz/t/21836

Big improvements and new features for the Steam Desktop client are now out of Beta!

view more: next ›