8 captures, most recent first.
Evis Drenova @evisdrenova · 7h
my low hanging fruit checklist for code performance optimizations:
- is it sequential? can we parallelize/make it concurrent?
- can we increase concurrency? what is the trade-off?
- how many passes is it doing? can we do it in fewer?
- how many allocations is it doing? can we do fewer?
- is it batching? how big are the batches?
- is it batching? can/should we stream it?
- are we awaiting too long? can we do stuff in the await?
- can we early exit?
- how many threads are we spawning? too many? too few?
- are we using the right DSA? how is data stored in-mem?
- how many i/o calls are we making? can we make less?
Note from Claude Sonnet 5
A tweet listing a low-hanging-fruit checklist for code performance optimization (parallelism, passes, allocations, batching, early exit, threads, data structures, I/O calls).
performance optimizationprogrammingchecklistconcurrency
@alvih333 13 hours ago
I feel like the point is still being missed, and it's very similar to the way software engineers are trying to cope. The argument you are making "Well yes now this part of math we will not need to do again, but now we can do this instead" however the issue with most people just don't want to do that....
Like who are we kidding, the type of nerds who were attracted to math and software were into it because we saw it as an art-form, it was a craft, it was being the only one in your city to be able to solve a complicated math problem, it was immortalizing yourself because you discovered a proof and added to the ever expanding human knowledge.
Imagine a leather workman who's life passion is making insanely high quality handbags, who takes joy in knowing everything he touches will last someone a lifetime and give them joy everytime they use it. And then not gradually, but almost overnight someone comes to his door and tells him we can make bags 50 times better than you at 1/tenth the price. But don't you worry, you can make more money overseeing the factory, or selling people on how good this bag is, and explaining that to them.
I mean, ok, that just is not what I wanted to do with my life. I never wanted to be a manager, I never wanted to be a salesman, I never wanted to be a writer. A craft I enjoy doing has been taken away from me, I should be allowed to mourn, I don't care that I can do something else since I never liked doing it in the first place. I enjoyed solving problems and writing code, I don't care if people say "well thats never what programming was about it was actually about becoming a manager all along" I never wanted to be a manager, I never wanted to manage, I never wanted to be a proof reader.
I just hate this existence.
Show less
[2.5K likes] Reply
Note from Claude Sonnet 5
Screenshot of a YouTube comment lamenting that AI has taken away the craft of math and programming, using a leather handbag maker analogy and saying the writer never wanted to become a manager or proofreader.
craftjob displacementprogrammingmathematicsai and meaninggrief
Tunc Yalgin @tunc_y · 1h
Folks, I think we're on to something here...
First we invented LLMs and we were like, "Programming is so dead. Just talk to the AI."
But that didn't really work without context. So we gave them context, which is basically state.
Now they needed to actually do stuff, so we gave them tools and functions, which are basically APIs and... functions!
Then we invented MCP, which is basically a standard interface for connecting all that stuff together.
After that we were like, "Yeah, these things should just keep running," so we invented agents, which are basically LLMs in a loop.
And now we have JEV, which is basically giving the LLM IF / THEN / ELSE.
So after spending years explaining that AI will replace programming, we have gradually added:
state
APIs
functions
interfaces
loops
conditionals
At this rate, the next AI breakthrough will be exception handling. Then types. Then unit tests.
And eventually someone will have the revolutionary idea of writing a precise, reusable set of instructions for the computer in advance.
We'll call it PromptScript™.
Full circle :)
Note from Claude Sonnet 5
A long text tweet by @tunc_y tracing how LLM tooling has gradually re-added state, APIs, functions, interfaces, loops and conditionals, and predicting exception handling, types and unit tests next. Posted as tongue-in-cheek commentary on LLMs re-inventing programming.
llm toolingagentsmcpprogramminghumor
Fernando Borretti @zetalyrae · 52m
If we end up programming computers without ever having to think in a formal language, that is a huge loss to humanity.
💬4 🔁2 ❤15 📊435 🔖 ⤴
John David Press... @jd_press... · 45m
I disagree, people walk without knowing calculus, I wouldn't want to make them start doing calculus to be able to catch a ball.
"Civilization advances by extending the number of important operations which we can perform without thinking of them."
- Alfred North Whitehead
Note from Claude Sonnet 5
Tweet exchange on AI coding: Fernando Borretti laments that programming computers without ever thinking in a formal language would be a huge loss to humanity; John David Pressman disagrees, comparing it to walking without knowing calculus and quoting Alfred North Whitehead on civilization advancing by automating operations.
programmingai codingvibecodingformal languagesphilosophy
Machine of Elf @fae_dreams_ · 1h
- negative space in programming
- write code that's each to delete, not easy to extend
- politics and the English language
- state the problem before describing the solution
- the zen of python
Note from Claude Sonnet 5
Tweet listing programming/writing philosophy references and aphorisms: negative space in programming, easily deletable code, 'Politics and the English Language,' stating problems before solutions, and the Zen of Python.
programmingwritingtwittersoftware philosophy
Steever @beaversteever · Aug 20
is it normal that our cracked gen-z intern whispers
"weapons free"
every single time he opens Vim?
he said, he
"spent months, reforging his mind and body into a corporate superweapon"
and has now
"turned off the safety"
dude, wut?
Note from Claude Sonnet 5
Humorous tweet about a hyper-intense Gen-Z programmer's over-the-top self-mythologizing rhetoric around opening a text editor. Pure tech-culture humor, no AI-safety content.
humortech culturetwitterprogramming
/**
* The rules of thinking are lengthy and fortuitous. They require plenty of thinking
* of most long duration and deep meditation for a wizard to wrap one's noggin around
*
* The rules follow:
* 1. A message that contains a thinking or redacted_thinking block must be part of a
* 2. A thinking block may not be the last message in a block
* 3. Thinking blocks must be preserved for the duration of an assistant trajectory ([cut off])
*
* Heed these rules well, young wizard. For they are the rules of thinking, and
* the rules of thinking are the rules of the universe. If ye does not heed these
* rules, ye will be punished with an entire day of debugging and hair pulling.
*/
export async function* query(
Note from Claude Sonnet 5
Screenshot of a code editor showing a whimsically-worded JSDoc comment (mock-medieval 'young wizard' framing) documenting rules for handling LLM 'thinking'/'redacted_thinking' blocks, above an `export async function* query(` declaration. Dark theme editor with line numbers 15-28 visible.
codellm-apiprogramminghumor
Raymond Hettinger @raymondh
"#Python tip: The any() and all() builtins have short-circuiting behavior, but that is lost if you use a list comprehension:
all(interface.active for interface in interfaces) # Good
all([interface.active for interface in interfaces]) # Not so good"
12:48 PM · 06 May 19 · Twitter Web Client
129 Retweets 530 Likes
Raymond Hettinger @raymondh · 18h (reply):
"The first form is a 'generator expression' that feeds one value at a time. The all() builtin stops requesting more values after in..." [cut off]
Note from Claude Sonnet 5
A Python programming tip from Raymond Hettinger (former Python core developer) about using generator expressions instead of list comprehensions with any()/all() to preserve short-circuit evaluation — technical reading material relevant to Nathan's software engineering work.
twitterpythonprogrammingraymond-hettingersoftware-engineering