• 2 Posts
  • 180 Comments
Joined 2 years ago
cake
Cake day: June 14th, 2023

help-circle
  • Well, we know that our understanding of physics isn’t correct - galaxies rotate faster than we think they ought to based on the amount of matter that we think is in them based on our theories of gravity and the evolution of the universe.

    The “simplest” explanation is that there’s a particle that only interacts gravitationally, and has no other interaction with matter, hence being dark. Gravity might work differently on galactic scales, although it’s hard to make that maths work; or neutrinos (which are also ‘dark’) don’t have the gravitational interaction that we expect from theory.

    Simple answer is that we don’t know, and “dark matter” is the useful placeholder term until we work it out. Could be a lot of things, although there’s a lot of things that we know it isn’t.

    Wikipedia has a big list of all the things that don’t fit our current model, and which a proper theory of everything would have to explain. Dark matter ticks all the boxes, whereas other theories work for one or two but can’t explain the rest.

    https://en.m.wikipedia.org/wiki/Dark_matter


  • CMake, which is kind of the universal standard build system for C++ now, has “fetch content” since v3.11. Put the URL of a repository (which can be remote, but also local, which is handy) and optionally the branch / commit ID that you’d like, and it will pull it into your build directory automatically. So yeah, you can pull anything nefarious that you’d like. I don’t think most people would question pulling and building a library from Github as part of the build, especially if it had a sensible name for the task at hand.


  • You’ve got that a bit backwards. Integrated memory on a desktop computer is more “partitioned” than shared - there’s a chunk for the CPU and a chunk for the GPU, and it’s usually quite slow memory by the standards of graphics cards. The integrated memory on a console is completely shared, and very fast. The GPU works at its full speed, and the CPU is able to do a couple of things that are impossible to do with good performance on a desktop computer:

    • load and manipulate models which are then directly accessible by the GPU. When loading models, there’s no need to read them from disk into the CPU memory and then copy them onto the GPU - they’re just loaded and accessible.
    • manipulate the frame buffer using the CPU. Often used for tone mapping and things like that, and a nightmare for emulator writers. Something like RPCS3 emulating Dark Souls has to turn this off; a real PS3 can just read and adjust the output using the CPU with no frame hit, but a desktop would need to copy the frame from the GPU to main memory, adjust it, and copy it back, which would kill performance.


  • Google did claim “half their new code” was AI-generated; obviously, take that with a pinch of salt, since they’ve a vested interest in promoting LLM.

    Speaking as a professional dev, about half of my lines-of-code consists of whitespace, opening-and-closing marks for the javadocs, and such matters as function, method and class definitions and their matching curly-close-brackets. My IDE generates all of that for me, but I dare say that I could use an LLM to do it as well, and then “half my code” would be AI-generated as well.

    My colleagues who are most enthusiastic about AI do turn in some right shit for code review; I suppose the best of it is over-complex and has confused error handling. They also tend to have about a hundred lines of what they’ve changed in the pull request description, and little or nothing about why. Github shows me what you’ve changed, I’m only interested in why you’ve done it, so that’s actually providing negative value by wasting my time having to read it.





  • Money is an emotional thing. Do I believe that this coin / bit of paper / number on a website is something that I can exchange for goods and services? If not enough people believe that, that currency will collapse.

    Mind you, not using money is inefficient at scale. Sending the bag of potatoes that I’ve grown in my garden this month to my internet provider for continued shitposting privileges only goes so far.





  • addie@feddit.uktoScience Memes@mander.xyzSpace Quarry
    link
    fedilink
    English
    arrow-up
    44
    ·
    1 month ago

    Hey! The images of Ryugu that were taken from Hayabusa2. What a sad lonely rock that place is - a loose collection of boulders in an endless orbit, in which it will probably continue without further interaction from now until the end of time. You could sneak a few ghosts onto that place, right enough, and no-one would notice.




  • It’s one of those materials that has an almost complete list of superb properties, with one overwhelming downside. It’s cheap, abundantly available, completely fireproof and can be woven into fireproof cloth, adds enormous structural strength to concrete in small quantities, very resistant to a wide range of chemical attacks. It’s just that the dust causes horrific cancers. See also CFCs, leaded petrol, etc, which have the same ‘very cheap, superb in their intended use, but the negative outweighs all positives’.

    One of the ‘niche industrial applications’ was the production of pump gaskets in high-temperature scenarios, especially when pumping corrosive liquids. We’ve a range of superalloys that are ‘suitable’ for these applications - something like inconel is an absolute bastard to form into shapes, but once you’ve done so it lasts a long time. But you still need something with similar properties when screwing the bits together. For a long time, there was no suitable synthetic replacement for asbestos in that kind of usage.

    If you know that the asbestos is there, have suitable PPE and procedures, then IMHO it’s far from the worst industrial material to work with. It’s pretty inert, doesn’t catch fire or explode, and isn’t one of the many exciting chemicals where a single droplet on your skin would be sufficient to kill you. What is inappropriate is using it as a general-purpose building material, which is how it was used for so long, and where it was able to cause so much suffering for so many people.


  • From a UK perspective, a lot of US cars would be illegal to drive on public roads here - too large, too dangerous for pedestrians and other road users. “Dangerous” also applies to some of your other potential exports too. Chlorinated chicken, for instance, isn’t considered safe for consumption. So the absence of a market for those goods isn’t simply “customer preference”.

    As a European, we’ve been too dependent on the US on some things for too long. We need to be more independent. The situation in Ukraine has shown that; we need to be able to support our allies better. But the US trashing their own economy, making themselves into global pariahs and handing over their superpower status to China is what I would have described as “not my dream way” of achieving that.


  • addie@feddit.uktoBuy European@feddit.ukNut nut
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    They’re occasionally the crisp of choice in pubs; an excellent accompaniment to an 80/-. Suppose there’s worse criteria for your pub crawls. But aye, a weird omission - you’d be thinking there’s plenty of wagons on the Stranraer ferry that could bring a few palletloads over.


  • If I believed that they were sincerely interested in trying to improve their product, then that would make sense. You can only improve yourself if you understand how your failings affect others.

    I suspect however that Saltman will use it to come up with some superficial bullshit about how their new 6.x model now has a 90% reduction in addiction rates; you can’t measure anything, it’s more about the feel, and that’s why it costs twice as much as any other model.


  • A binary tree is one way of preparing data, usually for sorting. Each node can have a left, right, or both, children.

      A
     / \
    B   C
       / \
      D   E
    

    “Inverting the tree” means swapping the children for each node, so that the order that the nodes are visited is reversed. Depending on whether you want to copy the tree or swap it in place then the algorithm is different. C++ provides iterators too, so providing a “order reversed” iterator can be done efficiently as well.

    You’re going to have to visit every node and do at least one swap for every node, and an efficient algorithm won’t do much more than that. Bring unable to do it suggests that the student programmer doesn’t understand stacks or recursion yet, so they’ve more to learn.