There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.ml

alsaaas , to memes in 2023-08-09.jpg
@alsaaas@lemmy.dbzer0.com avatar

better than the absolutely deranged MM/DD/YYYY and imo the best when it comes to international communication

Ilflish ,

I’ve been told " You don’t say 6th June, do you?" too many times

NotYourSocialWorker ,

The amusing thing is that in Swedish you definitely do. Or actually “6:e juni”.

luciferofastora ,

Germany too

yata ,

Even Americans does as well: “4th of July”.

sunbeam60 ,

In the U.K. we do all the same. Sixth of June.

Eylrid ,

In the US it’s about 50/50 sixth of June and June sixth.

gibs ,

How the fuck does second largest to smallest to largest make any kind of sense?

PlexSheep , to programmerhumor in Proc macro sandboxing
@PlexSheep@feddit.de avatar

Why would they need to be?

paholg ,

I personally don’t think they do, but an argument can certainly be made. Rust proc macros can run arbitrary code at compile time. Build scripts can also do this.

This means, adding a dependency in Cargo.toml is often enough for that dependency to run arbitrary code (as rust-analyzer will likely immediately compile it).

In practice, I don’t think this is much worse than a dependency being able to run arbitrary code at runtime, but some people clearly do.

kevincox ,
@kevincox@lemmy.ml avatar

I don’t know if it is a huge issue but it is definitely a nice to have. There are a few examples I can think of:

  1. I open the code in my IDE but build somewhere sandboxed. It would be nice if my IDE didn’t execute the code and can still do complete analysis of the project. This could also be relevant when reviewing code. Often for big changes I will pull it locally so that I can use my IDE navigation to browse it. But I don’t want to run the change until I finish my review as there may be something dangerous there.
  2. I am working on a WebAssembly project. The code will never run on my host machine, only in a browser sandbox.
  3. I want to do analysis on Rust projects like linting, binary size analysis. I don’t want to actually run the code and want it to be secure.
  4. I want to offer a remote builder service.

I’m sure there are more. For me personally it isn’t a huge priority or concern but I would definitely appreciate it. If people are surprised that building a project can compromise their machine than they will likely build things assuming that it won’t. Sure, in an ideal world everyone would do their research but in general the safer things are the better.

PlexSheep ,
@PlexSheep@feddit.de avatar

Analyzing without running might lead to bad situations, in which code behaves differently on runtime vs what the compiler / rust-analyzer might expect.

Imagine a malicious dependency. You add the thing with cargo, and the rust analyzer picks it up. The malicious code was carefully crafted to stay undetected, especially in static code analysis. The rust analyzer would think that the code does different things than it actually will. Could potentially lead to problematic behavior, idk.

Not sure how realistic that scenario is, or how exploitable.

skullgiver , (edited )
@skullgiver@popplesburger.hilciferous.nl avatar

deleted_by_author

  • Loading...
  • PlexSheep ,
    @PlexSheep@feddit.de avatar

    I don’t think this is a problem with proc macros or package managers. This is just a regular supply chain attack, no?

    The way I understand it, sandboxing would be detrimental to code performance. Imagine coding a messaging system with a serve struct, only for serde code to be much slower due to sandboxing. For release version it could be suggested to disable sandboxingy but then we would have gained practically nothing.

    In security terms, being prepared for incidents is most often better than trying to prevent them. I think this applies here too, and cargo helps here. It can automatically update your packages, which can be used to patch attacks like this out.

    If you think I’m wrong, please don’t hesitate to tell me!

    mycatiskai , to memes in This is why my legs are thicc

    Every day is leg day if you can’t afford a car and the bus company charges too much.

    Vuraniute , to memes in Already cracked
    @Vuraniute@thelemmy.club avatar

    The real cost isn’t the game. It’s the new computer you’ll need to play it.

    sederx ,

    Runs on steamdeck…

    fosforus ,

    And the time wasted in grinding to get numbers go up.

    soloner ,

    That’s just life in general

    Guster ,

    Playable FPS at 1080 with RTX 3060Ti?

    Vuraniute ,
    @Vuraniute@thelemmy.club avatar

    not everyone has a 3060, as of right now im on an rx 6500 xt.

    ArianaGrande ,

    980ti here

    sweeny ,

    That card’s a decade old, I don’t think it’s reasonable to expect modern big budget games to run well on it

    ArianaGrande ,

    Yes, they don’t, lol. I wish I had decade old money instead

    UlfKirsten , to memes in This is why my legs are thicc

    Every day is leg day if you’re fat

    Viking_Hippie ,

    Can confirm.

    GenBlob , to linux in It either runs on Linux or refund

    If there’s a game that can’t run on Linux in the current year then that’s intentional and it’s not worth anyone’s money.

    LinyosT ,

    You almost have to go out of your way to make a game incompatible with linux. Considering wine/proton and their various forks cover the vast majority of things at this point.

    Even with ACs, the two most used ones completely support Linux. One is completely out of the box, maybe even as far as linux support being opt out. The other requires you to contact its developers to enable compatibility their end iirc.

    frazorth ,

    I don’t agree. There are cases with Windows only root kits for DRM, but there are also games that don’t work because of bugs. You see games coming out that barely work on Windows.

    theshatterstone54 ,

    Yeah, there’s this very obscure match-3 game I wanted to play because of nostalgia. The series peaked with 3 and 4 (and those are the ones we played on the family computer circa 2015) and worked perfectly on Windows. Now 3 works perfectly (in terms of compatibility) but 4 was better (in terms of gameplay). 4 is marked as borked, last I checked. For anyone wondering, it’s The Treasures of Montezuma series.

    thepiguy , to linux in It either runs on Linux or refund

    I mean, it is not a fault on Linux’s end. We have all the tools we need in the form of wine and dxvk, it’s the game which fails to work due to some obscure dependency or a mandatory rootkit. One great example is genshin- the game itself works flawlessly, but it has a rootkit which obviously does not work on Linux and you have to patch it out.

    maniel , (edited ) to mildlyinfuriating in This appears every time I try to disable mobile data (Android 13)
    @maniel@lemmy.ml avatar

    Yeah, similar to windows warning you that your network share won’t be available when you’re computer is off or in sleep mode, it’s stupid for me as an IT person but on the other hand as an IT person I know users can be stupid and such warnings are needed

    MooseBoys , to linux in It either runs on Linux or refund

    I blame Linux distros for being too complicated and unintuitive for 95% of the population, which in turn gives it a negligible market share from a game development perspective.

    isVeryLoud ,

    Huh? Have you touched a GNOME-based distro recently? It’s easier to install and use than Windows 11

    Jumuta ,

    seriously though the installation experience on kde/gnome is so much nicer than windows, if the hardware is compatible and the tpm/secure boot bullshit is turned off

    TTH4P , to memes in wtb puppies

    Nothing as nice as making a new bestie!

    jeffw , to memes in wtb puppies
    @jeffw@lemmy.world avatar

    I can hear this post… especially the lower left part

    Kushia , to linux in I'd like to interject for a moment...
    @Kushia@lemmy.ml avatar

    When I had to learn Novell NetWare the textbook we received was just as bad and the instructor didn’t have a clue either. Because internet wasn’t exactly widely available for information like this then, we wrote a DOS batch file that discarded our input and miniced the output of the client for the practical exam. We all passed.

    RoyaltyInTraining , to linux in It either runs on Linux or refund
    @RoyaltyInTraining@lemmy.world avatar

    To be fair, game programming is very often hot garbage. Most things I run do not respond for a while at startup. How difficult can it be to decouple your threads?

    mvirts ,

    Don’t cross the streams

    BillDoor , to linux in It either runs on Linux or refund

    I’ve recently started gaming on linux with surprisingly little problem, given that the last time I tried was about 15 years ago. I don’t even know what proton is, but I just installed steam and then my games… surprisingly on some slightly older games (tf2, HL2) I get a huge FPS boost in Linux compared to windows. Not sure why that would be.

    crunchpaste ,
    @crunchpaste@lemmy.dbzer0.com avatar

    I’m not completely sure about it, but I believe both TF2 and HL2 are native ports that Valve did themselves. Could be the reason.

    uis ,
    @uis@lemmy.world avatar

    surprisingly on some slightly older games (tf2, HL2) I get a huge FPS boost in Linux compared to windows

    Oh, I remember watching video on youtube on that topic. Short answer: because opensource. Long answer: because developers better understood how to optimize. Same optimizations slightly boosted FPS on windows.

    I don’t even know what proton is

    Valve games run natively on Linux, so no need in proton.

    KrasMazov ,
    @KrasMazov@lemmygrad.ml avatar

    Proton is basically Wine bundled with other software, like DXVK and VKD3D, to run windows games.

    You have to enable it in the Configuration window inside of Steam if you haven’t done that yet. Enabling it is all you have to do and it will be used automatically.

    BillDoor ,

    Ah thanks, I don’t think I have enabled it. Will that allow me to try out windows-only games in Linux? That’s crazy… literally no more reasons to go back to Windows…

    KrasMazov ,
    @KrasMazov@lemmygrad.ml avatar

    Yep. You can have a look at ProtonDB to have an ideia of how well a game runs through Proton.

    It’s not completely correct as some games marked with lower ratings will work flawlessly, and some with higher ratings will probably give you some trouble, but it’s a really useful resource.

    BanjoShepard , to memes in Ghostbusters

    The irony of this sign being photographed on a cellphone while driving takes this to the next level.

    Spliffman1 ,
    @Spliffman1@lemdro.id avatar

    Could not the passenger be taking the picture? Not the driver?

    Kushia OP ,
    @Kushia@lemmy.ml avatar

    Maybe, though it is funny to think this caused the driver to take this thus use their phone.

    idunnololz ,
    @idunnololz@lemmy.world avatar

    It could be a passenger

    Spliffman1 ,
    @Spliffman1@lemdro.id avatar

    Great minds

    VikingHippie ,

    Yeah, the angle would seem to indicate that, unless it’s a British car…

    Kidplayer_666 ,

    Wraong side of the highway

    VikingHippie ,

    Unless it’s a British car in another country

    mustardman , (edited )

    Unethical tip so you don’t get blasted on social media: Hold your phone out so it looks like it was taken by a passenger.

    Clent ,

    At this point with everyone wanting to go viral, it is going to increase phones usage.

    The people approving these messages are morons.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines