News for hackers. Stuff that matters.

whyandgrowth

Ei Embedded Inverser: automatic inversion of expressions at the structural level

Hi HN, I want to share an interesting meta-mathematical concept — Embedded Inverser (Ei). It is a universal inversion operator that works at the structural level of an expression and automatically generates its mirrored version.Features of Ei:Automatic inversion: Ei detects all operators and the structure of the expression on its own.Type-independent: works with numbers, strings, arrays,...

( Read More... | no comments | on HN )
The strange thing is that such articles always evoke the idea that AI is replacing humans even in serious work, which is frightening.
Re:Is the era of personal software portfolios over? on Wednesday September 17, 2025 @04:59AM (#45273480)
>Is the value of a portfolio decreasing?

Partially, yes. If your portfolio is 5 small web applications or Python scripts that AI can make in half an hour, their weight as a “demonstration of skills” drops.So, the fact that you can do it manually is no longer impressive.

What becomes important now: Architecture at scale — AI does not yet know all the nuances of large systems, distributed services, performance optimization, and security.

Business logic integration — understanding how the business actually works, where the pain points are, how users interact with the product.

Creativity and unique concepts — AI can create boilerplate, but it doesn't always understand that it is creating something fundamentally new.

Moral: AI takes away the “simple feats” but opens up new space for true engineering mavens. If you can do something that AI can’t easily replicate, your portfolio gets even cooler.

Re:I just want an 80×25 console, but that's no longer possible on Wednesday September 17, 2025 @03:40AM (#45272986)
Thanks
Re:I just want an 80×25 console, but that's no longer possible on Wednesday September 17, 2025 @02:33AM (#45272488)
Sorry, but I don't understand why you even need an 80x25 console instead of a standard one.

Maybe I don't understand something, so please explain?

Re:Scientists uncover extreme life inside the Arctic ice on Tuesday September 16, 2025 @09:16AM (#45261836)
Who would have thought that they had been found before, but only now did they undertake a more detailed study.
Re:Show HN: Building an open-source agentic terminal on Monday September 15, 2025 @01:58PM (#45252886)
Of course, you still did a great job, I also work with LLM, and I know that there are a lot of difficulties with them, and sometimes it even seems that it is better to write the code yourself than to explain to the AI what you need to improve or make.
Re:Nipdf: PDF Reader in Rust on Monday September 15, 2025 @01:10PM (#45252300)
Could you please add a video demo in future versions where you try out UI?
Re:Show HN: A simple header-only profiler for C/C++ on Monday September 15, 2025 @12:30PM (#45251727)
Cool project, lightweight and easy to drop into a codebase I have a few ideas.

1. Zone name storage – right now you store a raw char. If it points to a stack/local string it can blow up . Better to use const char (if always literals) or strdup.

2. Thread-safety – the global arrays (prof_zones, prof_zones_stack) aren’t protected. In multithreaded workloads everything breaks. You could make them thread_local.

3. Cycles vs time – __rdtsc() isn’t always stable (TurboBoost, NUMA, CPU scaling). clock_gettime() is more portable. Might be nice to let the user pick via a macro.

4. Output – the printf("[%16s]...") is old-school. Sorting zones by total_secs or total_cycles would make hot spots pop out immediately.

5. Limits – PROF_MAX_NUM_ZONES = 256 is small for bigger projects. Could malloc and grow dynamically.

6. Overhead – the profiler doesn’t subtract its own overhead (push/pop, clock reads), so absolute numbers are inflated. Relative numbers are still valid, though.

Bonus idea: add a macro like

#define PROF_SCOPE(name) for (int _i = (prof_begin(name), 0); !_i; prof_end(), _i++)

so you can just write:

void foo() { PROF_SCOPE("foo"); // code... }

Re:Show HN: Building an open-source agentic terminal on Monday September 15, 2025 @12:25PM (#45251641)
Wow, you wrote 65 thousand lines of code yourself? Did I understand correctly? If so, you're really cool, and how much time did you invest in the project?
Re:How does air pollution impact your brain? on Monday September 15, 2025 @10:11AM (#45249980)
Could the impact of polluted air on children's brain development be one of the reasons why today's children are losing motivation to learn?
Re:Folks, we have the best π on Monday September 15, 2025 @08:25AM (#45248849)
P.S. Sorry, I was wrong.
Re:Folks, we have the best π on Monday September 15, 2025 @06:44AM (#45248198)
Good point. I just thought that a direct link or summary of the formal reasoning would have made it easier for readers unfamiliar with the topic. But fair enough, the linked paper does cover it.

Lesser-Known but C Language Facts That Might Surprise You

While C is one of the oldest and most studied programming languages, it still has some quirks and historical oddities that many developers might not know:1. Undefined Behavior for Performance: C deliberately includes undefined behavior (UB) for things like signed integer overflow or dereferencing null pointers. This isn’t a bug—it’s a design choice. By leaving behavior undefined, compilers can...

( Read More... | no comments | 2 points | on HN )
Re:Folks, we have the best π on Monday September 15, 2025 @05:36AM (#45247821)
If the author had provided links to explanations or additional materials for those who want to understand the formal reasoning more deeply.
Re:Folks, we have the best π on Monday September 15, 2025 @05:29AM (#45247773)
Thanks
Re:Folks, we have the best π on Monday September 15, 2025 @05:04AM (#45247619)
This is very interesting, but I have 3 questions:

1. Why exactly n = 2 minimizes π. The article shows this graphically, but there is no formal proof (although the Adler & Tanton paper is mentioned). It would be interesting to understand why this is the case mathematically.

2. How to calculate π for n-metrics numerically. The general idea of "divide the circle into segments and calculate the length by the metric" is explained, but the exact algorithm or formulas are not shown.

3. What happens when n → 0. It mentions that "the concept of distance breaks down," but it does not explain exactly how and why this is so.

Re:Ask HN: What if I can't finish the project? on Monday September 15, 2025 @04:56AM (#45247562)
Hey, thanks for your detailed answer!

For me, a project feels complete when everything is done—full src, tests, and documentation. Most of my unfinished projects usually have only half of the src implemented, so that’s why they feel “stuck.”

There’s no connection between my projects; each new idea is totally unique and unrelated to previous ones.

I’ve worked on quite a variety: a new data compression algorithm, binary optimization, a logging library, an alternative to giflib, and many other library experiments.

Ask HN: What if I can't finish the project?

Very often a new idea comes to me, and I start actively working on it, but I often want to stop working on a project for the sake of a new idea, and so at one point I already have more than 20 unfinished projects.Please share a way to do something about this or share your opinion.

( Read More... | 4 comments | on HN )
Re:New catalyst could make mixed plastic recycling a reality on Sunday September 14, 2025 @01:11PM (#45241443)
When the time comes when this will be used all over the world, there will be more pollution, we need not only a new way of recycling, but also for the people to be better.
Re:Website Is Just an SVG on Sunday September 14, 2025 @11:41AM (#45240648)
Wow, I didn't know SVG was capable of that, the website looks like a HTML/CSS site from the 2000s, but it's still cool.
Re:Show HN: Cachey, a Read-Through Cache for S3 on Sunday September 14, 2025 @10:42AM (#45240107)
To be honest: for use as a local cache/S3 accelerator for large files – it’s fine. The API is simple but flexible. The only point is that the documentation is in English, and you need to understand how “hedged fe” works.
It looks pretty cool, and I liked the automatic support for visual charts to make everything easy to see, it lets you know everything quickly and at once, it's pretty useful.

But when I opened it on my phone, the screen twitched for some reason when generating the message.

How can lens size provide energy savings?
Re:First telepathy device lets people communicate without speaking on Saturday September 13, 2025 @02:00PM (#45234020)
Of course, everything sounds cool, but there are no exact facts or links to articles confirming the veracity of this device.

Older »