Skip to main content

Google DeepMind minds the patch with AI flaw-fixing scheme

3 weeks 1 day ago
CodeMender has been generating fixes for vulnerabilities in open source projects

Google says its AI-powered security repair tool CodeMender has been helping secure open source projects through automated patch creation, subject to human approval.…

Thomas Claburn

Black Holes Might Hold the Key To a 60-Year Cosmic Mystery

3 weeks 1 day ago
alternative_right shares a report from ScienceDaily: Scientists may have finally uncovered the mystery behind ultra-high-energy cosmic rays -- the most powerful particles known in the universe. A team from NTNU suggests that colossal winds from supermassive black holes could be accelerating these particles to unimaginable speeds. These winds, moving at half the speed of light, might not only shape entire galaxies but also fling atomic nuclei across the cosmos with incredible energy. [...] But what on earth does that mean? The Milky Way is the neighborhood in the universe where you and I live. Our Sun and solar system are part of this galaxy, along with at least 100 billion other stars. "There is a black hole called Sagittarius-A* located right in the centre of the Milky Way. This black hole is currently in a quiet phase where it isn't consuming any stars, as there is not enough matter in the vicinity," [said postdoctoral fellow Enrico Peretti from the Universite Paris Cite]. This contrasts with growing, supermassive, active black holes that consume up to several times the mass of our own Sun each year. "A tiny portion of the material can be pushed away by the force of the black hole before it is pulled in. As a result, around half of these supermassive black holes create winds that move through the universe at up to half the speed of light," Peretti said. We have known about these gigantic winds for approximately ten years. The winds from these black holes can affect galaxies. By blowing away gases, they can prevent new stars from forming, for example. This is dramatic enough in itself, but Oikonomou and her colleagues looked at something else, much smaller, that these winds could be the cause of." It is possible that these powerful winds accelerate the particles that create the ultra-high-energy radiation," said [lead author Domenik Ehlert]. The findings have been published in the journal Monthly Notices of the Royal Astronomical Society.

Read more of this story at Slashdot.

BeauHD

Representative Line: Listing Off the Problems

3 weeks 1 day ago

Today, Mike sends us a Java Representative Line that is, well, very representative. The line itself isn't inherently a WTF, but it points to WTFs behind it. It's an omen of WTFs, a harbinger.

ArrayList[] data = new ArrayList[dataList.size()];

dataList is an array list. This line creates an array of arraylists, equal in length to dataList. Why? It's hard to say for certain, but the whiff I get off it is that this is an attempt to do "object orientation by array(list)s." Each entry in dataList is some sort of object. They're going to convert each object in dataList into an arraylist of values. This also either is old enough to predate Java generics (which is its own WTF), or explicitly wants a non-generic version so that it can do this munging of values into an array.

Mike provided no further explanation, so that's all speculation. But what is true is that when I see a line like that, my programmer sense starting tingling- something is wrong, even if I don't quite know what.

[Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.
Remy Porter