News for hackers. Stuff that matters.

dzhar11

Re:Type Safe Generic Data Structures in C on Monday October 05, 2026 @07:40PM (#49972259)
(C++) The worst programming language of all time https://www.youtube.com/watch?v=7fGB-hjc2Gc (10m ago)

These macro tricks (from the article) are not about recreating C++ in C. C is less opinionated (comp. to C++): it gives you fewer built-in abstractions; does not prescribe which DS dev. should use. It is bring-your-own-data-structures language. Bring whatever you choose. In C, newer language standard is not always better. Older lang standards support more platforms. There is a certain beauty in writing in an old language while still applying modern coding practices.

I like C. I don't hate other languages. I wouldn't use C for apps that should have been written in C# with WinForms...

Re:My agent.md to improve LLM-assisted code quality on Sunday August 23, 2026 @06:16PM (#49413165)
From FAB's AGENT.MD: > - Avoid magic numbers and strings by extracting recurring or meaningful values into descriptive constants (const) or enums. ---

I've been seeing the same thing with models like GPT5.6 and Opus4.8 in GH Cop CLI. They still introduce magic numbers, and in Scala they often put an entire 10-line Spark expression inside an if condition instead of extracting it into a meaningfully named value to keep "if" readable. I wonder when common sense instructions will be baked into the models.

Re:The Vibe Tax on Sunday August 23, 2026 @05:51PM (#49412970)
This article somewhat reflects my experience with autonomous agentic coding. I've run several experiments with similar results: the agent burns through all my tokens while making very little progress, or produces something unacceptable.

So I'd rather micromanage the process step by step. It takes more of my time, but the result is much, much closer to what I actually wanted.

Re:How is the Bun Rewrite in Rust going? on Tuesday July 28, 2026 @01:17AM (#49079667)
The issue is that the Claude's C Compiler repository does not explicitly identify the project as a proof of concept. It was largely produced by one person directing Claude, and Bun's Rust rewrite also seems to have been driven by roughly one person using Claude Code. That similarity is what worries me. Bun's rewrite could also turn out to be proof of concept.
Re:How is the Bun Rewrite in Rust going? on Monday July 27, 2026 @11:32AM (#49071097)
Jarred, thank you for working on Bun. Many "vibe coded" :D projects start strong and are later abandoned (like potentially Anthropic C), so I understand why people worry about Bun's future. I hope Bun lasts for many years, like GCC. Bun is fast and great to use.
Re:Ask HN: Could you share your personal website here? on Saturday January 17, 2026 @07:01PM (#46663437)
https://blog.zharii.com/docs/chatGPT/2026-01-17-Ask-HN-Share...

a triple-LLM-filtered categorized list of the top resources from this HN topic. (My link-dump website is a trash pile of all the information I’ve ever paid attention to, maybe someday I will need it!)

Re:Be Like Clippy on Saturday November 29, 2025 @09:21PM (#46092975)
People! What are you talking about? Who said Clippy was hostile? How? Clippy was always there when I had to write an annoying essay, a long letter, or something else for school. It reassured me that everything was saving correctly on my 1.44" diskette. The real nightmare back then was bad blocks on your HDD or diskette -- not Clippy. Clippy is my friend.

Sentiment toward Clippy-as-software (approximate, opinionated comments only)

    Clippy hostile       |######################......|  ~70 %
    Clippy not hostile   |########....................|  ~30 %
Scale: 30 columns; '#' ≈ 2–3 % of clearly opinionated comments
Re:URLs are state containers on Sunday November 02, 2025 @03:15PM (#45793022)
Recommendation:

https://github.com/Nanonid/rison

Super old but still a very functional library for saving state as JSON in the URL, but without all the usual JSON clutter. I first saw it used in Elastic's Kibana. I used it on a fancy internal React dashboard project around 2016, and it worked like a charm.

Sample: http://example.com/service?query=q:'*',start:10,count:10

Re:Notes on Managing ADHD on Sunday August 31, 2025 @03:49PM (#45086450)
I appreciate the author's notes on managing ADHD. I was glad to find I didn't learn much new, because I'm already applying many of these practices.

I've tried several to-do apps, but centralized systems didn't work for me. I now use multiple to-do lists across different media: some on paper, some on my phone, others in markdown files within project folders... sending email to myself. It may seem messy, but it works for me. One system doesn't fit everyone. And any customization and tweaks are encouraged.

Books that helped me:

Atomic Habits by James Clear emphasizes small, consistent changes. Over time, they build into significant improvement. It’s better to improve your system gradually than attempt a major overhaul.

The Now Habit by Neil Fiore offers tools to overcome procrastination and start tasks. It helped me understand my resistance and find ways to move forward.

Getting Things Done by David Allen focuses on reviews and planning. I struggle to make time for them regularly, but even occasional reviews help.

Marcus Aurelius' Meditations, especially annotated versions, provide a Stoic perspective. His reflections on virtue and responsibility inspire me. He seemed to dislike being emperor, preferring philosophy, but accepted his role out of duty. That example helps me do necessary tasks, even when I don't feel like it.

Re:Hn.js on Wednesday December 20, 2023 @12:38AM (#38705799)
Please, rewrite it in Rust. :D

For my personal single-html projects, I prefer a straightforward coding style that avoids external dependencies. I implement what I need in a simple, quick, and efficient manner using only native browser APIs, supplemented with a few helpers like those in 'Hn.js' to make the rest of the code shorter.

Re:Emacs Bedrock–A minimal Emacs starter kit on Tuesday September 05, 2023 @01:25AM (#37388176)
I am trying to learn and use Emacs, but I am not an expert. Surprisingly, Emacs 29 runs very good on Windows. I am happy with eshell, dired, trying to use emacs more for some simple tasks. I am experimenting with sharing emacs init.el configuration via local git + symlinks between 3 machines: 2 Windows and 1 Linux. Package configuration is challenging; sometimes, it works on Windows but breaks on Linux. Only nyan-cat never caused any issues ;)
Re:Burnout because of ChatGPT? on Monday August 14, 2023 @10:53PM (#37129623)
I am in my late 30s ;) I understand you. We are... singularity. This good feeling when ChatGPT does what I want. I am working on my pet project and struggling to convince my friends and coworkers how cool my project is, but ChatGPT understands what I am doing and is ready to help. It reminds me of my addiction to online video games: World of Tanks, Team Fortress 2, PUBG, Dead by Daylight... It is a shot of dopamine when I win and anger when I lose. Burnout after some time... can't play anymore, but I have to... Oh, I have wasted (or invested) a few full years (like when you add all hours on Steam and divide by hours in a year) in video games (instead of sleep). At least now I can feel when burnout is coming. I have learned when to stop. No magic. Just time.
Re:SVB Hall of Shame on Friday March 17, 2023 @12:08AM (#35192992)
2020 Panic buying === 2023 Panic withdrawing https://en.wikipedia.org/wiki/Panic_buying
Re:A Keypad to Control My Entire Desk Setup on Friday February 24, 2023 @06:13PM (#34931570)
Wow, this is a fantastic project; thank you for sharing! For a few years, I've been thinking about automating something with remote NumPad. I've also got "Velocifire" numpad and used it as MouseKeys. This project is a huge inspiration ;)
Re:Ask HN: Where can I find C++ by Example? on Monday October 03, 2022 @05:49PM (#33074182)
Thank you!
Re:Ask HN: Where can I find C++ by Example? on Monday October 03, 2022 @05:48PM (#33074175)
Thank you!

Ask HN: Where can I find C++ by Example?

I want to spend some spare time and have some fun learning C++, because I respect this language. This is my hobby goal. Many know about "Go by Example" and "Rust by Example" where I have enjoyed these little experiments and well-written text. But where can I find something like "C++ by Example"?Edit 00: What I am looking for is a language tour (I have read Stroustrup's "A tour of C++"), but...

( Read More... | 5 comments | 11 points | on HN )
A long time ago, I worked on my Page Object Generator pet project, a desktop app allowing me to record/test page elements via Selenium Webdriver. https://github.com/dzharii/swd-recorder

It was a time when I had to test an IE6-only enterprise web tool, And there was no option to copy CSS-selector in Chrome/Firefox. I am not working in UI automation anymore (sad :( ) and lost interest in this project, but I think having a tool to record page objects and generate some smart automation code can still be quite helpful.