Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)CA
calcopiritus @lemmy.world
Posts 1
Comments 623
What's a woman?
  • I didn't answer your "request" because that has nothing to do with what I originally said.

    If I wanted to get into an hours long conversation about gender I would've said something completely different. Got better things to waste my time on.

  • What's a woman?
  • If the question is so irrelevant, why do you even try to answer it in the same comment? Not only answering it, but also making it a fact. As if your opinion is the only one that matters and suddenly it's irrelevant when there's a different opinion.

  • The US government wants devs to stop using C and C++
  • You can just use an unsafe block though. Or make a thin wrapper that is just safe functions that inside just have an unsafe block with the C ABI function.

    Even if rust had a stable ABI, you would still need that unsafe block.

  • The US government wants devs to stop using C and C++
  • I'm not so sure that dynamic libraries always reduces the size. Specially with libraries that are linked by a single binary.

    With static libraries, you can conditionally compile only the features you're gonna use. With dynamic libraries, however, the whole library must be compiled.

    EDIT: just to clarify, I'm not saying that static libraries result always in less size. I'm saying that it's not a black and white issue.

  • Ambulance hits cyclist, rushes him to hospital, then sticks him with $1,800 bill
  • Road rules exist for a reason. The reason that it's illegal to pass someone on the right lane is that they might turn right without seeing you.

    If you're in a bike on the road you should be as careful as you can, since you're a small thing surrounded by heavy giant machines. And those in the cars are mostly only paying attention to other cars.

    Cars that are in the rightmost lane don't expect anything to be at their right, since they are already the rightmost, so they are looking at the traffic coming from their left when turning right, they don't look at what's right of them, since there are no cars coming from that direction.

  • Opinion: Trump wins 2024 election. America needs to admit it's not 'better than this.'
  • If they didn't vote in 2024, that's because they saw trump and said "yes, this is fine". If they didn't, they would've voted.

    Even if they didn't like Kamala, they would've voted for her if they didn't think a trump presidency was acceptable.

    Anything more positive for trump than "trump's presidency is not acceptable" means that America is not "better than this".

  • The gender wars continue 🥹
  • I think you completely missed the point.

    The problem is not that the sign exists, the problem is that people don't see nothing wrong with it.

    If you were a Jew, how would you feel if you saw Nazi flags on a men's rights protest? Would you feel safe knowing that men a Nazi is safe around men? (Which probably means many of those men are nazis/nazi sympathizers themselves.).

    That's how men feel when they see sexist messages in feminist protests go uncontested.

  • The gender wars continue 🥹
  • You can't be that blind. At pretty much every women's rights protest there is at least someone with a sign up that reads something like "All men are rapists". Sure, the protest might not be about that. Sure, not everyone agrees with that kind of statements. But there's not much opposition either, so that kind of sexist message appears all the time in the news. Furthermore, those spewing sexist bullshit call themselves "feminists", so young men think that feminism is like that, and now they hate feminism too.

    EDIT: just as an example, right after writing this comment I saw this other one: https://lemmy.world/comment/13322514 it's impossible to time it better.

  • How are we going to have evidence in trials when deep fakes and AI is getting so perfect at "being real"?
  • Hardware signing stuff is not a real solution. It's security through obscurity.

    If someone has access to the hardware, they technically have access to the private key that the hardware uses to sign things.

    A determined malicious actor could take that key and sign whatever they want to.

  • Rider and Webstorm from JetBrains are now free for non-commercial use
  • Editor/IDE, whatever. People claim both about jetbrains.

    If you want a purely editor-thing:

    Whatever vscode does with Ctrl+D (I don't know the name). Ctrl+D is probably the hotkey I use most in vscode (probably more than Ctrl+S), yet CLion doesn't have that. I've searched multiple times the whole settings for it.

    Those two examples are just the ones that most recently occurred to me, it has a lot more issues. For example the lack of a staging area. You can't "git stage" in CLion.

    And I don't think that the git integration is free from criticism. Git integration is one of the most important features of IDEs. It's absolutely valid to criticize it.

    The autoformatter also doesn't work correctly when developing in remote. Which means that unless I want my PRs to have thousands of lines of whitespace changes, I can't use the auto formatter.

    Now I don't know if this is a CMake issue or CLion. But at one point It was "#include"ing a struct from a header file I had deleted 1 hour previous to the build failing. The only way to fix that was to create the file again and delete it again.

    These complaints might seem small. But put together they are hours of wasted time that you don't expect from the "best" of something.

  • Rider and Webstorm from JetBrains are now free for non-commercial use
  • Don't need to go all the way there. I always heard that jetbrains make the best editors. Yet when my job forced everyone to use CLion I saw that it was just a lie. The editors aren't good, they are just expensive.

    There are 2 easy examples:

    1. Remote developing sucks. Loading a remote cmake project takes ages. Yet if you remove the temp directory it's almost instantaneous. Except when you do it too often and clion refuses to sync the files, then you're fucked because there isn't a "sync" button, it only happens automatically.

    2. The commit log is awful. It doesn't by default show you the commit/branch you've checked out, it shows the chronologically most recent commit. There's no "go to checked out commit" button either, you have to write the hash in the search field. Which btw the search is trash. If you write 6 of the characters of the hash it shows "there are no results", yet when you write the 7th, suddenly your commit appears.

  • WP Engine asks court to stop Matt Mullenweg from blocking access to WordPress resources
  • Not really "leech off", it's just standard use. How many companies do you think uses Linux? How many of them contribute back to the Linux foundation?

    Using an open source project without giving back is not only the norm, it is also perfectly legal.

  • How hard could it be?
  • The thing about UB is that many optimizations are possible precisely because the spec specified it as UB. And the spec did so in order to make these optimizations possible.

    Codebases are not 6 lines long, they are hundreds of thousands. Without optimizations like those, many CPU cycles would be lost to unnecessary code being executed.

    If you write C/C++, it is because you either hate yourself or the application's performance is important, and these optimizations are needed.

    The reason rust is so impressive nowadays is that you can write high performing code without risking accidentally doing UB. And if you are going to write code that might result in UB, you have to explicitly state so with unsafe. But for C/C++, there's no saving. If you want your compiler to optimize code in those languages, you are going to have loaded guns pointing at your feet all the time.

  • How hard could it be?
  • I recently came across a rust book on how pointers aren't just ints, because of UB.

    fn main() {
        a = &1
        b = &2
        a++
        if a == b {
            *a = 3
            print(b)
        }
    }
    

    This may either: not print anything, print 3 or print 2.

    Depending on the compiler, since b isn't changed at all, it might optimize the print for print(2) instead of print(b). Even though everyone can agree that it should either not print anything or 3, but never 2.

  • impl block for generic type overriden by specific type

    I want to do basically this: ```rust struct MyStruct < T> { data: T }

    impl < T> for MyStruct < T> { fn foo() { println!("Generic") } }

    impl for MyStruct < u32> { fn foo() { println!("u32") } } ```

    I have tried doing

    rust impl < T: !u32> for MyStruct < T> { ... } But it doesn't seem to work. I've also tried various things with traits but none of them seem to work. Is this even possible?

    EDIT: Fixed formatting

    5