Forgot your password?
typodupeerror

Comment Re:HP INK only $39.99/GAL (Score 3, Informative) 54

I regret to inform you that you have woefully underestimated it. The actual retail rate offered to consumers is closer to $2200 US per gallon. Sources: internet-ink.com, cbc.ca. This $14 million fine is only worth like, seven thousand gallons, or less than 200 oil barrels of ink.

Comment Agents are good at finding bugs, not writing code (Score 1) 33

I've had no success getting Agents to help write code for SQLite. All the code I've asked Claude to write for me is slop that didn't work or worked poorly and never got committed. On the flip side, I do ask Claude to review the code that I write prior to committing, and it is good at that, often finding serious oversights that I had missed.

This observation, that agents are good at code review but bad at writing original code, seems to carry through into AI-generated bug reports coming into SQLite from third parties. The bug reports are generally good, but the suggested fixes not so much.

One report from about a month ago illustrates this. The median() aggregate function in SQLite is implemented by collecting the input values into an array of doubles, using quicksort to put them in order, and return the one in the middle. The bug report showed a carefully devised sequence of 1 million inputs that caused pathological O(N*N) behavior in the quicksort algorithm, which caused recursion to go too deep and blow out the CPU stack. The AI's suggested fix: Add a depth parameter to the quicksort algorithm and fail over to a slower sorting algorithm if the recursion goes too deep. The correct solution (originally recognized in the 1975 by Robert Sedgewick, but unknown to me before this issue arose) was to only call quicksort recursively on the smaller of the two partitions, and sort the larger partition using a loop (tail recursion). If recursion only occurs on a partition that is half the size of the original or smaller, recursion depth is limited to LogN. That turned out to be trivial to implement, and is faster and uses less code than the AI-suggested approach. Furthermore, after seeing Sedgewick's tail recursion idea, Dan Kennedy recognized that we don't actually need to sort both partitions at each step of the algorithm, but only the partition that contains the median. Dan's observation more than doubled performance. Hence by ignoring the AI's suggested fix, we more than doubled the performance of the median() function in SQLite.

Before you ask: The median() function did originally use the standard library qsort(), but I changed that into a hand-coded quicksort some time ago because the hand-written variant did not require a callback for each comparison, and was thus way faster.

Comment Re:Why is this of interest here? (Score 2) 172

Was anyone ever invested in Supergirl though?

I'm told she's had some well-liked stories.

Still, James Gunn seems to have this obsession with pulling up C-list characters from the comics and putting them in central roles in movies. For a lot of the running length of Superman, it was a movie about some guy named Mr. Terrific that nobody's ever heard of. I assume this is because he wants to tell new stories, rather than rehashing the same old origins and motives for characters that everybody's known about for years. But it's not the same as actually introducing new, appealing ideas; these characters are C-listers for a reason. Nobody cares.

Comment Re:Second Movie In a Row Saving a Dog (Score 1) 172

She fights this evil character multiple times and could take the antidote at any point. Of course, she doesn’t because that’d be the end of the movie.

Haven't seen the movie, but I've heard it's not just that ... she also apparently spends a lot of the movie not seeming to believe there's much urgency to the situation at all. That has a way of hamstringing the idea of a "ticking clock" plot.

Medicine

Non-Invasive Stimulation of the Brain Ended Opioid Addiction, Cigarette Craving (jpost.com) 37

The Jerusalem Post reports that doctors at Haifa's Rambam Health Care Campus "have successfully treated their first Israeli opioid addiction patient using an experimental noninvasive brain technology, easing him through withdrawal in just 20 minutes..." [T]he team of specialists at the Haifa medical center intervened in the electrical activity of an area of the patient's brain called the nucleus accumbens, the core of the brain system responsible for feelings of satisfaction, pleasure, and reward. The treatment, based on technology from the Israeli company Insightec, is similar to the one used to treat symptoms of essential tremor and Parkinsonian tremor, under MRI control. In this case, the treatment was carried out with the help of a new technology that performs noninvasive neuromodulation, without heating or burning tissue, and allows stimulation in the same area of the brain to increase or suppress activity...

"Tests carried out a week later produced negative results for opioids and other substances," [said Dr. Lior Lev-Tov, director of the functional neurosurgery unit in Rambam's neurosurgery division and the one leading the new study at the medical center.] "The patient himself reported a craving score of zero out of 10 for using the drug, and even another side effect, a drastic drop in the desire for cigarettes, from three packs a day to just a few cigarettes, and with no urge to use alcohol. In other words, in a treatment that lasted about 20 minutes net, our patient was completely freed from an extreme dependence that had accompanied him every day for years. This is nothing less than a medical and therapeutic revolution."

Dr. Lev-Tov added that "This experience opens doors for us to treat a wide range of very serious illnesses such as PTSD, OCD, eating disorders, other addictions, severe depression, severe pain disorders, and I hope we will also be able to reach cognitive areas and treat attention deficit disorders, Alzheimer's, Parkinson's, and more."

Thanks to Slashdot reader Bruce66423 for sharing the article.

Comment Re:Are there people in the government (Score 1) 77

Sounds like the precise argument why governments shouldn't be the ones regulating these things. Maybe private industry consortiums

"These things"? You mean the government shouldn't be drafting regulations for government, which is what we're talking about here? Instead, private industry should be telling the government what to do?

Slashdot Top Deals

Regardless of whether a mission expands or contracts, administrative overhead continues to grow at a steady rate.

Working...