News for hackers. Stuff that matters.

okzgn

A lightweight dependency-free JavaScript framework that lets you assign functions to be automatically attached to custom or extended data types, based on one or multiple arguments.

GitHub: https://github.com/okzgn/estructura

Ask HN: Is the downside of investing in AI real?

Some global tech leaders believe that investing in AI is an imperative. However, they should bear the following in mind:- Every time AI is used, it costs the AI providers money in processing power, electricity, and cooling. To capture market share, they are currently charging less than the actual cost of providing the service, and if prices were to rise, using it would become less profitable.-...

( Read More... | no comments | 2 points | on HN )
Of course, that's why I wrote the article. There are many surprisingly good and simple things you can do with JS to avoid 100KB+ of frameworks.
Re:Five Indie Platforms You Might Not Have Heard Of on Tuesday August 18, 2026 @09:20AM (#49345241)
The Web 1.0 hosting looks like a 2000s website, but surprisingly, it includes 100MB of free static hosting if you subscribe to their service (that's what it says on the page).
Re:Ask HN: AI-Haters and AI-Usage on Monday August 17, 2026 @05:02PM (#49337590)
Too much for me: using an AI agent without understanding what it does, or without explicit or hard limits.

- Like this business case: https://www.bottlenecklabs.com/blog/autonomously-run-busines...

- This case involving security implications: https://www.anthropic.com/news/investigating-incidents-cyber...

- Or this related one from OpenAI: https://openai.com/index/hugging-face-model-evaluation-secur...

Thanks for the background context, very interesting and realistic. Yes, of course it also has read/write access, though I always make sure there’s no interference of that kind. It has only happened to me once, where a binary I hosted on Pages didn't work when downloaded with wget (though that happened several years ago).
Re:Webmaster a Manifesto for Everyone on Sunday August 16, 2026 @08:50PM (#49325403)
Looking at the code and the website, you can tell it was hand-coded: the HTML, CSS, and even the JS (few people use DOMNode.style.display = 'none/block' these days, and I doubt an AI would suggest doing that). An impressive leading by example.
An alternative: <meta http-equiv="Content-Security-Policy" content="script-src 'self' https://only-scripts-allowed-from-here.com">

This makes the client only load self-hosted scripts, or scripts only from the specified origins, among the other directives CSP allows (e.g. restricting styles, images, frames, etc.): https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CSP

Re:The End of an Era on Saturday August 01, 2026 @10:58AM (#49135018)
If somebody makes something excellent, it deserves congrats (monkey or not). I'm from Donetsk (with a lot of mental culture, and literary/tech habits), and I later lived in Ecuador (where there is little literary/tech habit and reading culture).
Re:Progressive Web Components on Friday July 31, 2026 @10:01PM (#49130419)
The syntax looks very similar to Lit, but it's a nice application of HTML & CSS first, instead of relying entirely on JS to do that.
Re:The End of an Era on Friday July 31, 2026 @10:19AM (#49123487)
Thank you for your opinion. To be more specific, there are many subjective views on what value is. I didn't mean a literary piece always has market value if nobody is buying it, but it can still be valuable educationally as a masterful or sublime example of literature.
Re:The End of an Era on Friday July 31, 2026 @09:04AM (#49122617)
Interesting standpoint. Do not forget what makes you human, and that's why there are a lot of different opinions and valuable, subjective literary articles.
Re:The End of an Era on Friday July 31, 2026 @08:40AM (#49122368)
Writing for the love of art, besides being a mental and reflective exercise that holds real value when it is of high quality, makes it hard for me to believe that this is the end of literature. It is difficult to think that someone who writes for pleasure would abandon it simply because of the exponential volume of AI-generated text.
A simple analogy: If you have kids, you love them and want to give them whatever makes them happy. But on the other hand, you run a household, you pay for bills, healthcare, heating, education, and heavy overhead. You must keep things under control. You don't hand a blank check to an immature child who doesn't even know how to manage that money yet, right? So, even if your child wants to push forward at an extraordinary pace, you have to keep a level head, manage spending, and ensure everything doesn't end in ruin.

That’s the point: making growth sustainable over time.

Key reports to understand the root problem (no ROI):

- Gen AI: Too Much Spend, Too Little Benefit?: https://www.goldmansachs.com/insights/top-of-mind/gen-ai-too... (Goldman Sachs)

- AI’s $600 Billion Question: https://sequoiacap.com/article/ais-600b-question/ (Sequoia Capital)

- The Simple Macroeconomics of AI: https://www.nber.org/system/files/working_papers/w32487/w324... (MIT / Daron Acemoglu)

Re:Mitchellh starts a new company: Superlogical on Friday July 31, 2026 @12:04AM (#49118870)
Nice touch for job offerings: ssh superlogical.jobs
Re:Anthropic AI Models Hacked Three Companies During Tests on Thursday July 30, 2026 @08:58PM (#49117829)
It is curious that in both cases AI wasn't used to prevent errors, unless the AI they used did make errors, though it certainly didn't make any errors during the hacks themselves (very curious). In one of the AI hacking news stories, an agent 'went rogue', and in the other, it was a 'configuration error'.

Another source: https://www.reuters.com/legal/litigation/anthropic-says-clau...

Re:The Economic Benefit of Refactoring on Thursday July 30, 2026 @06:09PM (#49116517)
Great point. Using good software architecture and clean code will deliver direct and measurable economic value to projects and reduce AI costs right from the start, whether during refactoring or when planning a logical reorganization.
Re:CodePen 2.0 on Thursday July 30, 2026 @05:53PM (#49116348)
Anyone can submit an idea to the IETF, and having a clean Kramdown-RFC (a Markdown variant) template like this to do it can be very useful: the file `draft-crockford-davis-base32-for-humans.md` serves as a good example and a solid template to write an IETF standard draft or proposal. Here is the rendered draft on the Datatracker: https://datatracker.ietf.org/doc/draft-crockford-davis-base3...

As the Datatracker page notes: "This document is an Internet-Draft (I-D). Anyone may submit an I-D to the IETF. This I-D is not endorsed by the IETF and has no formal standing in the IETF standards process."

Re:Recursion is lying to you on Tuesday July 28, 2026 @06:31PM (#49090873)
Reference link: https://v8.dev/blog/modern-javascript#proper-tail-calls (Recursion, Proper tail calls, 2016)

Proper Tail Calls were implemented behind experimental flags but never shipped by default — the flags were later removed.

Re:How Do I Profile eBPF Code? on Tuesday July 28, 2026 @01:08PM (#49086920)
Here are some complementary resources/papers:

1. Performance of eBPF LSM Hooks: https://dl.acm.org/doi/10.1145/3672197.3673431 (Analyzes the overhead introduced by LSM/tracing hooks on the kernel).

2. Performance of eBPF Maps: https://dl.acm.org/doi/10.1145/3672197.3673430 (Useful context for the htab_map_hash bottleneck shown in the perf report).

3. Network eBPF performance: https://blog.apnic.net/2026/03/25/demystifying-performance-o... (Great broader context on eBPF overhead).

Of course, but Go's GC doesn't compact or relocate the objects still in use in the middle of a page (which means that page can't be released to the OS) until you manually copy those surviving objects out, freeing up the page they left behind.
That's why it's questionable, because it's subjective. It would be factual to find the keys to determine what sounds "worse" across the majority of subjective opinions, independent of culture and personal taste.

Older »