[-] thebestaquaman@lemmy.world 10 points 3 days ago

I never understood that. Apparently they use it as a primary way of messaging each other? At least that's what younger relatives have told me. I've tried to have them explain what makes the app designed to hide/delete stuff after it's been read better for communication, but so far haven't gotten an explanation I could make any sense of.

[-] thebestaquaman@lemmy.world 83 points 3 days ago

"Enshittification will continue until revenue improves"

[-] thebestaquaman@lemmy.world 1 points 3 days ago

I've found that regex is maybe the programming-related thing GPT is best at, which makes sense given that it's a language model, and regex is just a compact language with weird syntax for describing patterns. Translating between a description of a pattern in English and Regex shouldn't be harder for that kind of model than any other translation so to speak.

[-] thebestaquaman@lemmy.world 2 points 5 days ago

In general I agree: ChatGPT sucks at writing code. However, when I want to throw together some simple stuff in a language I rarely write, I find it can save me quite some time. Typical examples would be something like

"Write a bash script to rename all the files in the current directory according to ", "Give me a regex pattern for <...>", or "write a JavaScript function to do <stupid simple thing, but I never bothered to learn JS>"

Especially using it as a regex pattern generator is nice. It can also be nice when learning a new language and you just need to check the syntax for something- often quicker than swimming though some Geeks4Geeks blog about why you should know how to do what you're trying to do.

[-] thebestaquaman@lemmy.world 1 points 5 days ago

My test suite takes quite a bit of time, not because the code base is huge, but because it consists of a variety of mathematical models that should work under a range of conditions.

This makes it very quick to write a test that's basically "check that every pair of models gives the same output for the same conditions" or "check that re-ordering the inputs in a certain way does not change the output".

If you have 10 models, with three inputs that can be ordered 6 ways, you now suddenly have 60 tests that take maybe 2-3 sec each.

Scaling up: It becomes very easy to write automated testing for a lot of stuff, so even if each individual test is relatively quick, they suddenly take 10-15 min to run total.

The test suite now is ≈2000 unit/integration tests, and I have experienced uncovering an obscure bug because a single one of them failed.

[-] thebestaquaman@lemmy.world 2 points 5 days ago

Ngl you had me until the 1772 bit

[-] thebestaquaman@lemmy.world 1 points 5 days ago

Well it'll still be climate change, just a more abrupt one.

[-] thebestaquaman@lemmy.world 43 points 5 days ago

Looking up "historic" election victories for the German far-right

[-] thebestaquaman@lemmy.world 2 points 1 week ago

First of all, that speech is awesome.

But I want to comment on something regarding modding, and ask an honest question: Shouldn't reiteration of historical speeches or texts be omitted from rules about slurs? I mean, reiterating a speech, or a section of Huckleberry Finn, is obviously not the same thing as devaluing someone by calling them a slur. We actually have a quite hot debate going on in my country about this now, where some teachers were harassed for "being racist", because in class they read aloud a famous poem written by an immigrant about racism, where he writes some of the things that were shouted at him. The whole point of the poem, and of reading it in class, is of course to make a point out of how bad racism is, and to educate about racism. Still, these teachers have been stamped as "racists" because they reiterated specific words in the poem.

For the honest question (I'm not American or a native english speaker): Isn't there a historical difference between the word "Negro", and a certain similar word I'll refrain from reiterating? The way I've understood it, the former is a historically more neutral form, that was simply used the way we today would use "black person", while the latter has more or less always had some kind of devaluating undertone. I've gotten that interpretation, among other things, from having read speeches where people are promoting equal rights, and use "Negro" to refer to black people, while clearly not believing that they are inferior in any way (hence the promotion of equal rights). Of course, today, both words are considered unacceptable, but I would like to clarify if I've misunderstood, as it helps in interpreting things that were said or written in the past.

[-] thebestaquaman@lemmy.world 15 points 1 week ago

I would love to see Harris just stop for a second, turn over towards Trump, and say something like "Your mic is turned off you know, could you stop yelling for a moment?", and have the cameras cut to a silent video of Trump furiously yelling at his turned-off mic.

[-] thebestaquaman@lemmy.world 15 points 1 week ago

This is a very "yes but still no" thing in my experience. Typically, I find that if I write "naive" C++ code, where I make no effort to optimise anything, I'll outperform python code that I've spent time optimising by a factor of 10-30 (given that the code is reasonably complex, this obviously isn't true for a simple matrix-multiplication where you can use numpy). If I spend some time on optimisation, I'll typically be outperforming python by a factor of 50+.

In the end, I've found it's mostly about what kind of data structures you're working with, and how you're passing them around. If you're primarily working with arrays of some sort and doing simple math with them, using some numpy and scipy magic can get you speeds that will beat naive C++ code. On the other hand, when you have custom data structures that you want to avoid unnecessarily copying, just rewriting the exact same code in C++ and passing things by reference can give you massive speedups.

When I choose C++ over python, it's not only because of speed. It's also because I want a more explicitly typed language (which is easier to maintain), overloaded functions, and to actually know the memory layout of what I'm working with to some degree.

1

I don't really know if this fits in this community, if not just take it down. The map is from the BlackBird group.

Regarding the recent strikes on the Seim river crossings, I've been speculating what Ukraines plans are. Not too long ago, the Ukranian advance around Korenevo slowed a bit. Then they started systematically hitting the Seim river crossings, of which ISW assesses there is only one left.

If the goal was to encircle and trap Russian units, I would assume that Ukraine would make a hard push through Korenevo to the river. As it looks now, it seems like they are leaving a small corridor open. Whether that is due to Russian resistance or Ukrainian planning I have no idea.

This makes me wonder whether they are intentionally leaving a small opening (See: Sun Tzu) to try to make Russian forces low on resources funnel through the opening where they can inflict heavy casualties, or whether they are trying to force the Russians to expend resources trying to prevent being cut off before they close the net.

In any case, I can see Ukraine wanting to secure another major road towards Korenevo that they can use to supply the offensive.

Of course, I don't want anyone to reveal anything that could violate OPSEC, everything I read is based on OSINT. I'm just interested and would like to hear other peoples speculations.

266

Back in the day, on other forums than this one, there were tags to differentiate between porn (nsfw) and gore (nsfl). This was nice for people browsing new that had no problem seeing tits, but wanted to avoid degloved hands.

Throughout the years, the NSFL tag went out of use. What happened?

47

I remember back in the day when people would "Jailbreak" iPhones, but never really picked up on what they were doing other than that it let them do stuff that those of us with "non-jailbroken" iPhones couldn't do.

Are they just booting another OS, e.g. android? Also: why haven't I heard of it in a while? Is it not possible on newer iPhones?

38
961

Inspired by the linked XKCD. Using 60% instead of 50% because that's an easy filter to apply on rottentomatoes.

I'll go first: I think "Sherlock Holmes: A game of Shadows" was awesome, from the plot to the characters ,and especially how they used screen-play to highlight how Sherlocks head works in these absurd ways.

50

I'm immediately sceptical to the idea of ruining even more areas of nature than we already are, but at the same time I recognise that if we want to build feasible green energy and storage, we need rare-earth metals and heavy metals. This might be a good alternative to massive deforestation.

Since the article is paywalled:

Pushed by the threat of climate change, rich countries are embarking on a grand electrification project. Britain, France and Norway, among others, plan to ban the sale of new internal-combustion cars. Even where bans are not on the statute books, electric-car sales are growing rapidly. Power grids are changing too, as wind turbines and solar panels displace fossil-fuelled power plants. The International Energy Agency (iea) reckons the world will add as much renewable power in the coming five years as it did in the past 20.

All that means batteries, and lots of them—both to propel the cars and to store energy from intermittent renewable power stations. Demand for the minerals from which those batteries are made is soaring. Nickel in particular is in short supply. The element is used in the cathodes of high-quality electric-car batteries to boost capacity and cut weight. The iea calculates that, if it is to meet its decarbonisation goals, the world will need to be producing 6.3m tonnes of nickel a year by 2040, roughly double what it managed in 2022. That adds up to some 80m tonnes of nickel in total between now and then.

Over the past five years most of the growth in demand has been met by Indonesia, which has been bulldozing rainforests to get at the ore beneath. In 2017 the country produced just 17% of the world’s nickel, according to cru, a metals research firm. Today it is responsible for around half, or 1.6m tonnes a year, and that number is rising. cru thinks Indonesia will account for 85% of production growth between now and 2027. Even so, that is unlikely to be enough to meet rising demand. And as Indonesian nickel production increases, it is expected to replace palm-oil production as the primary cause of deforestation in the country.

But there is an alternative. A patch of Pacific Ocean seabed called the Clarion-Clipperton Zone (ccz) is dotted with trillions of potato-sized lumps of nickel, cobalt, manganese and copper, all of which are of interest to battery-makers (see map). Collectively the nodules hold an estimated 340m tonnes of nickel alone—more than three times the United States Geological Survey’s estimate of the world’s land-based reserves. Companies have been keen to mine them for several years. With the coming expiry, on July 9th, of an international bureaucratic deadline, that prospect looks more likely than ever.

It’s better down where it’s wetter That date marks two years since the island nation of Nauru, on behalf of a mining company it sponsors called The Metals Company (tmc), told the International Seabed Authority (isa), an appendage of the United Nations, that it wanted to mine a part of the ccz to which it has been granted access. That triggered a requirement for the isa to complete rules on commercial use of the deposits. If those regulations are not ready by July 9th—and it seems they will not be—then the isa is required to “consider and provisionally approve” tmc’s application. (The firm itself says it hopes to wait until rules can be agreed.)

tmc’s plan is about as straightforward as underwater mining can be. Its first target is a patch of the ccz called nori-d, which covers about 2.5m hectares of ocean floor (an area about 20% bigger than Wales). Gerard Barron, tmc’s boss, estimates there are about 3.8m tonnes of nickel in the area. Since the nodules are simply sitting on the bottom of the ocean, the firm plans to send a large robot to the seabed to hoover them up. The gathered nodules will then be sucked up to a support ship on the surface through a high-tech pipe, similar to ones used in the oil-and-gas industry. Mr Barron says that his firm can break even on nodule collection at nickel prices as low as $6,000 per tonne; nickel currently sells for about $22,000 per tonne.

The support ship will wash off any sediment, then offload the nodules to a second ship which will ferry them back to shore for processing. The surplus sediment, meanwhile, will be released back into the sea at a depth of around 1,500 metres, far below most ocean life. And tmc is not the only firm interested. A Belgian firm called Global Sea Mineral Resources—a subsidiary of Deme, a dredging giant—is also keen, and has tested a sea-floor robot and riser system similar to tmc’s. Three Chinese firms—Beijing Pioneer, China Merchants and China Minmetals—are circling too, though they are reckoned to be further behind technologically.

As with mining on land, taking nickel from the sea will damage the surrounding ecosystem. Although the ccz is deep, dark and cold, it is not lifeless. tmc’s robot will destroy many organisms it drives across, as well as any that live on the nodules it collects. It will also kick up plumes of sediment, some of which will drift onto nearby organisms and kill them (though research suggests the plumes tend not to rise more than two metres above the seabed).

Adrian Glover, a marine biologist at the Natural History Museum in London, points out that, because life evolved first in the oceans and only later moved to the land, the majority of the genetic diversity on the planet is still found underwater. Although the deep-ocean floor is dark and nutrient-poor, it nevertheless supports thousands of unique species. Most are microbes, but there are also worms, sponges and other invertebrates. The diversity of life is “very high”, says Dr Glover.

Yet in several respects, mining the seabed has a smaller environmental footprint than mining in Indonesia. The harsh deep-sea environment means that, although its inhabitants may be highly diverse, they are not very abundant. A paper published in Nature in 2016 found that a given square metre of ccz supports between one and two living organisms, weighing a couple of grams at most. A square metre of Indonesian rainforest, by contrast, contains about 30,000 grams of plant biomass alone, and plenty more if you weigh up primates, birds, reptiles and insects too.

But it is not enough to simply weigh the biomass in each ecosystem. The amount of nickel that can be produced per hectare is also relevant. The 2.5m hectares of seabed that tmc hopes to exploit is expected to yield about 3.8m tonnes of nickel, or about 1.5 tonnes per hectare.

Getting hard numbers for land-based mining is tricky, for the firms that do it are less transparent than those hoping to mine the seabed. But investigative reporting from the Pulitzer Centre, a non-profit media outlet, suggests each hectare of rainforest on Sulawesi, the Indonesian island at the centre of the country’s nickel industry, will produce around 675 tonnes of nickel. (One reason land deposits produce so much more nickel, despite the lower quality of the ore, is because the ore extends far beneath the surface, whereas nodules exist only on the seabed.)

All that makes a very rough comparison possible. Around 13 kilograms of biomass would be lost for every tonne of ccz nickel mined. Each tonne mined on Sulawesi would destroy around 450kg of plants alone—plus an unknown amount of animal biomass, too.

Pick your poison There are other environmental arguments in favour of mining the seabed. The nodules contain much higher concentrations of metal than deposits on land, which means less energy is required to process them. Peter Tom Jones, the director of the ku Leuven Institute for Sustainable Metals and Materials, in Belgium, reckons that processing the nodules will produce about 40% less greenhouse-gas emissions than those from terrestrial ore.

And because the nodules must be taken away for processing anyway, companies like tmc can be encouraged to choose places where energy comes with low emissions. Indonesian nickel ore, in contrast, is uneconomic unless it is processed near where it was mined. That almost always means using electricity from coal plants or diesel generators. Alex Laugharne, an analyst at cru, reckons Indonesian nickel production emits about 60 tonnes of carbon dioxide for each tonne of nickel. An audit of tmc’s plans carried out by Benchmark Minerals Intelligence, a firm based in London, found that each tonne of nickel harvested from the seabed would produce about six tonnes of co2.

In any case, metal collected from the seabed is unlikely to entirely replace that mined from the rainforest. Battery production is growing so fast that nickel will probably be dug up from wherever it can be found. But if the ocean nodules can be brought to market affordably, the sheer volume of metal available may start to ease the pressure on Indonesian forests. The arguments are unlikely to stay theoretical for long. Mr Barron of tmc aims to start producing nickel and other metals from the seabed by the end of next year.

Correction (July 6th 2023): An earlier version of this piece said global nickel production would need to reach 48m tonnes per year by 2040, and would total 320m tonnes by 2040. The correct figures are 6.3m tonnes and 80m tonnes. Apologies for the error.

5

I remember reading somewhere that mathematical symbols make up an "incomplete" written language (or something like that). I commonly formulate problems, or complete sentences using only mathematical symbols. From a linguistic perspective, what separates mathematical symbols from "complete" writing systems?

1

What is it, what are its consequences, how does it work, why is it there, why do we care about it?

3

I mean, I've heard that you can typically only survive about three days without water, but what exactly causes your body to fail when you dehydrate too much?

I guess one point is lack of salts (if you sweat a lot) but I'm specifically wondering about lack of water (although a closer explanation about how lack of salts will kill you is also appreciated)

29
Guess I'll die (lemmy.world)
5

view more: next ›

thebestaquaman

joined 1 year ago