• 3 Posts
  • 267 Comments
Joined 2 years ago
cake
Cake day: June 18th, 2023

help-circle
  • I really like C++ (I know, shoot me), and I think auto should be avoided at (almost) all costs.

    One of the things I love about a language like C++ is that I can take one glance at the code and immediately know what types I’m working with. auto takes that away while adding almost no benefit outside of a little convenience while writing.

    If I’m working with some very big template type that I don’t want to write out, 99/100 times I’ll just have a using somewhere to make it more concise. Hell, I’ll have using vectord = std::vector<double> if I’m using a lot of them, because I think it makes the code more readable. Just don’t throw auto at me.

    Of course, the worst thing ever (which I’ve seen far too often) is the use of auto in examples in documentation. Fucking hell! I’m reading the docs because I don’t know the library well! When you first bother to write examples, at least let me know the return type without needing to dig through your source code!


  • Isn’t one of the reasons it’s argued that it could be a cosmic ray that in millions of automated run-throughs, they haven’t been able to reproduce it? That is: Something extremely unlikely, and quite possibly non-deterministic (i.e not a software bug) clearly happened.

    Also, I believe they pinpointed that there was exactly one bit-flip. I’m not disagreeing that a bit flip caused by a cosmic ray is astronomically unlikely, but it’s not unprecedented either. It does happen, though rarely, and I have yet to see a more convincing explanation for what we saw in that speed run.




  • Honestly, after re-reading my own comment, I’m considering just putting some stupid-simple wrapper around mv that moves files to a dedicated trash bin. I’ll just delete the trash bin every now and then…

    -Proceeds to collect 300 GB of build files and scrapped virtual environments over the coming month-


  • I usually don’t think about it at all, but every now and then I’m struck by how terrifyingly destructive rm -r can be.

    I’ll use it to delete some build files or whatever, then I’ll suddenly have a streak of paranoia and need to triple check that I’m actually deleting the right thing. It would be nice to have a “safe” option that made recovery trivial, then I could just toggle “safe” to be on by default.







  • thebestaquaman@lemmy.worldtomemes@lemmy.worldBack to School
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    edit-2
    19 days ago

    I’ll add to this that Europe has about 1.6 times the population of the US. This means that Europe has roughly one school shooting for every 12 incidents in the US when corrected for population.

    If Europe had school shootings at a rate similar to the US, there would have been on average 40 incidents per year. That is: about one school shooting every week of school since year 2000. I can’t even imagine going to school knowing that and wondering if my school is the one that’s going to be shot up this week.


  • Exactly this. The whole premise of the tax system is based around the historically correct idea that you need to physically move goods in order to sell them, or physically be somewhere to sell services.

    Companies like google are making buckets of money all over the world, and don’t need to tax a dime most places, because they have no physical presence there. This makes it pretty much impossible to compete with the international behemoths, because they have access to a munch of tax-free revenue, while a startup will typically be centred around wherever they’re based, where they also need to pay taxes.


  • The great thing is, it’s not just for flights! My travel insurance gives me coverage as long as I’m travelling outside my home. It literally covers damage to my bike if I’m visiting my parents for the weekend, or road assistance if my car breaks down on my way to a hike.

    That’s essentially why I have it: Pretty much everything I bring with me on any trip that’s not to-from work is covered.


  • Travel insurance? Regulation? Out of any insurance worth paying for, I think travel insurance is like top of the line. Anything goes wrong while travelling (stolen stuff, lost/delayed baggage/damaged rental car/cancelled flights/etc.) gives me a decent payback. I pay like 120 USD/yr.

    Regarding regulations: At least in the EU/EEA we have some decent regulations requiring airlines to reimburse you if they lose or delay your baggage.




  • That completely depends on what you’re doing. If you’re doing tasks that python can completely offload to some highly optimised library written in C/C++/Fortran, then yes. However at that point you’re not really comparing Python to C anymore, but rather your C implementation to whatever library you used.

    A fair comparison is to compare pure python to pure C, in which case you need to mess up the C-code pretty bad if Python is to stand a chance.


  • thebestaquaman@lemmy.worldtoxkcd@lemmy.worldxkcd #3124: Grounded
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 month ago

    Do you have a source for this? My only reference here is hiking at > 10 000 ft (3000 m), and from that I can say that this seems very unlikely: If you stay at 3000 for a couple hours without acclimating first, you will definitely start to feel the effects. To be fair, you’re usually not moving around a lot in an aircraft, but a couple hours at 3000 m can make you feel sluggish and weak, and even a bit light-headed, you could even get a mild headache from oxygen deprivation.

    Note that not everyone will see severe symptoms already at 3000 m. Plenty of people can go to 4000 m before seeing significant symptoms. However, given that I’ve never heard of anyone experiencing altitude sickness in a properly pressurised aircraft, it seems unlikely to me that they’re pressurised to 3000 m.


  • If you need more than 32 GB of RAM, I’m pretty sure you’re no longer looking for a laptop. I mean sure, you can get up to 128 GB on a macbook, but if you need that kind of volume you’re doing professional work on something that is specifically extremely RAM-intensive.

    I didn’t support the apple-mouse, in fact I don’t like it at all, primarily because I don’t like the feel of it. Personally, I use a completely ordinary, cheap mouse with two buttons and a scroll wheel.