Just because I don't care doesn't mean I don't understand.
675 stories
·
3 followers

Conservatives Say Renée Good Was Brainwashed By Bible Into Loving Thy Neighbor

1 Comment

WASHINGTON—Calling her actions “indefensible,” Vice President JD Vance stated Thursday that Renée Good was brainwashed by the Bible into loving thy neighbor. “The fact of the matter is that Renée Good was radicalized by these deranged, left-wing texts,” said Vance, whose response to the death of the 37-year-old Minneapolis mother was reiterated across social media by MAGA voters and GOP lawmakers who emphasized that the blame for her slaying lay squarely on the Scriptures that had “poisoned” her mind. “She was obsessed. I don’t know who ‘Matthew’ and ‘Mark’ are, if those are even their real names, but they should know that they will not escape accountability. Frankly, we should deport everybody who follows this insanity. There’s no ‘Golden Rule’ in U.S. immigration code.” At press time, the Department of Justice had reportedly launched an investigation after receiving a tip that there was a whole fringe network of these so-called “followers of Christ.”

The post Conservatives Say Renée Good Was Brainwashed By Bible Into Loving Thy Neighbor appeared first on The Onion.

Read the whole story
jgbishop
8 hours ago
reply
This feels like an actual news story.
Durham, NC
Share this story
Delete

Python: introducing tprof, a targeting profiler

1 Comment

Profilers measure the performance of a whole program to identify where most of the time is spent. But once you’ve found a target function, re-profiling the whole program to see if your changes helped can be slow and cumbersome. The profiler introduces overhead to execution and you have to pick out the stats for the one function you care about from the report. I have often gone through this loop while optimizing client or open source projects, such as when I optimized Django’s system checks framework (previous post).

The pain here inspired me to create tprof, a targeting profiler for Python 3.12+ that only measures the time spent in specified target functions. Use it to measure your program before and after an optimization to see if it made any difference, with a quick report on the command line.

For example, say you’ve realized that creating pathlib.Path objects is the bottleneck for your code. You could run tprof like so:

tprof in action measuring pathlib.Path performance.

Benchmark with comparison mode

Sometimes when optimizing code, you want to compare several functions, such as “before” and “after” versions of a function you’re optimizing. tprof supports this with its comparison mode, which adds a “delta” column to the report showing how much faster or slower each function is compared to a baseline.

For example, given this code:

def before():
    total = 0
    for i in range(100_000):
        total += i
    return total


def after():
    return sum(range(100_000))


for _ in range(100):
    before()
    after()

…you can run tprof like this to compare the two functions:

$ tprof -x -t before -t after -m example
🎯 tprof results:
 function         calls total  mean ± σ      min … max   delta
 example:before()   100 227ms   2ms ± 34μs   2ms … 2ms   -
 example:after()    100  86ms 856μs ± 15μs 835μs … 910μs -62.27%

The output shows that after() is about 60% faster than before(), in this case.

Python API

tprof also provides a Python API via a context manager / decorator, tprof(). Use it to profile functions within a specific block of code.

For example, to recreate the previous benchmarking example within a self-contained Python file:

from tprof import tprof


def before():
    total = 0
    for i in range(100_000):
        total += i
    return total


def after():
    return sum(range(100_000))


with tprof(before, after, compare=True):
    for _ in range(100):
        before()
        after()

…which produces output like:

$ python example.py
🎯 tprof results:
 function          calls total  mean ± σ      min … max delta
 __main__:before()   100 227ms   2ms ± 83μs   2ms … 3ms -
 __main__:after()    100  85ms 853μs ± 22μs 835μs … 1ms -62.35%

How it works

tprof uses Python’s sys.monitoring, a new API introduced in Python 3.12 for triggering events when functions or lines of code execute. sys.monitoring allows tprof to register callbacks for only specific target functions, meaning it adds no overhead to the rest of the program. Timing is done in C to further reduce overhead.

Thanks to Mark Shannon for contributing sys.monitoring to CPython! This is the second time I’ve used it—the first time was for tracking down an unexpected mutation (see previous post).

Fin

If tprof sounds useful to you, please give it a try and let me know what you think! Install tprof from PyPI with your favourite package manager.

May you hit your Q1 targets,

—Adam

Read the whole story
jgbishop
20 hours ago
reply
I could imagine this being handy in the right scenario.
Durham, NC
Share this story
Delete

It’s hard to justify Tahoe icons

1 Comment and 2 Shares

It’s hard to justify Tahoe icons

Devastating critique of the new menu icons in macOS Tahoe by Nikita Prokopov, who starts by quoting the 1992 Apple HIG rule to not "overload the user with complex icons" and then provides comprehensive evidence of Tahoe doing exactly that.

In my opinion, Apple took on an impossible task: to add an icon to every menu item. There are just not enough good metaphors to do something like that.

But even if there were, the premise itself is questionable: if everything has an icon, it doesn’t mean users will find what they are looking for faster.

And even if the premise was solid, I still wish I could say: they did the best they could, given the goal. But that’s not true either: they did a poor job consistently applying the metaphors and designing the icons themselves.

Via Hacker News

Tags: apple, design, macos, usability

Read the whole story
jgbishop
9 days ago
reply
I love the irony of the source article appearing on a website with terribly annoying falling snow in the background.
Durham, NC
Share this story
Delete

Total monthly number of StackOverflow questions over time

1 Comment

[unable to retrieve full-text content]

Comments
Read the whole story
jgbishop
10 days ago
reply
Cue The Doors' "The End."
Durham, NC
Share this story
Delete

Quoting Boris Cherny

1 Comment

A year ago, Claude struggled to generate bash commands without escaping issues. It worked for seconds or minutes at a time. We saw early signs that it may become broadly useful for coding one day.

Fast forward to today. In the last thirty days, I landed 259 PRs -- 497 commits, 40k lines added, 38k lines removed. Every single line was written by Claude Code + Opus 4.5.

Boris Cherny, creator of Claude Code

Tags: anthropic, claude, ai, claude-code, llms, coding-agents, ai-assisted-programming, generative-ai

Read the whole story
jgbishop
19 days ago
reply
One year from now, when there are subtle issues that no one understands in this code base, you'll regret choosing this path.
Durham, NC
Share this story
Delete

The Argyle Sweater - 2025-12-14

1 Comment
The Argyle Sweater

Comic strip for 2025/12/14

Read the whole story
jgbishop
31 days ago
reply
This is so dark! Ha!
Durham, NC
Share this story
Delete
Next Page of Stories